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

Hello! i need help with maximum door level! rep!

Printer

if Printer then print("LUA") end
Senator
Premium User
Joined
Dec 27, 2009
Messages
5,780
Solutions
31
Reaction score
2,299
Location
Sweden?
Hello, i need help with max door level at config i wrote 2000 then it doesnt work on the doors, i think i need edit soruce or smth. pleasse help rep will you get if you help me!

Tfs 0.3.6
 
Try
LUA:
config =
{
	minlevel = 0,
	maxlevel = 150
}

function onUse(cid, item, fromPos, itemEx, toPos)
	if (getPlayerLevel(cid) < config.minlevel or getPlayerLevel(cid) > config.maxlevel) then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only the worthy may pass.")
	else
		doTransformItem(item.uid, item.itemid + 1)
		doTeleportThing(cid, toPos)
	end
	
	return true
end
 
should i put the id of the door at action.xml? and what should i add at the door what id?
 
that will be painful to do on everydoor :S cant i do a source edit please someone :(
 
Back
Top