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

[movement] tile remove storage

Allesn

Member
Joined
May 4, 2011
Messages
204
Solutions
1
Reaction score
24
Hello, I would like a simple movement, where when the player stepped on the tile, check whether it has a certain storage, if you had the storage 9000, she went off.
I need it for an anti bot.

thank you
 
LUA:
function onStepIn(cid, item, pos)
local off = {x=1000, y=1000, z=7} -- teleport position
    if getPlayerStorageValue(cid,9000) >= 1 then
			 --doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Your text here....') -- Massage text if you wants....
			doTeleportThing(cid, off)
			--doSendMagicEffect(off,17) -- some effect if you wants :D
    end
	return true
end
 
>.<
Code:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if getPlayerStorageValue(cid,9000) >= 1 then
			doTeleportThing(cid, fromPosition)
  end
	return true
end
 
Back
Top