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

Help with Magic Level modification when equipping items "tfs 1.5 nekiro 8.0"

Mateus Robeerto

Excellent OT User
Joined
Jun 5, 2016
Messages
1,245
Solutions
68
Reaction score
601
Location
ლ(ಠ益ಠლ)
I'm facing a problem with modifying my Magic Level when equipping certain items and would like to ask for your help. Currently, when I equip an item, my Magic Level is increasing, but I would like it to remain unchanged when I equip the item. Could someone guide me on which part of the code I should change to achieve this result? Thanks in advance for any help!
 
If the magic level is increasing.. I'd check items.xml

More then likely those items have a magic level modifier added to the item.

Hat of the Mad for example
XML:
<item id="2323" article="a" name="hat of the mad">
        <attribute key="description" value="You have a vague feeling that it looks somewhat silly." />
        <attribute key="weight" value="700" />
        <attribute key="armor" value="3" />
        <attribute key="magiclevelpoints" value="1" />
        <attribute key="slotType" value="head" />
    </item>
<attribute key="magiclevelpoints" value="1" /> would be the problem line.
If you remove that line from items.xml, this item will no longer increase your magic level when putting it on.
 
I use "magicpointspercent" because it has magic damage in %,

but I tested it on tfs 1.2 celehore even with this function, it didn't increase the ML "permanent magic level" and magic damage in % normal.. I would like to know how do I do the same tfs 1.2 8.0 celehore? You understand me?
Lua:
item id="41001" name="floyd pink hat">
    <attribute key="weight" value="7100"/>
    <attribute key="armor" value="12"/>
    <attribute key="slotType" value="head"/>
    <attribute key="magicpointspercent" value="117"/>
    <attribute key="description" value=" [Inc.Magic 17%]"/>
</item>

I know it must change the font, I believe it is combat.cpp or item.cpp....
 
If you are wanting to increase the players magic damage..

Then use boostpercentmagic instead of magicpointspercent
 
If you are wanting to increase the players magic damage..

Then use boostpercentmagic instead of magicpointspercent
I already used this boostpercentmagic function, it didn't work ;/

<movevent event="Equip" itemid="41195" slot="armor" function="onEquipItem" />
<movevent event="DeEquip" itemid="41195" slot="armor" function="onDeEquipItem" />

Lua:
<item id="41195" name="teste robe">
    <attribute key="weight" value="7100"/>
    <attribute key="armor" value="18"/>
    <attribute key="slotType" value="body"/>
    <attribute key="boostpercentmagic" value="90"/>
</item>
 
Back
Top