chaoswar4u Posted September 20, 2007 Share Posted September 20, 2007 Im in need of adding an attack limit onto the attacks. I currently use a one click attack system that I require to end at say 50 steps in the attack if the fight is not won. Like a stalemate where both members walk. Can anyone help on how to do such a task. Many thx in advance. Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted October 31, 2007 Share Posted October 31, 2007 Re: Attacks limit for Mccode V2. either i put in wrong place on attack.php or this dont work, lol...please help..im sure it was me Quote Link to comment Share on other sites More sharing options...
ddupuis Posted November 2, 2007 Share Posted November 2, 2007 Re: Attacks limit for Mccode V2. Here you can see where ours is.. hope this helps else if($_GET['ID'] == $userid) { print "Only the crazy attack themselves."; $h->endpage(); exit; } elseif($_GET['nextstep'] and $_SESSION['nextstep_nc'] == $_GET['nextstep']) { print "Do not cheat! If you are going to use a easy trick, dont!."; $db->query("update users set cheating=cheating+1 where userid=$userid"); $h->endpage(); exit; } elseif($_GET['nextstep'] > 103) { print "You have stalemated! You cannot attack this user for the remaining day! Back "; event_add($_GET['ID'],"{$ir['username']} [{$ir['userid']}] attacked you and stalemated.",$c); $_SESSION['stalemated']=$_GET['ID']; $h->endpage(); exit; } Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted November 3, 2007 Share Posted November 3, 2007 Re: Attacks limit for Mccode V2. yes that is perfect. thank you 1 million times :-D One problem with it...it stalemates..but it takes there exp. away.. 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.