• 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!

Step IN (SEND DISTANCE EFFECT)

Hesham16

New Member
Joined
Jul 1, 2011
Messages
63
Reaction score
0
hello
i need script movement
if you step in floor with action id (236)
do shoot distance effect
CONST_ANI_ENERGYBALL
number of the effect 35 (/x 35)
please help me quickly
 
Lua:
function onStepIn(cid, item, pos)
    if item.actionid == 236 then
        doSendMagicEffect(getCreaturePosition(cid),35)
        end
     return 1
end
 
Last edited:
Lua:
function onStepIn(cid, item, pos)
    if item.actionid == 236 then
        doSendDistanceShoot(getCreaturePosition(cid),CONST_ANI_ENERGYBALL)
        end
     return 1
end
mb this
 
Last edited:
Lua:
function onStepIn(cid, item, pos)
    if item.actionid == 236 then
        doSendMagicEffect(getCreaturePosition(cid),35)
        end
     return 1
end

If that one worked for you than this one will work properly:
Code:
function onStepIn(cid, item, frompos, itemEx, topos)
local position = getCreaturePosition(cid)

    if item.actionid == 236 then
for i = 1, 30 do

doSendDistanceShoot(position, {x = position.x + math.random(-7, 7), y = position.y + math.random(-5, 5), z = position.z}, 35)

end


        end
     return 1
end
 
Back
Top