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

Level Requirement! [Items]

Platinum

New Member
Joined
Jan 3, 2008
Messages
12
Reaction score
0
I dont know if this is the right forum, but Id like to know where I can edit the level requirement of items such as spellbooks and paladin armors.. Also Id like to know how I change for example the books so they can only be wielded by mages.. anyone?

In advance, Thanks
 
help?

yes same question as him, how do i edit level requirements on armors? and also how to i make it so only one vocation can use the armor too?
 
Weapons.xml

Example of vocations only using certain armors/weapons:
PHP:
	<distance id="8858" level="70" unproperly="1" function="default"> <!-- Elethriel's Elemental Bow -->
		<vocation name="Paladin"/>
		<vocation name="Royal Paladin" showInDescription="0"/>
	</distance>
 
Weapons.xml

Example of vocations only using certain armors/weapons:
PHP:
	<distance id="8858" level="70" unproperly="1" function="default"> <!-- Elethriel's Elemental Bow -->
		<vocation name="Paladin"/>
		<vocation name="Royal Paladin" showInDescription="0"/>
	</distance>

So distance id= is for weapons, but i have tried item id= for armor and it doesnt change it. Seems like armors lvl requirements is un changable, its not in items.xml and wudnt work in weapons.xml
 
Mabe by me(not tested):
*Movement

paladin_armor.LUA
PHP:
local level = 70

function onEquip(cid, item)
	if item.id == 8891 then
	if isLevel == -level then
	   doPlayerSendCancel(cid, "Sorry, You need level "..level..".")
  end
 end
  return TRUE
end

function onDeEquip(cid, item)
	if item.id == 8891 then
 end
 return TRUE
end

movements.XML
PHP:
	<movevent event="Equip" itemid="8891" slot="body" function="onEquipItem" script="paladin_armor.lua"/>
	<movevent event="DeEquip" itemid="8891" slot="body" function="onDeEquipItem" script="paladin_armor.lua"/>
 
Back
Top