Aeronx
Intermediate OT User
- Joined
- Dec 17, 2015
- Messages
- 746
- Solutions
- 9
- Reaction score
- 125
Hello everyone and thanks for your time!
Well, i've been messing around with some custom items i'm doing and i've seen this problem.
if I use something like this:
and i do this on movements.xml:
The item won't give magiclevelpoints :/
but, if i use it like this:
It works perfectly. So why using a script on an item mess it up?
Is there a way to work around this to make it work? Thanks to everyone!
~Aeronx TLKserver
Well, i've been messing around with some custom items i'm doing and i've seen this problem.
if I use something like this:
Code:
<item id="24855" article="a" name="Magma Rainment Vision">
<attribute key="weight" value="3500" />
<attribute key="armor" value="10" />
<attribute key="magiclevelpoints" value="5" />
<attribute key="slotType" value="head" />
<attribute key="absorbPercentFire" value="5" />
<attribute key="absorbPercentIce" value="-5" />
<attribute key="showattributes" value="1" />
</item>
and i do this on movements.xml:
Code:
<movevent event="Equip" itemid="24855" slot="head" function="onEquipItem" script="config.lua">
<vocation name="Wizard" />
<vocation name="Sage Wizard" showInDescription="0" />
</movevent>
<movevent event="DeEquip" itemid="24855" slot="head" function="onDeEquipItem" script="config.lua"/>
The item won't give magiclevelpoints :/
but, if i use it like this:
Code:
<movevent event="Equip" itemid="24855" slot="head" function="onEquipItem">
<vocation name="Wizard" />
<vocation name="Sage Wizard" showInDescription="0" />
</movevent>
<movevent event="DeEquip" itemid="24855" slot="head" function="onDeEquipItem"/>
It works perfectly. So why using a script on an item mess it up?
Is there a way to work around this to make it work? Thanks to everyone!
~Aeronx TLKserver