Jump to content
MakeWebGames

[mccode] Stalemate for attacks


Uridium
 Share

Recommended Posts

This has already been done i just chose to clean it up a little this mod will stalemate when the attack rate hits 50 counts..

Sends a Event Notification to the person you was trying to attack and one for yourself for future reference...

OPEN UP attack.php

FIND

You're unable to view this code.

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

 

and underneath Add......

 

You're unable to view this code.

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

 

Reason for Edit forgot to put file name to be edited...

Link to comment
Share on other sites

Re: [mccode] Stalemate for attacks

 

i think you have missed things out mate whats the sql for

 

You're unable to view this code.

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

 

if($_GET['nextstep'] > 50)

denotes the times taken to attack in this case 50 would be 25 attack clicks on the attack button

so if you wanted your members to click 50 times then alter the 50 to 100

Link to comment
Share on other sites

Re: [mccode] Stalemate for attacks

 

Any way to change this so you don't lose all your EXP. after the stalemate?

open up attacklost.php

and find this line

 

You're unable to view this code.

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

 

You can alter the EXP from there at the moment it resets to zero so you could have it as follows

 

You're unable to view this code.

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

 

There is also one on header.php that mentions regards running from the fight.

Again you could alter that to 50 or just remove the whole function as i did..

Actually you may find this one better because if the person whos lost wast at 50 to begin with its an unfair advantage on the rest of the gamers and will be losing just to get 50

so alter it to

 

You're unable to view this code.

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

Link to comment
Share on other sites

  • 9 months later...

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.

 Share

×
×
  • Create New...