Thanks for answer Coruja. I have tried that on a brand new sphere 56d and 5.0.1 client and nothing seems to change with weapons. I have even desactivated the cilocs,tooltips and all of this by default plus player event to force it to act like the old way and it didn´t work either.
The only thing i´ve been able to see in source is a getter method called armor_getdefense in armor class that contains the calculations and returns the value taking in count the enchant spell, but i´ve not found the same with weapons (my programming knowledge with OOP is quite limited and poor, so i don´t know if that´s right):
Code:
int CItem::Armor_GetDefense() const
{
ADDTOCALLSTACK("CItem::Armor_GetDefense");
// Get the defensive value of the armor. plus magic modifiers.
// Subtract for low hitpoints.
if ( ! IsTypeArmor())
return 0;
int iVal = m_defenseBase + m_ModAr;
if ( IsSetOF(OF_ScaleDamageByDurability) && m_itArmor.m_Hits_Max > 0 && m_itArmor.m_Hits_Cur < m_itArmor.m_Hits_Max )
{
int iRepairPercent = 50 + ((50 * m_itArmor.m_Hits_Cur) / m_itArmor.m_Hits_Max);
iVal = IMULDIV( iVal, iRepairPercent, 100 );
}
[b] if ( IsAttr(ATTR_MAGIC) )
iVal += g_Cfg.GetSpellEffect( SPELL_Enchant, m_itArmor.m_spelllevel );[/b]
if ( iVal < 0 )
iVal = 0;
return iVal;
}
Furthermore, with armors it happends the same for me, i can´t see the +number on them just like with weapons. I haven´t been able to find any reference in source where it shows that this value has to be displayed in the name itself of a weapon or armor.
For me is easy (and 4 everyone here lol) to do this softcoded with sphere, i store the respecting number in more2 property of the item and item name should look like this in script under create trigger:
Code:
name = a +<more2> Halberd of Vanquishing
but i was curious about it and is what so far i´ve been able to find. Maybe i have some muls files messing around with cilocs and that´s causing the trouble, but for now im not going to invest more time in that because is something easy to fix by script side.
Greetings and sorry for posting the whole holy bible here.