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)

Mijae 06-02-2003 08:46 PM

Bytsis, I did a full RPG reset (I put YES to EVERYTHING) and it did not clear the battle_stats table (I tried twice, both times the data was not erased/dropped).

On a side note: can anyone tell me how to credit users battle arena money for reffering people? I know that with the Store hack (by Lesane) you can set the ammount to give to your users, but since I am a newbie to PHP I am not sure what to do to make it also give you battle arena currency when you reffer someone.

PixelFx 06-02-2003 09:28 PM

Quote:

Do you mean replacing the word "gil" with "gold", or do you mean designing that currency system you were talking about earlier?
bitsys,

for now just the word from gil to gold

then later the system you and I talked about... the above would be quick fix I hope ;)

Found Error,

When I setup a dual with someone and attack... I hit the attack button and it says the following..

Invalid SQL: SELECT field6 FROM userfield WHERE userid='13'
mysql error: Unknown column 'field6' in 'field list'

Bitsys 06-03-2003 01:03 AM

Quote:

Today at 04:46 PM v0id said this in Post #1737
Bytsis, I did a full RPG reset (I put YES to EVERYTHING) and it did not clear the battle_stats table (I tried twice, both times the data was not erased/dropped).
The data is not supposed to be dropped, it is only supposed to be reset. By reset, I mean that the fields should be set to 0 (all except the userid field). Did your members' battle stats get reset to 0-0-0-0? Or did they retain their old battle records?

To verify that the table has been reset, you can run this query
Code:

UPDATE battle_stats SET battles=0, wins=0, losses=0, draws=0, retreats=0
and compare the data in the table after running the query with the data in the table before running the query.

Quote:

Today at 05:28 PM PixelFx said this in Post #1738
bitsys,

for now just the word from gil to gold

then later the system you and I talked about... the above would be quick fix I hope ;)

Hmm, I would assume you could do a mass template esit in the admin cp. Replace "gil" with "gold", right? I guess I could go make a list and location of each place where the word "gil" is used, but that seems like too much work for such a simple problem. Have you tried anything yet to switch it?

Quote:

Today at 05:28 PM PixelFx said this in Post #1738
Found Error,

When I setup a dual with someone and attack... I hit the attack button and it says the following..

Invalid SQL: SELECT field6 FROM userfield WHERE userid='13'
mysql error: Unknown column 'field6' in 'field list'

1. Go to your admin panel
2. Go to modify user profile fields
3. Find the RPG Name profile field
4. Right click over the edit link and go to copy shortcut
6. Copy it in your browser
7. Near the end there will be a number. Remember that number
8. Go to edit the battle options
9. In the top option put in field# and replace number with the number you recorded in step 7.

Let me know if that helps.

Mijae 06-03-2003 02:07 AM

It doesnt reset it. It said it did, but I checked and the data was still there. So I dropped that table, created it again, ran install_itemshop_items.php and run the DB Fix and I got it all working.

Spark 06-03-2003 04:24 PM

Uhm i have a problem
See at the attachement
When i will fight my opponent have o Points everywhere
but see self

Bitsys 06-03-2003 08:26 PM

Quote:

Today at 12:24 PM Spark said this in Post #1741
Uhm i have a problem
See at the attachement
When i will fight my opponent have o Points everywhere
but see self

Run DB Fix and tell me what it says.

PixelFx 06-03-2003 09:54 PM

seems the hack can't parse names with ' in them,

Code:


Database error in vBulletin 2.3.0:

Invalid SQL: SELECT username, hp, rpgrace, rpgclass, rpggender, element, alignment, posts, userid, inbattle FROM user WHERE username='Father's Hand'
mysql error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 's Hand'' at line 1


Bitsys 06-03-2003 10:28 PM

Quote:

Today at 05:54 PM PixelFx said this in Post #1743
seems the hack can't parse names with ' in them,

Code:


Database error in vBulletin 2.3.0:

Invalid SQL: SELECT username, hp, rpgrace, rpgclass, rpggender, element, alignment, posts, userid, inbattle FROM user WHERE username='Father's Hand'
mysql error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 's Hand'' at line 1


What file is that from?

EDIT: Nvm, I found it in battle.php. See the first post for an updated .zip file with the fixed battle.php.

PixelFx 06-03-2003 10:40 PM

ok thanks :)

Zalastri 06-04-2003 12:02 AM

Any chance of a random event type thing like on neopets? For example.. You can configure events so they have a 1/900 chance of happening. For example.. you could create an event that was like.. "You trip over a tree root and hit the ground with a thud, -5 hp!" Or "You notice a dagger stuck in the tree to the right of you, You pull it out after some struggling, You gained Rusty Dagger!"

Also jobs... Mabye the admin could specify a job.. lets say mining. You could click on the Gold miner job. It brought you to a page with a work symbol on it that you have to click once every ten seconds.. then after 100 clicks a specified action happens.. and random events could be hooked in there too.

Like? :D


All times are GMT. The time now is 09:54 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.03323 seconds
  • Memory Usage 1,753KB
  • 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
  • (3)bbcode_code_printable
  • (6)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