• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

GlobalEvent Teleport Distance/Effects

RosOT

Who am i?
Joined
Feb 12, 2013
Messages
714
Reaction score
137
Location
Canada
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.
C5BjHxZ.png


Your going to want to add this to Globalevents/scripts/ name.lua
Code:
    <globalevent name="TeleportEffect" interval="3000" script="Name.lua"/> - Default 3 seconds -
Your going to wanna add this to Globalevents/globalevents.xml
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
 
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.
C5BjHxZ.png


Your going to want to add this to Globalevents/scripts/ name.lua
Code:
    <globalevent name="TeleportEffect" interval="3000" script="Name.lua"/> - Default 3 seconds -
Your going to wanna add this to Globalevents/globalevents.xml
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
doesn't work o_O
0.3.6
@RosOT
 
Last edited:
Back
Top