NoelleDering.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/NoelleDering.lua
  3. Script Purpose : Noelle Dering
  4. Script Author : Dorbin
  5. Script Date : 2022.04.22
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local Sword = 5544
  9. require "SpawnScripts/Generic/DialogModule"
  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", 0, 0, Spawn)
  21. elseif choice == 2 then
  22. PlayFlavor(NPC, "", "", "heckno", 0, 0, 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. PlayFlavor(NPC, "", "", "bow", 0, 0, Spawn)
  32. Dialog.AddDialog("Greetings! I welcome you to Irontoes East! Please speak with Harold or Gretta if you need help!")
  33. Dialog.AddVoiceover("voiceover/english/noelle_dering/qey_north/noelledering.mp3", 2170111717, 1186191258)
  34. if GetQuestStep(Spawn,Sword)==1 then
  35. Dialog.AddOption("I've been sent to deliver a sword to you by the Call to Arms.","Delivered")
  36. end
  37. Dialog.AddOption("Thanks, I'll keep that in mind")
  38. Dialog.Start()
  39. end
  40. function Delivered(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. Dialog.New(NPC, Spawn)
  43. PlayFlavor(NPC, "", "", "thanks", 0, 0, Spawn)
  44. Dialog.AddDialog("Praise the gods! You've come just in time. Oh, I must not be too loud or Nicola will suspect something! If you wouldn't mind, would you mind slipping out the back door so he doesn't see you leave?")
  45. Dialog.AddVoiceover("voiceover/english/noelle_dering/qey_north/noelledering000.mp3", 2834883607, 1827900597)
  46. Dialog.AddOption("Of course, I'd hate to spoil a good surprise.","Update")
  47. Dialog.Start()
  48. end
  49. function Update(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. SetStepComplete(Spawn,Sword, 1)
  52. end