DungeonMaster Posted June 18, 2013 Posted June 18, 2013 Where can I raise the default number of AP from 20 to a higher number? Does the number of AP a user have increase as their character grows? Is there link to show what crons need to be setup and for what time period if you do not want to use the in page pseudo cron? Quote
a_bertrand Posted June 18, 2013 Posted June 18, 2013 if you check the install/package.sql file, you will see line 6 is: insert into user_stat_types(id,name,initial_value,max_value,restore_rate) values(4,'AP',20,20,0.5); This defines the AP stat, as well as the initial value, max value and restore rate. Tweak this line in your DB and you should have it tweaked on your game. BTW you may need to logout and login to see the effects. In the same way you can create new stats or remove stats. Quote
DungeonMaster Posted June 18, 2013 Author Posted June 18, 2013 Thanks and this: Is there link to show what crons need to be setup and for what time period if you do not want to use the in page pseudo cron? Quote
a_bertrand Posted June 18, 2013 Posted June 18, 2013 No there is currently no docs in the wiki, but basically: 1) You should add a .htaccess to the cron module which would allow you to call it if you use wget, otherwise use the PHP cli 2) You should create a cron entry pointing to your game/modules/auto_pre_content.php (and call it every day) 3) set the config key variables embeddedCron to false Quote
DungeonMaster Posted June 18, 2013 Author Posted June 18, 2013 I was talking about updating AP every 5 minutes or so rather than relying to actions in the game doing it - this is something I will have to code or is part of the file you described? Quote
a_bertrand Posted June 18, 2013 Posted June 18, 2013 There is no crons for updating the AP every 5 min. So unless you code the recover differently you will not be able to have a cron for it. Anyhow why would you do that? Quote
DungeonMaster Posted June 19, 2013 Author Posted June 19, 2013 Anyhow why would you do that? To have a certain control on how they recover. The way ti works now is based on time counter or number of page visits? Quote
a_bertrand Posted June 19, 2013 Posted June 19, 2013 It's based on a time counter of course. A number of page visit would make no sense. Also you have full flexibility on how fast it recover ;) Quote
DungeonMaster Posted June 20, 2013 Author Posted June 20, 2013 This defines the AP stat, as well as the initial value, max value and restore rate. Tweak this line in your DB and you should have it tweaked on your game. BTW you may need to logout and login to see the effects. In the same way you can create new stats or remove stats. I have adjusted this line, logged out and then went back in but it does not change the max value nor the rate. Quote
a_bertrand Posted June 20, 2013 Posted June 20, 2013 not only change it on the file DM, but that line need to be changed in the DB ;) Quote
DungeonMaster Posted June 20, 2013 Author Posted June 20, 2013 I did make the change in the DB, what files need editing also? Quote
DungeonMaster Posted June 20, 2013 Author Posted June 20, 2013 Also I am noticing it updates by "1" and then by ".5" alternately, it is meant to work like that? Quote
a_bertrand Posted June 20, 2013 Posted June 20, 2013 I just checked, and it works fine, however you will need to clean the user_stats table as it stores the max_value there as well. The idea here is that you could have a max_value per user for example, for donors, or based on level or whatever. Quote
DungeonMaster Posted June 20, 2013 Author Posted June 20, 2013 (edited) Which specific files updates this because even though I have the value changed for a user it resets it back to the original 20. Update: I see, you have to logout and then apply the change for the user. Edited June 20, 2013 by DungeonMaster Quote
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.