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

Support please

Snakie

New Member
Joined
Apr 15, 2010
Messages
263
Reaction score
4
Hello i made a donor axe from a solar axe but i got a problem i cant figure out how to make so only knights and elite knights can use it right now its for evrybody above lvl 140. Maybe it could be done in action.xml? please someone help me!

I'll give rep++ to the one who helps me.
 
Here try this:
Code:
function onEquip(cid, item, slot)
	local allowed = {3, 7}
	if not(isInArray(allowed, getPlayerVocation(cid))) then
		doPlayerSendCancel(cid, "This can only be equiped by Knights and Elite Knights.")
		return false
	else
		doSendMagicEffect(getCreaturePosition(cid), 13)
		return true
	end
end
PHP:
<movevent type="Equip" itemid="Donator_Itemid" slot="5;6" event="script" value="donatoraxe.lua"/>
tell me if anything happens!
 
Back
Top