Hello,
I want to request an explanation or a script (Doesn't matter).
I want to know how I can use the currently character pos, and move him down 1 floor. (and no I don't want a hole! )
So I would like it to be:
But the thing is, that I want to use the Action id at multiply tiles, and u just shall fall down 1 floor. It's quite annoying to do this with the current script....
I know there is a way to do this, but I can't figure it out how to solve it.
Thanks in advance!
I want to request an explanation or a script (Doesn't matter).
I want to know how I can use the currently character pos, and move him down 1 floor. (and no I don't want a hole! )
So I would like it to be:
Lua:
function onStepIn(cid, item, pos)
BOOK_ID = 1970
if (item.actionid == 10201) then
doSendMagicEffect(getPlayerPosition(cid) ,2)
doTeleportThing(cid, {x=10039, y=10803, z=9})
doSendMagicEffect({x=10039, y=10803, z=9},10)
doPlayerSendTextMessage(cid, 19, "You just fell down!.")
end
end
return TRUE
end
I know there is a way to do this, but I can't figure it out how to solve it.
Thanks in advance!