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

Solved How To Remove Level Requirement To Items?

preguntonontrac

New Member
Joined
Jun 20, 2013
Messages
68
Reaction score
3
Is there anyway to remove in my server the level requirement of armors, swords, health pot... etc? Ive been searching on the data file but the only related thing i found was in the global lua file and i dint understand it. I know i can do it by scripting but is strange with all the options available on TFS 2.15 there is no one for item level requirement.
 
Last edited:
Possible to edit the level req of weapons inside data/weapons/weapons.xml I guess.

Like this:
Code:
<melee id="2377" level="20" unproperly="1" event="function" value="default"/>
	<!-- Magic Longsword -->
<melee id="2390" level="140" unproperly="1" event="function" value="default">
	<vocation id="4"/>
	<vocation id="8" showInDescription="0"/>
</melee>
	<!-- Fire Sword -->
<melee id="2392" level="30" unproperly="1" event="function" value="default"/>
	<!-- Giant Sword -->
<melee id="2393" level="55" unproperly="1" event="function" value="default">
	<vocation id="4"/>
	<vocation id="8" showInDescription="0"/>
</melee>
 
More like 10% but still thanks for the answer still i knew that one i want to remove all equipment and some runes and pots lvl requirement.

ALSO... I forgot i want to remove the vocation limit. Except for wands.
 
1-if you want to remove the vocation limit it is in movement.xml
2-to remove the pots you need to remove it from Actions/scripts/liquids/potions Remove This Line Or Edit It
(Don't Leave It Empty)
Lua:
vocations = {3, 4, 7, 8, 9, 10 , 11, 12}

- - - Updated - - -

Rep++ me if i helped
 
I guess pots can be done here:

elseif(item.itemid == strongHealthPot) then
if(not(isKnight(cid) or isPaladin(cid)) or (getPlayerLevel(cid) < 50)) and not(getPlayerGroupId(cid) >= 2) then
doCreatureSay(cid, "This potion can only be consumed by paladins and knights of level 50 or higher.", TALKTYPE_ORANGE_1)
return TRUE

and i know i can remove limits from for example in weapons adding all voc the ids... but there is not an easier way?

Like disable equipment level = true?

- - - Updated - - -

1-if you want to remove the vocation limit it is in movement.xml
2-to remove the pots you need to remove it from Actions/scripts/liquids/potions Remove This Line Or Edit It
(Don't Leave It Empty)
Lua:
vocations = {3, 4, 7, 8, 9, 10 , 11, 12}

- - - Updated - - -



Rep++ me if i helped

...and is in potions not liquid or maybe i am wrong.
 
i don't know which TFS are you using mine is in Actions/Scripts/liquids/Potions

- - - Updated - - -

for the equipment you should remove every vocation id=
 
The potions part seems workable with my lua experience but the equipment in the movement XML thats just crazy. Should i remove everything from each section? for example delete the armor section? or that will make armors not usable?
 
Don't remove the eq in movements.xml else some item attributes like skill and magiclevel won't work. But you can remove the level part.
 
I dont see any level thing in the movement thingy for example here is the magic plate armor:

Code:
<movevent event="DeEquip" itemid="2466" slot="armor" function="onDeEquipItem"/>
	<movevent event="Equip" itemid="2472" slot="armor" function="onEquipItem">
		<vocation name="Knight"/>
		<vocation name="Elite Knight" showInDescription="0"/>
		<vocation name="Paladin"/>
		<vocation name="Royal Paladin" showInDescription="0"/>
	</movevent>
	<movevent event="DeEquip" itemid="2472" slot="armor" function="onDeEquipItem"/>
	<movevent event="Equip" itemid="2476" slot="armor" function="onEquipItem">
		<vocation name="Knight"/>
		<vocation name="Elite Knight" showInDescription="0"/>
		<vocation name="Paladin"/>
		<vocation name="Royal Paladin" showInDescription="0"/>
 
MPA doesn't have any level requirement as default though, but take a look at Yalahari Armor for example
Code:
<!-- Yalahari Armor -->
    <movevent type="Equip" itemid="9776" slot="armor" [COLOR=#ff0000]level="80"[/COLOR] event="function" value="onEquipItem">
        <vocation id="4"/>
        <vocation id="8" showInDescription="0"/>
    </movevent>
 
Here is Yalahari Armor:
Code:
<movevent event="Equip" itemid="9776" slot="armor" level="80" function="onEquipItem">
		<vocation name="Knight"/>
		<vocation name="Elite Knight" showInDescription="0"/>

So if i remove:
Code:
 level="80"

and
Code:
<vocation name="Knight"/>
		<vocation name="Elite Knight" showInDescription="0"/>

It will remove the level requirement and any vocation can wear it without damaging the item?
 
Not the vocation, only the level.

Vocation name= "knight and vocation name = elite knight
This restricts it to these vocations. If you would remove those it should work.
 
Not the vocation, only the level.

Vocation name= "knight and vocation name = elite knight
This restricts it to these vocations. If you would remove those it should work.

Now i am confused, I want any vocation to wear them too... So i remove this:
Code:
<vocation name="Knight"/>
		<vocation name="Elite Knight" showInDescription="0"/>

or just
Code:
<vocation name="Knight"/>
		<vocation name="Elite Knight"
 
Back
Top