Xavicrak
New Member
- Joined
- Mar 23, 2010
- Messages
- 186
- Reaction score
- 4
Hi i use tfs0.4 and i liked to move 1 item to any direccion when use, can you help me? this is my script:
ERROR IN CONSOLE IS: item not found
I think it is because stackpos, but i dont know.
the item is located in the top: wall-mirror-[tapestry]
when tapestry used it should move 1 south position
PHP:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 65534 then
if item.itemid == 1871 then
local TapestryPos = {x=400,y=1522,z=13, stack = 1}
local Tapestry = getItemFromPosition(TapestryPos)
local NewTapestryPos = {x=400,y=1523,z=13, stackpos = 1}
doRemoveItem(Tapestry.uid,1)
doCreateItem(1871,NewTapestryPos)
end
end
return 1
end
ERROR IN CONSOLE IS: item not found
I think it is because stackpos, but i dont know.
the item is located in the top: wall-mirror-[tapestry]
when tapestry used it should move 1 south position