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)

Bitsys 01-23-2003 04:59 PM

sinister112:
It appears that some of the file edits to showthread.php were not made. Have vbhacker generate a text file of the hack, and manually re-apply all of the changes to showthread.php. In particular, the installer did not insert
PHP Code:

user.ma AS uma,user.hp AS uhp,user.pp AS upp,user.ap AS uap,items_options.pointfield,items_options.lesanestore,battle_options.namefield,battle_options.exprate,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 

in 2 places. Make sure that this code is in the correct 2 places in showthread.php. Also, if you can't get it to work, then vbhacker should have made a backup of all of the files it edited. THe files have a .bak extension. Simply remove the extension and you will have the original file again.

v0id:
I am not sure as to what you are saying. How can his anger ercentage go above 100%? Are you talking about PP and not AP?

Mijae 01-23-2003 06:32 PM

No, what I ment is that my oppenent kept missing and hit Anger grew each time. In total his anger should have growed by 100 points but yet the AP: remained at 65% through out all the battle.

heretic 01-23-2003 08:00 PM

Quote:

Originally posted by Sinister112
bleg great my whole board is ++++ed and my friend didnt make a backup when i asked him to
god ++++ing crap now i have to reinstal. the whole damn board again


um, this is still beta, it's nowhere near release rediness, and you put it on a production board? without confirming you had a backup?


why?

freeshares1 01-24-2003 06:17 PM

I could really do with some help with this. I have everything working except that when i try to invite a person to battle i get invaild password, I have read all 45 pages of this thread and half of the PHP.

It's a great hack i just wish i could sort out the bug i have...

Any thoughts?

Darkwaltz4 01-24-2003 07:58 PM

lol, i put mines on a production board, but i go in there and fix anything thats messed up. and alot has been messed up with this hack. ive just about stabilized it. ive also added some things to somethings, lol

ive also added a large faq to the main faq sets on the itemshop. i intend to write one for the rpg system and the battle arena. if you want to read it, its at http://ffgods.ffextreme.com/forums/misc.php?action=faq
and my itemshop, which has been spiced up in a few places, is at http://ffgods.ffextreme.com/forums/itemshop.php


one bug however, is that update.php turns up a parse error, and from what i can see, it is not an error at all...so now i have to manually update all stats once a day...the error:

Parse error: parse error, unexpected ',' in /home/virtual/site19/fst/var/www/html/forums/update.php on line 189

Bitsys 01-24-2003 09:47 PM

v0id:
I found the problem. The next version will be fixed. Thanks.

freeshares1:
What link are you using to get to the battles? What are your battle options set to? Are battles private?

Darkwaltz4:
What version of the hack are you using? Your Itemshop FAQ is nice.

Update.php is no longer used in the new version. I broke it a while ago in one of the versions and didn't want to fix it because I wasn't going to use it anyway. I forgot to take it out of the .zip file, I guess.

Darkwaltz4 01-24-2003 11:29 PM

hmm, i am using the newest version-> .61 (or at least it said it was new on the first post a few hours ago) i upgraded to it ..2 days ago

*quick edit
i was originally using version .55, so i missed 6 updates, and applied them one by one 2 days ago

*yet another edit
another thing that i noticed during version 55, and now again using 61, is that stats are not capped...so right now for instance, i just gained 101% ap...
and before, which i would assume its still doing this, that you can heal with a potion to get say 1500/1300 hp...so stats are not capped at their maximums during battle

and thanks ^_^

freeshares1 01-25-2003 10:14 AM

Bitsys -

Link www.hogwartsnews.com/vbportal/forums/battle.php

Battle options -

Battle hack on
Private off

Where does the password get stored, Does it stored in the database if so which field as it maybe something do with userfields.

Thanks for reading this

Bitsys 01-25-2003 02:22 PM

Darkwaltz4:
The no-AP cap will be fixed in the next version. However, HP and MA should be properly capped in 0.61. I will look in to it some more.

freeshares1:
The password is stored in the `battle` table and is in a field called 'battlekey'. If possible, can you create a battle with someone esle on your boards so that I can see the error message myself?

Also, are you using the Browse screen to get to you battle, or are you typing in the battle number at battle.php and submitting it like that?

freeshares1 01-25-2003 02:37 PM

Bitsys,

i will attach a error later but it reads

PLEASE ENTER A VALID PASSWORD

Both users have updated stats and posted..

I have checked the battle table and it's empty. Which file add the password?

Mijae 01-25-2003 03:51 PM

I added a category to the itemshop and it went ok, but when I wanted to add items to that category I got this:

Warning: Variable passed to each() is not an array or object in /home/virtual/site24/fst/var/www/html/forum/admin/itemadmin.php on line 227

Items Added!

Obviously no items were added :P

Bitsys 01-25-2003 04:23 PM

freeshares1:
Did you create a battle first? I went to your forums again and you still haven't created a battle. Also, can you provide a screenshot of the error?

battle.php is the file that creates the battles and stores the password in the database.

v0id:
I am not able to reproduce this error. What values are you entering in the fields?

freeshares1 01-25-2003 04:37 PM

I will do a screen shot but it's the creating a battle i have a problem with. I goto battle.php and then enter name for battle, username (that has already been approved and posted) password leave money 0 and then click start battle it is then i get the error.

Hope that explains it better

freeshares1 01-25-2003 04:48 PM

update - I have gone into the the database and added a battle manually and it works. If you browse battles you will see it. However it will not work if i do it any other way. The easiest way i can think of of recreating the problem is to make 1 post and then invite me to battle username phil then you will see the error.

Thanks in advance for your time in helping me out

Bitsys 01-25-2003 07:24 PM

Hmm, I don't see the battle you created on the browse battles screen. I made a post and tried to challenge you, and I now see the error you are getting. Have you tried re-uploading battle.php?

Also, are you sure you have version 0.61?

Mijae 01-25-2003 09:08 PM

I enter a new category, call it X (name doesnt matter), then I click Add Items and add one item with all fields right, and I get that error.

SHoeSTeR 01-25-2003 10:42 PM

for some reason, all my users can do is use fists, and every battle ends in a draw ;/

Bitsys 01-26-2003 02:06 AM

Quote:

Originally posted by SHoeSTeR
for some reason, all my users can do is use fists, and every battle ends in a draw ;/
Did you read https://vborg.vbsupport.ru/showthrea...575#post329575 yet?

Riddel 01-26-2003 02:39 AM

Hey, I'm wondering if you might know what is wrong: the itemshop on my board has not restocked at all. I've tried lowering the restock time but still no luck. Also, I tried adding an item but it didn't add. Any ideas?

Thanks!

freeshares1 01-26-2003 05:32 PM

Sorry i must have deleted it. I have readded it but made it as active but i still cant fight.

I am using 0.61B i have reloaded battle.php and the template battle.

any other idea's?

Thanks in advance

Quote:

Originally posted by Bitsys
Hmm, I don't see the battle you created on the browse battles screen. I made a post and tried to challenge you, and I now see the error you are getting. Have you tried re-uploading battle.php?

Also, are you sure you have version 0.61?


Mrpolish 01-26-2003 08:08 PM

Is there any way to not give gold per post in a selected forum (like spam) ?

Mrpolish 01-26-2003 09:52 PM

I found a bug:
When you go to start battle and you wager all your money and you hit cancel the money goes to the bank and you can do that many times and make yourself rich.

Bitsys 01-26-2003 10:31 PM

Riddel:
I wil be looking in to that.

freeshares1:
In battle.php find:
PHP Code:

If($key == "" || !isset($key)) {
                        
$message "Please enter a valid password.";
                        eval(
"dooutput(\"".gettemplate('battle_userinbattle')."\");");
                        exit;
                } 

and replace it with:

PHP Code:

/*
                If($key == "" || !isset($key)) {
                        $message = "Please enter a valid password.";
                        eval("dooutput(\"".gettemplate('battle_userinbattle')."\");");
                        exit;
                }
                */ 

That will fix it.

Mrpolish:
I think I can make it so that if you don't count posts in the forum, then it won't add gold in that forum as well. Is that what you want?

(second post):
That bug has been reported and will be fixed in the next version. Thanks.

Mrpolish 01-27-2003 03:11 AM

When i select that the posts dont count in a forum it only affects the stats but not the gold, users still get gold per post.

Bitsys 01-27-2003 03:37 AM

Quote:

Originally posted by Mrpolish
When i select that the posts dont count in a forum it only affects the stats but not the gold, users still get gold per post.
In the next version, I will make it not add gold in forums where posts don't count.

chrisz 01-27-2003 05:18 AM

I cant run the queries some error in query.php
Help?

freeshares1 01-27-2003 05:18 AM

Bitsys

YOU ARE THE MAN!!!

Thanks...

chrisz 01-27-2003 06:54 AM

Some more info on the error I get:
There seems to have been a slight problem with the FF Saiyans Forums database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin Control Panel 2.2.9:

Invalid SQL: CREATE TABLE `battle` (
`battlenumber` int(10) NOT NULL auto_increment,
`battlename` varchar(100) NOT NULL default '',
`owner` varchar(50) NOT NULL default '',
`ownerid` int(10) NOT NULL default '0',
`opponent` varchar(50) NOT NULL default '',
`opponentid` int(10) NOT NULL default '0',
`battlekey` varchar(35) default '0',
`battlestate` int(10) NOT NULL default '0',
`turnid` int(10) NOT NULL default '0',
`lastactive` int(10) NOT NULL default '0',
`wager` int(10) NOT NULL default '0',
`winnerid` int(10) NOT NULL default '0',
`winstatus` int(10) NOT NULL default '0',
`sceneid` int(10) NOT NULL default '0',
PRIMARY KEY (`battlenumber`)
) TYPE=MyISAM
mysql error: Table 'battle' already exists

mysql error number: 1050

Date: Monday 27th of January 2003 03:57:37 AM
Script: http://ffsaiyans.xeko.net/forum/forum/admin/query.php
Referer: http://ffsaiyans.xeko.net/forum/admin/query.php

chrisz 01-27-2003 07:34 AM

**EDIT**
I reinstalled the forum with the original files and it works fine!
Thnx for the beaut hack dude.
I will show everyone my l33t forum when its done ;)

Mrpolish 01-27-2003 03:32 PM

Thanks Bitsys, any ideas when the next version comes out or when the full version will be released ?

freeshares1 01-27-2003 05:00 PM

Quote:

Originally posted by freeshares1
Bitsys

YOU ARE THE MAN!!!

Thanks...

I knew i spoke too soon. Now the database does not store the password but it works if i add it manually into the database

Below is the private message i get (the password is missing)

phil has challenged you in a battle. It is battle number 4 and is called test5. There is 100 gil at stake in this battle. Your battle password is . To go to your battle click here

Bitsys 01-27-2003 06:56 PM

Quote:

Originally posted by freeshares1


I knew i spoke too soon. Now the database does not store the password but it works if i add it manually into the database

Below is the private message i get (the password is missing)

phil has challenged you in a battle. It is battle number 4 and is called test5. There is 100 gil at stake in this battle. Your battle password is . To go to your battle click here

The reason why you were getting invalid password is because it wasn't storing the password properly. Since I had you disable the password check code in battle.php, it won't give you your password because the script never received it. If you want to try something a little trickier that will require a file edit every time you upgrade, then do the following:

In the template battle_newbattle, find:

<input type="text" name="key">

and replace with

<input type="text" name="key1">

(you can use whatever value you want for "key1", just remember it for the next edit)

In battle.php, find ALL instances of

$key

and replace it with

$key1

(or replace it with whatever value you chose to use in the battle_newbattle template).


I really don't know why this is happening, since all of the other variables are being passed properly. This is sort of a last resort and I doubt it will work, but you never know.

saint_seiya 01-27-2003 07:35 PM

It seems that i cant post any variable in the postbit, if i do it gives me an error.

I will talk to you on aim about it. ;)

mr e 01-28-2003 03:23 AM

7) any chance you could stick the level column of the itemshop hack into templates to make it easier to customize?

by the way, great work :D

chrisz 01-28-2003 11:52 AM

Ok I have the entire forum set up working perfectly.
I even tested the rpg and it was perfect.
Now when i finish a battle and click the achnoledge thing I get this
Pic1: http://ffsaiyans.xeko.net/error1.jpg
Scrolled Down: http://ffsaiyans.xeko.net/error2.jpg

Bitsys 01-28-2003 12:09 PM

Quote:

Originally posted by saint_seiya
It seems that i cant post any variable in the postbit, if i do it gives me an error.

I will talk to you on aim about it. ;)

What error is it giving you?

Quote:

Originally posted by mr e
7) any chance you could stick the level column of the itemshop hack into templates to make it easier to customize?

by the way, great work

If I removed it from the .php file and made it static HTML in a template, then the "Hide Item Levels From Users" feature wouldn't work. What kind of modifying are you trying to do?

Quote:

Originally posted by chrisz
Ok I have the entire forum set up working perfectly.
I even tested the rpg and it was perfect.
Now when i finish a battle and click the achnoledge thing I get this
Pic1: http://ffsaiyans.xeko.net/error1.jpg
Scrolled Down: http://ffsaiyans.xeko.net/error2.jpg

What forum are you attempting to post the results to?

chrisz 01-28-2003 12:21 PM

I did have it in a forum called batle dome but I didnt like it how for every one post the exp went up like thirty so I deleted it.
Is that the problem?

chrisz 01-28-2003 12:29 PM

Thnx Bitsys I fixed it.
I have another question for ya mate.
I enable the option of exp rising when members post but instead of going up the amount I chose per post it goes up by about 34% per post.
How can I fix this?

Riddel 01-28-2003 02:10 PM

Oh, another thing to ask: I don't know if this might help any in pinpointing the problems/errors I'm getting (item shop not working), but even though there are members with 1000+ posts, the itemshop only allows them to purchase level 0 item. However, when I tried to purchase a level 0 item, I received a databse error:


Database error in vBulletin 2.2.9:

Invalid SQL: SELECT userpostcount,levelfield,exprate FROM battle_options
mysql error: Unknown column 'userpostcount' in 'field list'

mysql error number: 1054

Date: Tuesday 28th of January 2003 08:54:20 AM
Script: /metropolis/itemshop.php?action=buy&cat=1&item=Javelin&itemtyp e=0
Referer: http://www.zanarkand.net/metropolis/...l=1&itemtype=0


I think this error might be contained only to the itemshop since members' stats are looking normal, so I'm guessing that I probably messed up the code somewhere. Would uploading a fresh copy of itemshop.php help, or are there other files I will need to upload?

Btw, thanks a lot for helping us out! This hack is really awesome.

VeoMorphine 01-28-2003 03:32 PM

{Small Release}
Name: Admin Manual for RPG System
Install Time: 2 mins
Level of Dif: Easy

This will add the manual that comes with the item shop to your admin CP so yourother admins can see it. My admins were at a loss when they could not figure out how it worked, so i did this for myself and decided that it would be a great idea to put it here.

Upload the attached rpgmanual.php to your /admin Directory.

Open admin/index.php and find:
makenavoption("Add Alignment","rpgadmin.php?action=addalignment", "<br>");

Above it put:
makenavoption("RPG Admin Manual","rpgmanual.php?", "<br>");

there ya go. Have fun :)


All times are GMT. The time now is 04:57 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.03223 seconds
  • Memory Usage 1,856KB
  • 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_php_printable
  • (9)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