mage_skills.txt 4.1 KB

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