Jump to content
MakeWebGames

Gang Strongholds MOD


Mcfarlin

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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