Jump to content
MakeWebGames

Recommended Posts

Posted

This mod is a small one, though significant for me. The idea of an attack ladder, to me, should be based off attacks. I never was very happy with the "attack who's on it and take their place" thing. This way, it's not based on stats at all. It's purely based on how many attacks the players do in a (day/week/month, etc.)

So, here we go.

First off, the SQL:

You're unable to view this code.

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

 

attackladder.php:

You're unable to view this code.

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

 

ladder_cron: (Set this to run however often you need in your cron jobs. I do ever hour. Also, make sure to add in your own cron code stuff.)

You're unable to view this code.

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

 

Just add this to your mainmenu.php:

You're unable to view this code.

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

 

And, in any of your attacking files (attackhosp, attackmug, etc.) add this wherever your queries are:

You're unable to view this code.

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

 

As usual, I hope someone finds some use for this. Enjoy!

Posted

And here's V2!

Same various instructions as before.

attackladder.php:

You're unable to view this code.

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

 

ladder_cron.php:

You're unable to view this code.

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

 

Add to your attack files:

You're unable to view this code.

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

Posted
Looks good. I like how you make them for both, v1 and v2 on all your mods :)

I look at the conversions as a good learning tool. Plus, I know people will want it done, anyway, so might as well take an extra few minutes.

Posted
Seker, if you have skype, google talk or yahoo, send me your details...

You'd be amazed at how many times I get asked that. :P

I guess I should suck it up and sit through one of the downloads. Will hit you you up a bit later.

  • 2 weeks 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.

×
×
  • Create New...