orsino Posted November 23, 2013 Share Posted November 23, 2013 hi i have a question in order to do crimes on my game i added a new stat (nerve) in the database that works like the AP stat it works fine when i do crimes it takes the stat away but the new stat type does not fill up again . do i need to change or ad anything else ? Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted November 23, 2013 Share Posted November 23, 2013 In the table user_stat_types you need to set some value to the restore_rate of your new stat (nerve). AP have a value of 0.5 which means it restores 1/2 an AP per minute. It's the module restore_stats and more specifically the auto_pre_content.php file of it which does the start restore, you may check the code to see how it works. Quote Link to comment Share on other sites More sharing options...
orsino Posted November 23, 2013 Author Share Posted November 23, 2013 (edited) i did that for nerve its also 0.5 edit seems to be working now Edited November 23, 2013 by orsino Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted November 24, 2013 Share Posted November 24, 2013 Make sure you log out / log in again after you change the stat_types table, as those info are cached in the session for performance reasons. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.