ScoutDeeryen.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : SpawnScripts/ThunderingSteppes/ScoutDeeryen.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.06.27 10:06:37
  5. Script Purpose :
  6. :
  7. --]]
  8. local OutlandBrigadeReports = 473
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. local conversation = CreateConversation()
  14. AddConversationOption(conversation, "I am here to collect your scouting report for Captain Sturman.", "Option1")
  15. AddConversationOption(conversation, "I'll make sure not to provoke them. ")
  16. StartConversation(conversation, NPC, Spawn, "Stay low to the ground, friend. These Firerock giants are fiercely territorial, and will attack a stranger unprovoked.")
  17. end
  18. function Option1(NPC, Spawn)
  19. if GetQuestStep(Spawn, OutlandBrigadeReports) == 3 then
  20. SetStepComplete(Spawn, OutlandBrigadeReports, 3)
  21. end
  22. FaceTarget(NPC, Spawn)
  23. local conversation = CreateConversation()
  24. AddConversationOption(conversation, "What have you found out?", "Option2")
  25. StartConversation(conversation, NPC, Spawn, "Good. This saves me the trouble of leaving my watch. These giants have been very active lately.")
  26. end
  27. function Option2(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. local conversation = CreateConversation()
  30. AddConversationOption(conversation, "I'll take your report to Sturman. Be careful.")
  31. StartConversation(conversation, NPC, Spawn, "See those craters down there? The giants are mining them again. And you know what that means-they're preparing for war, probably to drive the forces of Qeynos from the land. They're notorious for slaying gnolls and centaurs, but they feel especially threatened by organized humans. We had better expect the worst.")
  32. AddTimer(NPC, 200000, "delayed_despawn", 1, Spawn)
  33. end
  34. function delayed_despawn(NPC, Spawn)
  35. Despawn(NPC)
  36. end
  37. function respawn(NPC)
  38. spawn(NPC)
  39. end