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)

Travis641 01-09-2003 04:00 AM

Also, the battle's aren't detecting weapons, armor, or potions I believe. Any fix?

Bitsys 01-09-2003 12:24 PM

Heh, I forgot to tell you guys some important info about the new version.

The user profile fields "Experience" and "Level" are no longer used. Also, post count is no longer used to determine a user's level. Instead, there is a new field in the user table called "xp". This is the user's experience. From this number, the user's level is calculated on the fly. You can determine how much experience it takes to get to the next level by adjusting the "Power level modifier" field in the Battle Options menu.

The reason why all stats went back to 0 is that everyone starts with 0 experience. If you want people to get experience for posts they previously made, then go to the "Mass Experience" Menu in the admin cp.

You can let users gain experience for posts, battle turns, and battle wins, all configurable in the Battle Options menu.

mr e:
Thanks for finding those, the new files will bit uploaded in a little bit.


Travis641:
It sounds like your database did not have all of the queries run successfully. Did you get any errors when you installed it with vbhacker?

Try running the attached file, and let me know what it says. Make sure you upload it into your admin directory.

To fix the weapons, armor, and potions not showing up, read https://vborg.vbsupport.ru/showthrea...575#post329575 . Make sure you have done that.

mr e (re: newreply.php):
Are you sure that newreply.php is in the correct directory? That doesn't seem like an error the hack would cause, since in newreply.php it only adds some database queries.

vdinh 01-09-2003 04:00 PM

Hi Bitsys,
I have a suggestion: Since we already have GenSec's Pickpocket hack. Is there a way that you can allow users to steal weapons from others ? That would be fun :D

Travis641 01-09-2003 08:38 PM

Quote:

Originally posted by Bitsys
Travis641:
It sounds like your database did not have all of the queries run successfully. Did you get any errors when you installed it with vbhacker?

Try running the attached file, and let me know what it says. Make sure you upload it into your admin directory.

To fix the weapons, armor, and potions not showing up, read https://vborg.vbsupport.ru/showthrea...575#post329575 . Make sure you have done that.

I get this, when I run the file:

Populating items_user database
No IDs were inserted.
Done with the items_user database.
Populating battle_stats database
No IDs were inserted.
Done with the battle_stats database.
Fix done.

But still nothing in showthread =\

Also weapons are working now! =)

Bitsys 01-09-2003 10:42 PM

Quote:

Originally posted by Travis641


I get this, when I run the file:

Populating items_user database
No IDs were inserted.
Done with the items_user database.
Populating battle_stats database
No IDs were inserted.
Done with the battle_stats database.
Fix done.

But still nothing in showthread =\

Also weapons are working now! =)

Make sure that the install file made changes to the second HUGE database query in showthread.php. There are two queries that are very similar. After the hack, they should be nearly identical. The queries begin with

$posts=$DB_site->query("

and

$post=$DB_site->query_first("

Each of these queries should be similar, and they should also be a lot longer than the default queries. Make sure that this is the case. To find out what code needs to be inserted, have vbhacker generate a text file of the hack, and manually make sure that the changes were applied to both queries, even when there is only one file edit.

Travis641 01-10-2003 12:21 AM

I've checked and reinstalled the showthread.php making PERFECTLY sure that it was right - but it's still not working. =\

Travis641 01-10-2003 12:44 AM

Doh! Apparently something DID go wrong during installation. I replaced all the files with clean files, and reinstalled just the file edits and now it works perfectly (well the check stats still says my attack and all that is 0, but I can live with that!). Sorry for all the trouble! =)

mr e 01-10-2003 01:49 AM

what do u mean the stats are 0? if you fixed the showthread they should all be fixed

Travis641 01-10-2003 01:55 AM

I mean when I click "Check Stats" on the posts, it says:
Attack: 0
Magic Attack: 0
Speed: 0
Defense: 0
Magic Defense: 0
Evade: 0

But when in battles its all fine.

Davey 01-10-2003 02:09 AM

I tried installing this again (I'm not sure what version of the battle system, it was a while back) and followed the guide as best I could (choosing not to edit showthread.php) and whereever I went I seemed to get database errors. Itemshop.php, etc.

Dave.

PS: Yes I'd followed all the steps correctly.


All times are GMT. The time now is 05:05 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.02791 seconds
  • Memory Usage 1,746KB
  • 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_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