function onStepIn(cid, item, position, fromPosition)
local function pushBack(cid, position, fromPosition, displayMessage)
if(item.actionid == 101) then
local f = checkCreature[isPlayer]
if(f(cid)) then
pushBack(cid, position, fromPosition, false)
end
return true
end
end
function onStepIn(cid, item, position, fromPosition)
local depot = {x=position.x, y=position.y, z=position.z, stackpos=2}
local pos = getThingFromPos(depot)
if pos.itemid > 0 then
doTeleportThing(cid, fromPosition, true)
end
return true
end
Maybe, maybe not.
LUA:function onStepIn(cid, item, position, fromPosition) local pos = getThingFromPos(position) pos.stackpos = 253 if pos.itemid > 0 then doTeleportThing(cid, fromPosition, true) end return true end
Use search function in less than 5 mins I find solution. -,-