9
3

magic_door.lua 468 B

1234567891011121314151617181920
  1. --[[
  2. Script Name : SpawnScripts/Generic/magic_door.lua
  3. Script Purpose : Tradeskill doors that open when you come within 10 feet
  4. Script Author : John Adams
  5. Script Date : 2008.09.27
  6. Script Notes : Need to find a way to send Open commands to door widgets
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "OpenDoor", "CloseDoor")
  10. end
  11. function respawn(NPC)
  12. end
  13. function OpenDoor(NPC, Spawn)
  14. end
  15. function CloseDoor(NPC, Spawn)
  16. end