ScoutCendalya.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : SpawnScripts/ThunderingSteppes/ScoutCendalya.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.06.27 10:06:06
  5. Script Purpose :
  6. :
  7. --]]
  8. local OutlandBrigadeReports = 473
  9. function spawn(NPC)
  10. AddSpawnAccess(NPC, NPC)
  11. SetPlayerProximityFunction(NPC, 10, "SpawnAccess", "SpawnAccess")
  12. end
  13. function SpawnAccess(NPC, Spawn)
  14. if GetQuestStep(Spawn, OutlandBrigadeReports) == 5 then
  15. AddSpawnAccess(NPC, Spawn)
  16. elseif HasCompletedQuest(Spawn, OutlandBrigadeReports) then
  17. RemoveSpawnAccess(NPC, Spawn)
  18. end
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. local conversation = CreateConversation()
  23. AddConversationOption(conversation, "Thanks for the information. ")
  24. AddConversationOption(conversation, "I am helping Captain Sturman collect the scouting reports.", "Option1")
  25. StartConversation(conversation, NPC, Spawn, "Shhhh ... can you see them? Those women in the water? ")
  26. end
  27. function Option1(NPC, Spawn)
  28. if GetQuestStep(Spawn, OutlandBrigadeReports) == 5 then
  29. SetStepComplete(Spawn, OutlandBrigadeReports, 5)
  30. end
  31. FaceTarget(NPC, Spawn)
  32. local conversation = CreateConversation()
  33. AddConversationOption(conversation, "Are they any danger to the people of Thundermist or Bridge Keep?", "Option2")
  34. StartConversation(conversation, NPC, Spawn, "They are properly called ''Selkies,'' and they're fascinating, aren't they. I think they're as intrigued with us as we are with them. I wish I could have an opportunity to talk with one, but they're so skittish. You know, I once tracked a selkie as far east as Thundermist before it noticed me and disappeared back under the water.")
  35. end
  36. function Option2(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. local conversation = CreateConversation()
  39. AddConversationOption(conversation, "Good luck with that.")
  40. StartConversation(conversation, NPC, Spawn, "Oh! Yes, here it is. You know, they seem very curious, but not dangerous. Still, I would like to remain here and observe them, maybe even make contact.")
  41. end
  42. function respawn(NPC)
  43. spawn(NPC)
  44. end