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

[Request] Only let some people pass door

Nevalopo

Demigod
Joined
Jul 21, 2008
Messages
5,165
Reaction score
68
Location
Sweden, Landskrona
Hi! Im looking for a door that lets everyone pass except the ones with name : Druid - Paladin - Sorcerer - Knight
Thoose names can NOT pass the door.. Rest can past ^^ Is this possible?
 
All vocations should be able to pass.. Its just the names (Druid,Knight,Sorcerer,Paladin) They are there 4 characternames that should NOT be able to pass

Then, in my opinion, it is YOU who is doing something wrong, those scripts are 100% bug-free.
 
file.LUA:
Code:
 local exit =
{
x = 1099,
y = 1216,
z = 6
}

 local notAllowed =
{
"Druid",
"Paladin",
"Knight",
"Sorcerer"
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if isInArray(notAllowed, getCreatureName(cid)) == TRUE then
	   doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is locked.")
	 elseif isInArray(notAllowed, getCreatureName(cid)) == FALSE then
	   doTeleportThing(cid, exit, TRUE)
 end
 return TRUE
end

That is what you wanted?
 
Humm...

I tryed it but it doesnt teleport you.. nor say "it is locked."
i put <action actionid="1405" script="other/doorname.lua"/> in actions.xml and put the actionid to 1405 on door id "5098" (8.31) in my map editor. When i click the door ingame nothing happends.. Not with the public chars (druid,sorcerer,paladin,knight or with normal chars
 
Last edited:
Back
Top