quests_ayothaya.txt 9.9 KB

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