Adrianna.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : SpawnScripts/ElddarGrove/Adrianna.lua
  3. Script Purpose : Adrianna <Provisioner>
  4. Script Author : Dorbin
  5. Script Date : 2022.05.23
  6. Script Notes :
  7. --]]
  8. local Delivery = 5562
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. if GetFactionAmount(Spawn,11) <0 then
  17. choice = math.random(1,2)
  18. if choice == 1 then
  19. PlayFlavor(NPC, "", "", "shakefist", 2088886924, 3736631596, Spawn)
  20. elseif choice == 2 then
  21. PlayFlavor(NPC, "", "", "heckno", 1584866727, 581589457, Spawn)
  22. end
  23. else
  24. conversation = CreateConversation()
  25. PlayFlavor(NPC, "voiceover/english/merchant_adrianna/qey_elddar/merchantadrianna000.mp3", "", "", 2772064820, 4249063361, Spawn)
  26. if GetQuestStep(Spawn,Delivery)==1 then
  27. AddConversationOption(conversation, "I am here to pick up Harron Griswald's order.", "Delivered")
  28. end
  29. AddConversationOption(conversation, "No, I am good to go thanks. ")
  30. StartConversation(conversation, NPC, Spawn, "Hello there! Can I interest you in any wares for your travels?")
  31. end
  32. end
  33. function Delivered(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. conversation = CreateConversation()
  36. PlayFlavor(NPC, "voiceover/english/merchant_adrianna/qey_elddar/merchantadrianna001.mp3", "", "", 1945726152, 1940591469, Spawn)
  37. AddConversationOption(conversation, "You can count on me. I'll make sure he gets it.", "dlg_9_2")
  38. StartConversation(conversation, NPC, Spawn, "Yes, I have his order ready for him. I'm going to trust you to get it there in a timely manner. He's had a run of hard luck since his fishing boat sunk. I don't want it to get worse!")
  39. end
  40. function dlg_9_2(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. PlayFlavor(NPC, "", "", "thanks", 0, 0, Spawn)
  43. SetStepComplete(Spawn,Delivery, 1)
  44. end