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

on step in script for access level people

Angel Of Death

Rise Of Tibia ServerOwner
Joined
Mar 12, 2012
Messages
91
Reaction score
0
alright i need a script for different access levels so if a god steps on a certain tile with a unique id if the player is not a god it teleports the play back a tile and if the player is a god it will let the player walk on passed


LUA:
onstepin(what ever goes here)

topos= x, y ,z 

if(getPlayerAccess(cid) == 3) then
do (messageplayer,welcome)
elseif 
its a player or a diffrent access level then 
do(teleport player ,topos ) then
do (messageplayer, Your not welcome here)

And Thats my scripting cuzz i suck at it
if some one can rescript my scripting that would be awsome ;)
 
LUA:
function onStepIn(cid, item, position, fromPosition) 	
 if isPlayer(cid) == TRUE then	   
    if getPlayerAccess(cid) < 3 then
	doTeleportThing(cid, fromPosition)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You are not Welcome.')
    end 
    return true 
	end
end
 
Back
Top