• 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 Someone have this?

Stewie

Family Guy # ;3
Joined
May 3, 2010
Messages
786
Reaction score
12
Location
TV
I wold like a tile only X vocation can pass.

Thanks,
Stewie.
 
LUA:
function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) and isInArray({1, 5}, getPlayerVocation(cid)) == FALSE then
		doRelocate(position, fromPosition)
                doPlayerSendCancel(cid, "You need to be a sorcerer to pass.")
        end
end
 
Last edited:
:P don't laugh i sux at this, try it cause I dont know if it will work

LUA:
function onStepIn(cid, item, frompos, itemEx, topos)
	if not isKnight(cid) then
	doRelocate(position, fromPosition)
	doCreatureSay(cid, "You are not a Knight", TALKTYPE_ORANGE_1)
	end
	return TRUE
end
 
LUA:
function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) and isInArray({1, 5}, getPlayerVocation(cid)) == FALSE then
		doRelocate(position, fromPosition)
                doPlayerSendCancel(cid, "You need to be a sorcerer to pass.")
        end
end

Thanks,i has edited something to work.


REP +
 
Back
Top