mage_skills.txt 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. //===== eAthena Script =======================================
  2. //= Mage Skill Quest
  3. //===== By: ==================================================
  4. //= kobra_k88
  5. //===== Current Version: =====================================
  6. //= 1.4b
  7. //===== Compatible With: =====================================
  8. //= eAthena 7.15 +
  9. //===== Description: =========================================
  10. //= <Description>
  11. //===== Additional Comments: =================================
  12. //= v1.0a Now using functions found in "Global_Functions.txt"
  13. //= for class checks.[kobra_k88]
  14. //= 1.2 Added Baby Class Support [Lupus]
  15. //= 1.3 Removed callfunc Is_####_Class in favor of baseClass [Silentdragon]
  16. //= 1.4 Fixed exploit [Lupus]
  17. //= 1.4a Fixed some typos [IVBela]
  18. //= 1.4b changed perm. variables to temp ones [Lupus]
  19. //============================================================
  20. geffen_in.gat,151,119,4 script BLIZZARDRISS 71,{
  21. mes "[BLIZZARDRISS]";
  22. if(baseClass == Job_Mage) goto L_Start;
  23. L_Other:
  24. mes "What new magic spells will I discover today......??";
  25. emotion e_hmm;
  26. close;
  27. L_Start:
  28. if(@ENRGYCOAT) goto L_GetSkill;
  29. if(getskilllv(157)>0) goto L_GotSkill;
  30. mes "Hey! My friend! I see that you are a magic user. If you look within yourself, you'll find that you have... 'HIDDEN ABILITIES'!!";
  31. next;
  32. menu "'Hidden Abilities'.....?",M_0, "End Conversation.",M_End;
  33. M_0:
  34. mes "[BLIZZARDRISS]";
  35. mes "For many years I studied the ancient magic of Geffen, and I recently re-discovered a forgotten magic spell that is quite useful.";
  36. next;
  37. mes "[BLIZZARDRISS]";
  38. mes "The spell uses your 'pyschokinetic energy' to 'coat' your body in a magical shield, protecting you from enemy attacks.";
  39. next;
  40. mes "[BLIZZARDRISS]";
  41. mes "Only highly trained magic users can learn this amazing spell.";
  42. mes "Those who want to use this spell must tap into the hidden energies and abilities buried deep within!";
  43. next;
  44. mes "[BLIZZARDRISS]";
  45. mes "The spell is called ^5555FF'Energy Coat'^000000!. Would you like me to teach it to you?";
  46. next;
  47. menu "Wow! Sounds great!",sM_0, "Meh... not interested.",sM_End;
  48. sM_0:
  49. mes "[BLIZZARDRISS]";
  50. mes "In order for me to teach you this spell I will need the following items:";
  51. mes "^5533FF 3 Glass Beads,";
  52. mes " 1 One Carat Diamond,";
  53. mes " 5 Shells,^000000";
  54. mes " and ^5533FF1 Solid shell^000000.";
  55. next;
  56. mes "[BLIZZARDRISS]";
  57. mes "You will also need to have a sufficient amount of experience. For Mages, a job level of at least 35 is needed.";
  58. mes "Wizards and Sages are high level magic users and can learn the skill at any job level.";
  59. next;
  60. mes "[BLIZZARDRISS]";
  61. mes "When you are fully trained and have all of the required items come back and see me.";
  62. set @ENRGYCOAT, 1;
  63. close;
  64. sM_End:
  65. mes "[BLIZZARDRISS]";
  66. mes "Hmf! Suit yourself. Don't come complaining to me when get beat up by a bunch of spores!!";
  67. emotion e_an;
  68. close;
  69. M_End:
  70. mes "[BLIZZARDRISS]";
  71. mes "The wise man must have patience! Prepare yourself and return when you are ready.";
  72. close;
  73. L_GetSkill:
  74. if(BaseJob==Job_Mage && JobLevel < 35) goto L_JobLvl;
  75. if(countitem(746)<3 || countitem(730)<1 || countitem(935)<5 || countitem(943)<1) goto L_Items;
  76. delitem 746,3;
  77. delitem 730,1;
  78. delitem 935,5;
  79. delitem 943,1;
  80. mes "Ohh my, ohh my...... This is going to be swell. Hand over the items... Thank you.";
  81. next;
  82. mes "~ several hours later ~";
  83. next;
  84. skill 157,1,0;
  85. set @ENRGYCOAT,0;
  86. mes "[BLIZZARDRISS]";
  87. mes "You can now use the spell, 'Energy Coat'!! Use it wisely my friend!";
  88. emotion e_no1;
  89. close;
  90. L_JobLvl:
  91. mes "Didn't you listen to my explanation? You need a job level of at least 35 to learn 'Energy Coat'.";
  92. emotion e_what;
  93. close;
  94. L_Items:
  95. mes "Didn't you listen to my explanation? You need the following items for me to teach you 'Energy Coat':";
  96. mes "^5533FF 3 Glass Beads,";
  97. mes " 1 One Carat Diamond,";
  98. mes " 5 Shells,^000000";
  99. mes " and ^5533FF1 Solid shell^000000.";
  100. emotion e_what;
  101. close;
  102. L_GotSkill:
  103. mes "Well hello there. The 'Energy Coat' skill is great, isn't it? Anyway, good luck with your journey.";
  104. close;
  105. }