• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Move item south

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:

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
 
Back
Top