KiX Posted January 2, 2009 Share Posted January 2, 2009 Yes, another attack system. Sorry! :) I have noticed that in the one that comes with the mccodes it is quite exploitable. In what sense well, you have to add a lot of protection so people won't cheat. For example, avoid them from refreshing, avoid them from clicking the back button, avoid them from opening a new session and use medikits, and the list continues. So I have done the new attack system so all it goes is ask you for the weapon and then calculates it all in one click. In plain english: Instead of clicking each turn, you only click once and you get the result. At first my users were like WTH!! but now they are liking it. Try it out! attack.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. All the other files remain the same. :) I hope you enjoy it. Quote Link to comment Share on other sites More sharing options...
Jambomb Posted January 2, 2009 Share Posted January 2, 2009 Re: [mccodes v2.0] Yet Another Attack Kool, I'll try it in a bit :) ty Quote Link to comment Share on other sites More sharing options...
castle Posted January 2, 2009 Share Posted January 2, 2009 Re: [mccodes v2.0] Yet Another Attack i am getting: Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 16 in /home/content/m/o/b/mobsterworld/html/class/class_db_mysql.php on line 94 Quote Link to comment Share on other sites More sharing options...
KiX Posted January 2, 2009 Author Share Posted January 2, 2009 Re: [mccodes v2.0] Yet Another Attack I have noticed that comes out sometimes if no weapons or armor are equipped. Quote Link to comment Share on other sites More sharing options...
castle Posted January 2, 2009 Share Posted January 2, 2009 Re: [mccodes v2.0] Yet Another Attack i did test it with weapons and armor equipped Quote Link to comment Share on other sites More sharing options...
ishmell Posted January 2, 2009 Share Posted January 2, 2009 Re: [mccodes v2.0] Yet Another Attack A screenshot would be nice. 8-) Quote Link to comment Share on other sites More sharing options...
KiX Posted January 2, 2009 Author Share Posted January 2, 2009 Re: [mccodes v2.0] Yet Another Attack i did test it with weapons and armor equipped try this where it says You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. replace with You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
radio_active Posted January 2, 2009 Share Posted January 2, 2009 Re: [mccodes v2.0] Yet Another Attack Rather then selecting the whole users table why dont you just select fields needed??? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And do that on ALL the Select queries.. Quote Link to comment Share on other sites More sharing options...
KiX Posted January 2, 2009 Author Share Posted January 2, 2009 Re: [mccodes v2.0] Yet Another Attack thanks mate for the input :) Quote Link to comment Share on other sites More sharing options...
KiX Posted January 2, 2009 Author Share Posted January 2, 2009 Re: [mccodes v2.0] Yet Another Attack found 2 bugs hehe. find where it says You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and replace with You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and find where it says You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and replace with You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Sorry for that :) Quote Link to comment Share on other sites More sharing options...
gurpreet Posted January 6, 2009 Share Posted January 6, 2009 Re: [mccodes v2.0] Yet Another Attack You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Still getting that, even though I done everything you said. Quote Link to comment Share on other sites More sharing options...
Josh23 Posted February 8, 2009 Share Posted February 8, 2009 Re: [mccode v2] Yet Another Attack Anybody got a solution ? I get same; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Domination Posted May 3, 2009 Share Posted May 3, 2009 Re: [mccode v2] Yet Another Attack Fully fixed and working :wink: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
_Ricky_ Posted May 3, 2009 Share Posted May 3, 2009 Re: [mccode v2] Yet Another Attack Fatal error: Call to undefined method database::fetch_assoc() in /home/glocktal/public_html/attack.php on line 213 Quote Link to comment Share on other sites More sharing options...
tobatz Posted May 4, 2009 Share Posted May 4, 2009 Re: [mccode v2] Yet Another Attack Fatal error: Call to undefined method database::fetch_assoc() in /home/glocktal/public_html/attack.php on line 213 try replacing fetch_assoc to fetch_row Quote Link to comment Share on other sites More sharing options...
Domination Posted May 4, 2009 Share Posted May 4, 2009 Re: [mccode v2] Yet Another Attack What version of McCodes are you using? It seems to work fine on my game and i'm running V2 Quote Link to comment Share on other sites More sharing options...
Domination Posted May 4, 2009 Share Posted May 4, 2009 Re: [mccode v2] Yet Another Attack This works 100% on my game =] You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. If you have any problems, post here and I will fix! Quote Link to comment Share on other sites More sharing options...
joker313 Posted May 4, 2009 Share Posted May 4, 2009 Re: [mccode v2] Yet Another Attack nice i installed this code and worked with no probs thanks i am new to this and starting to understand these mods a lil better Quote Link to comment Share on other sites More sharing options...
Assault Posted May 30, 2009 Share Posted May 30, 2009 Re: [mccode v2] Yet Another Attack Love this, works great. Quote Link to comment Share on other sites More sharing options...
weewooz Posted July 10, 2009 Share Posted July 10, 2009 Re: [mccode v2] Yet Another Attack this dont work when a users attacks some one say there off line and the person who attacked loses it puts the person they attack who is off line in - negative health by thousands any ideas thanks Quote Link to comment Share on other sites More sharing options...
corpseslayer Posted August 7, 2009 Share Posted August 7, 2009 Re: [mccode v2] Yet Another Attack A very good mod... but if the attacking user has no armour the match completly stalemates... even if its a lvl 1 attacking a level 100... Ive modded mine slightly to add melee weapons and intend to share it but am tryign to work out the armour bug first. Quote Link to comment Share on other sites More sharing options...
Wickidnezz Posted September 14, 2009 Share Posted September 14, 2009 RE: Re: [mccode v2] Yet Another Attack this dont work when a users attacks some one say there off line and the person who attacked loses it puts the person they attack who is off line in - negative health by thousands any ideas thanksyes i have noticed this aswell and i know with 100% certainty that theres still flaws in this attack system as i lost to someone i won against mins earlier and hes not been on for sometime Quote Link to comment Share on other sites More sharing options...
yhmyo05 Posted March 8, 2010 Share Posted March 8, 2010 energy costs i want to reduce energy costs to attack some1 bcus now it needs 50% of energy, so ppl can attack only 2 times they cannot win or lose, but they have to use energy if i refill energy to get 100% n come back to attack, sometimes opp's hp is less than 100 n cannot attack it's really problem in attacking some1 can give me codes to fix? example, i wanna use 5 energy points to attack so that i can attack many times n i want to attack opp's health is until zero i m newbie so pls.. help me :cursing: Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted March 8, 2010 Share Posted March 8, 2010 if ($myattack['energy'] >= $myattack['maxenergy']/2){ is 50% so change the /2 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.