Jump to content
MakeWebGames

Recommended Posts

Posted (edited)

Mod Name: Gang Strongholds (PLEASE NOTE CRYSTALS ARE LISTED AS GOLD COINS AND GANGS AS GROUPS IN THESE FILES)

you may want to change those to whatever you are using in your game.

Mod Status: FREE;

Availability: MCCodes Version 2.0.5b

Licence/terms off use: General public licence (GPL)

 

About the mod and how it works:

Gang Leaders will be able to buy a stronghold for a gang.

Strongholds will cost XXX crystals to buy and come with a base stat bonus for all members. (5% STG, AGI ect.)

Gang leaders can buy upgrades for the strongholds. Each upgrade will add another 5% to the selected stat bonus for all gang members. (while attacking)

Bonuses will be capped at 25%.

Bonuses to stats go only to an attacking player, the defending player does not use his or her bonuses while being attacked.

Screen Shots:

http://postimg.org/image/z7ub3cxrd/

http://s16.postimg.org/r4ewlzdat/pic2.png

http://postimg.org/image/55pbexokt/ <--- stats here are without bonus applied.

http://s24.postimg.org/pgpei1q05/pic4.png <--- stats in this image are with bonus applied.

I currently have the costs set for each of the strongholds and the upgrades, they are easy to edit to fit your needs.

First a few SQLs are needed

You're unable to view this code.

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

 

Then 4 new PHP files.

and edits to Index.php and attack.php

Edited by Mcfarlin
Posted

upgradebuy.php

You're unable to view this code.

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

 

next is

groupstronghold.php ( you will need five images of your strongholds. Change the names to what you would like them to be called for your game)

You're unable to view this code.

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

Posted (edited)

then add

upgradestrong.php

You're unable to view this code.

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

 

And

buystronghold.php

You're unable to view this code.

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

Edited by Mcfarlin
Posted (edited)

Now open up Index.php and find

You're unable to view this code.

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

 

After it add

You're unable to view this code.

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

 

then find

You're unable to view this code.

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

 

and replace it with

You're unable to view this code.

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

 

Index edits are completed.

Edited by Mcfarlin
Posted

Now open up attack.php and find

You're unable to view this code.

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

 

and replace it with

You're unable to view this code.

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

 

Posted

And you should be done.

If i missed anything or you are having issues with the mod i will be online a lot for the next few days. Inbox me here or post issues and i will help asap.

And if anyone would care to edit the attack.php to include the bonuses to both players instead of only the attacker please feel free to do so and post here for everyone.

 

Thx.

Posted

It's nice that you're giving this away but could you upload it in a zip and maybe add it to the mccode market? (They have a free section and might get this some more attention!)

Posted

I dont think its worth much.

as its really my first actual mod, i was just sharing.

I will look at uploading as you suggested.

Has anyone used this?

If so how is it working for you?

  • Like 1
  • 2 months later...
  • 2 years 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...