FharaHanford.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/FharaHanford.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.04.24 02:04:56
  5. Script Purpose :
  6. :
  7. --]]
  8. local delivery = 5534
  9. local Fhara = 5540
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, delivery)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. conversation = CreateConversation()
  16. if GetFactionAmount(Spawn,11)<0 then
  17. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn, 0)
  18. else
  19. PlayFlavor(NPC, "voiceover/english/merchant_fhara_hanford/qey_north/mer_fharahanford.mp3", "", "hello", 1749623871, 3714750870, Spawn, 0)
  20. if not HasQuest(Spawn,delivery) and not HasCompletedQuest (Spawn,delivery) then
  21. AddConversationOption(conversation, "I was wondering if you had any odd tasks that needed to be done.","Jobs")
  22. end
  23. if GetQuestStep (Spawn,Fhara)==1 then
  24. AddConversationOption(conversation, "I've brought over your order from Baker Voleen!","Delivery")
  25. end
  26. AddConversationOption(conversation, "I'll look around. Thank you.")
  27. StartConversation(conversation, NPC, Spawn, "Good day! Please take a look around my shop. My fine furniture spruces up any home.")
  28. end
  29. end
  30. function respawn(NPC)
  31. spawn(NPC)
  32. end
  33. function Jobs(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. conversation = CreateConversation()
  36. PlayFlavor(NPC, "voiceover/english/merchant_fhara_hanford/qey_north/mer_fharahanford000.mp3", "", "agree", 1624229583, 959691088, Spawn)
  37. AddConversationOption(conversation, "That is right up my alley.","QuestStart")
  38. AddConversationOption(conversation, "Hmm, that job doesn't sound odd enough for me. Sorry.")
  39. StartConversation(conversation, NPC, Spawn, "I do need to make a delivery to one of my buisness partners. Here. Take this stack of papers to Trevor Minturn. You'll find him in the southern part of Qeynos.")
  40. end
  41. function QuestStart(NPC, Spawn)
  42. OfferQuest(NPC,Spawn, delivery)
  43. FaceTarget(NPC, Spawn)
  44. PlayFlavor(NPC, "", "", "thanks", 0, 0, Spawn, 0)
  45. end
  46. function Delivery(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. conversation = CreateConversation()
  49. PlayFlavor(NPC, "", "", "happy", 0, 0, Spawn)
  50. AddConversationOption(conversation, "I certainly will! Good day to you!","Delivered")
  51. AddConversationOption(conversation, "Try not to eat them all in one sitting.","Delivered2")
  52. StartConversation(conversation, NPC, Spawn, "Mmmm ... Mmmmm ... These pastries smell delicious! Voleen's delicacies always brighten my day. If you see her again, please, give her my thanks.")
  53. end
  54. function Delivered(NPC, Spawn)
  55. SetStepComplete(Spawn,Fhara, 1)
  56. FaceTarget(NPC, Spawn)
  57. end
  58. function Delivered2(NPC, Spawn)
  59. SetStepComplete(Spawn,Fhara, 1)
  60. FaceTarget(NPC, Spawn)
  61. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn)
  62. end