RobertNewbury.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/RobertNewbury.lua
  3. Script Purpose : Robert Newbury <Banker>
  4. Script Author : Cynnar
  5. Script Date : 2020.04.12
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local Tally = 5508
  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_robert_newbury/qey_harbor/bankerrobertnewbury.mp3", "", "", 1059198737, 1183516549, Spawn)
  23. if GetQuestStep(Spawn,Tally)==1 then
  24. AddConversationOption(conversation, "I'm here delivering Graystone's bank tally.", "DeliveryDone")
  25. end
  26. AddConversationOption(conversation, "I'll keep that in mind in the future.")
  27. StartConversation(conversation, NPC, Spawn, "I'll take care of your coin and goods if they need safekeeping.")
  28. end
  29. function DeliveryDone(NPC, Spawn)
  30. conversation = CreateConversation()
  31. PlayFlavor(NPC, "voiceover/english/banker_robert_newbury/qey_harbor/bankerrobertnewbury000.mp3","","ponder",3741382425,2971176435,Spawn)
  32. AddConversationOption(conversation, "Alright. I'll take the letter to her.", "QuestBegin1")
  33. StartConversation(conversation, NPC, Spawn, "Let me see it. Quickly! This is long overdue!... Hmm- These figures are all wrong! I'll need Dori to inventory her all of her branch. Deliver this letter to Dori. She'll know what to do.")
  34. end
  35. function QuestBegin1(NPC, Spawn)
  36. SetStepComplete(Spawn, Tally, 1)
  37. end