quests_niflheim.txt 8.3 KB

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