sunglasses.txt 4.2 KB

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