- Joined
- Dec 22, 2007
- Messages
- 1,984
- Reaction score
- 2
Hello, I've edited some script. It should create and remove ladder, but it doesn't remove. Ladder is created correctly, but then the sqm under player is removed. What's done wrong?
LUA:
ladder_pos = {x=32902, y=32283, z=12}
local ladder = getThingfromPos(ladder_pos)
function onStepIn(cid, item, pos)
if item.uid == 10055 and isPlayer(cid) == TRUE then
doCreateItem(5543,1,ladder_pos)
end
return true
end
function onStepOut(cid, item, pos)
if item.uid == 10055 and isPlayer(cid) == TRUE then
doRemoveItem(ladder.uid)
end
return true
end