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

Tiles that moves you down / up

tosse12

Panchira Project Member
Joined
Jun 10, 2007
Messages
864
Reaction score
9
Location
Sweden
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! :D)

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
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!
 
Back
Top