9
3

MedicRowena.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/MedicRowena.lua
  3. Script Purpose : Medic Rowena
  4. Script Author : Dorbin
  5. Script Date : 2022.04.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Delivery = 5542
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if GetFactionAmount(Spawn,11) <0 then
  17. FaceTarget(NPC, Spawn)
  18. choice = math.random(1,2)
  19. if choice == 1 then
  20. PlayFlavor(NPC, "", "", "shakefist", 2088886924, 3736631596, Spawn)
  21. elseif choice == 2 then
  22. PlayFlavor(NPC, "", "", "heckno", 1584866727, 581589457, Spawn)
  23. end
  24. else
  25. Dialog1(NPC, Spawn)
  26. end
  27. end
  28. function Dialog1(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. Dialog.New(NPC, Spawn)
  31. Dialog.AddDialog("Rodcet's blessings upon you. How may the Temple of Life assist you today?")
  32. Dialog.AddVoiceover("voiceover/english/medic_rowena/qey_north/medicrowena000.mp3", 59000523, 1158708704)
  33. if GetQuestStep(Spawn,Delivery)==1 then
  34. Dialog.AddOption("I have a delivery for you from The Jewel Box.","Delivered")
  35. end
  36. Dialog.AddOption("Nothing at the moment.")
  37. Dialog.Start()
  38. end
  39. function Delivered(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. Dialog.New(NPC, Spawn)
  42. PlayFlavor(NPC, "", "", "boggle", 0, 0, Spawn)
  43. Dialog.AddDialog("We were not expecting this package so soon! High Preistess Kassandra will be most pleased! We can use these silver etchings in channeling the Prime Healer's power. Please accept our thanks for their early delivery.")
  44. Dialog.AddVoiceover("voiceover/english/medic_rowena/qey_north/medicrowena001.mp3", 3448930744, 2802964919)
  45. Dialog.AddOption("Glad I could be of assistance.","FinishQuest")
  46. Dialog.Start()
  47. end
  48. function FinishQuest(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. SetStepComplete(Spawn,Delivery, 1)
  51. PlayFlavor(NPC, "", "", "bow", 0, 0, Spawn)
  52. end