BridgeDoors.lua 417 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : SpawnScripts/ThunderingSteppes/BridgeDoors.lua
  3. Script Author : Jabantiz
  4. Script Date : 2015.07.12 05:07:34
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, 10000, "OpenDoors")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function OpenDoors(NPC)
  15. local zone = GetZone(NPC)
  16. if not IsNight(zone) then
  17. UseWidget(NPC)
  18. end
  19. end