mage_skills.txt 4.1 KB

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