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

Moreliator 06-04-2003 12:16 AM

Will it mess anything up if someone with an '&' in their name tries to play the RPG?

kaotic 06-04-2003 02:13 AM

Quote:

Today at 02:02 AM Zalastri said this in Post #1746
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

lol, I like the ideas. :p They would make a very interesting addition.

Clive 06-04-2003 05:56 AM

is there an uninstaller included? if not, how do I uninstall it?

Bitsys 06-04-2003 12:44 PM

Quote:

Yesterday at 08:02 PM Zalastri said this in Post #1746
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


Sounds interesting.

Quote:

Yesterday at 08:16 PM Moreliator said this in Post #1747
Will it mess anything up if someone with an '&' in their name tries to play the RPG?

I don't think so, but it couldn't hurt to try it out.

Quote:

Today at 01:56 AM Clive said this in Post #1749
is there an uninstaller included? if not, how do I uninstall it?

Yes, there is an uninstaller included, but it is definately not guaranteed to remove everything automatically. You may have to do some manual edits.

Spark 06-04-2003 12:56 PM

Quote:

Yesterday at 05:26 PM Bitsys said this in Post #1742
Run DB Fix and tell me what it says.

Thx this mistake is history
:ermm: But there is a second Mistake that i found
In the fight, i have a weapon , but cant use it.
See self

Clive 06-04-2003 01:27 PM

seeing this thread with 117 pages, I think I'll just ask the question instead of searching if this question has already been anwered =)

about the clans, are the players allowed to make their own clan?

kaotic 06-04-2003 01:53 PM

Kind of...

You can make a new alignment which sort of works like a clan. I think that there is some info about this in your RPG Manual. Check it out.

TomokiG 06-04-2003 02:19 PM

Quote:

Today at 02:56 PM Spark said this in Post #1751
Thx this mistake is history
:ermm: But there is a second Mistake that i found
In the fight, i have a weapon , but cant use it.
See self

Perhaps you should check your weapons if they have a battle-value (Buff)... ass far I know they are initially set to 0...

?TomokiG?

Bitsys 06-04-2003 03:17 PM

Quote:

Today at 08:56 AM Spark said this in Post #1751
Thx this mistake is history
:ermm: But there is a second Mistake that i found
In the fight, i have a weapon , but cant use it.
See self


From the first post:
Quote:

In order to assign which weapon categories do what kind of damage in battle, you must go to the "Edit Category" link located in the "Edit Items" menu of the admin cp. Select a Battle type for the category and save changes.
Try doing that ;)

Quote:

Today at 09:27 AM Clive said this in Post #1752
seeing this thread with 117 pages, I think I'll just ask the question instead of searching if this question has already been anwered =)

about the clans, are the players allowed to make their own clan?


kaotic is correct. There is no native support for clans. However, you can make an alignment for each clan and let the users do it that way.

Clive 06-04-2003 04:35 PM

hmm, just a suggestion =) could you enable regular members to make their own clans? so there will be clan leaders, etc.

that would be very cool =)

kaotic 06-04-2003 04:45 PM

You can try this hack for a clan hack: https://vborg.vbsupport.ru/showthrea...=&pagenumber=1

It isn't integrated with this RPG system, but it works for my site.

Spark 06-04-2003 05:42 PM

I have a little question , again *g*
`There is a Bug with the bank , User can give themself money somuch their want.
Can someone help me ?

Bitsys 06-04-2003 10:08 PM

Quote:

Today at 01:42 PM Spark said this in Post #1758
I have a little question , again *g*
`There is a Bug with the bank , User can give themself money somuch their want.
Can someone help me ?


Could you explain the process you go through to give yourself money, as a regular user?

The only people that should be able to give themselves money are admins and mods.

Spark 06-05-2003 02:33 PM

@Bitsy
Thx for quick answer. I be surprised of the Support in this forum. :)

But i Have a little question again

I check that weapons , in the One Hand Category, but no weapon hit. Never i ?ve see in a fight that one Weapon hit.
What?s wrong`?

Bitsys 06-05-2003 02:56 PM

Quote:

Today at 10:33 AM Spark said this in Post #1761
@Bitsy
Thx for quick answer. I be surprised of the Support in this forum. :)

But i Have a little question again

I check that weapons , in the One Hand Category, but no weapon hit. Never i ?ve see in a fight that one Weapon hit.
What?s wrong`?

Did you assign the weapon a buff value greater than 0?

Spark 06-05-2003 03:06 PM

No all Weapons, Spells etc. habe a buff = 0
It must have a greater value?

kaotic 06-05-2003 03:29 PM

Yes, it must be higher than 0...

Mijae 06-05-2003 04:07 PM

Yes, I have it set to 1/5 of the weapon price.

Clive 06-05-2003 05:50 PM

a problem: Some of my forum members bought an itemshop, but their items dont have any use because of the buff. (its 0)

how will I sort it out?

thanks

kaotic 06-05-2003 05:58 PM

Well... you don't. I think it's just there for show. Besides, think of it this way: if your members could actually configure the buff, most of them would give it 1 bill buff, and sell it for maybe 10 points... if that much. :p

Bitsys 06-05-2003 08:00 PM

Quote:

Today at 01:50 PM Clive said this in Post #1766
a problem: Some of my forum members bought an itemshop, but their items dont have any use because of the buff. (its 0)

how will I sort it out?


thanks

Like kaotic said, personal itemshop items can't have a buff value because I couldn't figure out an easy way to moderate the items.

Spark 06-05-2003 08:29 PM

I want to use the Store Hack von Lesanne
Must i do anything with the RPG Hack?

Moreliator 06-05-2003 09:36 PM

Bitsy, where is the code located that makes the person challenged go first? My members really want me to base it on speed so that its more fair...or at least randomize it.
Thanks.

Bitsys 06-05-2003 10:12 PM

Quote:

Today at 04:29 PM Spark said this in Post #1769
I want to use the Store Hack von Lesanne
Must i do anything with the RPG Hack?

If you want to use Store Points in the RPG Itemshop, then you will have to go to the Itemshop Options menu and change the first option. Other than that, the two should work just fine.

Quote:

Today at 05:36 PM Moreliator said this in Post #1770
Bitsy, where is the code located that makes the person challenged go first? My members really want me to base it on speed so that its more fair...or at least randomize it.
Thanks.


In battlefight.php, find:
PHP Code:

If($confirmation == "Yes") {
                        
$curtime time();
                        
$DB_site->query("UPDATE battle SET battlestate='1',lastactive='$curtime' WHERE battlenumber='$battlenumber'");
                        
$action "enterbattle";
                } 

Somewhere in there you will need to change the 'turnid' for the battle to the ID of the person with the highest speed, or whatever you want. To do this, you could do something like:

PHP Code:

If($confirmation == "Yes") {
                        
$curtime time();
                        
$DB_site->query("UPDATE battle SET battlestate='1',lastactive='$curtime',turnid='$battle[ownerid]' WHERE battlenumber='$battlenumber'");
                        
$action "enterbattle";
                } 

The above example will make it the owner's turn first, instead of the opponent.

kaotic 06-05-2003 10:56 PM

Where is the text used in battles located? I need to adjust the spells text (Spreading his arms in a fit of rage...) since I have mercenaries set as spells. For example, here is the battle text when one attacks with a mercenary:

"Spreading his arms in a fit of rage, someone casts Archer on someone and deals X points of damage. Archer cost 0 MA to cast."

See what I'm saying? :p

Bitsys 06-06-2003 12:19 AM

Quote:

Today at 06:56 PM kaotic said this in Post #1772
Where is the text used in battles located? I need to adjust the spells text (Spreading his arms in a fit of rage...) since I have mercenaries set as spells. For example, here is the battle text when one attacks with a mercenary:

"Spreading his arms in a fit of rage, someone casts Archer on someone and deals X points of damage. Archer cost 0 MA to cast."

See what I'm saying? :p

All of those lines should be spread throughout battleupdate.php

Zalastri 06-06-2003 01:24 AM

I just have to show off my site... www.zalastri.com The defualt template might show if your not logged in though :( Its really maxed out. It has the RPG hack as pretty much the second main feature in the boards. Its a RP Community and this helped tremendousley :D!!!1!1!Eleventy11!!

PixelFx 06-06-2003 07:31 AM

I've been working on custom 3d art for the battle system, should be interesting when done, I don't have them installed in my sites battle system yet, as I'm still bug testing but I've got so far 250 items/weapons/armor/spells/jewels/potions etc etc :)hope people will check it out later :)

Spark 06-06-2003 06:29 PM

uhm thx but i mean, give it any problems with the Store hack and the RPG Hack? Bugs?

kaotic 06-06-2003 10:15 PM

Quote:

Yesterday at 02:19 AM Bitsys said this in Post #1773
All of those lines should be spread throughout battleupdate.php
Thanks!


All times are GMT. The time now is 06:07 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.03393 seconds
  • Memory Usage 1,858KB
  • 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
  • (2)bbcode_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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