sage_skills.txt 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. //===== eAthena Script =======================================
  2. //= Sage Skills Quests
  3. //===== By: ==================================================
  4. //= Lupus, Reddozen
  5. //===== Current Version: =====================================
  6. //= 1.3a
  7. //===== Compatible With: =====================================
  8. //= eAthena Revision 3800+
  9. //===== Description: =========================================
  10. //= Temp quests for new skills for 2nd classes
  11. //===== Additional Comments: =================================
  12. //= 1.0 for fully working skills only [Lupus]
  13. //= 1.1 Added more new skill quests for more classes [Lupus]
  14. //= Somehow eA engine doesn't let you keep learn't skill V_V'
  15. //= 1.2 Added to correct locations, correct NPC's, fixed
  16. //= some of the items required and made them into real
  17. //= quests. [Reddozen]
  18. //= 1.3 Fixed bugs and minor typos. Optimized [Lupus]
  19. //= 1.3a fixed an item ID typo, thx 2Spiritual Kid
  20. //= 1.3b Splitted into different files [DracoRPG]
  21. //============================================================
  22. //============================================================
  23. // SAGE SKILL - CREATE CONVERTER + ELEMENTAL CHARGE
  24. //============================================================
  25. yuno_in03.gat,176,24,3 script Mischna 755,{
  26. mes "[Mischna]";
  27. if(BaseJob!=Job_Sage) goto L_sageno;
  28. if(getskilllv(1007)) goto L_elemental;
  29. mes "I can teach you a new skill";
  30. mes "that I discovered, but you";
  31. mes "will need to bring me a few";
  32. mes "things to complete the";
  33. mes "process.";
  34. next;
  35. mes "[Mischna]";
  36. mes "We will need:";
  37. mes "10 Scorpion Tails";
  38. mes "7 Horns";
  39. mes "12 Rainbow Shells";
  40. mes "10 Snail Shells";
  41. mes "4 Blank Scrolls";
  42. next;
  43. mes "[Mischna]";
  44. mes "Let me check your items.";
  45. next;
  46. if(countitem(904)<10 || countitem(947)<7 || countitem(1013)<12 || countitem(946)<10 || countitem(7433)<4) goto L_noitems;//Items: Scorpion_Tail, Horn, Rainbow_Shell, Snail's_Shell, Blank_Scroll,
  47. delitem 904, 10;//Items: Scorpion_Tail,
  48. delitem 947, 7;//Items: Horn,
  49. delitem 1013, 12;//Items: Rainbow_Shell,
  50. delitem 946, 10;//Items: Snail's_Shell,
  51. delitem 7433, 4;//Items: Blank_Scroll,
  52. mes "[Mischna]";
  53. mes "I see you have what we need,";
  54. mes "so I'll teach you this new";
  55. mes "talent of mine!";
  56. skill 1007,1,0;
  57. next;
  58. mes "[Mischna]";
  59. mes "Do you feel more in tune";
  60. mes "with nature?";
  61. close;
  62. L_noitems:
  63. mes "[Mischna]";
  64. mes "You don't have enough items.";
  65. mes "Come back when you have all";
  66. mes "the required items for me.";
  67. close;
  68. L_sageno:
  69. mes "Hi I'm Mischna. How are you?";
  70. mes "Please enjoy your stay here";
  71. mes "within the walls of the great";
  72. mes "Sage's guild.";
  73. close;
  74. L_sagefail:
  75. mes "[Mischna]";
  76. mes "You don't have enough items.";
  77. mes "Come back when you have all";
  78. mes "the required items for me.";
  79. mes "to give you this power over";
  80. mes "the elements.";
  81. close;
  82. L_alreadyhave:
  83. mes "You are such a wonderful";
  84. mes "student. It's too bad I have";
  85. mes "nothing more to teach you.";
  86. close;
  87. L_elemental:
  88. if(getskilllv(1008) || getskilllv(1017) || getskilllv(1018) || getskilllv(1019)) goto L_alreadyhave;
  89. mes "I have one more skill that";
  90. mes "I can teach you, but you";
  91. mes "will need to bring me one of";
  92. mes "these sets in return...";
  93. next;
  94. mes "[Mischna]";
  95. mes "I can only except one set.";
  96. mes "20 Red blood (fire)";
  97. mes "20 Crystal Blue (water)";
  98. mes "20 Wind of Verdure (Wind)";
  99. mes "20 Green Live (Earth)";
  100. next;
  101. mes "[Mischna]";
  102. mes "Remember that I can only teach";
  103. mes "you one, so choose carefully!";
  104. next;
  105. menu "Water Charge",sage_1, "Earth Charge",sage_2, "Fire Charge",sage_3, "Wind Charge",sage_4;
  106. sage_1:
  107. if(countitem(991)<20)goto L_sagefail;//Items: Crystal_Blue,
  108. delitem 991, 20; //Items: Crystal_Blue,
  109. skill 1008,1,0;
  110. goto L_alreadyhave;
  111. sage_2:
  112. if(countitem(993)<20)goto L_sagefail;//Items: Green_Live,
  113. delitem 993, 20;//Items: Green_Live,
  114. skill 1017,1,0;
  115. goto L_alreadyhave;
  116. sage_3:
  117. if(countitem(990)<20)goto L_sagefail;//Items: Red_Blood,
  118. delitem 990, 20;//Items: Red_Blood,
  119. skill 1018,1,0;
  120. goto L_alreadyhave;
  121. sage_4:
  122. if(countitem(992)<20)goto L_sagefail;//Items: Wind_of_Verdure,
  123. delitem 992, 20;//Items: Wind_of_Verdure,
  124. skill 1019,1,0;
  125. goto L_alreadyhave;
  126. }