L2JMobius

Interlude Interlude Unhandled stat type problem

Usedy06 · 3 · 124

Offline Usedy06

  • Vassal
  • *
    • Posts: 9
Hello,

I am working on an Interlude server using the L2JMobius framework. I am trying to add stats to a custom item. While my XML structure used to work flawlessly on older L2Jmobius versions, the current Mobius core refuses to recognize certain stat types and throws errors during server startup.

Here is the exact error log I receive:

[16/05 09:42:36] Unhandled stat type MAX_HP
[16/05 09:42:36] Unhandled stat type MAX_CP
[16/05 09:42:36] Unhandled stat type REGENERATE_HP_RATE
[16/05 09:42:36] Unhandled stat type REGENERATE_MP_RATE
[16/05 09:42:36] Unhandled stat type REGENERATE_CP_RATE
[16/05 09:42:36] Unhandled stat type MAGIC_ATTACK_SPEED
[16/05 09:42:36] Unhandled stat type MOVE_SPEED
[16/05 09:42:36] Unhandled stat type WEIGHT_LIMIT
[16/05 09:42:36] Unhandled stat type REFLECT_DAMAGE_PERCENT
[16/05 09:42:36] Unhandled stat type MAGIC_REUSE_RATE
[16/05 09:42:36] Unhandled stat type P_REUSE

Even though I have checked the Stat.java file and tried changing the XML attributes accordingly, the server still reports these stats as unhandled and the custom item doesn't work properly in-game.

Could anyone point out what I might be missing or how the new XML stat structure should look for these specific attributes in recent Mobius builds?

Thank you in advance!

here is my xml info:

<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/items.xsd">
<item id="9300" type="Armor" name="Gm Tattoo">
      <set name="icon" val="icon.accessary_mask_of_chaotic_i00" />
      <set name="default_action" val="EQUIP" />
      <set name="bodypart" val="underwear" />
      <set name="immediate_effect" val="true" />
      <set name="material" val="WOOD" />
      <set name="weight" val="10" />
      <set name="is_tradable" val="false" />
      <set name="is_dropable" val="false" />
      <set name="is_sellable" val="false" />
      <stats>
         <stat type="pDef">999</stat>
         <stat type="mDef">999</stat>
         <stat type="pAtk">999</stat>
         <stat type="mAtk">999</stat>
         <stat type="maxHp">999</stat>
         <stat type="maxMp">999</stat>
         <stat type="maxCp">999</stat>
         <stat type="regHp">99</stat>
         <stat type="regMp">99</stat>
         <stat type="regCp">99</stat>
         <stat type="pAtkSpd">999</stat>
         <stat type="mAtkSpd">99</stat>
         <stat type="accCombat">50</stat>
         <stat type="rEvas">50</stat>
         <stat type="runSpd">99</stat>
         <stat type="weightLimit">999</stat>
         <stat type="reflectDam">99</stat>
         <stat type="mReuse">1.0</stat>
         <stat type="pReuse">1.0</stat>
      </stats>
   </item>
</list>


Online Mobius

  • Distinguished King
  • *****
    • Posts: 19654
You should be able to use the old XML formal with skills.

Make a skill with those stats and add that skill to the item.


Offline Usedy06

  • Vassal
  • *
    • Posts: 9
Instead of that, I just added all stat definitions into the Documentitem.java file and it fixed the problem. I think this way was much easier. Problem solved.