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)

jags2ooo 12-10-2002 07:26 PM

where is .55 download, did u post it yet? LoL. Also will the punch work?

jags2ooo 12-10-2002 07:27 PM

check out my forum http://forums.dark-anime.net I tested out version .5 it is cool, but lots of bugs, lol

corsacrazy 12-10-2002 07:30 PM

5.5 is located over the original attachment in post #1 ! jap wont work in this version but will hopefully in the next

jags2ooo 12-10-2002 08:08 PM

I get this weird ass error when I try to enter a thread...

Database error in vBulletin 2.2.8:

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,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,45,46,47,48)
ORDER BY dateline

mysql error: Unknown column 'battle_options.usepostcount' in 'field list'

mysql error number: 1054

Date: Tuesday 10th of December 2002 05:03:49 PM
Script: http://forums.ani-pro.com/vb/showthread.php?threadid=6
Referer:

I did the upgrade like you said, damn...lol

Bitsys 12-10-2002 08:24 PM

If you did the upgrade, then run this query:
Code:

ALTER TABLE `battle_options` ADD `usepostcount` INT(3) DEFAULT '0' NOT NULL;
Seems I missed that one in the upgrade files. Let me know what happens. I will be updating the .zip shortly. Version 0.56 is almost done. I have added some features that people requested.

jags2ooo 12-10-2002 08:43 PM

nope still allot more tables u forgot about, lol.
Ill tell u they are

battle_options.levelfield,battle_options.privacy AS battleprivacy

I think that is it. If you can send me the queries for those, I will be set I am sure.

jags2ooo 12-10-2002 08:46 PM

Actually I just ran this query

ALTER TABLE `battle_options` ADD `levelfield` INT(3) DEFAULT '0' NOT NULL;

and everything is fine, THNX!

Bitsys 12-10-2002 09:06 PM

Quote:

Originally posted by jags2ooo
Actually I just ran this query

ALTER TABLE `battle_options` ADD `levelfield` INT(3) DEFAULT '0' NOT NULL;

and everything is fine, THNX!

The field 'levelfield' is supposed to be
Code:

ALTER TABLE `battle_options` ADD `levelfield` VARCHAR(10) DEFAULT 'field7' NOT NULL;
Also, what version did you upgrade from? 'battle_options.battleprivacy' has been in the install file since the first version. If you don't have that field, then something went wrong in one of the installs.

jags2ooo 12-10-2002 09:12 PM

updated from v54

Bitsys 12-10-2002 09:18 PM

In that case, the install of v54 did not go properly because you are missing fields in the battle_options database that should have been created when the installtion file was run. Did you do a clean install of v54?

jags2ooo 12-10-2002 09:51 PM

yes, i didn't edit it, but tiw works fine now, thnx

xxskullxx 12-10-2002 11:31 PM

I got this running on my test site with no problems at all. Keep up the awesome work, Bitsys :classic:

geniuscrew 12-11-2002 12:41 AM

What category do things like elixir fall in? Because heal for both HP and MP? I believe potions are just for HP...

Bitsys 12-11-2002 01:57 AM

Oh yeah, that is something I forgot to include in the last update. Err, it is included, I just forgot to tell you about it. Here is how it works:

How to make potions replenish HP, MA (MP), or HP and MA:
  • If the COST of the potion is divisible by 10, then the potion will replenish HP. Examples: 20, 100, 220, 350, 11111111110
  • If the COST of the potion is divisible by 5, then the potion will replenish MA (MP). Examples: 15, 25, 5555555, 124034535. Things that will not work: 150 (although 150 is divisible by 5, it is divisble by 10 first, and is therefore considered a plus to HP potion.) 110, 117, and 239850.
  • If the COST of the potion is divisble by 2, then the potion will replenish MA AND HP. Examples: 62, 78, 1239848476. Things that will not work: 310, 55, 17.
  • If the COST of the potion is an odd number (not divisible by 2), then it does nothing in battle and is considered a dummy potion.

Does that help?

This information will be included in the next version.

assassingod 12-11-2002 06:06 AM

Still using version 0.54, getting this error when trying to a view a thread
Quote:

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

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

Will upgrading to v0.55 sort this out?

geniuscrew 12-11-2002 08:22 AM

Quote:

Originally posted by Bitsys
Oh yeah, that is something I forgot to include in the last update. Err, it is included, I just forgot to tell you about it. Here is how it works:

How to make potions replenish HP, MA (MP), or HP and MA:
  • If the COST of the potion is divisible by 10, then the potion will replenish HP. Examples: 20, 100, 220, 350, 11111111110
  • If the COST of the potion is divisible by 5, then the potion will replenish MA (MP). Examples: 15, 25, 5555555, 124034535. Things that will not work: 150 (although 150 is divisible by 5, it is divisble by 10 first, and is therefore considered a plus to HP potion.) 110, 117, and 239850.
  • If the COST of the potion is divisble by 2, then the potion will replenish MA AND HP. Examples: 62, 78, 1239848476. Things that will not work: 310, 55, 17.
  • If the COST of the potion is an odd number (not divisible by 2), then it does nothing in battle and is considered a dummy potion.

Does that help?

This information will be included in the next version.

Thanks - that helps! Sorry I keep bugging you but how do you make a potion replenish ALL your HP and MA? Like the Elixir

Bitsys 12-11-2002 10:31 AM

assassingod:
Yup, 0.55 fixes that "infinite loop in the getpotbit function" bug. A quick fix is to delete all personal itemshop categories in the admin cp, which should be the only reason you are getting that problem.

geniuscrew:
I had not thought of something that refills all of MP and HP before. If you want, I can make it so that all potions that are odd numbered (excluding those divisible by 5) will refill both to the max. Would that work? It would be included in v0.56.

Graphics 12-11-2002 11:40 AM

i have an idea
maybe ther should allready B races etc when you install it so you don't need to ADD them yourselve

or did i install wrong :p

geniuscrew 12-11-2002 11:40 AM

Quote:

Originally posted by Bitsys
assassingod:
Yup, 0.55 fixes that "infinite loop in the getpotbit function" bug. A quick fix is to delete all personal itemshop categories in the admin cp, which should be the only reason you are getting that problem.

geniuscrew:
I had not thought of something that refills all of MP and HP before. If you want, I can make it so that all potions that are odd numbered (excluding those divisible by 5) will refill both to the max. Would that work? It would be included in v0.56.

That would be cool - thanks.

Have you thought of status effects? [for a future version maybe?]

Graphics
There are two races installed if you run the scripts which install, the classes and elements etc.

Good - Human
Evil - Orc

Hope that helps

Kaelon 12-11-2002 12:20 PM

This looks like an amazing hack. Excellent work!

I run a very large play-by-post role playing game, and I'd love to integrate this feature once it's left beta.

Thanks for your hard work!

Kaelon

Bitsys 12-11-2002 01:54 PM

graphics:
geniuscrew is correct. If you ran the "install_rpg_stuff.php" file AFTER running the other two install files, then you should have been ready to go. This ONLY applies to version 0.55. Version 0.54 and below did not do this.

geniuscrew 12-11-2002 02:32 PM

Bitsys do u have AIM/MSN?

How do you revive yourself if you die?

Bitsys 12-11-2002 03:16 PM

In the current version, you must gain a level and update your stats. They will be automatically refilled. In the future, it will not be so easy. I am thinking of making you pay or do something else in order to revive yourself. Unless, of course, everyone wants their stats to go back up directly after battle, which is certainly possible (and easy) to do.

Any suggestions/ideas?

JaZz0r 12-11-2002 03:55 PM

I receive an error when checking/updating stats. I have v55 and this was freshly installed:

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

mysql error number: 1054

Date: Wednesday 11th of December 2002 10:23:53 AM
Script: http://XXXXX/update.php?action=doupdate
Referer: http://XXXXX/member.php?action=editprofile

Edit: Changed my options from "Give experience to users for participating in battles..." (was turned on) to the post count option (was turned off). This fixed my error.

JaZz0r 12-11-2002 04:24 PM

Also, it seems that I am unable to use any weapons I've purchased. I bought a weapon, updated my stats, went into battle, and still my only 3 options are Use Fists, Request Draw, and Retreat.

One more thing: Using ' in the battle name makes MySQL go nuts.

Dark Shogun 12-11-2002 04:27 PM

Can a admin hype themselves up? (aka Cheat)

Dark Shogun

corsacrazy 12-11-2002 04:32 PM

Quote:

Originally posted by JaZz0r
Also, it seems that I am unable to use any weapons I've purchased. I bought a weapon, updated my stats, went into battle, and still my only 3 options are Use Fists, Request Draw, and Retreat.

One more thing: Using ' in the battle name makes MySQL go nuts.


using weapons is explained here

Bitsys 12-11-2002 06:20 PM

Quote:

Originally posted by Dark Shogun
Can a admin hype themselves up? (aka Cheat)

Dark Shogun

Admins can give themselves as much HP, MA, and PP as they want. They can also give themseleves as much money as they want. So, in that sense, admins can cheat.

geniuscrew 12-11-2002 07:04 PM

Quote:

Originally posted by Bitsys
In the current version, you must gain a level and update your stats. They will be automatically refilled. In the future, it will not be so easy. I am thinking of making you pay or do something else in order to revive yourself. Unless, of course, everyone wants their stats to go back up directly after battle, which is certainly possible (and easy) to do.

Any suggestions/ideas?

I have one -


Can you possibly make a separate kind of item type which has Reviving Spells/Items - such as Phoenix Down?

You would then be able to use this spell/Item to revive your character.

But for full replenishing, you could integrate the Inn/Hotel hack - in fact I'm sure one of the battle templates had "Hotel" for a heading :/

Probably a long shot, but hey, you asked for ideas ;)

Mystic Gohan 12-11-2002 10:02 PM

can you make a un-install script and pm it to me or e-mail it or post it even. I kinda installed it on my realy board. If you dont want too I can fix my board no problem but yea.

geniuscrew 12-12-2002 12:04 AM

Is there any use for the non battle items Bitsys?

perrera 12-12-2002 01:35 AM

I recieved an error when I tried to open a thread... :ermm:

"Fatal error: Maximum execution time of 30 seconds exceeded in /home/--/public_html/vb/admin/functions.php on line 224"

Please help...

Mrpolish 12-12-2002 03:01 AM

I received an error also when i try to post i am attaching it.

my vb version: 2.2.8

Bitsys 12-12-2002 03:04 AM

geniuscrew:
Non-battle items can be used for showing off, I guess.

perrera:
Which version are you using?

Mrpolish:
Did you run "install_itemshop_items.php"?

perrera 12-12-2002 09:15 AM

Quote:

Originally posted by Bitsys

perrera:
Which version are you using?

RPG hack 55b, and Vbulletin 229

Bitsys 12-12-2002 12:50 PM

Quote:

Originally posted by perrera

RPG hack 55b, and Vbulletin 229

Do you have any personal itemshops? Did you do an upgrade, or did you do a clean install?

If you have personal itemshops, try deleting them in the admin cp. If you did an upgrade, go look for the modifications that had to be made to showthread.php in upgrade.txt and make sure you did them for each instance of the code in showthread. It is easy to find and replace the first instance, but you may have accidentally missed the second instance.

If you don't have and personal itemshops, and you didn't upgrade, then I will need to know which options you have selected for the itemshop.

SHoeSTeR 12-12-2002 02:34 PM

I installed everything and when I post something this is what comes up:

http://www.mtgshoebox.com/test/showt...php?threadid=2

Bitsys 12-12-2002 03:18 PM

Quote:

Originally posted by SHoeSTeR
I installed everything and when I post something this is what comes up:

http://www.mtgshoebox.com/test/showt...php?threadid=2

Did you have any errors during the installation using vbhacker?

SHoeSTeR 12-12-2002 03:46 PM

I didn't use vbhacker, I will this time, does vbhacker install all the templates for me etc.. ?

Bitsys 12-12-2002 03:56 PM

Quote:

Originally posted by SHoeSTeR
I didn't use vbhacker, I will this time, does vbhacker install all the templates for me etc.. ?
vbHacker does everything except populate the databases with the default items/rpg stuff. It does the file edits, the template additions, the template edits, and the database queries. Just follow the instructions in the install.txt file included in the .zip package and you should be fine.


All times are GMT. The time now is 11:51 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.03209 seconds
  • Memory Usage 1,837KB
  • 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_code_printable
  • (11)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