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)

Strider Xero 02-09-2003 03:32 AM

The big thing i dont like about this hack is that you have to update your stats from the profile all the time. I got tired of it that's why i dont use it anymore. I dont understand why there cant be an option where it updates your bars automatically...it's so much more convenient. This is the only rpg hack that i know of you need to do this with(php&mysql boards in general, not just vB)

Dribbles 02-09-2003 02:48 PM

Quote:

Originally posted by mr e
what happens when a level 20 challenges a level 2?
Either the level two needs to join a group or become someone's prag, or he's dead meat :dead:

Bitsys 02-09-2003 03:31 PM

Solice:
All I can suggest now is to wait for the next version. It will tell you specifically what you need to do in order to be eligible for battle.

Graphics (first post):
Random battles are not very feasible at this time.

Graphics (second post):
A long time ago (back when I was first working on this hack), I tried to add the limit break hack. I tried all sorts of things to add it in. Eventually, I realized that the limit break hack is not a very easy thing to implement using the mysql database and admin control panel. In fact, due to the large amounts of data involved, I was very enthusiastic about adding 5 separate limit breaks per class, since there are 30+ classes. Not to mention the balancing issues that span different classes. Maybe someone will make an add-on for it.

Rufus69:
Did you read https://vborg.vbsupport.ru/showthrea...014#post329014 yet?

Dribbles:
That's how I originally had this hack, before I released it here. However, my members complained quite a bit. In short, allowing it would create too much griefing. That's why I made the confirmation part of the battle.

Strider Xero:
It takes a minimal amount of hacking to do what you want. However, it also adds to the server load. There is always a trade-off and I never felt like it was worth it.


I don't think the next version will be released today. I have decided to add some more features. These additions will delay the release. However, I think you will be pleased with the new additions.

Dribbles 02-09-2003 03:33 PM

Quote:

Originally posted by Bitsys
Dribbles:
That's how I originally had this hack, before I released it here. However, my members complained quite a bit. In short, allowing it would create too much griefing. That's why I made the confirmation part of the battle.

Thanks, it's a great hack either way. Would it be possible to make this an option you can turn on and off in the admin cp? (ie- "Turn on/off battle confirmation from both users before attacks are allowed")

Graphics 02-10-2003 07:10 AM

So when is this version out I cant open my forum till the bugs are fixed :S

Dribbles 02-10-2003 12:45 PM

Why not?

SHoeSTeR 02-10-2003 03:46 PM

Database error in vBulletin 2.2.9:

Invalid SQL:
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter,
user.ma AS uma,user.hp AS uhp,user.pp AS upp,user.ap AS uap,items_options.pointfield,items_options.lesanes tore,battle_options.namefield,battle_options.expra te,battle_options.privacy AS battleprivacy,items_user.*,battle_stats.*,rpg_race .name AS rpgracename,rpg_race.alignment AS rpgalignmentname,rpg_classf.name AS fclassname,
rpg_classf.folder AS fclassfolder,rpg_classm.name AS mclassname,rpg_classm.folder AS mclassfolder,rpg_element.name AS elename,
user.ma AS uma,user.hp AS uhp,user.pp AS upp,user.ap AS uap,items_options.pointfield,battle_options.namefi eld,battle_options.usepostcount,battle_options.exp rate,battle_options.levelfield,battle_options.priv acy AS battleprivacy,items_user.*,rpg_race.name AS rpgracename,rpg_race.alignment AS rpgalignmentname,rpg_classf.name AS fclassname,
rpg_classf.folder AS fclassfolder,rpg_classm.name AS mclassname,rpg_classm.folder AS mclassfolder,rpg_element.name AS elename
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
FROM post, battle_options, items_options
LEFT JOIN icon ON icon.iconid=post.iconid
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN items_user ON items_user.userid=user.userid
LEFT JOIN rpg_classf ON rpg_classf.id=user.rpgclass
LEFT JOIN rpg_classm ON rpg_classm.id=user.rpgclass
LEFT JOIN rpg_element ON rpg_element.elementid=user.element
LEFT JOIN rpg_race ON rpg_race.raceid=user.rpgrace AND rpg_race.alignmentid=user.alignment
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
WHERE post.postid IN (0,9689,9690,9691,9745,10038)
ORDER BY dateline

mysql error: Unknown table 'battle_stats'

mysql error number: 1051

Date: Monday 10th of February 2003 11:43:13 AM
Script: http://64.191.17.37/~gosuleet/forums...p?threadid=787
Referer:


Please help.

Bitsys 02-10-2003 04:23 PM

Dribbles:
I am not sure if that is possible. There are several places that deal with the confirmation. I have to check and see if they can just be ignored and the battle continues.


Quote:

Originally posted by SHoeSTeR
Database error in vBulletin 2.2.9:

Invalid SQL:
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter,
user.ma AS uma,user.hp AS uhp,user.pp AS upp,user.ap AS uap,items_options.pointfield,items_options.lesanes tore,battle_options.namefield,battle_options.expra te,battle_options.privacy AS battleprivacy,items_user.*,battle_stats.*,rpg_race .name AS rpgracename,rpg_race.alignment AS rpgalignmentname,rpg_classf.name AS fclassname,
rpg_classf.folder AS fclassfolder,rpg_classm.name AS mclassname,rpg_classm.folder AS mclassfolder,rpg_element.name AS elename,
user.ma AS uma,user.hp AS uhp,user.pp AS upp,user.ap AS uap,items_options.pointfield,battle_options.namefi eld,battle_options.usepostcount,battle_options.exp rate,battle_options.levelfield,battle_options.priv acy AS battleprivacy,items_user.*,rpg_race.name AS rpgracename,rpg_race.alignment AS rpgalignmentname,rpg_classf.name AS fclassname,
rpg_classf.folder AS fclassfolder,rpg_classm.name AS mclassname,rpg_classm.folder AS mclassfolder,rpg_element.name AS elename
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
FROM post, battle_options, items_options
LEFT JOIN icon ON icon.iconid=post.iconid
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN items_user ON items_user.userid=user.userid
LEFT JOIN rpg_classf ON rpg_classf.id=user.rpgclass
LEFT JOIN rpg_classm ON rpg_classm.id=user.rpgclass
LEFT JOIN rpg_element ON rpg_element.elementid=user.element
LEFT JOIN rpg_race ON rpg_race.raceid=user.rpgrace AND rpg_race.alignmentid=user.alignment
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
WHERE post.postid IN (0,9689,9690,9691,9745,10038)
ORDER BY dateline

mysql error: Unknown table 'battle_stats'

mysql error number: 1051

Date: Monday 10th of February 2003 11:43:13 AM
Script: http://64.191.17.37/~gosuleet/forums...p?threadid=787
Referer:


Please help.

In showthread.php, find both instances of
PHP Code:

LEFT JOIN items_user ON items_user.userid=user.userid 

and after it, put:
PHP Code:

LEFT JOIN battle_stats ON battle_stats.userid=user.userid 

Let me know if that works.

Dribbles 02-10-2003 05:54 PM

well, you're already doing a lot of great work for this hack ... so if it is a problem, don't worry about it man :) Just focus on the important stuff :) Will the next version be out soon?

Darkwaltz4 02-10-2003 08:04 PM

bitsys i have two suggestions::

keep in mind real quick that you never post template changes in the manual update mode -_- (so im not sure if these have been done yet)

anyway:

whenever a person submits information about their character in their profile, it updates them automatically...

2,
whenever you set element stat increases, how about making decreases available as well? my other admin thought this would be cool, and i think so too--i think it would mainly just be signing the column in the database (to accept negatives) and _maybe_ a stat checking system which would include making sure stats stay above zero even if the element shoves it below (like 10 hp total if a element drops you below)

just some ideas-

Graphics 02-10-2003 08:44 PM

Quote:

Originally posted by Dribbles
Why not?
I promised my member to have the forums new version open with the bs bugs all fixed and updated withthe new version.
I have almost everything set up and thats the last hack (and most important) that I need.
I dont mean to rush you bitsys!

JGM007 02-11-2003 02:54 PM

Quote:

Originally posted by Graphics

I promised my member to have the forums new version open with the bs bugs all fixed and updated withthe new version.
I have almost everything set up and thats the last hack (and most important) that I need.
I dont mean to rush you bitsys!


Should not make promises like that ;)


Bitsys is being a very busy person yes. He has to have life outside of programming.

He does a good job and will get to it when it is done. :D

xxxsaint 02-11-2003 04:48 PM

Quote:

I promised my member to have the forums new version open with the bs bugs all fixed and updated withthe new version.
I have almost everything set up and thats the last hack (and most important) that I need.
I dont mean to rush you bitsys!
sounds like a personal problem to me.

Dribbles 02-11-2003 05:35 PM

Quote:

Originally posted by Graphics

I promised my member to have the forums new version open with the bs bugs all fixed and updated withthe new version.
I have almost everything set up and thats the last hack (and most important) that I need.
I dont mean to rush you bitsys!

Post #1:

Quote:

WARNINGS:

Do not install this hack on a production board. Please keep this hack, while in the BETA stage, to a test board.

mr e 02-12-2003 03:21 AM

you can enter negative values can't you? and keeping the hp above 10 would be a good idea, but im waiting till bitsys releases his next update before i do anymore work on the hack

Quote:

Originally posted by Darkwaltz4
bitsys i have two suggestions::
2,
whenever you set element stat increases, how about making decreases available as well? my other admin thought this would be cool, and i think so too--i think it would mainly just be signing the column in the database (to accept negatives) and _maybe_ a stat checking system which would include making sure stats stay above zero even if the element shoves it below (like 10 hp total if a element drops you below)

just some ideas-


jazza 02-12-2003 11:43 AM

sorry, this will probably sound dumb to you guys, but how do i "CHMOD the following files to 0777"

sonic3d 02-12-2003 01:44 PM

i have a few questions to ask.

1.) during battle i quickly level up fast. i was at lv 6. after the battle was over i was back down to LV. 2.
what does that happen?

2) where do i go to chnage how much experience need to go to the next level.

thank you
sonic

Dribbles 02-12-2003 01:45 PM

Did you press "update stats" in your usercp after the battle?

Mrpolish 02-12-2003 02:29 PM

Most ftp programs have that option when you right click on a file and then select "Chmod" or "change attributes", and then select 777 or whatever you want it to be.

jazza 02-12-2003 03:32 PM

cheers

Darkwaltz4 02-12-2003 09:55 PM

aha. yes, i just noticed that version .61 allows for element negatives. that is very nice, and i retract my suggestion, which is now void, heh--i did warn that it was from the .55 system i was coming from. oh well

sonic3d 02-13-2003 09:36 PM

can ne1 help me on this plz.

where do i go to change how much experience you need to go onto the next level. thanx

l8er
sonic

mr e 02-13-2003 09:55 PM

in admin cp, go to Battle Options and there is a place to enter a number 1-5, higher number means you level faster

sonic3d 02-13-2003 10:01 PM

mines is 1 but its still way too fast. is there a way too configure it through php?

l8er
sonic

Bitsys 02-14-2003 10:42 AM

Quote:

Originally posted by sonic3d
mines is 1 but its still way too fast. is there a way too configure it through php?

l8er
sonic

Unfortunately, the lowest number is 1 and the maximum number is 5 due to a php function limitation. If you are still leveling too fast, then I suggest you lower the amount of XP gained per win in battle and/or the amount of experience gained per turn in battle. Also, assuming you are giving experience for posts, you can lower that as well. If all of these values are at a minimum, then there is nothing else you can do except adjust the level function.

The level function is located in functions.php. It is called 'getlevel'. This function computes a user's level and returns either a float or an integer, depending on what is passed to it. If you want to lower everyone's level, than you can probably perform some division on the numbers before they are rounded off and this would give the allusion that they are at a lower level, for all practical purposes. In fact, if you are not happy with the way levels are gained and you want a linear leveling system, then you can change the function to do this as well. All changes done to the level function apply immediatley and will affect users who are in battle. However, it will not lower a user's stats to the correct setting until they update their stats.

PSI|Dr-X 02-14-2003 11:39 AM

Bytisis When :P do you gonna release the full version/next version
:)

I am waiting for it :)

sonic3d 02-14-2003 03:28 PM

Quote:

Originally posted by Bitsys


Unfortunately, the lowest number is 1 and the maximum number is 5 due to a php function limitation. If you are still leveling too fast, then I suggest you lower the amount of XP gained per win in battle and/or the amount of experience gained per turn in battle. Also, assuming you are giving experience for posts, you can lower that as well. If all of these values are at a minimum, then there is nothing else you can do except adjust the level function.

The level function is located in functions.php. It is called 'getlevel'. This function computes a user's level and returns either a float or an integer, depending on what is passed to it. If you want to lower everyone's level, than you can probably perform some division on the numbers before they are rounded off and this would give the allusion that they are at a lower level, for all practical purposes. In fact, if you are not happy with the way levels are gained and you want a linear leveling system, then you can change the function to do this as well. All changes done to the level function apply immediatley and will affect users who are in battle. However, it will not lower a user's stats to the correct setting until they update their stats.

thanx will try it soon as i get home.

Bitsys 02-14-2003 04:08 PM

Quote:

Originally posted by PSI|Dr-X
Bytisis When :P do you gonna release the full version/next version
:)

I am waiting for it :)

I am still working out some bugs in it. There have been some major changes that are not wanting to work together properly ;)

Also, with 2.3.0 out now, that is one more thing I have to test ;)

sonic3d 02-15-2003 03:04 AM

when some1 retreats from a battle the winner get the money and both opponents are refunded with the money?

can ne1 help me on this?

l8er
sonic

PSI|Dr-X 02-15-2003 10:12 AM

Check Screenshot :pirate:

Mystic Gohan 02-15-2003 01:27 PM

In the release version will you be able to buy more then 1 weapon, armor, and accessories. Also can you insert the Clan hack into this so you can buy a clan when you have enough money.

mr e 02-15-2003 04:45 PM

to buy more than one weapon etc, just make another category and name it like second hand or something like that

Darkwaltz4 02-15-2003 08:03 PM

yeah, a clan thing might be cool--but not have it do anything...

also--

could you make certain classes only available at certain levels? similar to the items--cause whod wanna ever be a black mage when they can go straight for archmage?

Xyphen 02-16-2003 02:41 PM

People People, calm down with the requests. Bitsys is a human just like you he isn't a robot you know.., he cannot possibly do all this. Slow the requests down, let him rest a bit. I probably can do it, but maybe hes getting pissed now cuz all of you making so many requests, why not just try and make an addon yourself and then give it to Bitsys and he can add to the next version with a little mod? I am sure that will help him out more. Personally I wouldnt be able to do anything like this, and you guys shouldn't be so selfish, instead of thanking him, you keep on asking him to add and add and add more and more stuff... -_-

Kyrie 02-16-2003 03:20 PM

Database error in vBulletin 2.2.9:

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

mysql error number: 1054

Date: Sunday 16th of February 2003 12:16:47 PM
Script: http://forums.yuuna.net/newreply.php
Referer: http://forums.yuuna.net/newreply.php...&threadid=1581



I have nooo idea what this means... can someone please help me?

mr e 02-16-2003 03:29 PM

go to User Profile Fields in your admin cp and check the number of the field for the RPG Name (hover over the link and at the very end there should be a number, remember it) then go to Edit Battle Options and at the top change it to "field#" where the number is the one you remembered

Quote:

Originally posted by Kyrie
Database error in vBulletin 2.2.9:

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

mysql error number: 1054

Date: Sunday 16th of February 2003 12:16:47 PM
Script: http://forums.yuuna.net/newreply.php
Referer: http://forums.yuuna.net/newreply.php...&threadid=1581



I have nooo idea what this means... can someone please help me?


mr e 02-16-2003 03:31 PM

bitsys has redone and added a lot of features to the battle hack and he's trying to get them to work right now, i've seen it with the features, and it's not ready to give out right yet, but the new features will almost completely redo the way potions, spells and potentially other items work, so hold tight for now :D

Quote:

Originally posted by AViO 07
People People, calm down with the requests. Bitsys is a human just like you he isn't a robot you know.., he cannot possibly do all this. Slow the requests down, let him rest a bit. I probably can do it, but maybe hes getting pissed now cuz all of you making so many requests, why not just try and make an addon yourself and then give it to Bitsys and he can add to the next version with a little mod? I am sure that will help him out more. Personally I wouldnt be able to do anything like this, and you guys shouldn't be so selfish, instead of thanking him, you keep on asking him to add and add and add more and more stuff... -_-

Bitsys 02-16-2003 03:40 PM

Quote:

Originally posted by sonic3d
when some1 retreats from a battle the winner get the money and both opponents are refunded with the money?

can ne1 help me on this?

l8er
sonic

Umm, I am not sure about what you are asking, could you clarify?

PSI|Dr-X:
What are the vertical lines?

Mystic Gohan:
Unfortunately, I do not have enough time to include the clan hack.

Darkwaltz4:
Although that would be interesting, I don't have any plans to do that at this time.

Kyrie:
In addition to what mr e said, you can try reading https://vborg.vbsupport.ru/showthrea...664#post331664 .

Kyrie 02-16-2003 03:45 PM

Hmm, I tried that, and the field was 8 if that information is needed.... but uhm... I still get this error message.....

Database error in vBulletin 2.2.9:

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

mysql error number: 1054

Date: Sunday 16th of February 2003 12:41:59 PM
Script: http://forums.yuuna.net/newreply.php
Referer: http://forums.yuuna.net/newreply.php...&threadid=1582

Bitsys 02-16-2003 03:50 PM

Quote:

Originally posted by Kyrie
Hmm, I tried that, and the field was 8 if that information is needed.... but uhm... I still get this error message.....

Database error in vBulletin 2.2.9:

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

mysql error number: 1054

Date: Sunday 16th of February 2003 12:41:59 PM
Script: http://forums.yuuna.net/newreply.php
Referer: http://forums.yuuna.net/newreply.php...&threadid=1582

Try this one too:

1. Go to your admin panel
2. Go to modify user profile fields
3. Find the Pointfield 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 itemshop options
9. In the Point Field option put in field# and replace number with the number you recorded in step 7.


All times are GMT. The time now is 07:55 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.02390 seconds
  • Memory Usage 1,866KB
  • 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
  • (16)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