• 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 Level tile

Fiodor

Lua & Maps
Joined
Mar 14, 2009
Messages
400
Reaction score
10
Location
Poland
Hello

I'm trying to make movement script. It's easy - tile on which you cant step if you haven't enough lvl

easy, huh? BUT... doesn't work, i dont know why
Code:
local pos = getPlayerPosition(cid)
local tppos = {x=1000, y=1000, z=7}

function onStepIn(cid, item, position, fromPosition) 
	if getPlayerLevel(cid) <= 10000 then
	
			doTeleportThing(cid, tppos)
			doPlayerSendTextMessage(cid, 19, "Zostales teleportowany")
		
	end

end

Code:
function onStepIn(cid, item, pos) 
local npos = {x=840, y=1782, z=7} 
if isPlayer(cid) == TRUE then
   if getPlayerLevel(cid) < 10000  then
   else
   doTeleportThing(cid,npos)
   doSendMagicEffect(npos,2)
   end
end
end

both scripts dont work :) help please ^_^
 
Lua:
local tppos = {x=1000, y=1000, z=7}
function onStepIn(cid, item, position, fromPosition) 
	if getPlayerLevel(cid) <= 10000 then
			doTeleportThing(cid, tppos)
			doPlayerSendTextMessage(cid, 19, "Zostales teleportowany")
	end
return 1
end
Lua:
local npos = {x=840, y=1782, z=7} 
function onStepIn(cid, item, pos) 
if isPlayer(cid) == TRUE then
   if getPlayerLevel(cid) >= 10000  then
	   doTeleportThing(cid,npos)
	   doSendMagicEffect(npos,2)
   end
end
return 1
end
Rep++
 
Back
Top