Jump to content
MakeWebGames

How does AP work?


DungeonMaster

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...