Gemini Posted September 6, 2009 Posted September 6, 2009 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! Quote
nyc100 Posted September 6, 2009 Posted September 6, 2009 Re: [Mccodes V2] Attack, level difference make it both ways if you want to prevent farming :) Quote
Lithium Posted September 6, 2009 Posted September 6, 2009 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 Quote
Guest Sniko` Posted September 6, 2009 Posted September 6, 2009 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 Quote
AlabamaHit Posted September 6, 2009 Posted September 6, 2009 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... Quote
chicka Posted September 7, 2009 Posted September 7, 2009 Re: [Mccodes V2] Attack, level difference AlabamaHit has a good point. if your at war it should be fair game no matter what level your at Quote
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.