nguild_warper.txt 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. //===== eAthena 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. //= eAthena 1+ with eaclass(); 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)!=0){
  33. if(getgdskilllv(getcharid(2),10013)){
  34. mes "I see... your guild has Emergency Call mastered.";
  35. mes "You cannot enter the Novice Castle area.";
  36. emotion e_hmm;
  37. emotion e_wah,1;
  38. close;
  39. }
  40. if(
  41. getgdskilllv(getcharid(2),10000) +
  42. getgdskilllv(getcharid(2),10001) +
  43. getgdskilllv(getcharid(2),10002) +
  44. getgdskilllv(getcharid(2),10003) +
  45. getgdskilllv(getcharid(2),10004) +
  46. getgdskilllv(getcharid(2),10005) +
  47. getgdskilllv(getcharid(2),10006) +
  48. getgdskilllv(getcharid(2),10007) +
  49. getgdskilllv(getcharid(2),10008) +
  50. getgdskilllv(getcharid(2),10009) +
  51. getgdskilllv(getcharid(2),10010) +
  52. getgdskilllv(getcharid(2),10011) +
  53. getgdskilllv(getcharid(2),10012) +
  54. getgdskilllv(getcharid(2),10013) +
  55. getgdskilllv(getcharid(2),10014) > 9
  56. ){
  57. mes "I see... your guild has Emergency Call mastered.";
  58. mes "You cannot enter the Novice Castle area.";
  59. emotion e_hmm;
  60. emotion e_wah,1;
  61. close;
  62. }
  63. } else {
  64. mes "^FF0000You have to enter a guild to be able to hit Emperium!^000000";
  65. }
  66. mes "I'm a new usher of Novice Castles.";
  67. next;
  68. if( !(eaclass()&(EAJL_2|EAJL_UPPER)) && BaseLevel<60 )
  69. menu "Warp me to Novice Castles",M_WARP,"Cancel",-;
  70. mes "[Cita]";
  71. mes "I'm sorry, you can't enter the sacred Novice Castles place.";
  72. emotion e_sry;
  73. close;
  74. M_WARP:
  75. //remove several unallowed buffs
  76. sc_end SC_ASSUMPTIO;
  77. sc_end SC_IMPOSITIO;
  78. sc_end SC_SUFFRAGIUM;
  79. sc_end SC_MAGNIFICAT;
  80. sc_end SC_WEAPONPERFECTION;
  81. sc_end SC_GOSPEL;
  82. sc_end SC_BASILICA;
  83. sc_end SC_MAGICPOWER;
  84. sc_end SC_MARIONETTE;
  85. sc_end SC_MARIONETTE2;
  86. sc_end SC_DEVOTION;
  87. sc_end SC_SACRIFICE;
  88. sc_end SC_MAXOVERTHRUST;
  89. sc_end SC_SPIRIT;
  90. warp "n_castle",102,93+rand(14);
  91. close;
  92. }
  93. n_castle,102,107,5 script Cita 729,{
  94. mes "[Cita]";
  95. mes "Hello, "+ strcharinfo(0) +". Can I help you?";
  96. next;
  97. menu "Warp me to Prontera!",-,"Cancel",LEnd;
  98. warp "prontera",155,177+rand(5);
  99. close;
  100. LEnd:
  101. mes "[Cita]";
  102. mes "Ok.";
  103. close;
  104. }