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)

mli 12-16-2002 10:23 PM

Mrpolish try this:

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.

It worked for me :banana:

Bitsys 12-16-2002 10:24 PM

jags2ooo:
Did you add items to the new categories?

Strider Xero 12-16-2002 10:28 PM

Bitsys, my Battle Hack is 'on' also....my settings are the exact same as MLI's..

Mrpolish 12-17-2002 02:20 AM

I get an error when i trz to replz to a post

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

mysql error number: 1054

jags2ooo 12-17-2002 04:00 PM

Yes I added the items to the new categories, it is all set up, but it still never shows up, contact me on AIM Bitsy at anipro69.

jags2ooo 12-17-2002 04:32 PM

fixed it

VeoMorphine 12-17-2002 05:36 PM

OK, i fixed the register bug.

Some how, for some un-known reasen the install script was trying to put a userid in the itemshop_user in that was allready there. So i replaced:

$DB_site->query("INSERT INTO items_user (userid) VALUES ($userid)");

With the user update code from the install_itemsho_items.php and it works great now.

mli 12-17-2002 05:52 PM

Quote:

Originally posted by Mrpolish
I get an error when i trz to replz to a post

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

mysql error number: 1054

That's from the itemsop hack. GOOD LUCK WITH THAT!!! I hate the itemshop hack because of that. In the admin panel it asks you want userfield you want the money to be stored in. The only problem is that it has to be a field from 1-9!!! And everytime you create a field a number is wasted. So if you have 5 new fields and you used to have 10 others but you deleted them you'll have to put field15 in the itemshop part of the admin panel. But that won't WORK! Well mine works :glasses:

jags2ooo 12-17-2002 08:04 PM

Hey I was wondering, can I restock items mannuelly or do I have to wait till they do automatically?

VeoMorphine 12-18-2002 11:29 AM

Quote:

Originally posted by mli

That's from the itemsop hack. GOOD LUCK WITH THAT!!! I hate the itemshop hack because of that. In the admin panel it asks you want userfield you want the money to be stored in. The only problem is that it has to be a field from 1-9!!! And everytime you create a field a number is wasted. So if you have 5 new fields and you used to have 10 others but you deleted them you'll have to put field15 in the itemshop part of the admin panel. But that won't WORK! Well mine works :glasses:

why not just do it through mysql?

VeoMorphine 12-18-2002 11:30 AM

Quote:

Originally posted by jags2ooo
Hey I was wondering, can I restock items mannuelly or do I have to wait till they do automatically?
ill write a script to do that and post it up here later. It will set all item stocks to a selected number.

Strider Xero 12-18-2002 02:14 PM

Alright, i'm the guy who was having trouble with the HP/MA/PP/AP stats. All the bars and numbers(with the exception of the EXP) were not going anywhere. They all stayed at 0/0. I found out that you have to click 'Update Stats' found in the UserCP to actually get it displaying numbers and also for the bars to fill up. The problem with this is that the numbers and bars will stay the same until you hit 'Update Stats' again. They all stay at something like 90/90 or 36/36 even after you make new posts and replies. The EXP works just fine though.

I was wondering if you planned on fixing this in the next version so it would update the stats and also the MaxHP, maxAp, maxMA, and maxPP automatically after each post??

Bitsys 12-18-2002 02:31 PM

Quote:

Originally posted by Strider Xero
Alright, i'm the guy who was having trouble with the HP/MA/PP/AP stats. All the bars and numbers(with the exception of the EXP) were not going anywhere. They all stayed at 0/0. I found out that you have to click 'Update Stats' found in the UserCP to actually get it displaying numbers and also for the bars to fill up. The problem with this is that the numbers and bars will stay the same until you hit 'Update Stats' again. They all stay at something like 90/90 or 36/36 even after you make new posts and replies. The EXP works just fine though.

I was wondering if you planned on fixing this in the next version so it would update the stats and also the MaxHP, maxAp, maxMA, and maxPP automatically after each post??

The update stats link is getting removed from the next version. It is going to be more streamlined. Updating the stats after each post would be a little excessive, in my opinion, because your stats only change when you gain a level. Otherwise, they stay the same. My user's have found it just as easy to update their stats when they gain a new level, since that doesn't occur very often at levels above 10. I think you like the way version 0.56 handles the update stats link.

Bitsys 12-18-2002 02:49 PM

Version 0.56 is complete. There is no upgrade file for it.

Bugs Fixed:
  • Fixed negative donation steals user's money bug.
  • Fixed users can change their class and still use class-specific weapons bug.
  • Fixed many typos and template inconsistencies in the battle templates (nearly all templates were changed).
  • Fixed the reapeat the battle attack by refreshing the battle screen after attacking bug.
  • Fixed the incorrect alignment display in the postbit when moving races from one alignment to another bug.
  • Any other bug that I have previously mentioned as being fixed in this thread plus many other minor ones.

New features:
  • A PM is now sent to the recipient of monetary donations saying how much was donated and who donated it. Users can also donate anonymously.
  • In the "Edit Items" menu of the admin cp, you can now manually set the stock of each item.
  • A healing center has been added. TO go to the healing center, use http://www.yourdomain.com/vBulletin/heal.php as the link (replacing "yourdomain" and "vBulletin" with the appropriate values). At the healing center, user's can pay to revive themselves or do partial healings after battles. They can also replenish their MA. If a user is in battle, does not have enough money, or has full HP/MA, then they cannot use the healing center.
  • Items now have a level associated with them. You can specify whether or not you want item levels hidden from users. If hidden, then a user whose level is below that of the weapon will not be able to see or know that the weapon exists, unless someone else already has the weapon. In which case they will only be able to see it in the postbit or battle fight screen. They will not know the level requirement for it.
  • A battle statistics page has been added. You can list the Top 10 (or Bottom 10) user's with the most (or least) battles fought, battles won, battles lost, battle draws, and retreats. Click on the headings to switch the order around. You can also display a user's battle statistics in the postbit.
  • On the update profile page, there is now a checkbox to update your stats, instead of the customary link to a pop-up menu.
  • You can now specify an auto-refresh time in the admin cp to control how often the battle fight screen refreshes. Calculated in seconds.
  • Any other feature I have previously mentioned in this thread.

A quirk with the new checkbox to update stats in the modify profile screen is that when you check the box and click the submit button, a lot of variables are output to the screen. This is temporary output for beta testing purposes and will not be displayed in the final version.

The new .zip file is located in the original post.

To install this version, re-install vBulletin, re-upload/overwrite the files included in the .zip, and re-apply the hack (using install.txt as a guide). This version does not have an upgrade file.

Thanks again for beta testing! :)

Aerith_Freak 12-18-2002 03:26 PM

Just a quick question. With the attack function, what type of attacks can a user use, or is there just one attack? Is there a skills tree of any kind?

Thewnagchung 12-18-2002 03:55 PM

i installed this on my forum, works like a charm, THANKS!

ps whenever i try to upload version 56 it still tries to upload 55b

Bitsys 12-18-2002 04:31 PM

Quote:

Originally posted by Aerith_Freak
Just a quick question. With the attack function, what type of attacks can a user use, or is there just one attack? Is there a skills tree of any kind?
As far as skill trees go, there are none. The user has several attacks available including attack spells, normal attacks, and "anger-motivated" attacks, which deal at least 10% extra damage. Previous versions of the RPG Class Hack had something called "limit breaks", which were special attacks. These were taken out in my hack because there was no easy way to integrate them while still providing some sort of functionality to the users.

jags2ooo 12-18-2002 06:42 PM

Parse error: parse error, expecting `']'' in /home/dark-ani/public_html/forums/admin/functions.php(418) : eval()'d code on line 83

I am getting this error everytime I go into a thread, anyone can help me?

Bitsys 12-18-2002 07:35 PM

Quote:

Originally posted by jags2ooo
Parse error: parse error, expecting `']'' in /home/dark-ani/public_html/forums/admin/functions.php(418) : eval()'d code on line 83

I am getting this error everytime I go into a thread, anyone can help me?

If you PM me that line of code from functions.php then I can look at it. However, I am not getting that error in funtions.php, so I am not too sure about what is causing it. Based on the line numbers given, it does not appear that the erroneous code is coming from my hack, although I could be wrong.

assassingod 12-18-2002 08:32 PM

This error when trying to enter battle (0.56, 2.2.9)

Quote:

Fatal error: Maximum execution time of 30 seconds exceeded in c:\apache\htdocs\battle\battlefight.php on line 448

Fatal error: Maximum execution time of 30 seconds exceeded in c:\apache\htdocs\battle\admin\functions.php on line 2464

Mrpolish 12-18-2002 09:52 PM

I get an error when trying to open itemshop.php

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

mysql error number: 1054

And also an error when i try to open heal.php

Invalid SQL: SELECT items_user.bankval, userfield.field5 FROM items_user, userfield WHERE items_user.userid='1' AND userfield.userid='1'
mysql error: Unknown column 'userfield.field5' in 'field list'

mysql error number: 1054

I installed both rpg and items.
And also it shows i am in battle and that battle does not exist, how i can delete that.

vb ver 2.2.8
hack ver.56

Bitsys 12-18-2002 09:52 PM

Quote:

Originally posted by assassingod
This error when trying to enter battle (0.56, 2.2.9)


Are you on a free/shared server? Did you try re-uploading battlefight.php? The cause of that error is the user item loop. I have never had that error on my forums, but a temporary fix is to do the following (I think):

In battlefight.php, find twice:
PHP Code:

while ($count <= $totalcats[0]) { 

and BELOW it, add:
PHP Code:

if($count 50)
  break; 

There are two places you need to do this. They should be right after one another and should look very similar.

Let me know if that helps.

Bitsys 12-18-2002 09:59 PM

Quote:

Originally posted by Mrpolish
I get an error when trying to open itemshop.php

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

mysql error number: 1054

And also an error when i try to open heal.php

Invalid SQL: SELECT items_user.bankval, userfield.field5 FROM items_user, userfield WHERE items_user.userid='1' AND userfield.userid='1'
mysql error: Unknown column 'userfield.field5' in 'field list'

mysql error number: 1054

I installed both rpg and items.
And also it shows i am in battle and that battle does not exist, how i can delete that.

vb ver 2.2.8
hack ver.56

Something did not go right when you ran install_itemshop_items.php. Either that, or you have not properly filled in the point field name in the "Edit Itemshop Options" menu in the admin cp. To figure out what went wrong, in the admin cp go to the modify user profile fields screen and check for a field called Points. If there is not a field called points, then create a new one called "points" and make it hidden to the user, not required, and not editable. After adding it, use the following instructions to get it working:
Quote:

Originally posted by mli
Mrpolish try this:

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

It worked for me :banana:

If there is already a field called Points, then use the above instructions to get it working. If none of this works, then let me know.

Could you explain a little more about the battle problem?

Mrpolish 12-18-2002 10:09 PM

Oka that fixed the itemshop and heal problem.

Me and my friend decided to battle and when we were on the battle I was going first and i did not have anything so i had to attack with my bare fists and when i clicked attack an error showed up so i reinstalled the hack about 3 times after that and it still shows that im in battle.
I even deleted the battle entries from the sql databas and its still the same =/

Bitsys 12-18-2002 10:11 PM

Quote:

Originally posted by Mrpolish
Oka that fixed the itemshop and heal problem.

Me and my friend decided to battle and when we were on the battle I was going first and i did not have anything so i had to attack with my bare fists and when i clicked attack an error showed up so i reinstalled the hack about 3 times after that and it still shows that im in battle.
I even deleted the battle entries from the sql databas and its still the same =/

You battle status is based on a field in the `user` table called 'inbattle'. To participate in battles again, change it's value back to 0. You can do this in phpmyadmin by going to the `user` table, browsing till you find your name and your opponents name, and changing the 'inbattle' field to 0.

Mrpolish 12-18-2002 10:19 PM

Oka that fixed the battle prob but there is one more in the moderator.php
Warning: SAFE MODE Restriction in effect. The script whose uid is 48 is not allowed to access ./global.php owned by uid 10018 in /usr/local/psa/home/vhosts/ffrealms.net/httpdocs/moderator.php on line 14

Bitsys 12-18-2002 10:27 PM

Quote:

Originally posted by Mrpolish
Oka that fixed the battle prob but there is one more in the moderator.php
Warning: SAFE MODE Restriction in effect. The script whose uid is 48 is not allowed to access ./global.php owned by uid 10018 in /usr/local/psa/home/vhosts/ffrealms.net/httpdocs/moderator.php on line 14

I am not too sure about that error. It might have something to do with your hosts settings. I also notcied that you just installed this hack or another version of it on top of a previous version of it. You have duplicates in you itemshop and your postbit item loop is timing out, indicated by the "Timeout 200" message in the postbits. You would be better off removing the hack and re-applying it on a TEST board, since a test board is easy to delete and re-install.

Strider Xero 12-18-2002 11:19 PM

how do i un-install v .55?

Bitsys 12-18-2002 11:39 PM

Quote:

Originally posted by Strider Xero
how do i un-install v .55?
Umm...install it in reverse?

Seriously though, you have several options:

1. If you want to upgrade to the new version, then get Beyond Compare 2 from www.scootersoftware.com. Then, open up the two install files side-by-side (the ones ending with .hack from version 0.55 and 0.56) and make the necessary changes based on the differences in the two files.

2. If you want to uninstall and re-apply, then replace all of your hacked files with the backup files you were supposed to make when you installed the hack the first time. Then, go in to your database and remove tables that begin with "battle", "items", or "rpg". Next, remove any profile fields you (or the hack) added. Next, delete all templates in your template table that begin with "battle", "itemshop", or "rpg_". Last, remove the added fields from the template "modifyprofile" that were added by the hack. You should then be set to re-apply the hack!

Easy as that!

mli 12-19-2002 12:26 AM

It's not that easy....How are we supposed to tell what files we need to edit? And there's soooo many edits? There is no update file? WHY??!!!

Bitsys 12-19-2002 12:41 AM

Quote:

Originally posted by mli
It's not that easy....How are we supposed to tell what files we need to edit? And there's soooo many edits? There is no update file? WHY??!!!
It is very easy to use the beyond compare methods, since that is how I make the previous upgrade files.
There is no update file because it takes me 2 hours+ to make one. From the warnings section:
Quote:

Do not install this hack on a production board. Please keep this hack, while in the BETA stage, to a test board. The reason for not installing this on a production board is that I cannot provide upgrade instructions for going from one version of the beta hack to the next version of the beta hack. Also, this hack does not have an un-install script yet. So please remember, if you decide to install this on a production board, you are doing so at your own risk.

Also, it is very hard to test the update file because I have to actually do it, which takes another 45 minutes to an hour based on the number of changes. This particular update has an unusually large number of changes because of all the new features I added.

There is no uninstall script because each uninstall script would have to be different depending on which version you installed. Each version of the un-install script would then need to be tested and re-tested to make sure that it took out everything and worked fine. This takes a long time.

So, economically speaking, it is more productive to work on adding more features for the next version rather than working on an upgrade/un-install script for the current version, as implied in the warnings section. Also, just because I have not made an upgrade script for this version yet, it does not mean I won't do so in the future. It just takes so long to do that I would rather let the Test board people have a go at it before I waste 3 hours making an upgrade file.

This rule does not apply to the final release. If I find a need to update the final release, then upgrade instructions will ALWAYS be included as well as an uninstall script.

DarkDraco07 12-19-2002 01:24 AM

i was working on uninstall files for bitsys's battle hack but i got caught up in other things. ill work on it as soon as i can

assassingod 12-19-2002 06:20 AM

Quote:

Originally posted by Bitsys

Are you on a free/shared server? Did you try re-uploading battlefight.php? The cause of that error is the user item loop. I have never had that error on my forums, but a temporary fix is to do the following (I think):

In battlefight.php, find twice:
PHP Code:

while ($count <= $totalcats[0]) { 

and BELOW it, add:
PHP Code:

if($count 50)
  break; 

There are two places you need to do this. They should be right after one another and should look very similar.

Let me know if that helps.

Running on localhost.
I have not tried that yet, will do. Thanks for the fix, let you know how it goes

over 12-19-2002 12:45 PM

omg :) excellent ! :D <- kills off other rpg styled hacks (in a few days). going to install this. kuodos to all peeps hacks etc, which have been integrated into just one hack.

must say again sweet ! :D

geniuscrew 12-19-2002 01:20 PM

Guys, before you install it, BACK-UP your original files!

This will save you if you want to un-install it for whatever reason.

Gonna upgrade to 0.56 hopefully tonight.

Nice one Bitsys!

VeoMorphine 12-19-2002 06:18 PM

i have no life(well actly i got to got a drill with the firedept tonight but thats not to long) so allow me to make a upgrade script.

Are all the tables the same?

assassingod 12-19-2002 06:30 PM

Still recieving the problem even after the fix.
Any idea what I should do?

Bitsys 12-19-2002 06:50 PM

VeoMorphine:
Nope, 2 or 3 tables had new fields added to them.

assassingod:
An easy fix is to comment out the code. Put "/*" before the loop code and "*/" after the loop code. If this doesn't fix the problem, then there is something seriously wrong.

BTW, the loop code begins with
Code:

// Part of the following code comes from a post made by
and ends with
Code:

// End joint fix.
So, you should make it look like
Code:

/*
// Part of the following code comes from a post made by

And
Code:

*/  // End joint fix.

assassingod 12-19-2002 07:44 PM

Will try that now, thanks

Mrpolish 12-19-2002 10:52 PM

Where you can change the amount of gold users start with or the amount of gold they get per post ?

I deleted the whole hack like u told me and reinstalled it and now everything works fine along with the battle, itemshop and heal station.


All times are GMT. The time now is 01:10 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.02489 seconds
  • Memory Usage 1,865KB
  • 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
  • (4)bbcode_code_printable
  • (4)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