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

Lua doTeleportThing()

DedicatedOT

New Member
Joined
Jun 13, 2009
Messages
977
Reaction score
4
Location
USA
Hey
this is what i used:

Code:
local quest = {x=183,y=303,z=12}
function onStepIn(cid, item, position, fromPosition)
	if item.actionid > 30020 and item.actionid < 30100 then
		doPlayerSetTown(cid, item.actionid - 30020)
	end
if item.actionid == 15002 then
		if getPlayerLevel (cid) >= 210 then
			doTeleportThing (cid, quest, TRUE)
			doPlayerSendTextMessage(cid, TALKTYPE_BROADCAST, "Get ready!")
		else
			doTeleportThing (cid, temple, TRUE)
			doSendMagicEffect(getCreaturePos(cid), 10)
			doCreatureSay ( cid, "You are not level 210. Come back later.", TALKTYPE_ORANGE_1 )			
		end		
end
	return TRUE
end

How come after being teleported I cannot move? And if i say /t, it crashes...
 
where's templePos?
doTeleportThing (cid, temple, TRUE)
and...
doTeleportThing(cid, newpos, <optional> pushmove)
you dont need to use TRUE.
try without it.. use FALSE.
 
Temple pos is there, i just forgot to put it in my previous post.

I tried TRUE, FALSE, and nothing. It still crashes.

When I get out of the teleport, it says I cannot move....

And if I move, or say /t, or try anything, it crashes.
 
Back
Top