vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   RPG Integration Hack /w Battle (BETA) (https://vborg.vbsupport.ru/showthread.php?t=46417)

mr e 01-09-2003 02:59 AM

hmmm...same here with the stats being 0

also bitsys

should this code have {} in it?
PHP Code:

        if ($user[element] == $opponentstats[eleweakness])
                
$uelemod 1.5;
        elseif (
$user[element] == $opponentstats[elestrength])
                
$uelemod 0.5;
        else
                
$uelemod 1

i just thought it should but maybe not

Mijae 01-09-2003 03:03 AM

nevermind, stats at 0 only show up in the rpg.php popup, stats show up ok in battle.

Mrpolish 01-09-2003 03:04 AM

Yeah it has to be opened and closed
PHP Code:

if ($user[element] == $opponentstats[eleweakness])
{
                
$uelemod 1.5;
        elseif (
$user[element] == $opponentstats[elestrength])
                
$uelemod 0.5;
        else
                
$uelemod 1;



mr e 01-09-2003 03:06 AM

Stuff to fix

in admin/functions.php find (remove the #)

PHP Code:

 $rpggenderimage '<img src="{#imagesfolder}/gender/female.gif" alt="female.gif" border="0">';
} elseif(
$post[rpggender] == "2") {
 
$rpggendername "Male";
 
$rpggenderimage '<img src="{#imagesfolder}/gender/male.gif" alt="female.gif" border="0">'

and change it to

PHP Code:

 $rpggenderimage '<img src="{#imagesfolder}/gender/female.gif" alt="Female" border="0">';
} elseif(
$post[rpggender] == "2") {
 
$rpggendername "Male";
 
$rpggenderimage '<img src="{#imagesfolder}/gender/male.gif" alt="Male" border="0">'

=============================================

in battleupdate.php find

PHP Code:

// This element strength/weakness code is by mr e
if ($user[element] == $opponentstats[eleweakness])
            
$uelemod 1.5;
elseif (
$user[element] == $opponentstats[elestrength])
            
$uelemod 0.5;
else
            
$uelemod 1;
 
// End mr e's code 

and replace it with

PHP Code:

// This element strength/weakness code is by mr e
if ($user[element] == $opponentstats[eleweakness]) {
  
$uelemod 1.5;
} elseif (
$user[element] == $opponentstats[elestrength]) {
            
$uelemod 0.5;
} else {
          
$uelemod 1;
}
// End mr e's code 

=============================================

in rpg.php find

PHP Code:

$regatt $showlevel $userclass[regatt];
$magicatt $showlevel $userclass[magicatt];
$magicdef $showlevel $userclass[magicdef];
$regdef $showlevel $userclass[regdef];
$speed $showlevel $userclass[speed];
$evade $showlevel $userclass[evade]; 

and replace it with

PHP Code:

$regatt $level $userclass[regatt];
$magicatt $level $userclass[magicatt];
$magicdef $level $userclass[magicdef];
$regdef $level $userclass[regdef];
$speed $level $userclass[speed];
$evade $level $userclass[evade]; 

I'll post any new changes if i find em

Travis641 01-09-2003 03:26 AM

I can't get this to work no matter what. =\ I used to have v.56 and this same problem existed - now I've installed your v.59 and the problem STILL exists for me. I'm checked the update stats box numerous times - it just doesnt seem to be helping.

Anyways, I can't get any - or very few - stats to show up.

I can get my level, max hp, max ma, and max pp, to show, (but without my actual hp showing - just the max), I can also get my gender, whether I'm dead or alive, and whether I'm in battle. Nothing else works. Check Stats says all my stats are 0. However, my alignment, race, and Class DO show up there.

What am I doing wrong? I've attached a picture to help.

Edit: If a user does NOT select a class, the nonef(or m) image DOES work. Also - I've made sure all my profile fields are right.

mr e 01-09-2003 03:33 AM

do you have the 2 really big file edits in showthread.php?

Travis641 01-09-2003 03:34 AM

Edit: yes I do, but still nothing. However, the stats DID show up fine in a battle as well.

mr e 01-09-2003 03:42 AM

also bitsys

i can't post replys, the error is

Code:

Warning: Failed opening '/lotsofstuff/newreply.php' for inclusion (include_path='') in Unknown on line 0
im completely lost on this one

mr e 01-09-2003 03:43 AM

then it's gotta be in the showthread.php or at least i think it does, try going back and manually editing that file and make sure the code is right

Quote:

Originally posted by Travis641
Edit: yes I do, but still nothing. However, the stats DID show up fine in a battle as well.

Travis641 01-09-2003 03:54 AM

I checked again - even reinstalled it on a brand new showthread.php - nothing =\


All times are GMT. The time now is 05:59 PM.

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.02189 seconds
  • Memory Usage 1,770KB
  • 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
  • (1)bbcode_code_printable
  • (8)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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