9
3

Dori.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : SpawnScripts/Graystone/Dori.lua
  3. Script Purpose : Dori <Banker>
  4. Script Author : Dorbin
  5. Script Date : 2022.03.11
  6. Script Notes :
  7. --]]
  8. --Bank Tally Quest Should only be available AFTER inital Citizenship quest.
  9. local Tally = 5508
  10. function spawn(NPC)
  11. ProvidesQuest(NPC,Tally)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. conversation = CreateConversation()
  16. PlayFlavor(NPC, "voiceover/english/banker_dori/qey_village03/bankerdori.mp3", "", "", 2952818839, 2577303477, Spawn)
  17. if not HasCompletedQuest (Spawn, Tally) and not HasQuest (Spawn, Tally) then
  18. AddConversationOption(conversation, "Have any errands I can do for the bank?", "DeliveryStart")
  19. end
  20. if GetQuestStep(Spawn,Tally)==2 then
  21. AddConversationOption(conversation, "Robert Newbury gave me this message for you.", "DeliveryDone")
  22. end
  23. AddConversationOption(conversation, "Thanks, Dori.")
  24. StartConversation(conversation, NPC, Spawn, "Greetin's, young'n. My name's Dori and this here is my bank. As a customer of the Qeynos Exchange, you can be certain your money's safe with us!")
  25. end
  26. function DeliveryStart(NPC, Spawn)
  27. conversation = CreateConversation()
  28. PlayFlavor(NPC, "voiceover/english/banker_dori/qey_village03/bankerdori000.mp3","","",3527195543,3811393839,Spawn)
  29. AddConversationOption(conversation, "Sure. I'll do it.", "QuestBegin1")
  30. AddConversationOption(conversation, "Another time. Sorry.")
  31. StartConversation(conversation, NPC, Spawn, "Sure ya can. Its nothing much, but if you take my daily tally into the Qeynos Exchange at the harbor, it would save me a trip into the city! You think you're up to it?")
  32. end
  33. function QuestBegin1(NPC, Spawn)
  34. conversation = CreateConversation()
  35. PlayFlavor(NPC, "voiceover/english/banker_dori/qey_village03/bankerdori001.mp3","","",161424087,848076549,Spawn)
  36. AddConversationOption(conversation, "I'll head that way shortly.", "QuestBegin")
  37. StartConversation(conversation, NPC, Spawn, "Make sure Robert Newbury recieves this tally directly. You'll find him in the Qeynos Exchange at the harbor. Now, this needs to be delivered right away, so no dawdling!")
  38. end
  39. function QuestBegin (NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. OfferQuest(NPC, Spawn, Tally)
  42. end
  43. function Delivered(NPC, Spawn)
  44. conversation = CreateConversation()
  45. PlayFlavor(NPC, "voiceover/english/banker_dori/qey_village03/bankerdori002.mp3","","facepalm",2001766624,322751976,Spawn)
  46. AddConversationOption(conversation, "I'm glad to help.", "Reward")
  47. StartConversation(conversation, NPC, Spawn, "Oh dear. I hope its not a bank audit! I do hate those tedious things! Poor Jalan will never get to leave if its an audit! No time for chatt'n. Its time to buckle down and get to work. At any rate, thanks for all your help.")
  48. end
  49. function Reward(NPC, Spawn)
  50. SetStepComplete(Spawn, Tally, 2)
  51. end