Strats Posted May 10, 2009 Posted May 10, 2009 Lol A while ago I asked about making an item that increases your will for a certain amount of time. 25% for 5 mins - Not going back to 100% until the 5 mins is up. Well that one works, I tried to make one that was 50% for 15 mins I wanted this item to be a donator item. But this one only seems to last 3 mins then goes back to normal. Is this right? : if($ir['willtime'] > 0){die("Sorry only one drink can be drank at a time");} else { $db->query("UPDATE users SET will=will+will/2,willtime=15 WHERE userid={$userid}"); } Quote
Lithium Posted May 10, 2009 Posted May 10, 2009 Re: Another Will Mod Question that code bit is not wrong, though if it lasts as you say, only 3 minutes instead the wanted 15... you need to have a look to the place where you decrease the "willtime" and check what might be wrong there... Quote
Strats Posted May 10, 2009 Author Posted May 10, 2009 Re: Another Will Mod Question I haven't changed anything like that. What file should I look at? Quote
_Ricky_ Posted May 10, 2009 Posted May 10, 2009 Re: Another Will Mod Question in cron_fiveminutes.php you have $query4="UPDATE users SET will=maxwill WHERE will>maxwill"; i could be wrong...but if you have that might want to rid of it...if you plan on letting them have more than 100 percent for 15 minutes Quote
Strats Posted May 10, 2009 Author Posted May 10, 2009 Re: Another Will Mod Question My five min cron is set like this : $db->query("UPDATE `users` SET `brave`=LEAST(`brave`+((`maxbrave`/'10')+'0.5'), `maxbrave`), `hp`=LEAST(`hp`+(`maxhp`/'3'), `maxhp`), `will`=LEAST((`will`+'10'), `maxwill`), `energy`=IF(`donatordays`<>'0', LEAST(`energy`+(`maxenergy`/'6'), `maxenergy`), LEAST(`energy`+(`maxenergy`/'12.5'), `maxenergy`))"); I was talking to someone the other day about my 5 min cron. It refills will straight away after a user has been training or buying a house. Help? Tips lol 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.