qstambushbook2.lua 591 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/PeatBog/qstambushbook2.lua
  3. Script Author : Shatou
  4. Script Date : 2020.01.08 08:01:31
  5. Script Purpose :
  6. :
  7. --]]
  8. local AMBUSHED_QUEST_ID = 509
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, AMBUSHED_QUEST_ID, 1, 1,0,0)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. end
  15. function respawn(NPC)
  16. end
  17. function casted_on(NPC, Spawn, Message)
  18. if HasQuest(Spawn, AMBUSHED_QUEST_ID) then
  19. if Message == "inspect" then
  20. SetStepComplete(Spawn, AMBUSHED_QUEST_ID, 1)
  21. end
  22. end
  23. end