Uridium Posted September 17, 2011 Share Posted September 17, 2011 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 Quote Link to comment Share on other sites More sharing options...
Wickidnezz Posted November 30, 2011 Share Posted November 30, 2011 very nice illusions :P just a thought tho instead of the users being sent to the hospital after the allotted time why not just make it like a stalemate attack where they both lose and don't gain anything Quote Link to comment Share on other sites More sharing options...
Uridium Posted December 7, 2011 Author Share Posted December 7, 2011 stupid idea if a user knows they cant beat their opponent they may aswell just sit there and stalemate 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.