mage_skills.txt 3.8 KB

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