quests_ayothaya.txt 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. //===== Athena Script =======================================
  2. //= Quest NPCs related to Ayothaya
  3. //===== By ================================================
  4. //= Fredzilla
  5. //===== Version ===========================================
  6. //= 1.5
  7. //===== Compatible With ===================================
  8. //= eAthena 1.0
  9. //===== Description =======================================
  10. //= 1 Quests with 2 parts for Ayothaya
  11. //===== Comments ==========================================
  12. //= List or Variables used
  13. //= @fishing - Checks for if you have caught a fish or not,
  14. //= 1/10 chance you will get the wedding ring if
  15. //= you have started that quest.
  16. //= weddingring - Signifies the start of the wedding ring
  17. //= quest, and used throughout to keep track of
  18. //= progress.
  19. //= recoveredring - Signifies you have retrieved the ring
  20. //= and therefore can't just drop the ring and
  21. //= get the same quest again.
  22. //= 1.0 - First Release, made with infomation from RagnaInfo
  23. //= 1.1 - added anti-novice protection [Lupus]
  24. //= 1.3 - Fixed exploit [Lupus]
  25. //= 1.4 Updated, more close to the official. Thanks to birkiczd
  26. //= Also optimized it again, remove unused global variable [Lupus]
  27. //= 1.5 Removed Duplicates [Silent]
  28. //=========================================================
  29. ayo_dun02.gat,277,178,1 script OBB 139,4,4,{
  30. if(AyoOBB==1 || weddingring!=3) end;
  31. mes "["+strcharinfo(0)+"]";
  32. mes "Huh what is this?, not foot prints, this is an Old Blue coloured Box";
  33. next;
  34. set AyoOBB,1;
  35. getitem 603,1;
  36. logmes "Q_AYOTH1: got OBB";
  37. mes "["+strcharinfo(0)+"]";
  38. mes "I think I will keep it";
  39. close;
  40. }
  41. //Dungeon 1 foot prints x 5
  42. ayo_dun01.gat,30,149,1 script Clue#01 139,5,5,{
  43. if(weddingring!=3) end;
  44. npctalk "There are some foot prints here, they head off to the East.";
  45. set @footprints1,1;
  46. close;
  47. }
  48. ayo_dun01.gat,70,149,1 script Clue#02 139,5,5,{
  49. if(weddingring!=3) end;
  50. npctalk "There are some more foot prints, they are heading off to the East too!";
  51. set @footprints2,1;
  52. close;
  53. }
  54. ayo_dun01.gat,100,149,1 script Clue#03 139,5,5,{
  55. if(weddingring!=3) end;
  56. npctalk "More foot prints heading to the East, who do they belong too?";
  57. set @footprints3,1;
  58. close;
  59. }
  60. ayo_dun01.gat,190,149,1 script Clue#04 139,5,5,{
  61. if(weddingring!=3) end;
  62. npctalk "More foot prints, but these are going North.";
  63. set @footprints4,1;
  64. close;
  65. }
  66. ayo_dun01.gat,261,263,1 script Clue#05 139,5,5,{
  67. if(weddingring!=3) end;
  68. npctalk "There are some foot prints, they seem to head into that hole there.";
  69. set @footprints5,1;
  70. close;
  71. }
  72. //Dungeon 2 foot prints x 4 + 1 fake
  73. ayo_dun02.gat,222,204,1 script Clue#06 139,5,5,{
  74. if(weddingring!=3) end;
  75. npctalk "Yet more foot prints, they are either going South or West.";
  76. set @footprints6,1;
  77. close;
  78. }
  79. ayo_dun02.gat,169,212,1 script Clue#07 139,5,5,{
  80. if(weddingring!=3) end;
  81. npctalk "Looks like there are foot print going to the West.";
  82. set @footprints7,1;
  83. close;
  84. }
  85. ayo_dun02.gat,129,212,1 script Clue#08 139,5,5,{
  86. if(weddingring!=3) end;
  87. npctalk "Ok these foot prints are either going to the North or West.";
  88. set @footprints8,1;
  89. close;
  90. }
  91. ayo_dun02.gat,79,212,1 script Clue#09 139,7,7,{
  92. if(weddingring!=3) end;
  93. npctalk "These are very new, they are going North.";
  94. set @footprints9,1;
  95. close;
  96. }
  97. //FAKE
  98. ayo_dun02.gat,245,166,1 script Clue#10 139,7,7,{
  99. if(weddingring!=3) end;
  100. npctalk "Seems something came by this way, to the East.";
  101. close;
  102. }
  103. ayothaya.gat,233,105,7 script Shuda 838,{
  104. mes "[Shuda]";
  105. if(BaseLevel<50) {
  106. mes "Where is my ring!?!";
  107. close;
  108. }
  109. if(weddingring==2) goto L_Quest2;
  110. if(weddingring==3) goto L_OnQ2;
  111. if(weddingring==4) goto L_QuestComplete;
  112. if(weddingring==5) goto L_QuestOver;
  113. if(countitem(7288)>=1) goto L_RingFound;
  114. mes "Oh please wont you help me, my partner has gone missing, but not before droping our ^FF0000Engagement Ring^000000 maybe there is a way of ^0000FFfishing^000000 it out of the sea.";
  115. set weddingring,1;
  116. close;
  117. L_RingFound:
  118. mes "Oh is that my ring!?!";
  119. next;
  120. mes "[Shuda]";
  121. mes "Can I please have it back?";
  122. next;
  123. menu "Yes, here you go",N_Yes,"No, I found it, it's mine",-;
  124. mes "[Shuda]";
  125. mes "Think what you want, but that ring is mine, and without it I can never marry my true love.";
  126. mes "";
  127. mes "Where ever he may be.";
  128. close;
  129. N_Yes:
  130. mes "[Shuda]";
  131. if(countitem(7288)<1) {
  132. mes "Go away, cheater!";
  133. close;
  134. }
  135. delitem 7288,1;
  136. mes "Thank you so much, now I have this back maybe my partner will return.";
  137. set weddingring,2;
  138. next;
  139. mes "[Shuda]";
  140. mes "Come back to me when you have time, I need you to do something else for me.";
  141. close;
  142. L_Quest2:
  143. mes "It seems even though I have my ring back my partner ^FF0000Annon^000000 doesn't seem to want to come back to me";
  144. mes "Maybe he has gotten lost somewhere";
  145. mes "";
  146. mes "Will you please go and look for him";
  147. next;
  148. menu "Yes, I would be glad to",L_YesQ2,"No, he will come back on his own",-;
  149. mes "[Shuda]";
  150. mes "Well he might, but I still need someone to find him, I am afraid something might have happened to him.";
  151. close;
  152. L_YesQ2:
  153. set weddingring,3;
  154. mes "[Shuda]";
  155. mes "Oh thank you so much, I think someone in the town might have seen where he went, maybe he can give you a clue";
  156. close;
  157. L_OnQ2:
  158. mes "Have you been able to find my love yet?";
  159. mes " ";
  160. mes "Please hurry.";
  161. mes "*tear*";
  162. close;
  163. L_QuestComplete:
  164. mes "You have found him ?!?";
  165. mes "Then where is he???";
  166. next;
  167. mes "You explain the situation.";
  168. next;
  169. mes "[Shuda]";
  170. mes "Well, I thought he was my one.";
  171. mes "I don't think I will ever find another like him.";
  172. mes "*tear*";
  173. next;
  174. set weddingring,5;
  175. mes "[Shuda]";
  176. mes "I can understand, but why not come and talk to me about it, we might have been able to talk it out.";
  177. close;
  178. L_QuestOver:
  179. mes "Nice to see you again "+strcharinfo(0)+". How have you been?";
  180. close;
  181. }
  182. ayothaya.gat,253,99,3 script Fisherman#01 843,{
  183. mes "[Dannai]";
  184. mes "This place is known to be teeming with fish. The fish here tend to eat anything they find, so it's easy to catch them.";
  185. next;
  186. mes "[Dannai]";
  187. mes "We are providing a fishing rod rental service. Every time you fish, you'll need ^4466771 Monster's Food^000000 to use as bait, and pay a rod rental fee of ^44667750 Zeny^000000.";
  188. next;
  189. mes "[Dannai]";
  190. mes "Would you";
  191. mes "like to try?";
  192. next;
  193. menu "Yes",-,"No",L_No;
  194. if(countitem(528) < 1 || zeny < 50) goto L_Fail;
  195. delitem 528,1;
  196. set zeny,zeny-50;
  197. mes "[Fisher Man]";
  198. mes "Ok give it a good swing.";
  199. mes "Lets see if you got anything.";
  200. next;
  201. set @fishing, rand(1,10);
  202. mes "[Fisher Man]";
  203. if(@fishing<5) goto L_Nothing;
  204. if(@fishing<10) goto L_Fish;
  205. if(@fishing==10) goto L_RingCheck;
  206. L_No:
  207. mes "[Dannai]";
  208. mes "Come back anytime.";
  209. close;
  210. L_Fail:
  211. mes "[Dannai]";
  212. mes "Seems you don't have what I need";
  213. mes "Come back when you have some Monster Feed, and 50 zeny.";
  214. close;
  215. L_Nothing:
  216. mes "Sorry it seems like you didn't get anything, try again anytime.";
  217. close;
  218. L_Fish:
  219. getitem 544,1;
  220. mes "Look at this you got yourself a fish, well done.";
  221. close;
  222. L_RingCheck:
  223. if(weddingring!=1 || recoveredring==1) goto L_Fish;
  224. mes "What is this, some sort of ring!!!";
  225. mes "Well I guess since you fished it out you can keep it";
  226. next;
  227. getitem 7288,1;
  228. mes "[Fisher Man]";
  229. mes "Come back anytime";
  230. set weddingring,0;
  231. set recoveredring,1;
  232. close;
  233. }
  234. ayothaya.gat,192,171,4 script Old Man#10 824,{
  235. mes "[Tham]";
  236. if(weddingring==3) goto L_OnQ2;
  237. mes "What a nice day it is today, don't you agree?";
  238. close;
  239. L_OnQ2:
  240. mes "What! Annon is missing, I only saw him a few minutes ago.";
  241. next;
  242. mes "[Tham]";
  243. mes "He was heading for Ayothaya's dungeon, I thought this kind of odd, and now you say he hasn't come back?!?";
  244. mes "I think you should follow him in there, just in case something has happened to him";
  245. next;
  246. mes "[Tham]";
  247. mes "Maybe he has left something inside the dungeon, something that can lead you to him";
  248. mes "But thats just me";
  249. next;
  250. mes "[Tham]";
  251. mes "You can get to the dungeon through the old temple, it is one map to the right of here, and down the hill.";
  252. close;
  253. }
  254. ayo_dun02.gat,91,264,4 script Guy 822,{
  255. if(weddingring==4) goto L_QuestComplete;
  256. if(weddingring==5) goto L_TalkedShuda;
  257. if(weddingring==3 && @footprints1==1 && @footprints2==1 && @footprints3==1 && @footprints4==1 && @footprints5==1 && @footprints6==1 && @footprints7==1 && @footprints8==1 && @footprints9==1) goto L_Groom;
  258. mes "[Guy]";
  259. mes "She won't find me here,she won't...";
  260. close;
  261. L_Groom:
  262. mes "[Annon]";
  263. mes "Help me please...";
  264. next;
  265. mes "["+strcharinfo(0)+"]";
  266. mes "^He seems to be injured very bad...";
  267. next;
  268. menu "Treat his wounds",-,"Leave him alone",L_Go;
  269. if(countitem(504) < 1) goto L_Need;
  270. delitem 504,1;
  271. mes "[Annon]";
  272. mes "Who are you";
  273. mes "Have you been sent to follow me?";
  274. next;
  275. mes "[Annon]";
  276. mes "So I see now, my ex-partner has sent you to see if I'm OK.";
  277. mes " ";
  278. mes "Can you go and tell her I'm ok, but I cant go through with the marriage.";
  279. next;
  280. mes "[Annon]";
  281. mes "I cant really give a reason, just tell her that I love her, but not enough to spend the rest of my life with her.";
  282. next;
  283. mes "[Annon]";
  284. mes "I hope she will understand.";
  285. mes " ";
  286. mes "I guess you will want something in return.";
  287. next;
  288. mes "[Annon]";
  289. mes "I can train you, and make you gain some exp.";
  290. mes " ";
  291. mes "I will do this now.";
  292. next;
  293. set BaseExp,BaseExp+100000;
  294. set weddingring,4;
  295. mes "[Annon]";
  296. mes "It is done, please make you way back to Shuda, and please try not to make her cry";
  297. close;
  298. L_Need:
  299. mes "["+strcharinfo(0)+"]";
  300. mes "I need a White potion to be able to cure him.";
  301. close;
  302. L_Go:
  303. mes "["+strcharinfo(0)+"]";
  304. mes "Someone else will probably find him.I have other things to do.";
  305. close;
  306. L_QuestComplete:
  307. mes "[Annon]";
  308. mes "Have you seen Shuda yet?";
  309. close;
  310. L_TalkedShuda:
  311. mes "[Annon]";
  312. mes "Did she take it OK?";
  313. close;
  314. }