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

Hidden tiles

Cosmox

tibiafans.com
Joined
Jan 27, 2008
Messages
21
Reaction score
0
Well, i need help (or is it a code) so when you walk on certain tiles, and item at a different place will disappear (like spikesword on real tibia)
 
Just something I wrote in a hurry, but should do what you asked for.

Code:
function onStepIn(cid)
local differentPlaceTile = {x=123, y=321, z=7, stackpos = STACKPOS_FIRST_ITEM_ABOVE_GROUNDTILE}
doRemoveItem(getThingfromPos(differentPlaceTile).uid)
end
 
Just something I wrote in a hurry, but should do what you asked for.

Code:
function onStepIn(cid)
local differentPlaceTile = {x=123, y=321, z=7, stackpos = STACKPOS_FIRST_ITEM_ABOVE_GROUNDTILE}
doRemoveItem(getThingfromPos(differentPlaceTile).uid)
end

place movements/scripts

and then in movements.xml add

Code:
	<movevent event="StepIn" actionid="20013" script="testpoi.lua"/>
 
Yea...

Make a new file, lets call it item_disappear.lua, open it and place in:
Code:
function onStepIn(cid)
    local differentPlaceTile = {x=123, y=321, z=7, stackpos = STACKPOS_FIRST_ITEM_ABOVE_GROUNDTILE}
    doRemoveItem(getThingfromPos(differentPlaceTile).uid)
end

Now open movements.xml and add there:
Code:
<movevent event="StepIn" actionid="20013" script="item_disappear.lua"/>

And now open your map in mapeditor and set the actionid of this tile to 20013.
 
Back
Top