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

Action The trapdoor!!

KungTao

New Member
Joined
May 2, 2010
Messages
34
Reaction score
0
Hi guys. Inthe original tibia there are trapdoors that only allows to pass premium accs, i want to do the same but for speciffic vocation. For example, I'm a Knight, but only sorcerers can cross the trapdoor.

How can I do that?

Thanks!!!:thumbup:
 
well try this

Lua:
local toPosition = {100, 100, 7}, --players comes to ..pos..
local type = knight,  -- can be used for vocs, types all stuffs ^^
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if is#type then
	doTeleportThing(cid, toPosition, TRUE) 
		else
              if type == creature, knight then for creature = warrior do
		return doSendCancel(cid, Sorry you are not a true #type)
		end
 
well try this

Lua:
local toPosition = {100, 100, 7}, --players comes to ..pos..
local type = knight,  -- can be used for vocs, types all stuffs ^^
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if is#type then
	doTeleportThing(cid, toPosition, TRUE) 
		else
              if type == creature, knight then for creature = warrior do
		return doSendCancel(cid, Sorry you are not a true #type)
		end
get off these fourms, and read a lua wiki and come back in 7 years

@Thread
Code:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
	if(not isSorcerer(cid) and isPlayer(cid)) then
		doTeleportThing(cid, fromPosition, true)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only Sorcerers may pass!")
	end
end
 
well try this

Lua:
local toPosition = {100, 100, 7}, --players comes to ..pos..
local type = knight,  -- can be used for vocs, types all stuffs ^^
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if is#type then
	doTeleportThing(cid, toPosition, TRUE) 
		else
              if type == creature, knight then for creature = warrior do
		return doSendCancel(cid, Sorry you are not a true #type)
		end

I have to say it (even if I'm an atheist)... God, why?!
 
get off these fourms, and read a lua wiki and come back in 7 years

@Thread
Code:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
	if(not isSorcerer(cid) and isPlayer(cid)) then
		doTeleportThing(cid, fromPosition, true)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only Sorcerers may pass!")
	end
end


Lolzor !!!!
 
Back
Top