spazz Posted February 2, 2008 Share Posted February 2, 2008 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? Quote Link to comment Share on other sites More sharing options...
Tezza` Posted February 2, 2008 Share Posted February 2, 2008 Re: Regaining Energy While In Battle Is it not the weapon you have made, so the effect you have put on it is to regain energy? Quote Link to comment Share on other sites More sharing options...
Jesse60905 Posted February 3, 2008 Share Posted February 3, 2008 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. Quote Link to comment Share on other sites More sharing options...
spazz Posted February 3, 2008 Author Share Posted February 3, 2008 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 Quote Link to comment Share on other sites More sharing options...
Jesse60905 Posted February 3, 2008 Share Posted February 3, 2008 Re: Regaining Energy While In Battle The fix above will work for V2 also. Just in the cron_fivemin.php file. EDIT: My brand new keyboard is messing up... God dammit... Quote Link to comment Share on other sites More sharing options...
Jesse60905 Posted February 3, 2008 Share Posted February 3, 2008 Re: Regaining Energy While In Battle Also... Why is your name spazz...? Quote Link to comment Share on other sites More sharing options...
BlatantDude Posted February 3, 2008 Share Posted February 3, 2008 Re: Regaining Energy While In Battle I wonder... :roll: Quote Link to comment Share on other sites More sharing options...
Jesse60905 Posted February 3, 2008 Share Posted February 3, 2008 Re: Regaining Energy While In Battle Hey. My post was inquisitive. That's just mean. Quote Link to comment Share on other sites More sharing options...
BlatantDude Posted February 3, 2008 Share Posted February 3, 2008 Re: Regaining Energy While In Battle Jesse60905, im as curious why his name is "spazz" as much as your are ! Quote Link to comment Share on other sites More sharing options...
Jesse60905 Posted February 3, 2008 Share Posted February 3, 2008 Re: Regaining Energy While In Battle Well be nicer about it then. Quote Link to comment Share on other sites More sharing options...
BlatantDude Posted February 3, 2008 Share Posted February 3, 2008 Re: Regaining Energy While In Battle Ok then Jesse60905, I'll be nice :-D Quote Link to comment Share on other sites More sharing options...
spazz Posted February 3, 2008 Author Share Posted February 3, 2008 Re: Regaining Energy While In Battle Spazz? It's just a name that has stuck with me. My wife used to call me it all the time and I just use it on the net.... Quote Link to comment Share on other sites More sharing options...
BlatantDude Posted February 3, 2008 Share Posted February 3, 2008 Re: Regaining Energy While In Battle Fair enough.. 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.