Jump to content
MakeWebGames

Recommended Posts

Posted

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?

Posted

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.

Posted

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

Posted

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.

Posted

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.

Posted (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 by DungeonMaster

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...