nguild_warper.txt 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. //===== rAthena Script =======================================
  2. //= Novice's Guild Castles War of Emperium Usher NPC
  3. //===== By: ==================================================
  4. //= Lupus
  5. //===== Current Version: =====================================
  6. //= 1.7
  7. //===== Compatible With: =====================================
  8. //= rAthena Project; RO Episode 4+
  9. //===== Description: =========================================
  10. //=
  11. //===== Additional Comments: =================================
  12. //= Now you have access to 4 N Guild castles. They don't have
  13. //= dungeons. And 2nd Classes can't seize these Castles.
  14. //= These new castles need a new strategy. It would bring some
  15. //= fun and live to your game.
  16. //= NOTE: If your Guild Master is 2nd class, then he could
  17. //= rule the Castles and gather Treasure Boxes after WoE
  18. //= 1.1 Now 2nd classes can't enter NC place at all
  19. //= 1.2 Restricted access of SG/SL. On warp clear some
  20. //= unallowed buffs [Lupus]
  21. //= 1.3 Restricted TK,High classes >=90 BaseLevel,
  22. //= updated list of unallowed buffs [Lupus]
  23. //= 1.4 Restricted it to 80 Base Level [Lupus]
  24. //= 1.5 According to official info: 1 Treasure Chest per Castle
  25. //= 1.6 Only 1st Class < 60 BaseLevel Players can participate
  26. //= 1.7 Guilds with Emergency Call or with 9+ skill points
  27. //= can't take part in NWoE. [Lupus]
  28. //= TODO: The official entrance is in Izlude.
  29. //============================================================
  30. prontera,146,163,6 script Novice Castles 729,{
  31. mes "[Cita]";
  32. if (!getcharid(2)) {
  33. mes "^FF0000You have to enter a guild to be able to hit Emperium!^000000";
  34. } else if (getgdskilllv(getcharid(2),10013) ||
  35. (getgdskilllv(getcharid(2),10000) +
  36. getgdskilllv(getcharid(2),10001) +
  37. getgdskilllv(getcharid(2),10002) +
  38. getgdskilllv(getcharid(2),10003) +
  39. getgdskilllv(getcharid(2),10004) +
  40. getgdskilllv(getcharid(2),10005) +
  41. getgdskilllv(getcharid(2),10006) +
  42. getgdskilllv(getcharid(2),10007) +
  43. getgdskilllv(getcharid(2),10008) +
  44. getgdskilllv(getcharid(2),10009) +
  45. getgdskilllv(getcharid(2),10010) +
  46. getgdskilllv(getcharid(2),10011) +
  47. getgdskilllv(getcharid(2),10012) +
  48. getgdskilllv(getcharid(2),10013) +
  49. getgdskilllv(getcharid(2),10014) > 9)
  50. ) {
  51. mes "I see... your guild has Emergency Call mastered.";
  52. mes "You cannot enter the Novice Castle area.";
  53. emotion ET_SCRATCH;
  54. emotion ET_KEK, playerattached();
  55. } else {
  56. mes "I'm a new usher of Novice Castles.";
  57. next;
  58. mes "[Cita]";
  59. if ((eaclass()&(EAJL_2|EAJL_UPPER)) || BaseLevel>=60) {
  60. mes "I'm sorry, you can't enter the sacred Novice Castles place.";
  61. emotion ET_SORRY;
  62. } else if (select("Warp me to Novice Castles","Cancel") == 1) {
  63. // remove several unallowed buffs
  64. sc_end SC_ASSUMPTIO;
  65. sc_end SC_IMPOSITIO;
  66. sc_end SC_SUFFRAGIUM;
  67. sc_end SC_MAGNIFICAT;
  68. sc_end SC_WEAPONPERFECTION;
  69. sc_end SC_GOSPEL;
  70. sc_end SC_BASILICA;
  71. sc_end SC_MAGICPOWER;
  72. sc_end SC_MARIONETTE;
  73. sc_end SC_MARIONETTE2;
  74. sc_end SC_DEVOTION;
  75. sc_end SC_SACRIFICE;
  76. sc_end SC_MAXOVERTHRUST;
  77. sc_end SC_SPIRIT;
  78. warp "n_castle",102,93+rand(14);
  79. }
  80. }
  81. close;
  82. }
  83. n_castle,102,107,5 script Cita 729,{
  84. mes "[Cita]";
  85. mes "Hello, "+ strcharinfo(0) +". Can I help you?";
  86. next;
  87. if (select("Warp me to Prontera!","Cancel") == 1) {
  88. warp "prontera",155,177+rand(5);
  89. } else {
  90. mes "[Cita]";
  91. mes "Ok.";
  92. }
  93. close;
  94. }