9
3

ScoutKaylinn.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : SpawnScripts/ThunderingSteppes/ScoutKaylinn.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.06.27 09:06:30
  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 hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. local conversation = CreateConversation()
  16. AddConversationOption(conversation, "I was sent by Captain Sturman to collect your scouting report.", "Option1")
  17. AddConversationOption(conversation, "Thanks, I'll keep that in mind. ")
  18. StartConversation(conversation, NPC, Spawn, "Hail. Lower your voice. Those are gnolls over there, and their hearing is sharp as a blade. I need not tell you how fearsome they can be")
  19. end
  20. function Option1(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. local conversation = CreateConversation()
  23. AddConversationOption(conversation, "I'll take your report back for you so that you can continue your watch.", "Option2")
  24. StartConversation(conversation, NPC, Spawn, "Gah! I forgot about that blasted report. The gnolls have been acting suspiciously, and I'm certain they're up to something big. I've been watching them constantly. There's a great deal of activity in their camps, and yet, they have cut back on their raiding parties against the centaurs. Very strange. ")
  25. end
  26. function Option2(NPC, Spawn)
  27. if GetQuestStep(Spawn, OutlandBrigadeReports) == 2 then
  28. SetStepComplete(Spawn, OutlandBrigadeReports, 2)
  29. end
  30. FaceTarget(NPC, Spawn)
  31. local conversation = CreateConversation()
  32. AddConversationOption(conversation, "Good luck on your mission. ")
  33. StartConversation(conversation, NPC, Spawn, "Thank you. I have written it. I fear for the safety of our settlements here. As soon as I discover what the gnolls are up to, I'll return to Bridge Keep and report to the Captain personally.")
  34. end
  35. function respawn(NPC)
  36. spawn(NPC)
  37. end
  38. function SpawnAccess(NPC, Spawn)
  39. if GetQuestStep(Spawn, OutlandBrigadeReports) == 2 then
  40. AddSpawnAccess(NPC, Spawn)
  41. elseif HasCompletedQuest(Spawn, OutlandBrigadeReports) then
  42. RemoveSpawnAccess(NPC, Spawn)
  43. end
  44. end