1234567891011121314151617181920212223242526272829 |
- --[[
- Script Name : SpawnScripts/QueensColony/fogcubespell.lua
- Script Author : Premierio015
- Script Date : 2020.08.22 06:08:35
- Script Purpose :
- :
- --]]
- function spawn(NPC)
- SetPlayerProximityFunction(NPC, 15, "InRange", "LeaveRange")
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function InRange(NPC)
- local zone = GetZone(NPC)
- local Puppeteer = GetSpawnByLocationID(zone, 430289)
- if Puppeteer ~= nil then
- PlayAnimation(NPC, 4012)
- AddTimer(NPC, 7000, "InRange")
- end
- end
- function LeaveRange(NPC)
- PlayAnimation(NPC, 4011)
- end
|