9
3

LeonaWard.lua 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : SpawnScripts/SouthQeynos/LeonaWard.lua
  3. Script Purpose : Leona Ward <Tailor>
  4. Script Author : Dorbin
  5. Script Date : 2022.05.09
  6. Script Notes :
  7. --]]
  8. local Arrow = 5526
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. SetInfoStructString(NPC, "action_state", "tailoring_idle")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. end
  18. function LeaveRange(NPC, Spawn)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. conversation = CreateConversation()
  23. if GetFactionAmount(Spawn,11) <0 then
  24. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  25. else
  26. PlayFlavor(NPC, "voiceover/english/merchant_leona_ward/qey_south/leoniaward000.mp3", "", "hello", 3498707221, 1800198471, Spawn)
  27. if GetQuestStep(Spawn,Arrow)==1 then
  28. AddConversationOption(conversation, "Your friend Helanni Firewyng would like you to have this trophy. She wanted to let you know she has accomplished her dream.","Thanks")
  29. end
  30. AddConversationOption(conversation, "Sorry, but I don't have time to shop right now.")
  31. StartConversation(conversation, NPC, Spawn, "Welcome, traveler. Welcome to my shop. Please, take a look around!")
  32. end
  33. end
  34. function Thanks(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. PlayFlavor(NPC, "voiceover/english/merchant_leona_ward/qey_south/leoniaward001.mp3", "", "thanks", 3051695378, 2470682409, Spawn)
  38. AddConversationOption(conversation, "Happy to help.","Arrow2")
  39. StartConversation(conversation, NPC, Spawn, "The famous Golden Engraved Arrow! Only archery's finest receive this reward. I am pleased to see my friend has accomplished her lifelong dream. Thank you for letting me know she is doing so well!")
  40. end
  41. function Arrow2(NPC, Spawn)
  42. SetStepComplete(Spawn,Arrow,1)
  43. FaceTarget(NPC, Spawn)
  44. end