9
3

TaraIronforge.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/TaraIronforge.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.26 11:01:00
  5. Script Purpose : Jewelery Pickup for Taneran quest
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Taneran = 5459
  10. function spawn(NPC)
  11. SetInfoStructString(NPC, "action_state", "artificing_idle")
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. Dialog.New(NPC, Spawn)
  16. Dialog.AddDialog("Hello, friend! I've just received some fine gems from the hard-working dwarves in the village! Take a look. See if anything strikes your fancy.")
  17. Dialog.AddVoiceover("voiceover/english/tara_ironforge/qey_north/taraironforge.mp3", 1778772317, 1476685213)
  18. if GetQuestStep (Spawn, Taneran)==1 then
  19. Dialog.AddOption("I'm here to pick up an order for Taneran. Here is the order form.","Order")
  20. end
  21. Dialog.AddOption("Thank you. I'll browse around. ")
  22. Dialog.Start()
  23. end
  24. function respawn(NPC)
  25. spawn(NPC)
  26. end
  27. function Order(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. Dialog.New(NPC, Spawn)
  30. Dialog.AddDialog("Oh! Let's look. Yes, I believe I have just what he's looking for. Take this to him. I am certain he will be pleased.")
  31. Dialog.AddVoiceover("voiceover/english/tara_ironforge/qey_north/taraironforge001.mp3", 829541547, 700812740)
  32. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  33. Dialog.AddOption("I'll get it to him. Thank you.","Pickup")
  34. Dialog.Start()
  35. end
  36. function Pickup(NPC, Spawn)
  37. SetStepComplete(Spawn, Taneran, 1)
  38. end