posture_fix_hat.txt 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //===== eAthena Script =======================================
  2. //= Posture Fix Hat Quest
  3. //===== By: ==================================================
  4. //= Halca (1.0)
  5. //= Mass Zero (1.1)
  6. //===== Current Version: =====================================
  7. //= 1.3
  8. //===== Compatible With: =====================================
  9. //= Any eAthena Version.
  10. //===== Description: =========================================
  11. //= Posture Fix Hat quest.
  12. //===== Additional Comments: =================================
  13. //= 1.2 Fixed wrong labels, added missing text
  14. //= fixed wrong items ID [Lupus]
  15. //= 1.3 Fixed possible exploit [Lupus]
  16. //============================================================
  17. payon_in01.gat,143,8,5 script Nan Hyang 814,{
  18. If (getequipisequiped(5073)) GOTO L_GOOD;
  19. If (Class == 0) GOTO L_NOVICE;
  20. mes "[Nan Hyang]";
  21. mes "Tut tut! you have terrible posture!";
  22. mes "You need to correct it immediately!";
  23. next;
  24. mes "[Nan Hyang]";
  25. mes "I could correct it for you If you brought me some materials to make you a Posture Fix Hat.";
  26. next;
  27. menu "Please, make me one.",-,"What do I need to get?",M_REQ,"No thanks!",M_EXIT;
  28. If ((countitem(1550) <1) || (countitem(2285) < 1 )) GOTO L_NOITEM;//Items: Book, Apple o' Archer,
  29. mes "[Nan Hyang]";
  30. mes "Ahh at last, someone who is serious!";
  31. delitem 1550,1;//Items: Book,
  32. delitem 2285,1;//Items: Apple o' Archer,
  33. next;
  34. getitem 5073,1;//Items: Posture Fix Hat,
  35. mes "[Nan Hyang]";
  36. mes "Hehe, well, maybe you will become more careful, or your sense will become balanced.";
  37. close;
  38. M_REQ:
  39. mes "[Nan Hyang]";
  40. mes "What I require is very simple...";
  41. next;
  42. mes "[Nan Hyang]";
  43. mes "1 Book.";
  44. mes "And 1 Apple o' Archer to balance on it.";
  45. close;
  46. L_NOITEM:
  47. mes "[Nan Hyang]";
  48. mes "At least be serious, you dont have enough items!";
  49. mes "Come back when you wish to learn posture.";
  50. close;
  51. L_GOOD:
  52. mes "[Nan Hyang]";
  53. mes "Ah, that's it! good to see you are willing to learn!";
  54. close;
  55. L_NOVICE:
  56. mes "Hi! Could you visit me next week?";
  57. next;
  58. M_EXIT:
  59. mes "[Nan Hyang]";
  60. mes "Good day to you.";
  61. close;
  62. }