Page 1 of 1

how do i add Combat stats?

Posted: Sat Mar 15, 2014 8:23 pm
by KaL
i'm trying to build a module to add combat stats as a reward.

i have tried:

$user = LoadCombatStats($userId);

$user['max_damage']->value+=8; (fail)
$user['max_damage'] + 8; (fail)

i notice combat stats is not a database value. More like a database value after an operator end result.
Can you tell me what is the best step to achieve this process?

Re: how do i add Combat stats?

Posted: Sun Mar 16, 2014 4:58 am
by a_bertrand
Those are just in the combat module. Check out when / where I set them up and you will be able to modify them. It's in the lib file of the combat BTW.

Re: how do i add Combat stats?

Posted: Mon Mar 17, 2014 1:46 am
by KaL
Thanks again. Yeah, I checked it out already. Those value are not store value. So I decided to use the database stats to influence the combat stats instead. It works great!