Chrna.lua 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. --[[
  2. Script Name : SpawnScripts/TempleStreet/Chrna.lua
  3. Script Purpose : Chrna
  4. Script Author : torsten
  5. Script Date : 2022.07.19
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local TheMissingBook = 5681
  10. local QwergosPlan = 5916
  11. function spawn(NPC)
  12. waypoints(NPC)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. if GetFactionAmount(Spawn,12) <0 then
  19. FaceTarget(NPC, Spawn)
  20. PlayFlavor(NPC, "","","shakefist",0,0, Spawn)
  21. else
  22. Dialog1(NPC, Spawn)
  23. end
  24. end
  25. function Dialog1(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. Dialog.New(NPC, Spawn)
  28. Dialog.AddDialog("Chrna look for hidden treasures. Maybe you see where they are, yes? ")
  29. Dialog.AddVoiceover("voiceover/english/chrna/fprt_hood03/qst_chrna.mp3", 1920372216, 1161082682)
  30. if GetQuestStep(Spawn, TheMissingBook) == 1 then
  31. Dialog.AddOption("Treasures, as in a stolen book? Tell me where it is!","Dialog2")
  32. end
  33. if GetQuestStep(Spawn, QwergosPlan) == 2 then
  34. Dialog.AddOption("No, I don't. I need that rumblestick thing that you got from Plordo. It obviously doesn't work!","Dialog3")
  35. end
  36. Dialog.AddOption("I haven't seen any, but will keep an eye out for you. Good luck!")
  37. Dialog.Start()
  38. end
  39. function Dialog2(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. Dialog.New(NPC, Spawn)
  42. PlayFlavor(NPC, "","","happy",0,0, Spawn)
  43. Dialog.AddDialog("Yesyesyes! I dids it! I confesses, I do! A mighty magi in the Sprawl paidses me to steals the book from the Dark Elf. I am so sorrrrrrry... I feel so horrrrrrible... the GUILT will plagues me till I die.... Waaaaaahhhhh.... how cans I lives with my self?.... Booo Hooo hooo... BOO-HOO-HOOOOOOOO!")
  44. Dialog.AddVoiceover("voiceover/english/chrna/fprt_hood05/quests/lotniklria/trueratonga_lotni_x1_initial.mp3", 3981798709, 2280901962)
  45. if GetQuestStep(Spawn, TheMissingBook) == 1 then
  46. SetStepComplete(Spawn, TheMissingBook, 1)
  47. end
  48. Dialog.AddOption("Okay! Okay... I must report this.","Continue")
  49. Dialog.Start()
  50. AddTimer(NPC,14500,"Heart",1,Spawn)
  51. AddTimer(NPC,23000,"Cry",1,Spawn)
  52. end
  53. function Heart(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. PlayFlavor(NPC, "","","heartattack",0,0, Spawn)
  56. end
  57. function Cry(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. PlayFlavor(NPC, "","","cry",0,0, Spawn)
  60. end
  61. function Continue(NPC, Spawn)
  62. end
  63. function Dig(NPC, Spawn)
  64. PlayFlavor(NPC, "","","gathering_search",0,0)
  65. end
  66. function Dialog3(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. Dialog.New(NPC, Spawn)
  69. PlayFlavor(NPC, "","","stare",0,0, Spawn)
  70. Dialog.AddDialog("It won't?! Ohhh ... Plordo tell a lie to Chrna. Maybe I should eat his face.")
  71. Dialog.AddVoiceover("voiceover/english/chrna/fprt_hood03/quests/qwergotogglesmeet/chrna_qwergo_x1_initial.mp3", 4198507307, 1883427787)
  72. Dialog.AddOption("Perhaps, but if you don't give it to me you might EXPLODE.","Dialog4")
  73. Dialog.Start()
  74. end
  75. function Dialog4(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. Dialog.New(NPC, Spawn)
  78. PlayFlavor(NPC, "","","grumble",0,0, Spawn)
  79. Dialog.AddDialog("Peh! Take the rumbley! It scares Chrna. All it do is make a tick-tick-tick sound, and the little numbers keep changing.")
  80. Dialog.AddVoiceover("voiceover/english/chrna/fprt_hood03/quests/qwergotogglesmeet/chrna_qwergo_x1_initial2.mp3", 1216429846, 856282773)
  81. if GetQuestStep(Spawn, QwergosPlan) == 2 then
  82. SetStepComplete(Spawn, QwergosPlan, 2)
  83. end
  84. Dialog.AddOption("Interesting... Thank you.","Continue")
  85. Dialog.Start()
  86. end
  87. function waypoints(NPC)
  88. MovementLoopAddLocation(NPC, 32.24, 2.92, 10.14, 2, 1)
  89. MovementLoopAddLocation(NPC, 32.24, 2.92, 10.14, 2, 18,"Dig")
  90. MovementLoopAddLocation(NPC, 32.24, 2.92, 10.14, 2, 0)
  91. MovementLoopAddLocation(NPC, 28.82, 2.92, 26.42, 2, 0)
  92. MovementLoopAddLocation(NPC, 29.9, 2.92, 28.28, 2, 0)
  93. MovementLoopAddLocation(NPC, 31.47, 2.92, 30.86, 2, 1)
  94. MovementLoopAddLocation(NPC, 31.47, 2.92, 30.86, 2, 18,"Dig")
  95. MovementLoopAddLocation(NPC, 31.47, 2.92, 30.86, 2, 0)
  96. MovementLoopAddLocation(NPC, 23.96, 2.92, 28.69, 2, 0)
  97. MovementLoopAddLocation(NPC, 16.06, 2.92, 31.79, 2, 0)
  98. MovementLoopAddLocation(NPC, 9.15, 2.92, 30.65, 2, 0)
  99. MovementLoopAddLocation(NPC, 7.32, 2.92, 30.24, 2, 0)
  100. MovementLoopAddLocation(NPC, 6.18, 2.92, 29.12, 2, 1)
  101. MovementLoopAddLocation(NPC, 6.18, 2.92, 29.12, 2, 18,"Dig")
  102. MovementLoopAddLocation(NPC, 6.18, 2.92, 29.12, 2, 0)
  103. MovementLoopAddLocation(NPC, 5.67, 2.92, 31.67, 2, 0)
  104. MovementLoopAddLocation(NPC, 7.18, 2.92, 35.68, 2, 0)
  105. MovementLoopAddLocation(NPC, 9.54, 2.92, 38.01, 2, 1)
  106. MovementLoopAddLocation(NPC, 9.54, 2.92, 38.01, 2, 18,"Dig")
  107. MovementLoopAddLocation(NPC, 9.54, 2.92, 38.01, 2, 0)
  108. MovementLoopAddLocation(NPC, 11.53, 2.92, 36.02, 2, 0)
  109. MovementLoopAddLocation(NPC, 21.61, 2.92, 32.4, 2, 0)
  110. MovementLoopAddLocation(NPC, 28.59, 2.92, 25.76, 2, 0)
  111. MovementLoopAddLocation(NPC, 32.85, 2.92, 20.43, 2, 0)
  112. MovementLoopAddLocation(NPC, 36.75, 2.92, 22.19, 2, 1)
  113. MovementLoopAddLocation(NPC, 36.75, 2.92, 22.19, 2, 18,"Dig")
  114. MovementLoopAddLocation(NPC, 36.75, 2.92, 22.19, 2, 0)
  115. MovementLoopAddLocation(NPC, 33.74, 2.92, 16.51, 2, 0)
  116. MovementLoopAddLocation(NPC, 32.24, 2.92, 10.14, 2, 1)
  117. MovementLoopAddLocation(NPC, 32.24, 2.92, 10.14, 2, 18,"Dig")
  118. MovementLoopAddLocation(NPC, 32.24, 2.92, 10.14, 2, 0)
  119. MovementLoopAddLocation(NPC, 36.75, 2.92, 22.19, 2, 0)
  120. MovementLoopAddLocation(NPC, 32.85, 2.92, 20.43, 2, 0)
  121. MovementLoopAddLocation(NPC, 28.59, 2.92, 25.76, 2, 0)
  122. MovementLoopAddLocation(NPC, 21.61, 2.92, 32.4, 2, 0)
  123. MovementLoopAddLocation(NPC, 11.53, 2.92, 36.02, 2, 0)
  124. MovementLoopAddLocation(NPC, 9.54, 2.92, 38.01, 2, 1)
  125. MovementLoopAddLocation(NPC, 9.54, 2.92, 38.01, 2, 18,"Dig")
  126. MovementLoopAddLocation(NPC, 9.54, 2.92, 38.01, 2, 0)
  127. MovementLoopAddLocation(NPC, 7.18, 2.92, 35.68, 2, 0)
  128. MovementLoopAddLocation(NPC, 5.67, 2.92, 31.67, 2, 0)
  129. MovementLoopAddLocation(NPC, 6.18, 2.92, 29.12, 2, 1)
  130. MovementLoopAddLocation(NPC, 6.18, 2.92, 29.12, 2, 18,"Dig")
  131. MovementLoopAddLocation(NPC, 6.18, 2.92, 29.12, 2, 0)
  132. MovementLoopAddLocation(NPC, 7.32, 2.92, 30.24, 2, 0)
  133. MovementLoopAddLocation(NPC, 9.15, 2.92, 30.65, 2, 0)
  134. MovementLoopAddLocation(NPC, 16.06, 2.92, 31.79, 2, 0)
  135. MovementLoopAddLocation(NPC, 23.96, 2.92, 28.69, 2, 0)
  136. MovementLoopAddLocation(NPC, 31.47, 2.92, 30.86, 2, 1)
  137. MovementLoopAddLocation(NPC, 31.47, 2.92, 30.86, 2, 18,"Dig")
  138. MovementLoopAddLocation(NPC, 31.47, 2.92, 30.86, 2, 0)
  139. MovementLoopAddLocation(NPC, 29.9, 2.92, 28.28, 2, 0)
  140. MovementLoopAddLocation(NPC, 28.82, 2.92, 26.42, 2, 0)
  141. MovementLoopAddLocation(NPC, 32.24, 2.92, 10.14, 2, 1)
  142. MovementLoopAddLocation(NPC, 32.24, 2.92, 10.14, 2, 18,"Dig")
  143. end