getMainHandDurability() not returning dura in % anymore
Posted: Wed Dec 26, 2012 9:07 am
Hello,
I just wondered why my scripts make my characters running to the mearchant all the time
I set the userprofile to check MainHandDurability after each fight end then decide wether to go to repair or not at 90% of the main hand dura.
some characters are equiped with weapons with over 90 durability e.g. 97/97, and they repair their weapons when dura drops below 90 (absolute value)
others are equiped with weapons with lower dura e.g. 85/85. they alway want to repair, coz they never reach a MainHandDurability over 85 for exsample.
inventory:getMainHandDurability() no more returns the dura in %. It returns the absolute value of the actual dura.
This behaviour seems to be new, since I used the scripts for a long time, but now i run into this prob.
Can we fix this or how do i get the actual dura and the max dura of the mainhand weapon to calculate the durability in %?
Thanx
Ric
I just wondered why my scripts make my characters running to the mearchant all the time
I set the userprofile to check MainHandDurability after each fight end then decide wether to go to repair or not at 90% of the main hand dura.
some characters are equiped with weapons with over 90 durability e.g. 97/97, and they repair their weapons when dura drops below 90 (absolute value)
others are equiped with weapons with lower dura e.g. 85/85. they alway want to repair, coz they never reach a MainHandDurability over 85 for exsample.
inventory:getMainHandDurability() no more returns the dura in %. It returns the absolute value of the actual dura.
This behaviour seems to be new, since I used the scripts for a long time, but now i run into this prob.
Can we fix this or how do i get the actual dura and the max dura of the mainhand weapon to calculate the durability in %?
Thanx
Ric