Jump to content
MakeWebGames

Recommended Posts

Posted

Simple modification here, it checks if the opponents level is 5 or more levels lower that the attackers level,this could be used to prevent farming and attack bunny's or abuse.

Sorry if this has been posted before!

Add this where ever you want in attack.php

You're unable to view this code.

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

 

then add this code anywhere in attack.php where your checks are made

You're unable to view this code.

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

 

Comments are welcome!

Posted

Re: [Mccodes V2] Attack, level difference

 

make it both ways if you want to prevent farming :)

 

You're unable to view this code.

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

 

this allows both ways

Posted

Re: [Mccodes V2] Attack, level difference

Nice contribution - ive done this before but i did it 2 days older lol i think i did it with a few more lines. Nonetheless +1

Posted

Re: [Mccodes V2] Attack, level difference

in stock attack don't it select everythign? so... this would work..

 

You're unable to view this code.

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

 

But personally if you used something like this. You should add exception for Wars...

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