Simple.
Add a unique id to the chest. (on mapeditor).
And its stuck.
<!-- Walkback when walking on quest chest -->
<movevent event="StepIn" itemid="1738" script="walkback.lua"/>
<movevent event="StepIn" itemid="1740" script="walkback.lua"/>
<movevent event="StepIn" fromid="1746" toid="1749" script="walkback.lua"/>
function onStepIn(cid, item, position, fromPosition)
if item.uid > 0 and item.uid <= 65535 and isPlayer(cid) == TRUE then
doTeleportThing(cid, fromPosition, FALSE)
end
return TRUE
end
Yeah, now i cant pass on the chest
BUT, the problem stand
i can take the chest