TrevorMinturn.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : SpawnScripts/SouthQeynos/TrevorMinturn.lua
  3. Script Purpose : Trevor Minturn <General Goods>
  4. Script Author : Cynnar
  5. Script Date : 2020.04.12
  6. Script Notes : Quest dialogue added - 2022.5.11 - Dorbin
  7. --]]
  8. local delivery = 5534
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. end
  17. function LeaveRange(NPC, Spawn)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. conversation = CreateConversation()
  22. PlayFlavor(NPC, "voiceover/english/merchant_trevor_minturn/qey_south/trevorminturn000.mp3", "", "hello", 2006919025, 2800091409, Spawn)
  23. if GetQuestStep(Spawn,delivery)==1 then
  24. AddConversationOption(conversation, "I'm here with a delivery for you from Fhara.","Delivered")
  25. end
  26. AddConversationOption(conversation, "I don't need anything, thank you. ", "dlg_0_1")
  27. StartConversation(conversation, NPC, Spawn, "May I interest you in some of my fine wares, friend?")
  28. end
  29. function Delivered(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. conversation = CreateConversation()
  32. PlayFlavor(NPC, "voiceover/english/merchant_trevor_minturn/qey_south/trevorminturn001.mp3", "", "thanks", 1405726678, 1797539189, Spawn)
  33. AddConversationOption(conversation, "Glad I could help.","Delivered2")
  34. StartConversation(conversation, NPC, Spawn, "Thank you for your kindness. You've gone out of your way to make this delivery! I understand Fhara is quite busy as of late, but I've been expecting these papers for some time now!")
  35. end
  36. function Delivered2(NPC, Spawn)
  37. SetStepComplete(Spawn,delivery,1)
  38. FaceTarget(NPC, Spawn)
  39. end