quests_niflheim.txt 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. //===== eAthena Script =======================================
  2. //= Quest NPCs related to Niflheim
  3. //===== By: ==================================================
  4. //= Evera and The eAthena Dev Team
  5. //===== Current Version: =====================================
  6. //= 1.0
  7. //===== Compatible With: =====================================
  8. //= eAthena 7.15 +
  9. //===== Description: =========================================
  10. //= Book of Devil and Piano Key quest
  11. //===== Additional Comments: =================================
  12. //= 1.0 Initial release, moved Book of Devil and Piano quest from npc/cities/niflheim.txt [Evera]
  13. //============================================================
  14. //=============================================================
  15. //Quest for Book of Devil
  16. //=============================================================
  17. niflheim.gat,184,199,5 script Little Girl#02 793,{
  18. mes "[Sairin]";
  19. if(niflheimlost2 == 1) goto L_thanks;
  20. if(niflheimlost == 1) goto L_foundhim;
  21. if(lostgirl == 1) goto L_sure2;
  22. mes "Sir, will you please help me?";
  23. if(BaseJob==Job_Novice) mes "Oh... you are lost, too..."; //Exploit fix
  24. if(BaseJob==Job_Novice) close;
  25. next;
  26. menu "Yes",-, "No",M_no;
  27. mes "[Sairin]";
  28. mes "My friend and I went for a hike and ended up wandering into a strange field.";
  29. next;
  30. mes "[Sairin]";
  31. mes "Suddenly, I found a doll. I picked it up, and it turned into a ghost!";
  32. next;
  33. mes "[Sairin]";
  34. mes "I screamed and ran as fast as I could. When I stopped running, I ended up in this strange town..";
  35. next;
  36. mes "[Sairin]";
  37. mes "No one here will help me, and there are ghosts everywhere! Could you help me find my friend?";
  38. next;
  39. menu "Sure",-, "No",M_no;
  40. L_sure2:
  41. set lostgirl,1;
  42. mes "Please find him and tell him where I am! I saw him last in Niflheim Field, the first one...";
  43. close;
  44. L_foundhim:
  45. mes "You found him?";
  46. mes "Oh thank you!";
  47. mes "Please, take this as a token of my appreciation.";
  48. getitem 642,1;//Items: Book of Devil,
  49. set niflheimlost2,1;
  50. close;
  51. L_thanks:
  52. mes "Thanks again!";
  53. M_no:
  54. close;
  55. }
  56. //=============================================================
  57. //Piano Quest
  58. //=============================================================
  59. niflheim.gat,224,243,3 script Alager 795,{
  60. mes "[Alager]";
  61. mes "Muahaha, I love to eat meat...";
  62. mes "You look... delicious!";
  63. next;
  64. mes "[Alager]";
  65. mes "I'm going to eat you...";
  66. next;
  67. mes "-Chomp bite slurp-";
  68. if (nif_quest1 == 1 || (MISC_QUEST & 32)) goto L_end;
  69. percentheal -60,0;
  70. next;
  71. mes "[Alager]";
  72. mes "Ahhh, it's been some time since I had such delicious meat!";
  73. // 50% made up, not the slightest idea how to translate these ^^;
  74. mes "as an ex-barbeque chef, my favourite meat";
  75. mes "would be like preparing beef fillet,";
  76. mes "crossed and grilled to perfection";
  77. mes "that would be really delicious... ";
  78. next;
  79. mes "[Alager]";
  80. mes "Ah, let me thank you with this,";
  81. mes "I found it on the ground, hoho~";
  82. getitem 7184,1;//Items: Piano Key,
  83. set nif_quest1, 1;
  84. close;
  85. L_end:
  86. percentheal -30,0;
  87. close;
  88. }
  89. nif_in.gat,105,81,3 script Grey 794,{
  90. mes "[Grey]";
  91. mes "Ah, there was this poem...";
  92. mes "in which author and time of writing was unknown,";
  93. mes "and has been circulating since long ago...";
  94. next;
  95. mes "[Grey]";
  96. mes "^FF0000When the sun sets in the western hills,^000000";
  97. mes "^FF0000Where points the velvet gloom of dawn,^000000";
  98. mes "^FF0000The beautiful melody surrounding thy soul,^000000";
  99. mes "^FF0000Is the key from Lord Death's wrath.^000000";
  100. next;
  101. if (nif_quest2 == 1 || (MISC_QUEST & 32)) goto L_end;
  102. set @nif_random,rand(1,4);
  103. mes "[Grey]";
  104. mes "Heh, let me give you a little exam!";
  105. mes "Repeat line no. " + @nif_random + " of the poem";
  106. mes "that you have just heard to me!";
  107. next;
  108. input @inputstr1$;
  109. if (@nif_random == 2) goto L_RAN_2;
  110. if (@nif_random == 3) goto L_RAN_3;
  111. if (@nif_random == 4) goto L_RAN_4;
  112. //if (@nif_random == 1) goto L_RAN_1;
  113. L_RAN_1:
  114. set @str1$,"When the sun sets in the western hills,";
  115. goto L_RAN_B;
  116. L_RAN_2:
  117. set @str1$,"Where points the velvet gloom of dawn,";
  118. goto L_RAN_B;
  119. L_RAN_3:
  120. set @str1$,"The beautiful melody surrounding thy soul,";
  121. goto L_RAN_B;
  122. L_RAN_4:
  123. set @str1$,"Is the key from Lord Death's wrath.";
  124. goto L_RAN_B;
  125. L_RAN_B:
  126. if (@inputstr1$ == @str1$) goto L_RAN_SC;
  127. mes "[Grey]";
  128. mes "Aih... If you had paid more attention,";
  129. mes "you would have known the correct answer!";
  130. mes "Come back for the challenge again,";
  131. mes "when you have thought over it!";
  132. close;
  133. L_RAN_SC:
  134. mes "[Grey]";
  135. mes "Hoho... I see you have paid attention!";
  136. mes "I am Grey, a wandering poet of yore,";
  137. mes "you are the best audience I have had so far,";
  138. mes "here, take this as a reward.";
  139. getitem 7184,1;//Items: Piano Key,
  140. set nif_quest2, 1;
  141. next;
  142. mes "[Grey]";
  143. mes "I hope you will treat other poets";
  144. mes "as well as you treated me, farewell.";
  145. close;
  146. L_end:
  147. mes "[Grey]";
  148. mes "I wonder what does it mean...";
  149. mes "If you read it carefully,";
  150. mes "it seems to have a deep meaning,";
  151. mes "as if there is a mysterious secret";
  152. mes "hidden within these words...";
  153. close;
  154. }
  155. nif_in.gat,31,20,3 script Kurtz 794,{
  156. mes "[Kurtz]";
  157. mes "Business nowadays is really bad...";
  158. mes "Back when I used to be alive,";
  159. mes "my business was this bad too~!";
  160. if (nif_quest3 == 1 || (MISC_QUEST & 32)) close;
  161. next;
  162. mes "[Kurtz]";
  163. mes "Hey! You there! Dump this for me";
  164. mes "on the way out will you!";
  165. getitem 7184,1;//Items: Piano Key,
  166. set nif_quest3, 1;
  167. next;
  168. mes "[Kurtz]";
  169. mes "Why is business so bad lately...";
  170. mes "(mumble mumble)";
  171. close;
  172. }
  173. niflheim.gat,169,71,5 script #1 111,2,2{
  174. if (MISC_QUEST & 32 || nif_quest4 == 1) end;
  175. mes "- In the nearby tombs -";
  176. mes "- you see something -";
  177. mes "- half buried in the ground -";
  178. mes "- What is it? -";
  179. mes "- Looks like it broke off something -";
  180. next;
  181. mes "- Pick it up? -";
  182. menu "Yes",-,"No",L_end;
  183. getitem 7184,1;//Items: Piano Key,
  184. set nif_quest4, 1;
  185. L_end:
  186. close;
  187. }
  188. niflheim.gat,208,103,5 script #2 111,2,2{
  189. if (MISC_QUEST & 32) end;
  190. if (nif_quest5 == 1) goto L_key2;
  191. if (nif_quest5 >= 2) end;
  192. mes "- In the nearby tombs -";
  193. mes "- you see something -";
  194. mes "- half buried in the ground -";
  195. mes "- What is it? -";
  196. mes "- Looks like it broke off something -";
  197. next;
  198. mes "- Pick it up? -";
  199. menu "Yes",-,"No",L_end;
  200. getitem 7184,1;//Items: Piano Key,
  201. set nif_quest5, 1;
  202. close;
  203. L_key2:
  204. mes "- In the hole you have dug -";
  205. mes "- there is something else -";
  206. mes "- buried deep in the ground -";
  207. mes "- Looks like its another fragment -";
  208. next;
  209. mes "- Pick it up? -";
  210. menu "Yes",-,"No",L_end;
  211. getitem 7184,1;//Items: Piano Key,
  212. set nif_quest5, 2;
  213. L_end:
  214. close;
  215. }
  216. nif_in.gat,115,181,5 script #4 111,3,3{
  217. mes "- You see a huge old piano -";
  218. if ((MISC_QUEST & 32)==0) mes "- with a few keys missing -";
  219. if (MISC_QUEST & 32) mes "- with one key missing -";
  220. if ((MISC_QUEST & 32)==0 && countitem(7184) > 5) goto L_event;//Items: Piano Key,
  221. close;
  222. L_event:
  223. delitem 7184,6;//Items: Piano Key,
  224. set MISC_QUEST,MISC_QUEST | 32;
  225. //clear auxiliary vars now
  226. set nif_quest1, 0;
  227. set nif_quest2, 0;
  228. set nif_quest3, 0;
  229. set nif_quest4, 0;
  230. set nif_quest5, 0;
  231. set nif_random,0; //clear garbage from the previous version of the script
  232. set nif_random1,0; //clear garbage
  233. mes "- You slide the 6 piano keys one -";
  234. mes "- by one into the missing slots -";
  235. mes "- on the piano, but you realize -";
  236. mes "- the left-most side seems to be -";
  237. mes "- missing one more key. -";
  238. close;
  239. }
  240. nif_in.gat,118,151,5 script #5 111,3,3{
  241. if((MISC_QUEST & 32)==0) end;
  242. mes "- The very moment the long shadow -";
  243. mes "- of your body falls on the piano -";
  244. next;
  245. mes "- You suddenly seem to feel lighter -";
  246. mes "- and your vision starts to blur... -";
  247. next;
  248. warp "nif_in.gat",179,163;
  249. close;
  250. }
  251. nif_in.gat,188,168,3 script Witch 792,{
  252. mes "[Kilgana]";
  253. mes "Hmm?... Aren't you a living human?";
  254. mes "Must have took you some effort";
  255. mes "to get to this place...";
  256. mes "Whatever reason though, this is not a place";
  257. mes "the living shall belong...";
  258. next;
  259. mes "[Kilgana]";
  260. mes "I shall use my powers to send you back";
  261. mes "but you should not return in the future.";
  262. close2;
  263. warp "umbala.gat",138,208;
  264. end;
  265. }