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

Linux Porblem with movement stepin/stepout (create/remove item)

lenidas

New Member
Joined
Mar 18, 2010
Messages
149
Reaction score
0
Hello, i have problem with script
if someone stepin on item with uniqueID -> remove item
if someone steopout from item with uniqueID -> create item

Code:
function onStepIn(cid, item, pos)
    local stone_pos = {x=2498, y=1284, z=7}
    if item.uid == 63985 and isPlayer(cid) == TRUE then
        doRemoveItem(387,1,stone_pos)
    end
    return true
end

function onStepOut(cid, item, pos)
    local stone_pos = {x=2498, y=1284, z=7}
    if item.uid == 63985 and isPlayer(cid) == TRUE then              
    doCreateItem(387,1,stone_pos)
    end
    return true
end

error
Code:
data/movements/scripts/destroy.lua:onStepIn
Description:
(luaDoRemoveItem) Item not found

whats wrong?
 
Back
Top