Version: 1.00, by Lethal Geass
Developer Last Online: Feb 2018
Category: Add-On Releases -
Version: 3.8.1
Rating:
Released: 03-20-2009
Last Update: 04-12-2009
Installs: 166
DB Changes Uses Plugins Template Edits
Additional Files
No support by the author.
Please post any bugs you encounter. We will be making an updated version with a lot more features. Feel free to post any suggestions & comments.
Updates Since 3.7 version
Added admin panel to edit settings. See image attachments.
Race bonuses actually do something now.
Can reset entire game
Can delete user so they can start again.
About the Game
vBArmy is a game for vBulletin.
Each member begins their adventure by choosing a Race which had certain advantages over other races. They begin with a few soldiers and a bit of gold, and must build their army by fighting other players.
Players can buy weapons for their soldiers to increase their attack strength, and buy armor to increase their soldier's defense strength. However, each soldier can only use one weapon and one item of armor. Players can also upgrade their Defense and Offense to increase their defensive and offensive strengths by a percentage.
Players can browse through a list of participating players. They can conduct intelligence operations by sending Spies, which cost a set amount of gold to purchase. The more spies you send, the more accurate the intelligence you gather will be. Gathered intelligence gives you an estimate of the players total gold, offensive power, and defensive power.
If you choose to attack a player you must use "Turns." You only get a certain amount of turns every cycle set by the admin. The more turns you use, the more gold you will steal from your opponent. Be warned though, your opponent will know that you attacked them by viewing their Defense Log and being notified by pm.
Naturally it is important to grow your army. The only way to get soldiers in the game is to have your friends click your "Recruitment Link" They can only click it once every (admin set minutes), and each time they do you will receive an (admin set amount) of soldiers.
Please click Install, there will be a status notification upon the release of major updates.
now players wont be devestated when they loose like half or all the money they saved up... now they will loose between 0 and 1/4 of the money they have.
can also be changed to like loose 1/10 of the money since you get multiple turns...
if you get no spies no nothing remember to go into admin panel of the game and edit game settings and just save so it'll put all that info in... then reset the game and join your alliance again.
for the being able to sell .5 of something change the selling items section of armory.php. This isn't really a solution but it fixes the problem, users won't be able to sell one of something only 2+
foreach($InventoryWeaponArray as $value) { $att->clean(p,"sellweapon$value[id]",uint); if($att->clean["sellweapon$value[id]"]>$value['quantity'] OR $value['quantity']<2) { standard_error("You do not have that many items to sell"); } if($att->clean["sellweapon$value[id]"]>0) { $SellWeaponArray[$value['itemid']]=$att->clean["sellweapon$value[id]"]; } }
foreach($InventoryArmorArray as $value) { $att->clean(p,"sellarmor$value[id]",uint);
if($att->clean["sellarmor$value[id]"]>0) { $SellArmorArray[$value['itemid']]=$att->clean["sellarmor$value[id]"]; } if($att->clean["sellarmor$value[id]"]>$value['quantity'] OR $value['quantity']<2) { standard_error("You do not have that many items to sell"); } }
//calculate total reimbursement $TotalSellValue=0; foreach($SellWeaponArray as $key=>$value) { $SellValue=0; $SellValue=round($WeaponList[$key]['cost']-$WeaponList[$key]['cost']*$WeaponList[$key]['sellpenalty']/100); if($SellValue<0) { $SellValue=0; } $TotalSellValue=$TotalSellValue+$SellValue*$value; } foreach($SellArmorArray as $key=>$value) { $SellValue=0; $SellValue=round($ArmorList[$key]['cost']-$ArmorList[$key]['cost']*$ArmorList[$key]['sellpenalty']/100); if($SellValue<0){ $SellValue=0; } $TotalSellValue=$TotalSellValue+$SellValue*$value; }
to fix the turns thing where people use characters like /.!#$$@ just find this line in viewplayer.php
PHP Code:
if($att->clean['turns']>15 OR $att->clean['turns']>$playerinfo['turns'] OR $att->clean['turns']<1){ standard_error("You cannot use that many turns"); }
for the being able to sell .5 of something change the selling items section of armory.php. This isn't really a solution but it fixes the problem, users won't be able to sell one of something only 2+
foreach($InventoryWeaponArray as $value)
{
$att->clean(p,"sellweapon$value[id]",uint);
if($att->clean["sellweapon$value[id]"]>$value['quantity'] OR $value['quantity']<2)
{
standard_error("You do not have that many items to sell");
}
if($att->clean["sellweapon$value[id]"]>0)
{
$SellWeaponArray[$value['itemid']]=$att->clean["sellweapon$value[id]"];
}
}
foreach($InventoryArmorArray as $value)
{
$att->clean(p,"sellarmor$value[id]",uint);
if($att->clean["sellarmor$value[id]"]>0)
{
$SellArmorArray[$value['itemid']]=$att->clean["sellarmor$value[id]"];
}
if($att->clean["sellarmor$value[id]"]>$value['quantity'] OR $value['quantity']<2)
{
standard_error("You do not have that many items to sell");
}
}
//calculate total reimbursement
$TotalSellValue=0;
foreach($SellWeaponArray as $key=>$value)
{
$SellValue=0;
$SellValue=round($WeaponList[$key]['cost']-$WeaponList[$key]['cost']*$WeaponList[$key]['sellpenalty']/100);
if($SellValue<0)
{
$SellValue=0;
}
$TotalSellValue=$TotalSellValue+$SellValue*$value;
}
foreach($SellArmorArray as $key=>$value)
{
$SellValue=0;
$SellValue=round($ArmorList[$key]['cost']-$ArmorList[$key]['cost']*$ArmorList[$key]['sellpenalty']/100);
if($SellValue<0){
$SellValue=0;
}
$TotalSellValue=$TotalSellValue+$SellValue*$value;
}
to fix the turns thing where people use characters like /.!#$$@ just find this line in viewplayer.php
PHP Code:
if($att->clean['turns']>15 OR $att->clean['turns']>$playerinfo['turns'] OR $att->clean['turns']<1){
standard_error("You cannot use that many turns");
}
make sure it looks like that and has the <1
are there any other bugs?
I can still sell for .5 even after I changed to this new code