event_skill_reset.txt 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. //===== rAthena Script =======================================
  2. //= Official Skill Resetter Event in Yuno (kRO & idRO)
  3. //===== By: ==================================================
  4. //= $ephiroth
  5. //===== Current Version: =====================================
  6. //= 1.02
  7. //===== Compatible With: =====================================
  8. //= rAthena 1.0
  9. //===== Description: =========================================
  10. //= 2006 - Edition Skill Reset NPC
  11. //= 2006/11/16: 1.0 Release and fully working. [$ephiroth]
  12. //= 1.01 Checked, fixed typos, now uses MISC_QUEST var [Lupus]
  13. //= 1.02 Added missing message,comment,etc. [$ephiroth]
  14. //===== Additional Comments: =================================
  15. //= Skill Reset with payment, minimum BaseLv.60 to reset skill.
  16. //= Each 1 BaseLv need 20.000 Zeny, so be careful to use skill.
  17. //============================================================
  18. yuno,138,187,4 script Hypnotist Teacher 124,{
  19. set @npcname$,"[^D5A500Hypnotist^000000]";
  20. mes @npcname$;
  21. if(MISC_QUEST & 1024){
  22. mes "I already told you that you may only complete this event once.";
  23. close;
  24. }
  25. if(BaseLevel < 60) {
  26. mes "Please return when you reach BaseLv 60 or higher.";
  27. close;
  28. }
  29. if(SkillPoint != 0) {
  30. mes "You will need to use up all of your skill points if you want me to continue.";
  31. mes "Please come again soon!";
  32. close;
  33. }
  34. if(Weight || checkfalcon() || checkcart() || checkriding()) {
  35. mes "Would you like to reset skills?";
  36. mes "I'm sorry, but...";
  37. next;
  38. mes @npcname$;
  39. if(Weight) {
  40. mes "You cannot reset skills";
  41. mes "when you keep";
  42. mes "any items.";
  43. } else if(checkcart())
  44. mes "Please, drop your cart and we'll continue.";
  45. else if(checkfalcon())
  46. mes "Please, free your Falcon and we'll continue.";
  47. else if(checkriding())
  48. mes "Please, free your PecoPeco and we'll continue.";
  49. next;
  50. mes @npcname$;
  51. mes "Come back soon!";
  52. close;
  53. }
  54. mes "Hello, I am the Skill Resetter.";
  55. mes "Your name is ^0080FF"+strcharinfo(0)+"^000000.";
  56. mes "How can I help you?";
  57. next;
  58. menu "^009500Information about Reset skills.^000000",L_Info,"^00B6FFReset skills.^000000",L_Reset,"^000088Nevermind^000000",-;
  59. mes @npcname$;
  60. mes "You know where to find me,";
  61. mes "if you ever want a reset!!";
  62. close;
  63. L_Info:
  64. mes @npcname$;
  65. mes "This skill reset is not FREE OF CHARGE!!";
  66. mes "Expense for the reset of skill is ^D5A50020000 Zeny x BaseLv^000000.";
  67. mes "Yeah ...each One BaseLv costs 20000 Zeny to reset skill.";
  68. next;
  69. mes @npcname$;
  70. mes "Oh yeah, one more thing!";
  71. mes "Any carts, falcons or pecos you have equiped";
  72. mes "will be removed if you reset your skills.";
  73. next;
  74. mes @npcname$;
  75. mes "Just one time does again to shake the skill point";
  76. mes "Careful with your skills from here on.";
  77. close;
  78. L_Reset:
  79. mes @npcname$;
  80. mes "Before skill reset in starting.";
  81. mes "You shall have to first tell me your Base Level.";
  82. next;
  83. mes "^D5A500[" + strcharinfo(0) + "]^000000";
  84. mes "My Base level is ^AA00AALevel " + BaseLevel + "BaseLv.^000000";
  85. next;
  86. set @zeny,BaseLevel*20000;
  87. mes @npcname$;
  88. mes "Total zeny to the reset of skill amount ^529DFF" + @zeny + "Zeny^000000 for the skill reset service.";
  89. next;
  90. if(Zeny < @zeny) {
  91. mes @npcname$;
  92. mes "It seems that you don't have enough money.";
  93. mes "In addition we wait for the opportunity.";
  94. emotion e_hmm;
  95. close;
  96. }
  97. set Zeny, Zeny-@zeny;
  98. set MISC_QUEST,MISC_QUEST | 1024;
  99. resetskill;
  100. mes @npcname$;
  101. mes "Thank you.";
  102. emotion e_thx;
  103. logmes "SKILL RESET EVENT";
  104. close;
  105. }