• 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] Gate of Expertise

Alesiab

Mapper
Joined
Oct 7, 2008
Messages
26
Reaction score
0
Hi!,I am looking for something like the Bridge of rookgard that you need lvl 2 To pass, well I need something like that :) Thanks.
 
I was searching for the same script a long time ago. :p

And, why dont you posted in Request & Support :p?

I hope someone answer this question, will be helpful for us.
 
The Script is not tested I've just made it fast.

Code:
function onStepIn(cid, item, frompos, item2, topos)
local direction = {0=2,1=3,2=0,3=1}
local text = "You have successfully passed the Level ".. (item.actionid - 1000) .." Bridge."
local Text = "You May not pass the Level ".. (item.actionid - 1000) .." Bridge."
	if item.actionid == item.actionid then
		if getPlayerLevel(cid) >= (item.actionid - 1000) then
			doPlayerSendTextMessage(cid,22,text)
		else
			newdir = getPlayerLookDir(cid)
			doMoveCreature(cid,direction[newdir])
			doPlayerSendTextMessage(cid,22,Text)
		end
	end
	return TRUE
end

It works same like the doors of expertise, you set the tile actionid in the map editor to "1100" and Players of level 100 or higher can pass.

and put this into movements.xml

Code:
<movevent event="StepIn" itemid="xxxx" script="levelbridge.lua" />

kind regards, Evil Hero
 
Do this:

Put down Item ID 426 on the tile you want to require XX level.

Edit that tile and put Action ID 1002 on it. (If you want level 2, if you want level 100 put 1100, You get the point?).


All explained to you by the docs...
 
Sorry, didn't had much time the past days.

Hope this works now, removed the entire table...

Code:
function onStepIn(cid, item, frompos, item2, topos)
local text = "You have successfully passed the Level ".. (item.actionid - 1000) .." Bridge."
local Text = "You May not pass the Level ".. (item.actionid - 1000) .." Bridge."
	if item.actionid == item.actionid then
		if getPlayerLevel(cid) < (item.actionid - 1000) then
			if getPlayerLookDir(cid) < 2 then
				doMoveCreature(cid,(getPlayerLookDir(cid) + 2))
				doPlayerSendTextMessage(cid,22,Text)
			elseif getPlayerLookDir(cid) >= 2 then
				doMoveCreature(cid,(getPlayerLookDir(cid) - 2))
				doPlayerSendTextMessage(cid,22,Text)
			end
		else
			doPlayerSendTextMessage(cid,text)
		end
	end
	return TRUE
end

kind regards, Evil Hero
 
Back
Top