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
  #152  
Old 04-12-2009, 01:17 AM
NavS NavS is offline
 
Join Date: May 2007
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry my fault, it has to be like this... only problem is it won't give you an error, it just wont process it... nother problem is you can still do 1.5 and 2.5 or whatever... however you won't be able to sell nothing and get away with it.

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]"]>1)
        {
            
$SellWeaponArray[$value['itemid']]=$att->clean["sellweapon$value[id]"];
        }
        if(
$att->clean["sellweapon$value[id]"]>$value['quantity'])
        {
            
standard_error("You do not have that many items to sell");
        }
    }

    foreach(
$InventoryArmorArray as $value)
    {
        
$att->clean(p,"sellarmor$value[id]",uint);
        
        if(
$att->clean["sellarmor$value[id]"]>1)
        {
            
$SellArmorArray[$value['itemid']]=$att->clean["sellarmor$value[id]"];
        }
        if(
$att->clean["sellarmor$value[id]"]>$value['quantity'])
        {
            
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
//**** 
Reply With Quote
  #153  
Old 04-12-2009, 10:19 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is nice to see this mod progressing since I have tracked this mod for at least the last 3 years when the other coder was making it. But I just wish those last few bugs would be gone so I can install it. Marked as installed and will keep an eye on it.
Reply With Quote
  #154  
Old 04-13-2009, 05:05 AM
rob01 rob01 is offline
 
Join Date: Sep 2008
Location: Mexico
Posts: 410
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so how many bugs this version has

and how many security holes

or anything i should now?
Reply With Quote
  #155  
Old 04-13-2009, 08:36 AM
Lethal Geass Lethal Geass is offline
 
Join Date: Mar 2009
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The new version fixes all the bugs recently discovered by users. If you found more bugs let me know.
Reply With Quote
  #156  
Old 04-13-2009, 01:57 PM
Sugoi na Sugoi na is offline
 
Join Date: Feb 2009
Location: Tokyo
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can we possibly receive a list of the repaired bugs? I know you said you repaired them all but I want to confirm.

Thanks!
Reply With Quote
  #157  
Old 04-13-2009, 08:08 PM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about the template problems? And do they actually look better now?

I mean, besides the uncached templates, I'm talking about how UGLY this mod looks. This mod doesn't seem to match up correctly with the default VB skin. Attached some screenshots of it displays on my forums...

1. No borders around the mod shell, instead the table for the mod is PADDED...
2. Where did that UGLY gray background come from? It should be alt2, not this default gray.
3. No borders within the mod pages itself. All tables should follow the vb styles.

The third screenshot is how a mod SHOULD look.
Attached Images
File Type: jpg 1.jpg (209.9 KB, 0 views)
File Type: jpg 2.jpg (211.7 KB, 0 views)
File Type: jpg 3.jpg (278.5 KB, 0 views)
Reply With Quote
  #158  
Old 04-13-2009, 10:08 PM
Lethal Geass Lethal Geass is offline
 
Join Date: Mar 2009
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fixes: Negative values are invalid. Float values i.e 0.5 in buying and selling items are now rounded.

Template problem will be fixed shortly. However its not hard for you to go through yourself and change it where you see it necessary.
Reply With Quote
  #159  
Old 04-14-2009, 02:37 AM
atmo5ph3r's Avatar
atmo5ph3r atmo5ph3r is offline
 
Join Date: Mar 2008
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lethal Geass View Post
Fixes: Negative values are invalid. Float values i.e 0.5 in buying and selling items are now rounded.

Template problem will be fixed shortly. However its not hard for you to go through yourself and change it where you see it necessary.
thanks for fixing, but any upgrade since 21 march ?
there are best idea for better game, we like it :up:
Reply With Quote
  #160  
Old 04-14-2009, 05:29 AM
rknight111 rknight111 is offline
 
Join Date: Oct 2006
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found a way of the member cheating quite easy and I have alot of members that have discovered this allready. They can click on the link to recruit members and it will add one to there army. Then if you have another computer you can do it again, then after an hour or two you can do this all over again. Is there a quick fix for this so I can stop this.

Otherwise thanks for the game.
Reply With Quote
  #161  
Old 04-14-2009, 05:32 AM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rknight111 View Post
I found a way of the member cheating quite easy and I have alot of members that have discovered this allready. They can click on the link to recruit members and it will add one to there army. Then if you have another computer you can do it again, then after an hour or two you can do this all over again. Is there a quick fix for this so I can stop this.

Otherwise thanks for the game.
You can change this in the admin options menu, to change it from 2 hours to any hour you desire. And this is not exactly a "cheat". You have to gain an army somehow. If people refuse to click the link, you can do it yourself.
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 11:38 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05306 seconds
  • Memory Usage 2,420KB
  • Queries Executed 28 (?)
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
  • (1)bbcode_php
  • (2)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
  • (13)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_postinfo_query
  • fetch_postinfo
  • 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