niflheim.txt 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. //===== rAthena Script =======================================
  2. //= Niflheim Script
  3. //===== By: ==================================================
  4. //= Fyrien, Dizzy, PKGINGO
  5. //= Official NPCs translated and re-edited by Celest
  6. //===== Current Version: =====================================
  7. //= 1.5
  8. //===== Compatible With: =====================================
  9. //= [Aegis Conversion]
  10. //= rAthena SVN; Niflheim Required
  11. //===== Description: =========================================
  12. //= Official NPC's for Niflheim
  13. //= 1.01 Splitted file(guides, shops). Fixed rand() bugs,
  14. //= missing labels bugs, optimization [Lupus]
  15. //= 1.03 fixed end; -> close;
  16. //= 1.04-1.05 fixed several bugs with missing CLOSE button, wrong var name
  17. //= in Piano Keys quest
  18. //= fixed zeny/item, exploit in Sairin, some optimizations [Lupus]
  19. //= 1.06 some typos in some variables fixed (thx 2 Dr.Evil) [Lupus]
  20. //= 1.07 Fixed typos [Nexon]
  21. //= 1.08 Commented "Traveler" out as it is not official & we have correct Bungee quest in.
  22. //= Also removed TODO, as they are already done. [Vicious_Pucca]
  23. //= 1.1 Replaced nif_q_done with MISC_QUEST & 32. nif_t -> @nif_t [Lupus]
  24. //= 1.2 Removed Duplicates [Silent]
  25. //= 1.3 Moved Book of Devil and Piano quest to quests/quests_niflheim.txt [Evera]
  26. //= 1.4 Rescripted to Aegis 10.3 standards. [L0ne_W0lf]
  27. //= Removed Cursed Spirits as they were custom.
  28. //= 1.5 Added dummy "OnMyMobDead" event to Cursed Spirit. [L0ne_W0lf]
  29. //============================================================
  30. niflheim,52,147,3 script Keedz#nif 796,{
  31. mes "[Keedz]";
  32. mes "I don't allow any living person";
  33. mes "to come in this place!";
  34. close;
  35. }
  36. niflheim,195,211,6 script Gigantia#nif 796,3,3,{
  37. if (isequipped(5038) || isequipped(2257) || isequipped(2256)) {
  38. mes "[" + strcharinfo(0) + "]";
  39. mes "What's up?";
  40. next;
  41. mes "[Gigantia]";
  42. mes "Just...";
  43. mes "Come over here.";
  44. mes "I have something";
  45. mes "I must do for you.";
  46. next;
  47. mes "[Gigantia]";
  48. mes "Your horn is crooked.";
  49. mes "Always make sure your horn";
  50. mes "is worn straight and neat.";
  51. mes "The Lord of Death is always";
  52. mes "looking at you.";
  53. close;
  54. }
  55. mes "[Gigantia]";
  56. mes "The Lord of Death knows";
  57. mes "and sees all. It's useless";
  58. mes "to hide, and escape from";
  59. mes "Death's sweet embrace.";
  60. close;
  61. OnTouch:
  62. if (isequipped(5038) || isequipped(2257) || isequipped(2256)) {
  63. mes "[Gigantia]";
  64. mes "Hey, wait!";
  65. close;
  66. }
  67. end;
  68. }
  69. nif_in,16,27,1 script Undead Chicken#nif 800,{
  70. percentheal -5,0;
  71. mes "[Undead Chicken]";
  72. mes "I lived a peaceful life as a normal chicken. But then came the day I was tragically killed and eaten by humans. Well... Heh heh~! Now it's my turn! *Cackles*";
  73. next;
  74. mes "["+ strcharinfo(0) +"]";
  75. mes "Ouch...!";
  76. mes "A chicken...";
  77. mes "It bit me!";
  78. next;
  79. mes "[Undead Chicken]";
  80. mes "Ho ho~!";
  81. mes "I can talk AND feast";
  82. mes "on living humans!";
  83. mes "Being a zombie is great!";
  84. mes "*Cackles*";
  85. close;
  86. }
  87. nif_in,16,30,4 script Undead Familiar#nif 799,{
  88. percentheal -5,0;
  89. mes "[Vatoman]";
  90. mes "Oooh, how handy, a living";
  91. mes "human~! Fresh blood is";
  92. mes "always tasty...! I think I'll just";
  93. mes "take a liiittle sip.";
  94. next;
  95. mes "[" + strcharinfo(0) + "]";
  96. mes "Ow! My vein!";
  97. mes "Did you just";
  98. mes "suck my blood?!";
  99. next;
  100. mes "[Vatoman]";
  101. mes "Mwahahaha~";
  102. mes "Foolish mortal!";
  103. mes "Beware my powers!";
  104. close;
  105. }
  106. nif_in,156,93,5 script Child#nifflheim 793,{
  107. mes "[Alakina Ann]";
  108. mes "Where...where am I...?";
  109. mes "I remember I was sleeping";
  110. mes "and when I woke up, I was here...";
  111. mes "Mommy, have you seen my mommy?";
  112. mes "I wanna go home...*Sob*";
  113. next;
  114. switch(select("About the witch:About the curse:Cancel.")) {
  115. case 1:
  116. mes "[Alakina Ann]";
  117. mes "Witch...? I've never seen a witch, but I've read about them in books. I'm not sure if they exist or not, but it would be so horrifying if they did...";
  118. next;
  119. mes "[Alakina Ann]";
  120. mes "Why is it so cold in here...?";
  121. mes "A-aren't you cold, or even scared? I wanna go home... It's warm over there. Could you help me get back... Please...? H-help me...";
  122. close;
  123. case 2:
  124. mes "[Alakina Ann]";
  125. mes "A c-curse...?";
  126. mes "My grandma says that there are lots of curses in the world. Some of them, you can tell it's a curse. But there are other curses that follow you throughout life...";
  127. next;
  128. mes "[Alakina Ann]";
  129. mes "Grandma says curses can take other forms... Like if someone's always mad at you, and won't forgive you, you can see that as a curse too.";
  130. next;
  131. mes "[Alakina Ann]";
  132. mes "My grandma told me there's only one spell that can break a strong curse that you can't lift with Blessings...";
  133. next;
  134. mes "[Alakina Ann]";
  135. mes "Klaatu...";
  136. mes "Verata.....";
  137. mes "Ne...ni...umm...?";
  138. mes "What was the last part?";
  139. mes "I-I can't remember";
  140. mes "the last part of the spell!";
  141. next;
  142. mes "[Alakina Ann]";
  143. mes "If you repeat the spell in that order, it will release you from someone's anger and hate. And if you do it near a bad spirit, they might get the curse instead.";
  144. next;
  145. mes "[Alakina Ann]";
  146. mes "Why are you asking me about these scary kind of things...? I just wanna go home...";
  147. close;
  148. case 3:
  149. mes "[Alakina Ann]";
  150. mes "It's so cold in here...";
  151. mes "I'm freezing...";
  152. mes "And I wanna go home and";
  153. mes "get away from this scary place...";
  154. next;
  155. mes "[Alakina Ann]";
  156. mes "Please... help me.";
  157. mes "Could you take me with you...?";
  158. close;
  159. }
  160. }
  161. niflheim,350,258,1 script Cursed Spirit#nif 802,{
  162. killmonster "niflheim","Cursed Spirit#nif::OnMyMobDead";
  163. mes "[Ashe Bruce]";
  164. mes "I sense you're cursed";
  165. mes "by a powerful spell...";
  166. mes "Hmm... It's clear what";
  167. mes "you must be up to....";
  168. next;
  169. mes "[Ashe Bruce]";
  170. mes "You wish to get";
  171. mes "rid of your curse....";
  172. mes "By giving it to me!!";
  173. next;
  174. mes "[Ashe Bruce]";
  175. mes "Just because I'm a cursed spirit, you adventurers think you can just dump your curses on me?!";
  176. emotion e_an;
  177. next;
  178. mes "[Ashe Bruce]";
  179. mes "I refuse to let";
  180. mes "you remain here.....";
  181. mes "Leave now, or I will";
  182. mes "remove you by force....";
  183. next;
  184. mes "[Ashe Bruce]";
  185. mes "....And...";
  186. mes "....Whatever you do...";
  187. mes "....Do NOT touch my books...";
  188. next;
  189. switch(select("Touch the first book.:Touch the second book.:Touch the third book.:Okay, I am leaving.")) {
  190. case 1:
  191. monster "niflheim",349,259,"Rideword",1478,1,"Cursed Spirit#nif::OnMyMobDead";
  192. mes "[Ashe Bruce]";
  193. mes "...!...";
  194. mes "How dare you touch my books";
  195. mes "when I specifically said";
  196. mes "'Don't touch my books!'";
  197. next;
  198. mes "[Ashe Bruce]";
  199. mes "....!...Grrrrr!";
  200. mes "I shall tear you apart...!";
  201. mes "Be bound by an eternal curse...!";
  202. close;
  203. case 2:
  204. mes "[Ashe Bruce]";
  205. mes "...!...";
  206. mes "You dare touch my books?!";
  207. mes "Right after I said not";
  208. mes "to touch them...?!";
  209. mes "Foolish mortal!";
  210. mes "...BEGONE!";
  211. close2;
  212. warp "niflheim",34,162;
  213. end;
  214. case 3:
  215. mes "[Ashe Bruce]";
  216. mes "Muhahahaha....";
  217. mes "Stubborn mortal~!";
  218. mes "Fine! I will give you";
  219. mes "a fighting chance and let";
  220. mes "you cast a spell.";
  221. next;
  222. mes "[Ashe Bruce]";
  223. mes "But Blessings won't";
  224. mes "work with the curse";
  225. mes "that you have...";
  226. mes "And the spell to lift";
  227. mes "your curse has been";
  228. mes "lost to the ages~!";
  229. emotion e_gg;
  230. next;
  231. if (select("Clover:Klaatu:Klaytos") == 2)
  232. set .@spell,.@spell+1;
  233. if (select("Verit:Veritas:Verata") == 3)
  234. set .@spell,.@spell+1;
  235. if (select("Necktie:Necklace:Nero:^FFFFFFNictu!!!^000000") == 4)
  236. set .@spell,.@spell+1;
  237. if (.@spell == 3) {
  238. switch(rand(1,5)) {
  239. case 1:
  240. if (morison_meat < 15) {
  241. set morrison_meat,15;
  242. mes "[Ashe Bruce]";
  243. mes "You... You broke the curse!";
  244. mes "How did you know that spell?!";
  245. next;
  246. mes "[Ashe Bruce]";
  247. mes "I suppose you expect for me to";
  248. mes "melt in agony about now, don't";
  249. mes "you? Well... Sorry to disappoint";
  250. mes "you, mortal, but I can never die!";
  251. close;
  252. }
  253. mes "[Ashe Bruce]";
  254. mes "...! You cast the correct spell?!";
  255. mes "...!...";
  256. mes "But...You're still cursed...";
  257. mes "Umhaaaaaaaaaaaaaaaaa.....!";
  258. close;
  259. case 2:
  260. if (thai_head == 1) {
  261. set thai_head,2;
  262. mes "[Ashe Bruce]";
  263. mes "What's...";
  264. mes "this feeling?";
  265. next;
  266. mes "[Ashe Bruce]";
  267. mes "No...!";
  268. mes "NOOOOOOOOOOOOOOOO!";
  269. next;
  270. mes "[Ashe Bruce]";
  271. mes "Why did your spell have to work?!";
  272. close;
  273. }
  274. mes "[Ashe Bruce]";
  275. mes "You...";
  276. mes "cast the correct spell?!";
  277. next;
  278. mes "[Ashe Bruce]";
  279. mes "Hoho~";
  280. mes "But you're still cursed...";
  281. close;
  282. case 3:
  283. if (thai_head == 8) {
  284. set thai_head,7;
  285. mes "[Ashe Bruce]";
  286. mes "You... You broke the curse!";
  287. mes "Who taught you that spell?!";
  288. next;
  289. mes "[Ashe Bruce]";
  290. mes "I suppose you expect for me to";
  291. mes "melt in agony about now, don't";
  292. mes "you? Well... Sorry to disappoint";
  293. mes "you, mortal, but I can never die!";
  294. next;
  295. mes "[Ashe Bruce]";
  296. mes "So long as I'm...";
  297. mes "still...";
  298. mes "cursed.";
  299. next;
  300. mes "[Ashe Bruce]";
  301. mes "NOOOOOOOOOO!";
  302. close;
  303. }
  304. mes "[Ashe Bruce]";
  305. mes "...! You cast the correct spell?!";
  306. mes "...!...";
  307. mes "But...You're still cursed...";
  308. mes "Umhaaaaaaaaaaaaaaaaa.....!";
  309. close;
  310. case 4:
  311. mes "[Ashe Bruce]";
  312. mes "...! You cast the correct spell?!";
  313. mes "...!...";
  314. mes "But...You're still cursed...";
  315. mes "Mwahahahaaaa.....!";
  316. close;
  317. }
  318. }
  319. monster "niflheim",345,259,"Orc Skeleton",1462,1,"Cursed Spirit#nif::OnMyMobDead";
  320. monster "niflheim",347,261,"Orc Skeleton",1462,1,"Cursed Spirit#nif::OnMyMobDead";
  321. monster "niflheim",344,253,"Orc Skeleton",1462,1,"Cursed Spirit#nif::OnMyMobDead";
  322. monster "niflheim",346,251,"Orc Skeleton",1462,1,"Cursed Spirit#nif::OnMyMobDead";
  323. monster "niflheim",349,249,"Orc Skeleton",1462,1,"Cursed Spirit#nif::OnMyMobDead";
  324. monster "niflheim",350,260,"Orc Skeleton",1462,1,"Cursed Spirit#nif::OnMyMobDead";
  325. monster "niflheim",353,256,"Orc Skeleton",1462,1,"Cursed Spirit#nif::OnMyMobDead";
  326. mes "[Ashe Bruce]";
  327. mes "Muhahahahahaha!";
  328. mes "That's not the right spell!";
  329. mes "Now, death awaits you!";
  330. mes "You're eternally bound";
  331. mes "to the curse...!";
  332. close;
  333. case 4:
  334. mes "[Ashe Bruce]";
  335. mes "...";
  336. mes ".....";
  337. next;
  338. mes "[Ashe Bruce]";
  339. mes "Well then.";
  340. mes "Try not to trip on";
  341. mes "your feet in your";
  342. mes "rush to leave.";
  343. close;
  344. }
  345. OnMyMobDead:
  346. end;
  347. }