Jump to content
MakeWebGames

Attack Timer


Uridium

Recommended Posts

This mod will prevent users from sitting on an attack page waiting for their Energy or HP to replenish.

If user doesnt finish the attack i an alloted time they themselves are sent to Hosp for wasting time...

 

2 updates to the user table

ALTER table users ADD fighttime INT(11) NOT NULL default 0;

ALTER table users ADD timeout INT(2) NOT NULL default 0;

in your attack.php find

$mw=$db->query("SELECT i.* FROM items i WHERE i.itmid IN({$ir['equip_primary']}, {$ir['equip_secondary']})");

and add underneath it

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Now open up hospital.php and add

if($ir['timeout'] == 1) {

mysql_query("update users set timeout=0, fighttime=0 where userid=$ir[userid]");

}

And your done Users can no long sit and wait for things to replenish

Link to comment
Share on other sites

  • 2 months later...

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