vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - Realm Conquest System (https://vborg.vbsupport.ru/showthread.php?t=211920)

princeedward 09-09-2009 10:47 AM

thanks and will test this one...

dai-kun 09-10-2009 12:21 AM

Hey.. how does the nation bonus work? I don't see it add the bonus to my troops offense/defense.

in functions.php
If you want the bonuses to add to the # of troops, you use this code:

line 68 should be
Code:

$power = $power + $player[pTroops] * ((100 + $player[nOffense] + $player[oPower]) / 100);
and line 94 should be
Code:

$power = $power + $player[pTroops] * ((100 + $player[nDefense] + $player[dPower]) / 100);
for proper addition of all bonuses and armors/weapons.

The problem with the original code:
Code:

        $power = 1 + $player[pTroops] + $power * ((100 + $player[nOffense] + $player[oPower]) / 100);
is that the 2nd instance of $power (which is the item bonus from buying), if it is 0 meaning you have not bought an item yet, will null the entire equation after it because math rule is that multiplication goes first. Since 0 * ((100 + $player[nOffense] + $player[oPower]) / 100) = 0. Also the 1 in the equation is useless

If you want the bonuses to add to the item attk/defense power + # of troops, you use this code:
line 68 should be
Code:

$power = ($power + $player[pTroops]) * ((100 + $player[nOffense] + $player[oPower]) / 100);
and line 94 should be
Code:

$power = ($power + $player[pTroops]) * ((100 + $player[nDefense] + $player[dPower]) / 100);

Trip3151 09-10-2009 06:09 PM

Could make 2 versions
1 Lite Version ( Free )
1 Pro Version ( Paid )

least then the creater will get some cash from this project :)

zombietom 09-12-2009 07:06 PM

Really would like to see VBcredits added for this...yeah i know you hate it but it is a very good credits system and a lot of forums use it..so why not just add it in..it could lead to more installs.
I'm still unsure on installing this but will keep an eye on it and see where it goes.
thanks

DobieGillis? 09-12-2009 10:43 PM

Quote:

Originally Posted by Trip3151 (Post 1882721)
Could make 2 versions
1 Lite Version ( Free )
1 Pro Version ( Paid )

least then the creater will get some cash from this project :)

ain't gonna happen. I think this one is over. Nitey nite, good night nurse!

Sid_pachi 09-12-2009 11:46 PM

Sadly....

Digital Jedi 09-13-2009 01:32 AM

One month is not really an unusual amount of time to not hear back from a developer.

wobbly 09-13-2009 01:11 PM

Just a quick one. I've done a quick search through the topic for avatars and can't find anything so i thought I would ask.

In the Nation specific forums the users avatars link is broken for everyone.

The link in the script looks at "http://mywebsite.co.uk/forums/customavatars/thumbs/avatar1_3.gif" for my avatar for example when the avatars are kept in "http://www.mywebsite.co.uk/forums/customavatars/avatar1_3.gif"

Any ideas on how I can change the script to change this.

Any help would be appreciated.

dai-kun 09-13-2009 05:42 PM

yeah, you can change it in the conquest.php file
Quote:

$comment['avatarurl'] = $vbulletin->options['avatarurl'] . ($thumb ? '/thumbs' : '') . "/avatar{$comment['userID']}_{$comment['avatarrevision']}.gif";
But you should have thumbnails created for your custom avatars instead. Go to maintenace -> update counters -> Rebuild Custom Avatar Thumbnails
and it should work without any code edits.

Also if you notice that you have over 30 posts or however much you set your settings to be before pagination, the 2nd, 3rd and so on pages will show the same post no matter what. I don't know how to fix that. :(

dai-kun 09-16-2009 06:07 AM

I wish this mod was developed more. I have over 500 members playing in just a few days. I'm doing my own mod as fit but it's frustrating sometimes.


All times are GMT. The time now is 02:26 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.01420 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete