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

Solved Required level to walk on tile

Lightonia

Lightonia.servegame.com
Joined
Jun 4, 2007
Messages
492
Reaction score
9
Hi there, this is a MoveEvent script that when you walk on the tile it pushes you back if you are not correct level, the problem is.. it doesnt push you back but the rest functions very well.



Ive set AID: 16821 on the movements.xml
Code:
<movevent type="StepIn" actionid="16821" event="script" value="leveltile.lua" />
Well heres the script
LUA:
function onStepIn(cid, item, frompos, itemEx, topos)
    if getPlayerLevel(cid) > 140 then 
        doPlayerSendTextMessage(cid, "Good Luck.")
    else
        doPlayerSendCancel(cid, "You need to be level 140 to enter this Sky Quest")
        doTeleportThing(cid, frompos, true)
    end
    return true
end
 
Solved in PM, for anyone with the same problem.
LUA:
function onStepIn(cid, item, position, fromPosition)
	if getPlayerLevel(cid) > 140 then 
        	doPlayerSendTextMessage(cid, "Good Luck.")
    	else
        	doPlayerSendCancel(cid, "You need to be level 140 to enter this Sky Quest")
        	doTeleportThing(cid, fromPosition)
    	end
    	return true
end
 
Back
Top