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)

chrisz 02-19-2003 11:38 PM

Ok everything works fine for me :)
I have it running on my forum now but the PP has no use until the Summons addon is out and how does the anger rise?

Darkwaltz4 02-20-2003 12:12 AM

lol--while fixing one thing, i break another ^_^
so im fixing that now -_-
pp healing is abled in the healing center--im surprised it wasnt set up in the first place :(

i also put up some little changes which u may or may not keep when i send u the files bitsys. like, itemshop turning off, and some display changes, lol
so...just be sure to check mosta it--if u havent already taken vb's advice, and gotten beyond compare2, its pretty useful ^_^

well...i unno about limit breaks O.o seems too not 'one-size-fits-all' which yeah, would require alot of db stuff....

but yeah, 4 big things im doing/done
summons
pp heal center
pp potions
shields

how long have u been workin on this hack?

Moreliator 02-20-2003 12:46 AM

The only problem I have occuring is in the RPG System Center (rpgcp.php)

Some users report that it is not displaying their stats.... all it has are a nuch of " 'S Stats" instead of the users name, and it doesn't display any of their character info. I had this happen to my account to, but all of a sudden it went away one time and never came back. Is tehre something with editing your character or having to buy an item that triggers the CP to display yuor characters pic and stats?

Bitsys 02-20-2003 01:28 AM

Quote:

Originally posted by Darkwaltz4
so...just be sure to check mosta it--if u havent already taken vb's advice, and gotten beyond compare2, its pretty useful ^_^
Heh, how do you think I made all of the upgrade files? I certainly couldn't have done it without Beyond Compare. ;)
Quote:

Originally posted by Darkwaltz4
how long have u been workin on this hack?
Since September 15th, 2002.

Quote:

Originally posted by Moreliator
The only problem I have occuring is in the RPG System Center (rpgcp.php)

Some users report that it is not displaying their stats.... all it has are a nuch of " 'S Stats" instead of the users name, and it doesn't display any of their character info. I had this happen to my account to, but all of a sudden it went away one time and never came back. Is tehre something with editing your character or having to buy an item that triggers the CP to display yuor characters pic and stats?

As far as I know, the only requirement is that you have to be logged in. However, I will look into this a little more to see if there is something else causing it.

chrisz 02-20-2003 02:25 AM

People anger is reset when you update stats I think that should be changed!

Bitsys 02-20-2003 02:39 AM

Quote:

Originally posted by chrisz
People anger is reset when you update stats I think that should be changed!
Changed to what?

The way I see it is that if you grow a level, then your mental state changes enough that it is similar to gaining a new perspective on things. With this new perspective, your anger is now restored to its original state since the rest of your body/mind has changed also.

Anyhow, if you don't want it to change then you can take the code out of member.php. To do this,

find in member.php:

PHP Code:

$DB_site->query("UPDATE user SET ap='$apmodifier' WHERE userid=$bbuserinfo[userid]"); 

and replace with:
PHP Code:

//$DB_site->query("UPDATE user SET ap='$apmodifier' WHERE userid=$bbuserinfo[userid]"); 

That will leave their AP alone when they update their stats.

chrisz 02-20-2003 02:41 AM

thnx and is there any way to make peoples stats update automaticly?
So they dont have to click update stats all the time??

Vivi Ornitier 02-20-2003 03:42 AM

omg this hack has soooo much more stuff than when i first saw it. Holy crap this is soo gangsta. GREAT JOB BITSYS!

chrisz 02-20-2003 11:57 AM

I have a problem with my itemshop:
Its regarding spells,
Have a look at the attack and heal options they are switched around.
http://ffsaiyans.xeko.net/forum/item...s=6&itemtype=0
Can you tell me how to fix it?
I cant find it anywhere in the templates to swap them back.

Bitsys 02-20-2003 12:21 PM

Quote:

Originally posted by chrisz
thnx and is there any way to make peoples stats update automaticly?
So they dont have to click update stats all the time??

It is possible. You have to put the update stats code from member.php into newreply.php and newthread.php.

Quote:

Originally posted by chrisz
I have a problem with my itemshop:
Its regarding spells,
Have a look at the attack and heal options they are switched around.
http://ffsaiyans.xeko.net/forum/item...s=6&itemtype=0
Can you tell me how to fix it?
I cant find it anywhere in the templates to swap them back.

Those columns are dynamic. They will only show up if the category needs them. To make it simpler for people who were upgrading, I chose to put the code for the columns inside the .php file, instead of in the template. I store the html for the columns inside a variable, and then the variable in the itemshop_tabletop template gets replaced with the appropriate code.

If you want to switch them around, then it will require some changes to itemshop.php. There are two parts that you need to change.

In itemshop.php, find:
PHP Code:

$levelcolumn '<td bgcolor="{ categorybackcolor}" width="5%" align="center"><normalfont color="{ categoryfontcolor}"><b>MA Cost</b></normalfont></td><td bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" width="5%" align="center"><normalfont color="{ categoryfontcolor}"><b>Heal</b></normalfont></td><td bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" width="5%" align="center"><normalfont color="{ categoryfontcolor}"><b>Attack</b></normalfont></td>'.$levelcolumn

(I added extra spaces in front of categorybackcolor and categoryfontcolor so that vb.org wouldn't replaces them.)

And switch the columns around to however you want them. Remember what and how you switched them.

Then, in itemshop.php, find:
PHP Code:

$levelcolumnmid '<td bgcolor="#1C5780" width="5%" align="center"><normalfont>'.$extrainfo[2].'</normalfont></td><td bgcolor="#1C5780" width="5%" align="center"><normalfont>'.iif($extrainfo[0], "Yes""No").'</normalfont></td><td bgcolor="#1C5780" width="5%" align="center"><normalfont>'.iif($extrainfo[1], "Yes""No").'</normalfont></td>'.$levelcolumnmid

And switch the variables around in the same way that you switch the other code.

Quote:

Originally posted by Vivi Ornitier
omg this hack has soooo much more stuff than when i first saw it. Holy crap this is soo gangsta. GREAT JOB BITSYS!
Thanks! :)


All times are GMT. The time now is 02:18 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.03337 seconds
  • Memory Usage 1,764KB
  • 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
  • (4)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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