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)

Davey 01-10-2003 06:54 PM

[AViO 07]: Actually there's a html error there.
Shouldn't this:
PHP Code:

case 'itemshop':
      
$userinfo[where] = "Viewing <a href='itemshop.php?s=$session[sessionhash]'>Itemshop<a>";
      break; 

Be this:
PHP Code:

case 'itemshop':
      
$userinfo[where] = "Viewing <a href='itemshop.php?s=$session[sessionhash]'>Itemshop</a>";
      break; 

The close <a> tag was missing a '/'. This would have lead there to be an infinite link, no?

Dave.

PS: I'll install afresh now and see if I still get the errors.

Davey 01-10-2003 07:44 PM

Ok, now you have to sort out a bank error.
Only userid '1' can deposit money properly.
No-body else can.
This is EXTREMELY annoying and has happened before on a previous install of the itemshop/store.

Bitsys 01-10-2003 08:32 PM

Oops, there are tons of errors in online.php besides the ones you guys pointed out. I am in the process of fixing these right now. It will make for a better online.php overall. Thanks for bringing this to my attention.

Davey:
Is it giving you an error message? If not, do the following:
In phpmyadmin, go to the items_user table. Browse this table. There should be one row per user, if there isn't then let me know.

Davey 01-10-2003 09:18 PM

Actually, there's no error message.
It just only lets userid '1' deposit money.
I added the user 'bank' in the admin panel and gave it 10000000, and it worked, it had 10000000.
I went to the bank logged in as 'Bank', and deposited all 10000000, and it said:
Quote:

Cash: 0
Deposit:
Or something of the like. The 'Deposit' bit was empty, not even '0'.
Here is a screenshot of the phpmyadmin 'items_user' table:

Dave.

PS: It seems to me that when you add users in the admin panel, it's not adding those fields correctly.

Bitsys 01-10-2003 09:30 PM

Quote:

Originally posted by Davey
Actually, there's no error message.
It just only lets userid '1' deposit money.
I added the user 'bank' in the admin panel and gave it 10000000, and it worked, it had 10000000.
I went to the bank logged in as 'Bank', and deposited all 10000000, and it said:

Or something of the like. The 'Deposit' bit was empty, not even '0'.
Here is a screenshot of the phpmyadmin 'items_user' table:

Dave.

PS: It seems to me that when you add users in the admin panel, it's not adding those fields correctly.

Oops, forgot to tell you about that. That has been a bug since the beginning. When you add users via the admin cp, the user IDs aren't added to the items_user table or the battle_stats table. To fix this, see the attached file and instructions at https://vborg.vbsupport.ru/showthrea...220#post340220 . Run the attached file and post what it says. Make sure it is in your admin directory.

Davey 01-10-2003 10:00 PM

What attached file?
And now I can't battle either, it says You are inelegible for battle, when I'm not. The other user is legible for battle, also.

Dave.

Bitsys 01-10-2003 10:01 PM

Quote:

Originally posted by Davey
What attached file?
And now I can't battle either, it says You are inelegible for battle, when I'm not. The other user is legible for battle, also.

Dave.

The attached file at https://vborg.vbsupport.ru/show...0220#post340220 .

Bitsys 01-10-2003 11:10 PM

Alright, I think I have fixed online.php. Follow the instructions in the attached file and let me know how it goes. I have tested this on my test board and it seems to work fine, however, I may have missed something (again).

Xyphen 01-10-2003 11:36 PM

Davey, thnx for the fix, but there is a update now!

Mijae 01-11-2003 02:50 AM

How is the HP, MP, PP calculated? I have 1 user at level 2 with 1110+ hp and one with 650+, while all others have 250 at most. I want to know how its calculated so I can figure it out.


All times are GMT. The time now is 03:56 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.02719 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_php_printable
  • (3)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