Jump to content
MakeWebGames

Recommended Posts

Posted

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.

Posted

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

Posted

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.

Posted

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

Posted

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 :)

  • 1 month later...
  • 2 months later...
Posted

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

Posted

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

Posted

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!

Posted

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

  • 4 weeks later...
  • 1 month later...
Posted

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

  • 4 weeks later...
Posted

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.

  • 1 month later...
Posted

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 thanks
yes 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
  • 5 months later...
Posted

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:

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