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

Lua Transform Item

jestem pro

That is the question
Joined
Apr 20, 2013
Messages
650
Solutions
14
Reaction score
88
Hi guys. I have that script :
Code:
c = {
areapos = {fromx = 997, fromy = 1001, tox = 998, toy = 1003, z = 7}
}

function onAddItem(moveitem, tileitem, position, cid)
for i = c.areapos.fromx, c.areapos.tox do
    for j = c.areapos.fromy, c.areapos.toy do
local pos = {x=i, y=j,z=7, stackpos = 1}

if doComparePositions(position,pos) then
if moveitem.itemid == 2669 then
doCreateItem(2160 ,1, pos)
addEvent(function()


doRemoveItem(getTileItemById(pos, 2669).uid, 1)
doSendMagicEffect(pos, 6)
doTransformItem(getTileItemById(pos, 2137).uid, 11129)

end, 2*1000)

end                             
                end
                end
                end
    return true
end

function onRemoveItem(cid, position, tileitem, moveitem)
return true
end

My question is: Can someone add me to this script that function how player "Tom" drop item, that player "Tom" take this item??? Because another players take someone other item.

Thanks and sorry my English.
 
Back
Top