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

[Request] Moveback Function

Keraxel

Ω Obfuscator Ω
Joined
Feb 2, 2008
Messages
941
Reaction score
5
Location
Republic of Poland
I need moveback function. It mean:

Code:
00000000
000Q0000
00RXF000
000P0000
00000000
X - tile with moveback function
P/R/Q/F - If player is in P position function get him back to P, if in R then move back to R etc.

Just move back player ;)

Thanks in advance,
Keraxel.
 
Here, try this:
Code:
function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) == TRUE or isCreature(cid) == TRUE then
		doTeleportThing(cid, fromPosition, FALSE)
	end
	return TRUE
end
 
if isPlayer(cid) == TRUE or isCreature(cid) == TRUE then

totally stupid!
rather
if isCreature(cid) == TRUE then
 
PHP:
function moveBack(cid, fromPosition)
	if isCreature(cid) == TRUE then
		doTeleportThing(cid, fromPosition, FALSE)
	end
end

and then to use it: moveBack(cid, fromPosition) :p
 
Back
Top