spazz Posted February 2, 2008 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
Tezza` Posted February 2, 2008 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
Jesse60905 Posted February 3, 2008 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
spazz Posted February 3, 2008 Author 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
Jesse60905 Posted February 3, 2008 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
Jesse60905 Posted February 3, 2008 Posted February 3, 2008 Re: Regaining Energy While In Battle Also... Why is your name spazz...? Quote
BlatantDude Posted February 3, 2008 Posted February 3, 2008 Re: Regaining Energy While In Battle I wonder... :roll: Quote
Jesse60905 Posted February 3, 2008 Posted February 3, 2008 Re: Regaining Energy While In Battle Hey. My post was inquisitive. That's just mean. Quote
BlatantDude Posted February 3, 2008 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
Jesse60905 Posted February 3, 2008 Posted February 3, 2008 Re: Regaining Energy While In Battle Well be nicer about it then. Quote
BlatantDude Posted February 3, 2008 Posted February 3, 2008 Re: Regaining Energy While In Battle Ok then Jesse60905, I'll be nice :-D Quote
spazz Posted February 3, 2008 Author 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
BlatantDude Posted February 3, 2008 Posted February 3, 2008 Re: Regaining Energy While In Battle Fair enough.. 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.