vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   RPG Integration Hack (https://vborg.vbsupport.ru/forumdisplay.php?f=102)
-   -   RPG Integration Hack - Old Support Thread (https://vborg.vbsupport.ru/showthread.php?t=73868)

Revan 12-11-2004 09:47 AM

Run it through vb acp.

kamu 12-13-2004 07:01 PM

Nevermind :(

lovelyman_x 12-17-2004 11:13 AM

the battle is not work ,

Revan 12-18-2004 09:57 AM

ok

:P

theXME 12-18-2004 03:41 PM

Hi Revan,
thank you for your fantastic work ;)
Do you work on a future version of the hack?

Revan 12-18-2004 06:28 PM

I am, slowly but I am. :)
I should sharpen up and not be such a lazy f**k tho :p


//peace

Creed 12-21-2004 06:00 AM

The only problem I've ran into, characters only get exp when they make a NEW thread, not a reply to a previous one. Is there any way to fix this? Sorry if its a repeat, I've searched and didn't see this problem answered anywhere else.

Revan 12-21-2004 07:49 AM

Well that exp gain is controlled by the EXP Per Reply setting. (Or was it called Per Post, I cant remember) :)

Creed 12-21-2004 07:58 AM

Yes, its called Per Post, however it only gives exp per New Thread created, not just per post made. Such this reply would not nab me any exp, however if I made a new thread I would get X amount of exp. Anyway to change that, so that ALL posts get exp? I will play with the EXP Per Post and see if anything changes.

Revan 12-21-2004 08:44 PM

The EXP Per Post is what controls how much EXP an user gains per reply, so yeah thats your setting :p

Creed 12-22-2004 11:02 PM

Thats my problem, its only giving that amount of EXP per NEW THREAD. Its not giving any exp for a reply. I have a character with 195 exp, when I reply to other people's threads I get 0 exp. When I create a new thread of my own, I get 5exp. Any ideas?

Revan 12-23-2004 10:41 AM

If you are sure you set the points per reply prop, then you have found a "bug" that only affects your forum outta the 200+ users that downloaded this :)
In other words, no clue what to do :P

Creed 12-23-2004 04:47 PM

Honestly I'm leaning toward it being a file edit that I have done wrong somewhere. I don't believe its a 'bug' I believe that this is something I've done. I was just looking for some input on what you guys think that I may have missed or messed up. I would be happy to take suggestions, as opposed to looking over all of the file edits 1 by 1. So, if you have any thoughts on where this might be, I'm all ears.

boydekort 12-24-2004 04:19 AM

Hi I been told by transverse styles to come to here for help.

my problem is in navbar transverse works with some different code as in vbb default .

you have your code for the navbar addon but transverse uses this one:

Code:

if condition="$show['registerbutton']">
  <td class="vbmenu_control"><a href="register.php?$session[sessionurl]">$vbphrase[register]</a></td>
 </if>

now i tried changing this code so it could fit but it gave me parse errors in admin_functions.php because well it's logic it can't find the code for it.

So now I would like some help with this and hope someone can because this sucks :(

thanks in advance.

Ts reply:

Quote:

Originally Posted by TS
Transverse Styles Yesterday, 03:49 PM Post #2


President & CEO


Group: Admin
Posts: 324
Joined: 14-May 04
Member No.: 1



Hi depax,

If you want to do that, you should ask the RPG modification author.

I haven't tampered with any of the JavaScript menus, so I am unsure why it will not work.

Did this work in the default style at all?


--------------------

Transverse Styles President & CEO
IPB, vB, phpBB Coder & Graphics Guru

He makes very good styleset just wish they where a bit easier to work on but his real profession is the ivb sets so I can't blame him for not knowing it all.

Revan 12-24-2004 07:15 PM

I assume you tried to install the dropdown version of the navbar addons.
Well see I didn't make that, so I dont know why it wont work... sorry.
You can try installing the other one, that uses no jscript. :)

Creed 12-25-2004 04:17 PM

BTW, I did find out what was wrong. In the new reply file edit in the instructions:
Code:

#####################################
pick open newreply.php
#####################################


#########
find
#########

                // fetch the quoted post title
                $_POST['title'] = fetch_quote_title($postinfo['title'], $threadinfo['title']);
        }

That line is there twice, I had the edited code in the wrong place. Working fine now :)

givemeplain 12-26-2004 09:07 PM

I installed both navigations (drop down, and seperate bar) and the links dont work. I get this error

Code:

Database error in vBulletin 3.0.3:

Invalid SQL:
                SELECT
                        user.userid,
                        user.username,
                        user.rpgclass,
                        user.element,
                        user.rpgrace,
                        user.rpgtype AS rpgtype,
                        user.alignment,
                        user.rpggender,
                        user.posts,
                        user.maxhp,
                        user.maxma,
                        user.maxpp,
                        user.inbattle,
                        user.xp,
                        user.ma AS uma,
                        user.hp AS uhp,
                        user.pp AS upp,
                        user.ap AS uap,
                        user.uttpoints AS money,
                        rpg_battle_options.namefield AS namefield,
                        userfield.*,
                        rpg_battle_options.exprate,
                        rpg_battle_options.privacy AS battleprivacy,
                        rpg_items_user.*,
                        rpg_battle_stats.*,
                        rpg_rpg_race.name AS rpgracename,
                        rpg_rpg_race.alignment AS rpgalignmentname,
                        rpg_rpg_classf.name AS fclassname,
                        rpg_rpg_classf.folder AS fclassfolder,
                        rpg_rpg_classm.name AS mclassname,
                        rpg_rpg_classm.folder AS mclassfolder,
                        rpg_rpg_element.name AS elename
                FROM rpg_battle_options
                        LEFT JOIN user ON user.userid=1
                        LEFT JOIN userfield ON userfield.userid=user.userid 
                        LEFT JOIN rpg_items_user ON rpg_items_user.userid=user.userid
                        LEFT JOIN rpg_battle_stats ON rpg_battle_stats.userid=user.userid
                        LEFT JOIN rpg_rpg_classf ON rpg_rpg_classf.id=user.rpgclass
                        LEFT JOIN rpg_rpg_classm ON rpg_rpg_classm.id=user.rpgclass
                        LEFT JOIN rpg_rpg_element ON rpg_rpg_element.elementid=user.element
                        LEFT JOIN rpg_rpg_race ON rpg_rpg_race.raceid=user.rpgrace AND rpg_rpg_race.alignmentid=user.alignment
       
mysql error: Unknown column 'user.uttpoints' in 'field list'

mysql error number: 1054

Date: Sunday 26th of December 2004 06:06:01 PM
Script: http://www.shiburaonline.com/rpgcp.php?
Referer: http://www.shiburaonline.com/index.php?
Username: givemeplain
IP Address: 67.123.84.48

Thanks!

oh, and also I'm really new at this. Do I just download the two images.zips and upload them to my image folder in vbulletin? Thanks

Creed 12-26-2004 09:13 PM

Quote:

Originally Posted by boydekort
Hi I been told by transverse styles to come to here for help.

my problem is in navbar transverse works with some different code as in vbb default .

you have your code for the navbar addon but transverse uses this one:

Code:

if condition="$show['registerbutton']">
  <td class="vbmenu_control"><a href="register.php?$session[sessionurl]">$vbphrase[register]</a></td>
 </if>

now i tried changing this code so it could fit but it gave me parse errors in admin_functions.php because well it's logic it can't find the code for it.

So now I would like some help with this and hope someone can because this sucks :(

thanks in advance.

Ts reply:



He makes very good styleset just wish they where a bit easier to work on but his real profession is the ivb sets so I can't blame him for not knowing it all.


Code:

###################
# NAVBAR template #
###################

Find:
--------------------------------

<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>


Above add:
---------------------------------

<if condition="$show['member']">
<td class="vbmenu_control" id="rpg"><a href="#rpg">RPG</a> <script type="text/javascript"> vbmenu_register("rpg"); </script></td>
</if>


Find:
--------------------------------
<!-- / NAVBAR POPUP MENUS -->



Above add:
---------------------------------

<if condition="$show['member']">
    <!-- RPG Menu -->
    <div class="vbmenu_popup" id="rpg_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
       
                <tr><td class="thead">RPG</td></tr>       
        <tr><td class="vbmenu_option"><a href="rpgcp.php">RPG Main</a></td></tr>
        <tr><td class="vbmenu_option"><a href="battle.php">Battle Arena</a></td></tr>
        <tr><td class="vbmenu_option"><a href="itemshop.php">Itemshop</a></td></tr>
        <tr><td class="vbmenu_option"><a href="profile.php?do=updaterpg">Edit Your Character</a></td></tr>
<tr><td class="vbmenu_option"><a href="heal.php">Healing Center</a></td></tr>
<tr><td class="vbmenu_option"><a href="battle.php?action=showbattlestats">RPG Top 10</a></td></tr>
<tr><td class="vbmenu_option"><a href="battle.php?action=showuserstats">Check Your Stats</a></td></tr>
<tr><td class="vbmenu_option"><a href="clancp.php">Clan CP</a></td></tr>
<tr><td class="vbmenu_option"><a href="lottery.php">Lottery</a></td></tr>

        </table>
    </div>
    <!-- / RPG Menu -->
    </if>

#################
Done.

Did you try that one, it is working absolutely fine for me! Note that the last edit section is at the extreme end of your NAVBAR template. If you're placing it above the
Code:

<!-- NAVBAR POPUP MENUS -->
then that would be your problem.

givemeplain 12-26-2004 09:21 PM

Thanks for quick reply, but I don't think that is the problem

see http://www.shiburaonline.com/index.php?

the nav looks like it works fine, but when you click on one of the links it gives the mysql error. not sure what's wrong =(!

Creed 12-26-2004 09:27 PM

You should try rerunning the installer, if you haven't already. It seems that it delted the tables, but didn't recreate them.

givemeplain 12-26-2004 09:28 PM

do I have the right installer?
When I press install it says it only installs clan and lottery tables. Aren't there more?

vB RPG Integration Hack v2.5 tables will be created in your vB mySQL...

Clan Tables Created

Lottery Table Created

installed OK!!

Creed 12-26-2004 09:32 PM

Yeah, there is a battleinstall.php too, you need to run that one as well. If you haven't.

givemeplain 12-26-2004 09:34 PM

Unknown column 'uttpoints' in 'field list'

that is the error I get on all the rpg pages. Am I missing an edit?

Creed 12-26-2004 09:36 PM

Do you have the ucash/ushop installed? Thats where the uttpoints field comes from. If not, then you just need to change your currency in the admin control panel.

givemeplain 12-26-2004 09:37 PM

nope I dont have ucash/ushop. Where can you edit currency? Thanks

Creed 12-26-2004 09:42 PM

* YOU MUST HAVE UCASH AND USHOP HACK INSTALLED FOR THIS TO WORK!
There's NO exceptions to this requirement. If you install this before you install uCash, you will get SQL errors and various other nasty stuff happening all over your board.
You have been warned.

Actually I guess I was wrong about it working without Ucash/uShop. You will need to install it before RPG hack will work at all. I was thinking about another hack that can use all different types of currency. Sorry Man, at least you know what your problem is now :)

givemeplain 12-26-2004 09:59 PM

I can't use then since I don't want to have to install ucash/ushop =(. Oh wells.

Revan 12-27-2004 09:34 AM

In v3, I plan to make this hack only half dependant on uCS. You will be able to change your currency (the option to do this in this version is really just a "preview"), but for the moment, the 'uttpoints' is hardcoded, sorry :(
In v3 you can install another points hack (or write one), and have RPG work with this, and I see you have clicked install, so you will be notified over email when v3 is out :)

givemeplain 12-27-2004 03:53 PM

Yea This rpg looked really good!
However, I have some suggestions that I think would make it really, really unique.

The mod could have different options, like admin driven
- Story Mode
- Forum Based Mode

In story mode, the admin creates different chapters of a story in the admin panel, and the members do their rpg while reading the story, so it all fits together. Sort of like a real game, but the admin controls the story all the time.

Forum based would be like a special RPG forum where members post a role play, and the admin (or members) create different scenes in the RPG mod to correspond with what is going on in the forum.

Well, thats just my 2 cents worth =).

boydekort 12-28-2004 04:40 AM

Quote:

Originally Posted by Creed
Code:

###################
# NAVBAR template #
###################

Find:
--------------------------------

<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>


Above add:
---------------------------------

<if condition="$show['member']">
<td class="vbmenu_control" id="rpg"><a href="#rpg">RPG</a> <script type="text/javascript"> vbmenu_register("rpg"); </script></td>
</if>


Find:
--------------------------------
<!-- / NAVBAR POPUP MENUS -->



Above add:
---------------------------------

<if condition="$show['member']">
    <!-- RPG Menu -->
    <div class="vbmenu_popup" id="rpg_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
       
                <tr><td class="thead">RPG</td></tr>       
        <tr><td class="vbmenu_option"><a href="rpgcp.php">RPG Main</a></td></tr>
        <tr><td class="vbmenu_option"><a href="battle.php">Battle Arena</a></td></tr>
        <tr><td class="vbmenu_option"><a href="itemshop.php">Itemshop</a></td></tr>
        <tr><td class="vbmenu_option"><a href="profile.php?do=updaterpg">Edit Your Character</a></td></tr>
<tr><td class="vbmenu_option"><a href="heal.php">Healing Center</a></td></tr>
<tr><td class="vbmenu_option"><a href="battle.php?action=showbattlestats">RPG Top 10</a></td></tr>
<tr><td class="vbmenu_option"><a href="battle.php?action=showuserstats">Check Your Stats</a></td></tr>
<tr><td class="vbmenu_option"><a href="clancp.php">Clan CP</a></td></tr>
<tr><td class="vbmenu_option"><a href="lottery.php">Lottery</a></td></tr>

        </table>
    </div>
    <!-- / RPG Menu -->
    </if>

#################
Done.

Did you try that one, it is working absolutely fine for me! Note that the last edit section is at the extreme end of your NAVBAR template. If you're placing it above the
Code:

<!-- NAVBAR POPUP MENUS -->
then that would be your problem.


problem is it don't use this calender.php file as it's a button
searchin the navbar template won't show me either.
TS changed calender.php to header_calendar.gif with using a vbphrase.
and placed it in the header template as well.
I looked for quick links like I showed ya to put it in front.
But when I use it then it seems not to work.

Creed 12-28-2004 04:45 AM

If you were to show me what your navbar template looks like I may be able to help you. Just copy and paste its contents into a text file and attach it to an email @ cleeq@adelphia.net

TLSNetwork 12-28-2004 04:54 AM

1 Attachment(s)
First up well done fantastic system , We have just moved our site over from ipb to vb and i have to say i am very impressed at the extra functions and ease of use of vb , Here is a slight problem i am having with the rpg that i hope somebody can answer , The stats that show on the left hand side of each users post about their rpg status is pretty big and consumes alot of space , What i would like to do is reduce those stat bars a bit , See what i mean they are very big and blocky , Is there any way of reducing these down in size to like the ones that you see if you go through the nav bar and look at your stats ??? , Hope you understand what i mean i have included a picture so you can see what i am getting at.

boydekort 12-28-2004 04:59 AM

will do thanks please explain what you did fix though so I know

also same happens with ushop seems they use the same referer to calender.php all extensions do petz/arcade they all do and if I put them in like you said nothing shows.

mail send from depaxs@gmail.com

sorry I sended it in the plain mail :S

TLSNetwork 12-28-2004 05:32 AM

never mind on my question , Duh well don't i feel stupid , a little change from 9 to 4 makes a world of difference :rolleyes:

Creed 12-28-2004 05:47 AM

I have replied in an email to you, as well if it works properly then I'll be happy to add the coding here as well.

boydekort 12-28-2004 06:21 AM

thanks creed it's workin perfect :D]
what I did wrong was
<-usercp options> <!-- NAVBAR POPUP MENUS -->

I put it in front of usercp options instead of inbetween

it works btw place it here :D

Creed 12-28-2004 06:25 AM

Alrighty :) Glad it worked for you!

Code:

###################
# NAVBAR template #
###################


Find:
---------------------------------

<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php?$session[sessionurl]">$vbphrase[user_cp]</a></td>
                </if>


Below add:
---------------------------------

<if condition="$show['member']">
<td class="vbmenu_control" id="rpg"><a href="#rpg">RPG</a> <script type="text/javascript"> vbmenu_register("rpg"); </script></td>
</if>


Find:
---------------------------------
<!-- / user cp tools menu --></if>

Below add:
---------------------------------

<if condition="$show['member']">
    <!-- RPG Menu -->
    <div class="vbmenu_popup" id="rpg_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
       
                <tr><td class="thead">RPG</td></tr>       
                <tr><td class="vbmenu_option"><a href="rpgcp.php">RPG Main</a></td></tr>
                <tr><td class="vbmenu_option"><a href="battle.php">Battle Arena</a></td></tr>
                <tr><td class="vbmenu_option"><a href="itemshop.php">Itemshop</a></td></tr>
                <tr><td class="vbmenu_option"><a href="profile.php?do=updaterpg">Edit Your Character</a></td></tr>
                <tr><td class="vbmenu_option"><a href="heal.php">Healing Center</a></td></tr>
                <tr><td class="vbmenu_option"><a href="battle.php?action=showbattlestats">RPG Top 10</a></td></tr>
                <tr><td class="vbmenu_option"><a href="battle.php?action=showuserstats">Check Your Stats</a></td></tr>
                <tr><td class="vbmenu_option"><a href="clancp.php">Clan CP</a></td></tr>
                <tr><td class="vbmenu_option"><a href="lottery.php">Lottery</a></td></tr>

        </table>
    </div>
    <!-- / RPG Menu -->
</if>


boydekort 12-28-2004 06:53 AM

Quote:

Originally Posted by Creed
Alrighty :) Glad it worked for you!

Code:

###################
# NAVBAR template #
###################


Find:
---------------------------------

<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php?$session[sessionurl]">$vbphrase[user_cp]</a></td>
                </if>


Below add:
---------------------------------

<if condition="$show['member']">
<td class="vbmenu_control" id="rpg"><a href="#rpg">RPG</a> <script type="text/javascript"> vbmenu_register("rpg"); </script></td>
</if>


Find:
---------------------------------
<!-- / user cp tools menu --></if>

Below add:
---------------------------------

<if condition="$show['member']">
    <!-- RPG Menu -->
    <div class="vbmenu_popup" id="rpg_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
       
                <tr><td class="thead">RPG</td></tr>       
                <tr><td class="vbmenu_option"><a href="rpgcp.php">RPG Main</a></td></tr>
                <tr><td class="vbmenu_option"><a href="battle.php">Battle Arena</a></td></tr>
                <tr><td class="vbmenu_option"><a href="itemshop.php">Itemshop</a></td></tr>
                <tr><td class="vbmenu_option"><a href="profile.php?do=updaterpg">Edit Your Character</a></td></tr>
                <tr><td class="vbmenu_option"><a href="heal.php">Healing Center</a></td></tr>
                <tr><td class="vbmenu_option"><a href="battle.php?action=showbattlestats">RPG Top 10</a></td></tr>
                <tr><td class="vbmenu_option"><a href="battle.php?action=showuserstats">Check Your Stats</a></td></tr>
                <tr><td class="vbmenu_option"><a href="clancp.php">Clan CP</a></td></tr>
                <tr><td class="vbmenu_option"><a href="lottery.php">Lottery</a></td></tr>

        </table>
    </div>
    <!-- / RPG Menu -->
</if>


also got the ushop fixed and the portal home thanks man I owe ya one.

bozzy 12-31-2004 10:20 PM

I seem to be missing something. I installed the hack and everything is working 100% fine, but how do I buy items? There are settings for the Item Shop in the AdminCP and they work just fine, but on the forums, there is no Item Shop. Where is the Item Shop installed?

Thanks

bozzy 12-31-2004 10:32 PM

Nevermind, I got it.


All times are GMT. The time now is 04:55 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.02056 seconds
  • Memory Usage 1,875KB
  • 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
  • (10)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)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