Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBArmy - vBulletin Army System Details »»
vBArmy - vBulletin Army System
Version: 1.00, by Lethal Geass Lethal Geass is offline
Developer Last Online: Feb 2018 Show Printable Version Email this Page

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.

Download Now

File Type: zip vBArmy.zip (83.4 KB, 849 views)

Screenshots

File Type: jpg admin_armor.jpg (119.1 KB, 0 views)
File Type: jpg admin_offense.jpg (112.7 KB, 0 views)
File Type: jpg admin_settings.jpg (84.8 KB, 0 views)
File Type: jpg armory.jpg (178.8 KB, 0 views)
File Type: jpg select_race.jpg (111.5 KB, 0 views)
File Type: jpg admin_defense.jpg (114.6 KB, 0 views)
File Type: jpg admin_races.jpg (66.1 KB, 0 views)
File Type: jpg admin_weapons.jpg (117.0 KB, 0 views)
File Type: jpg home_base.jpg (113.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #142  
Old 04-08-2009, 02:29 AM
NavS NavS is offline
 
Join Date: May 2007
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also changed line 114 of viewplayer.php to
PHP Code:
$GoldLost=round(rand(0,$LoserInfo['gold']/4)); 
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...
PHP Code:
$GoldLost=round($LoserInfo['gold']/10); 
Reply With Quote
  #143  
Old 04-08-2009, 02:32 AM
NavS NavS is offline
 
Join Date: May 2007
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #144  
Old 04-08-2009, 02:50 AM
NavS NavS is offline
 
Join Date: May 2007
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmn so that / turn thing and the .5 round up in selling is all thats left?
Reply With Quote
  #145  
Old 04-08-2009, 11:28 AM
Blackhat's Avatar
Blackhat Blackhat is offline
 
Join Date: Mar 2005
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
  #146  
Old 04-09-2009, 07:43 AM
Blackhat's Avatar
Blackhat Blackhat is offline
 
Join Date: Mar 2005
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyway too send a pm when reset ?
Reply With Quote
  #147  
Old 04-09-2009, 12:15 PM
Sugoi na Sugoi na is offline
 
Join Date: Feb 2009
Location: Tokyo
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NavS View Post
fix that by adding
PHP Code:
OR $totalcost<
to line 13 of intelligence.php

also fix negative turns with the
PHP Code:
OR $att->clean['turns']<
to line 73 of viewplayer.php
Maybe you should ping the author since he is looking for a bit of help on this mod =)

I think with quicker updates & improvements, this mod reach the arcade systems fame.

Keep up the great work if not!
Reply With Quote
  #148  
Old 04-11-2009, 12:10 AM
NavS NavS is offline
 
Join Date: May 2007
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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+

PHP Code:
//****
//Process Selling Items
//****
$att->clean(p,'posted2',str);
if(
$att->clean['posted2']=='yes')
{
    
//begin sell

    
$SellWeaponArray=array();
    
$SellArmorArray=array();

    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;
    }

    
//give money
    
$NewGoldAmount=$playerinfo['gold']+$TotalSellValue;
    
$data->set(as_user);
    
$data->update(gold,$NewGoldAmount);
    
$data->where(id,$playerinfo['id']);
    
$data->execute(update);
    
//end give money
    //complete order.
    
foreach($SellWeaponArray as $key=>$value)
    {
        
$data->set(as_inventory);
        
$data->select('*');
        
$data->where(playerid,$playerinfo['id']);
        
$data->where(item,'weapon');
        
$data->where(itemid,$key);
        
$SellInfo=$data->execute(select1);

        
$NewQuantity=$SellInfo['quantity']-$value;

        if(
$NewQuantity==0){
            
$data->set(as_inventory);
            
$data->delete();
            
$data->where(playerid,$playerinfo['id']);
            
$data->where(item,'weapon');
            
$data->where(itemid,$key);
            
$data->execute(delete);
        }else{
            
$data->set(as_inventory);
            
$data->update(quantity,$NewQuantity);
            
$data->where(playerid,$playerinfo['id']);
            
$data->where(item,'weapon');
            
$data->where(itemid,$key);
            
$data->execute(update);
        }
    }
    foreach(
$SellArmorArray as $key=>$value)
    {

        
$data->set(as_inventory);
        
$data->select('*');
        
$data->where(playerid,$playerinfo['id']);
        
$data->where(item,'armor');
        
$data->where(itemid,$key);
        
$SellInfo=$data->execute(select1);

        
$NewQuantity=$SellInfo['quantity']-$value;

        if(
$NewQuantity==0)
        {
            
$data->set(as_inventory);
            
$data->delete();
            
$data->where(playerid,$playerinfo['id']);
            
$data->where(item,'armor');
            
$data->where(itemid,$key);
            
$data->execute(delete);
        }else{
            
$data->set(as_inventory);
            
$data->update(quantity,$NewQuantity);
            
$data->where(playerid,$playerinfo['id']);
            
$data->where(item,'armor');
            
$data->where(itemid,$key);
            
$data->execute(update);
        }
    }
    
//end complete order
    
$att->redirect("$att_filename.php?do=armory");
    
//end sell
}
//****
//End Process Selling Items
//**** 
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?
Reply With Quote
  #149  
Old 04-11-2009, 12:13 AM
NavS NavS is offline
 
Join Date: May 2007
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oops just forgot add the same thing for the spies

PHP Code:
OR $att->clean['spies']<
Reply With Quote
  #150  
Old 04-11-2009, 09:09 AM
Blackhat's Avatar
Blackhat Blackhat is offline
 
Join Date: Mar 2005
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NavS View Post
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+

PHP Code:
//****
//Process Selling Items
//****
$att->clean(p,'posted2',str);
if(
$att->clean['posted2']=='yes')
{
    
//begin sell

    
$SellWeaponArray=array();
    
$SellArmorArray=array();

    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;
    }

    
//give money
    
$NewGoldAmount=$playerinfo['gold']+$TotalSellValue;
    
$data->set(as_user);
    
$data->update(gold,$NewGoldAmount);
    
$data->where(id,$playerinfo['id']);
    
$data->execute(update);
    
//end give money
    //complete order.
    
foreach($SellWeaponArray as $key=>$value)
    {
        
$data->set(as_inventory);
        
$data->select('*');
        
$data->where(playerid,$playerinfo['id']);
        
$data->where(item,'weapon');
        
$data->where(itemid,$key);
        
$SellInfo=$data->execute(select1);

        
$NewQuantity=$SellInfo['quantity']-$value;

        if(
$NewQuantity==0){
            
$data->set(as_inventory);
            
$data->delete();
            
$data->where(playerid,$playerinfo['id']);
            
$data->where(item,'weapon');
            
$data->where(itemid,$key);
            
$data->execute(delete);
        }else{
            
$data->set(as_inventory);
            
$data->update(quantity,$NewQuantity);
            
$data->where(playerid,$playerinfo['id']);
            
$data->where(item,'weapon');
            
$data->where(itemid,$key);
            
$data->execute(update);
        }
    }
    foreach(
$SellArmorArray as $key=>$value)
    {

        
$data->set(as_inventory);
        
$data->select('*');
        
$data->where(playerid,$playerinfo['id']);
        
$data->where(item,'armor');
        
$data->where(itemid,$key);
        
$SellInfo=$data->execute(select1);

        
$NewQuantity=$SellInfo['quantity']-$value;

        if(
$NewQuantity==0)
        {
            
$data->set(as_inventory);
            
$data->delete();
            
$data->where(playerid,$playerinfo['id']);
            
$data->where(item,'armor');
            
$data->where(itemid,$key);
            
$data->execute(delete);
        }else{
            
$data->set(as_inventory);
            
$data->update(quantity,$NewQuantity);
            
$data->where(playerid,$playerinfo['id']);
            
$data->where(item,'armor');
            
$data->where(itemid,$key);
            
$data->execute(update);
        }
    }
    
//end complete order
    
$att->redirect("$att_filename.php?do=armory");
    
//end sell
}
//****
//End Process Selling Items
//**** 
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
Reply With Quote
  #151  
Old 04-11-2009, 08:01 PM
NavS NavS is offline
 
Join Date: May 2007
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Blackhat View Post
I can still sell for .5 even after I changed to this new code
hmn... post your code... I can't even sell one only 2+
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:47 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09891 seconds
  • Memory Usage 2,493KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (9)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete