Hello, Here is a picture of what it does. some people have requested it and i gave them it so i thought id make a thread about it.
Your going to want to add this to Globalevents/scripts/ name.lua
Your going to wanna add this to Globalevents/globalevents.xml
Your going to want to add this to Globalevents/scripts/ name.lua
Code:
<globalevent name="TeleportEffect" interval="3000" script="Name.lua"/> - Default 3 seconds -
Code:
local Effect = CONST_ME_TELEPORT
local DistanceEffect = CONST_ANI_ENERGYBALL
local position = {x=1095, y=1065, z=6} -- This is the position where the effects come from (The Portal) --
function onThink (cid, interval, lastExecution)
doSendDistanceShoot(position, {x = position.x + 1, y = position.y + 1, z = position.z}, DistanceEffect)
doSendDistanceShoot(position, {x = position.x - 1, y = position.y - 1, z = position.z}, DistanceEffect)
doSendDistanceShoot(position, {x = position.x + 1, y = position.y - 1, z = position.z}, DistanceEffect)
doSendDistanceShoot(position, {x = position.x - 1, y = position.y + 1, z = position.z}, DistanceEffect)
doSendMagicEffect({x = position.x + 1, y = position.y + 1, z = position.z}, Effect)
doSendMagicEffect({x = position.x - 1, y = position.y - 1, z = position.z}, Effect)
doSendMagicEffect({x = position.x + 1, y = position.y - 1, z = position.z}, Effect)
doSendMagicEffect({x = position.x - 1, y = position.y + 1, z = position.z}, Effect)
return true
end