9
3

AdvisorKreLak.lua 615 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/WaillingCaves/AdvisorKreLak.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.07.14 04:07:40
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 500, "door_closed") -- DOOR CLOSED BY DEFAULT
  10. end
  11. function door_closed(NPC, Spawn)
  12. local door = GetSpawn(NPC, 2580086)
  13. CloseDoor(door)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. end
  18. function death(NPC, Spawn)
  19. local door = GetSpawn(NPC, 2580086) -- OPEN SECRET DOOR IF ADVISOR IS DEAD
  20. OpenDoor(door)
  21. end
  22. function respawn(NPC)
  23. spawn(NPC)
  24. end