GrisvaneStonearm.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/GrisvaneStonearm.lua
  3. Script Purpose : Grisvane Stonearm <Banker>
  4. Script Author : Cynnar
  5. Script Date : 2020.04.12
  6. Script Notes : Added quest dialogue/VO - 2022.05.08 Dorbin
  7. --]]
  8. local deposit = 5523
  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/banker_grisvane_stonearm/qey_harbor/bankergrisvanestonearm.mp3", "", "", 2372742156, 2861930894, Spawn)
  23. if GetQuestStep(Spawn,deposit)==1 then
  24. AddConversationOption(conversation, "I'm here to make a deposit for Nightbow, the owner of In-Range.", "Delivered")
  25. end
  26. AddConversationOption(conversation, "Thanks, that's good to know.", "dlg_27_1")
  27. StartConversation(conversation, NPC, Spawn, "Hello there. I'll take care of your coin and goods if they need safekeeping.")
  28. end
  29. function Delivered(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. PlayFlavor(NPC, "voiceover/english/banker_grisvane_stonearm/qey_harbor/bankergrisvanestonearm000.mp3", "", "ponder", 959700799, 1039182816, Spawn)
  32. local conversation = CreateConversation()
  33. AddConversationOption(conversation, "Thank you.", "FinishQuest")
  34. StartConversation(conversation, NPC, Spawn, "Well then why didn't you just say so. Miss Nightbow is always first on my list! Let's see what we have here... hrmm- excellent! I'm glad to see she's done well this week! I can't say the same for last week. Let me write a receipt. I know she'll want one... Here you are! Good day. ")
  35. end
  36. function FinishQuest(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. SetStepComplete(Spawn,deposit, 1)
  39. end