Hello, I need a little help. I have an OTS 8.60 client and I need two scripts:
1. the player when he have a special item (2130) and he step in to a tile with aid 17004 he will be teleported (y-2). I have a script that works on 8.40 but he don't work on 8.60 [Visum]
2. A self closing door, when the player use a key and go through the door, they should close form self (key aid=10001)
1. the player when he have a special item (2130) and he step in to a tile with aid 17004 he will be teleported (y-2). I have a script that works on 8.40 but he don't work on 8.60 [Visum]
Code:
function onStepIn(cid, item, pos)
if isPlayer(cid) == 1 then
tible = getPlayerItemCount(cid,2130)
if tible >= 1 then
newpos = {x=pos.x,y=pos.y-3,z=pos.z}
doSendMagicEffect(pos,12)
doTeleportThing(cid,newpos)
doSendMagicEffect(newpos,12)
end
end
end
2. A self closing door, when the player use a key and go through the door, they should close form self (key aid=10001)
HTML: