• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Teleport od poziomu

jesli (poziom(gracz) > poziom_wymagany) wtedy
teleportuj(x,y,z)
w_innym_wypadku wyswietl_mesidza("wal sie grajerze nie masz " ..::wymagany_poziom::.. " levelu")
 
Code:
function onStepIn(cid, item, position, fromPosition)
local level = getPlayerLevel(cid)
newnPosition = {x=1000, y=1000, z=7}
	if level => 80
		doTeleportThing(cid,newnPosition)
		doSendMagicEffect(newnPosition, 10)
	else
		doCreatureSay(cid, "Too low lvl", TALKTYPE_ORANGE_1)
	end
	return true
end
Nie działa mi.
 
Code:
function onStepIn(cid, item, position, fromPosition)
local level = getPlayerLevel(cid)
newnPosition = {x=1000, y=1000, z=7}
	if level => 80
		doTeleportThing(cid,newnPosition)
		doSendMagicEffect(newnPosition, 10)
	else
		doCreatureSay(cid, "Too low lvl", TALKTYPE_ORANGE_1)
	end
	return true
end
Nie działa mi.

Brakuje 'then' na końcu linijki w której sprawdzasz level
 
Ten skrypt ma być na actionid,
i skrypt ma wyglądać tak ?
Code:
function onStepIn(cid, item, position, fromPosition)
local level = getPlayerLevel(cid)
newnPosition = {x=1000, y=1000, z=7}
	if level >= 80
        then
		doTeleportThing(cid,newnPosition)
		doSendMagicEffect(newnPosition, 10)
	else
		doCreatureSay(cid, "Too low lvl", TALKTYPE_ORANGE_1)
	end
	return true
        end
 
LUA:
function onStepIn(cid, item, position, fromPosition)
local level = getPlayerLevel(cid)
local newnPosition = {x=1000, y=1000, z=7}
	if level >= 80 then
		doTeleportThing(cid,newnPosition)
		doSendMagicEffect(newnPosition, 10)
	else
		doCreatureSay(cid, "Too low lvl", TALKTYPE_ORANGE_1)
	end
return true
end
 
Back
Top