Jump to content
MakeWebGames

Regaining Energy While In Battle


spazz

Recommended Posts

I am not sure if it is supposed to happen or not but my players tell me that when they are in a battle they re-gain energy, obviously due to the cron running. It is annoying quite a few of them and asked if I could fix it. Is there a way to keep a player from regaining energy while in a fight but re-gain like you normally would while not in a battle?

Link to comment
Share on other sites

Re: Regaining Energy While In Battle

He means the crons making them regain energy. As you did not specify which version of codes you have I will post the V1/LITE fix and hope you have one of the 2. If not then I will post V2 for you...

Here is the fix:

in braveupdate.php

FIND:

 

$query3="UPDATE users SET hp=hp+(maxhp/3) WHERE hp<maxhp";

 

REPLACE WITH:

 

$query3="UPDATE users SET hp=hp+(maxhp/3) WHERE hp<maxhp AND attacking !=1";

 

I believe that'll produce the desired effect.

Link to comment
Share on other sites

Re: Regaining Energy While In Battle

 

He means the crons making them regain energy. As you did not specify which version of codes you have I will post the V1/LITE fix and hope you have one of the 2. If not then I will post V2 for you...

 

Sorry, I am using V2 and yes I am speaking of the crons

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