sunglasses.txt 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. //===== eAthena Script =======================================
  2. //= Quest For Slotted Sunglasses
  3. //===== By: ==================================================
  4. //= Aegis - amichan
  5. //===== Current Version: =====================================
  6. //= 1.7
  7. //===== Compatible With: =====================================
  8. //= Any eAthena Version;
  9. //===== Description: =========================================
  10. //= Quest to get Slotted Sunglasses
  11. //===== Additional Comments: =================================
  12. //= 1.0 by Aegis 1.1 by aichan 1.2 by x[tsk] 1.3 by Darkchild
  13. //= 1.5 Fixed Exploit [Lupus]
  14. //= 1.6 Fixed Exploit [KarLaeda]
  15. //= 1.7 Relocated 'Maseph' to moc_fild07. [Kisuka]
  16. //============================================================
  17. // quest will reset it self after 1 pair of Slotted Sunglasses is made.
  18. // 1st part of the quest
  19. alberta,88,193,5 script Sunglasses Trader 73,{
  20. if(SG_QUEST1 == 1) goto L_SG_Q1_Done;
  21. mes "[Sunglasses Trader]";
  22. mes "Hello. What can I do for you?";
  23. next;
  24. menu "I heard that you can make ^0000FFSlotted Sunglasses^000000.",-,"Nothing, sorry to bother you.",L_SG_No;
  25. mes "[Sunglasses Trader]";
  26. mes "I do not make them, but I can tell you where to find the person who does. For a small fee...";
  27. next;
  28. menu "How much?",L_SG_1,"No way, I will find her, myself!",-;
  29. mes "[Sunglasses Trader]";
  30. mes "Suit yourself, the Maker will not make you ^0000FFSlotted Sunglasses^000000 unless she knows that you are coming.";
  31. mes "Only I can tell her you are coming.";
  32. next;
  33. mes "[Sunglasses Trader]";
  34. mes "Come back to me, when you have given up. Hahaha.";
  35. close;
  36. L_SG_1:
  37. mes "[Sunglasses Trader]";
  38. mes "In order for me to tell you information on ^0000FFSlotted Sunglasses^000000 you need to get me: ";
  39. mes "^0000881 Carat Diamond^000000, ";
  40. mes "^00008850 Feathers^000000, ";
  41. mes "and ^000088100000z^000000.";
  42. next;
  43. menu "Alright, here.",L_SG_1_Check,"That's too much!",-;
  44. mes "[Sunglasses Trader]";
  45. mes "Suit Yourself.";
  46. close;
  47. L_SG_1_Check:
  48. if (countitem(730) < 1) goto L_SG_Diamond;
  49. if (countitem(949) < 50) goto L_SG_Feathers;
  50. if (zeny<100000) goto L_SG_Funds;
  51. delitem 730,1;
  52. delitem 949,50;
  53. set zeny,zeny-100000;
  54. set SG_QUEST1,1;
  55. mes "[Sunglasses Trader]";
  56. mes "Great. Now, listen carefully.";
  57. next;
  58. mes "[Sunglasses Trader]";
  59. mes "Look for someone named Maseph somewhere north of Morroc.";
  60. mes "I will send her a message to let her know that you are coming.";
  61. close;
  62. L_SG_Diamond:
  63. mes "[Sunglasses Trader]";
  64. mes "You do not have the ^0000881 Carat Diamond^000000. Come back to me when you do.";
  65. close;
  66. L_SG_Feathers:
  67. mes "[Sunglasses Trader]";
  68. mes "You do not have ^00008850 Feathers^000000. Come back to me when you do.";
  69. close;
  70. L_SG_Funds:
  71. mes "[Sunglasses Trader]";
  72. mes "You do not have ^000088100000z^000000. Come back to me when you do.";
  73. close;
  74. L_SG_Q1_Done:
  75. mes "[Sunglasses Trader]";
  76. mes "There is nothing more I can tell you.";
  77. next;
  78. mes "[Sunglasses Trader]";
  79. mes "Go see Maseph. She is somewhere north of Morroc.";
  80. close;
  81. L_SG_No:
  82. mes "[Sunglasses Trader]";
  83. mes "Come back to me than you are ready.";
  84. close;
  85. }
  86. // 2nd part of the quest
  87. moc_fild07,334,186,5 script Maseph 702,{
  88. if(SG_QUEST1 == 1) goto L_SG_2;
  89. mes "[Maseph]";
  90. mes "Lovely Day, isn't it ?";
  91. close;
  92. L_SG_2:
  93. mes "[Maseph]";
  94. mes "Hello there.";
  95. next;
  96. mes "[Maseph]";
  97. mes "You came for the ^000088Slotted Sunglasses^000000, right?";
  98. next;
  99. menu "Yes",L_SG_2_Start,"No, sorry to bother you.",-;
  100. mes "[Maseph]";
  101. mes "Off you go, then.";
  102. close;
  103. L_SG_2_Start:
  104. mes "[Maseph]";
  105. mes "To make one, I will need one pair of ^000088Sunglasses^000000 and 400000z.";
  106. next;
  107. menu "Here you go.",L_SG_Q2_Check,"No, thanks.",-;
  108. mes "[Maseph]";
  109. mes "As you wish.";
  110. close;
  111. L_SG_Q2_Check:
  112. if(countitem(2201) < 1) goto L_SG_Sunglasses;
  113. if(zeny<400000) goto L_SG_Funds;
  114. delitem 2201,1;
  115. set zeny,zeny-400000;
  116. mes "[Maseph]";
  117. mes "Thank you. I will get on it right away.";
  118. next;
  119. mes "[Maseph]";
  120. mes "Here you go my friend.";
  121. getitem 2202,1;
  122. // quest reset
  123. set SG_QUEST1,0;
  124. next;
  125. mes "[Maseph]";
  126. mes "Enjoy your ^000088Slotted Sunglasses^000000.";
  127. close;
  128. L_SG_Sunglasses:
  129. mes "[Maseph]";
  130. mes "I need one pair of ^000088Sunglasses^000000. Come back to me when you have one.";
  131. close;
  132. L_SG_Funds:
  133. mes "[Maseph]";
  134. mes "You do not have enough money. Please come back to me when you do.";
  135. close;
  136. }