9
3

Dori.lua 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. local Tally = 5508
  9. function spawn(NPC)
  10. ProvidesQuest(NPC,Tally)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. conversation = CreateConversation()
  15. PlayFlavor(NPC, "voiceover/english/banker_dori/qey_village03/bankerdori.mp3", "", "", 2952818839, 2577303477, Spawn)
  16. if not HasCompletedQuest (Spawn, Tally) and not HasQuest (Spawn, Tally) then
  17. AddConversationOption(conversation, "Have any errands I can do for the bank?", "DeliveryStart")
  18. end
  19. if GetQuestStep(Spawn,Tally)==2 then
  20. AddConversationOption(conversation, "Robert Newbury gave me this message for you.", "DeliveryDone")
  21. end
  22. AddConversationOption(conversation, "Thanks, Dori.")
  23. 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!")
  24. end
  25. function DeliveryStart(NPC, Spawn)
  26. conversation = CreateConversation()
  27. PlayFlavor(NPC, "voiceover/english/banker_dori/qey_village03/bankerdori000.mp3","","",3527195543,3811393839,Spawn)
  28. AddConversationOption(conversation, "Sure. I'll do it.", "QuestBegin1")
  29. AddConversationOption(conversation, "Another time. Sorry.")
  30. 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?")
  31. end
  32. function QuestBegin1(NPC, Spawn)
  33. conversation = CreateConversation()
  34. PlayFlavor(NPC, "voiceover/english/banker_dori/qey_village03/bankerdori001.mp3","","",161424087,848076549,Spawn)
  35. AddConversationOption(conversation, "I'll head that way shortly.", "QuestBegin")
  36. 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!")
  37. end
  38. function QuestBegin (NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. OfferQuest(NPC, Spawn, Tally)
  41. end
  42. function DeliveryDone(NPC, Spawn)
  43. conversation = CreateConversation()
  44. PlayFlavor(NPC, "voiceover/english/banker_dori/qey_village03/bankerdori002.mp3","","doh",2001766624,322751976,Spawn)
  45. AddConversationOption(conversation, "I'm glad to help.", "Reward")
  46. 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.")
  47. end
  48. function Reward(NPC, Spawn)
  49. SetStepComplete(Spawn, Tally, 2)
  50. end