Jump to content
MakeWebGames

Recommended Posts

Posted

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.

  • 1 month later...
Posted

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;

}

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