9
3

LeonaWard.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. end
  17. function LeaveRange(NPC, Spawn)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. conversation = CreateConversation()
  22. if GetFactionAmount(Spawn,11) <0 then
  23. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  24. else
  25. PlayFlavor(NPC, "voiceover/english/merchant_leona_ward/qey_south/leoniaward000.mp3", "", "hello", 3498707221, 1800198471, Spawn)
  26. if GetQuestStep(Spawn,Arrow)==1 then
  27. 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")
  28. end
  29. AddConversationOption(conversation, "Sorry, but I don't have time to shop right now.")
  30. StartConversation(conversation, NPC, Spawn, "Welcome, traveler. Welcome to my shop. Please, take a look around!")
  31. end
  32. end
  33. function Thanks(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. conversation = CreateConversation()
  36. PlayFlavor(NPC, "voiceover/english/merchant_leona_ward/qey_south/leoniaward001.mp3", "", "thanks", 3051695378, 2470682409, Spawn)
  37. AddConversationOption(conversation, "Happy to help.","Arrow2")
  38. 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!")
  39. end
  40. function Arrow2(NPC, Spawn)
  41. SetStepComplete(Spawn,Arrow,1)
  42. FaceTarget(NPC, Spawn)
  43. end