Jump to content
MakeWebGames

Attack Limit (20/Day)


iPanelSolutions

Recommended Posts

This mod works with MCCODE V2.

Works 100%! Ok here we go..

Run these SQL.

 

You're unable to view this code.

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

 

After you can imported the file, open attack.php

find..

You're unable to view this code.

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

after add..

You're unable to view this code.

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

 

Next open attackbeat.php

find..

You're unable to view this code.

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

after add

You're unable to view this code.

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

 

Open attaclost.php

find..

You're unable to view this code.

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

after add

You're unable to view this code.

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

 

Open attacktake.php

find..

You're unable to view this code.

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

after add

You're unable to view this code.

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

 

Open attackwon.php

find..

You're unable to view this code.

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

after add

You're unable to view this code.

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

 

And now open cron_day.php

find..

You're unable to view this code.

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

after add

You're unable to view this code.

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

 

hope this helps ya out.

Edited by iPanelSolutions
Link to comment
Share on other sites

Just one thing if non donators get 20 and donators get 20 wouldnt that cause a bit of friction between them both. id make 10 hits per non donator and 20 for donator...

so on cron day just add..

 

You're unable to view this code.

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

 

And Non Donators

 

You're unable to view this code.

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

Edited by illusions
Link to comment
Share on other sites

Just one thing if non donators get 20 and donators get 20 wouldnt that cause a bit of friction between them both. id make 10 hits per non donator and 20 for donator...

so on cron day just add..

 

You're unable to view this code.

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

 

And Non Donators

 

You're unable to view this code.

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

 

good think :P

Link to comment
Share on other sites

I have a few problems with this.

1)What if your players gang goes to war after they have attacked all they can?

2)This would hamper leveling big time.

3)Attacking NPCs would take away your count.

4)Players offline should be considered NPCs as well but this would still reduce count.

If someone wants to add though they should at least consider these points.

Code seems simple enough and workable.

A Question; if a player is attacked and he loses/wins does that affect the counter? I do not think so but I would want to double check it.

Link to comment
Share on other sites

  • 8 months later...

Alright, I know this is an old mod, but I've done it on V1, as well as added a Crystal Temple option to add more attacks, so I thought I would share in case anyone might find this useful.

First off, the SQL:

You're unable to view this code.

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

 

Open attack.php and find:

You're unable to view this code.

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

 

Under that, add:

You're unable to view this code.

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

 

Open attackmug.php and find:

You're unable to view this code.

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

 

Under that, add:

You're unable to view this code.

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

 

Open attackleave.php and find:

You're unable to view this code.

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

 

Under that, add:

You're unable to view this code.

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

 

Open attacklost.php and find:

You're unable to view this code.

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

 

Under that, add:

You're unable to view this code.

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

 

Open attacklost.php and find:

You're unable to view this code.

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

 

Under that, add:

You're unable to view this code.

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

 

Add this to your cron_day:

You're unable to view this code.

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

 

Open crystaltemple.php and find:

You're unable to view this code.

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

 

Under that, add:

You're unable to view this code.

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

 

Now, find:

You're unable to view this code.

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

 

Under that, add:

You're unable to view this code.

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

 

And, if you want your players to know how many attacks they have available, add this somewhere in index.php:

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

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