Jump to content
MakeWebGames

Recommended Posts

Posted

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}");

}

Posted

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

Posted

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

Posted

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

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