Adrianna.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. SetInfoStructString(NPC, "action_state", "cooking_idle")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. if GetFactionAmount(Spawn,11) <0 then
  18. choice = math.random(1,2)
  19. if choice == 1 then
  20. PlayFlavor(NPC, "", "", "shakefist", 2088886924, 3736631596, Spawn)
  21. elseif choice == 2 then
  22. PlayFlavor(NPC, "", "", "heckno", 1584866727, 581589457, Spawn)
  23. end
  24. else
  25. conversation = CreateConversation()
  26. PlayFlavor(NPC, "voiceover/english/merchant_adrianna/qey_elddar/merchantadrianna000.mp3", "", "", 2772064820, 4249063361, Spawn)
  27. if GetQuestStep(Spawn,Delivery)==1 then
  28. AddConversationOption(conversation, "I am here to pick up Harron Griswald's order.", "Delivered")
  29. end
  30. AddConversationOption(conversation, "No, I am good to go thanks. ")
  31. StartConversation(conversation, NPC, Spawn, "Hello there! Can I interest you in any wares for your travels?")
  32. end
  33. end
  34. function Delivered(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. PlayFlavor(NPC, "voiceover/english/merchant_adrianna/qey_elddar/merchantadrianna001.mp3", "", "", 1945726152, 1940591469, Spawn)
  38. AddConversationOption(conversation, "You can count on me. I'll make sure he gets it.", "dlg_9_2")
  39. 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!")
  40. end
  41. function dlg_9_2(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. PlayFlavor(NPC, "", "", "thanks", 0, 0, Spawn)
  44. SetStepComplete(Spawn,Delivery, 1)
  45. end