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)

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 02:35 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.02939 seconds
  • Memory Usage 1,747KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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