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)

MindTrix 08-17-2004 03:02 PM

RPG Integration Hack - Old Support Thread
 
Nice conversion there mate, lot of work has gone into it so well done and thanks for sharing it :)

Polo 08-17-2004 03:22 PM

Looks nice! will install it in my local computer for testing ;)

sblum 08-17-2004 03:34 PM

Looks like a really awesome hack, but the last thing I need is more stuff to distract my members from posting :). Maybe I'll install this locally to test it out.

skinvb 08-17-2004 05:08 PM

yeah its cool mod which many people is waiting it.You did a great work.Thanks a lot

AN-net 08-17-2004 05:09 PM

is there an itemshop?

Beowolf 08-17-2004 05:14 PM

Looks awesome, I will have to check it out.

Ryan Ashbrook 08-17-2004 05:16 PM

Quote:

Originally Posted by AN-net
is there an itemshop?

Yeah, it's got one built-in.

I'll test on my test vB. :)

TheRayden 08-17-2004 05:56 PM

I'm installing it right now, and the only remark I have is to adjust the install instructions a bit.
It's very confusing if you have to jump from editing templates to editing .php in /admincp then to root back to /admincp and back to templates and to /includes and so on and so on. :)

Perhaps you could group it so it has a little more structure.

Virulent1 08-17-2004 06:12 PM

Is this lottery for Ushop? or will any of this have an effect on UShop?

TheRayden 08-17-2004 06:17 PM

When I run the installer.php I get this error:

Code:

Database error in vBulletin 3.0.3:

Invalid SQL: ALTER TABLE `user` ADD `rpgclass` int(3) NOT NULL,
ADD `rpgrace` int(3) NOT NULL,
ADD `alignment` int(3) NOT NULL,
ADD `rpgtype` int(3) NOT NULL,
ADD `rpggender` int(3) NOT NULL,
ADD `hp` int(6)  NOT NULL default '0',
ADD `maxhp` int(6)  NOT NULL default '0',
ADD `ma` int(6)  NOT NULL  default '0',   
ADD `maxma` int(6)  NOT NULL  default '0',   
ADD `pp` int(6)  NOT NULL  default '0', 
ADD `maxpp` int(6)  NOT NULL  default '0', 
ADD `ap` int(6)  NOT NULL  default '0',   
ADD `element` int(3)  NOT NULL  default '0',   
ADD `inbattle` int(3) NOT NULL default '0',
ADD `xp` int(11)  NOT NULL  default '0',
ADD `clan` smallint(5) NOT NULL default '0';
mysql error: Table '2679db1.user' doesn't exist

mysql error number: 1146


Revan 08-17-2004 06:45 PM

TheRayden, I'll check this out and edit this post with results. Ill also touch up the installer ;)

Virulent1, the lottery is a standalone hack, it does not affect uShop in any way.
You cant gain anything from the uShop either, its just gambling with money.
(Provided I understood your question correctly) ;)


EDIT: Main post updated with a new zip.
Errors fixed and readme cleaned up. Sorry for the hassle.
:)

???`S?LV?R???` 08-17-2004 07:00 PM

looks interesting... not sure if i'll use it though

TheRayden 08-17-2004 07:06 PM

Thanks for the quick respond Revan.
Do I just upload the new files or do I have to make some edits again as well?

Revan 08-17-2004 07:07 PM

You can actually just replace the battleinstall.php in the install folder ;)

TheRayden 08-17-2004 07:26 PM

Ok, the install part worked now. :)

But, when I go to my profile and want to edit the rpg info I get this:
Code:

Database error in vBulletin 3.0.3:

Invalid SQL: SELECT rpgclass, rpggender, rpgrace, alignment, element, inbattle, limitlevel FROM fom_user WHERE userid='1'
mysql error: Unknown column 'limitlevel' in 'field list'

mysql error number: 1054


Revan 08-17-2004 07:29 PM

1 Attachment(s)
crap crap and utter crap :(
Thats for an addon I made for my own forums, I was sure I didnt include it in the readme :(

Sorry again for the hassle...
Just redo the profile.php edits in this new readme (main zip updated):

M1th 08-17-2004 07:35 PM

Is this live on any forums so I can see how it looks/works? thanks :)

TheRayden 08-17-2004 07:36 PM

Ok, another step further. :)

I'm now able to change the options, but when I hit the submit button, I'm getting a blank page.
When I check back, the options didn't save.

Revan 08-17-2004 07:44 PM

Weird. This didnt happen to me, I can do it fine on the localhost right now....
Ill try some more then.

EDIT: Im sorry I cant reproduce this.
Its working fine on my 3.0.0 on localhost, and I copied the installer code directly, overwriting the code I had there.
You can try to edit the actiontemplate array in the beginning, change
PHP Code:

    'modifyrpg' => array(
        
'modifyrpg'
    
), 

to
PHP Code:

    'updaterpg' => array(
        
'modifyrpg'
    
), 


Thats really all I can find remotely cause of this error.

Dark Dragon 08-17-2004 08:12 PM

cool hack, couple of error though..

- images are missing (unless I'm not thinking right)
- battle logging = gone ?

Polo 08-17-2004 08:16 PM

Quote:

- images are missing (unless I'm not thinking right)
yeah, that was the same thing that i been wondering since I downloaded the file..... actually since my first post... where are the images and the midi files...

Revan 08-17-2004 08:21 PM

Quote:

Originally Posted by Dark Dragon
cool hack, couple of error though..
- battle logging = gone ?

Yes, thats gone cos I just couldnt get the damn thing to work. It would show the thread on the main page but the id and text of it was a complete mess, so I decided to scrap it.


And about the images, balls. :knockedout:
I swear they were in there when I made the zip! and...stuff... *looks around and whistles*

*updates zip*
Had to add them in 2 seperate attachments because of the filesize limit.


And theres no midi files, you have to add the midis yourself ;)

Polo 08-17-2004 08:33 PM

Quote:

And theres no midi files, you have to add the midis yourself
sounds good ;)

Holidazed 08-17-2004 08:37 PM

Quote:

Originally Posted by Virulent1
Is this lottery for Ushop? or will any of this have an effect on UShop?

I am interested in this too. Does this use its own money system or can we use the uShop money system. The last thing I need is yet another unique money system on my site.

Revan 08-17-2004 08:39 PM

Everything uses uCS money system ONLY :)
(hence the limitation of it needing to be the uttpoints field in the user table ;) )

Dark Dragon 08-17-2004 08:40 PM

I grew tired of entering URLs to get to places, so I made a navigation system. This will add an "RPG" category to your navbar.


In navbar template,

Find:
PHP Code:

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

Add Above:

PHP Code:

<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:
PHP Code:

<!-- / NAVBAR POPUP MENUS --> 

Add above:

PHP Code:

    <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>

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

i think this should be included in the hack

Virulent1 08-17-2004 08:42 PM

Im confused... does this lotto use the UShop money system? If not.. you should think about submitting one im sure alot of people would want this :P

Revan 08-17-2004 08:51 PM

Thanks Dark, I had a similar one almost typed down, it was just a second navbar. But your option used the javascript dropdown which is cooler :)
Ill add them both so users can choose ;)

And Virulent,
Quote:

Everything uses uCS money system ONLY
uCS = uCash & uShop.
Theres NO other money system, EVERYTHING is fully integrated with uCS :)

SB2002 08-17-2004 08:53 PM

i don't know if it is me or not, but the main zip file seems to be missing? If it is me then sorry, it's getting late here, lol

Revan 08-17-2004 08:57 PM

Its all fixed now ;)

BTW I'll be going to bed now, so in the morning I'll check if anyone can confirm/defirm (yes I know thats not a word, sue me) TheRayden's error in the profile. :)


//out

Polo 08-17-2004 09:00 PM

Quote:

uCS = uCash & uShop.
I was about to ask :rolleyes: thanks for the info ;)

Holidazed 08-17-2004 09:34 PM

Can you give us some screen shots? Or maybe a demo site?

Dark Dragon 08-17-2004 10:31 PM

I have the hack installed on my site, The Mystical Realm.

Anyways, I can't get battles to work. If I confirm/decline a battle, I'll get the "Invalid Password or Battle" error. Can anybody confirm if battles work for you? I'm not sure if it's a mistake I made installing it or a problem with the hack. :(

Virulent1 08-17-2004 11:28 PM

Hey is there a way i can just Install the Lotto for Ucash/Ushop without the RPG? i just want the Lottery system :p hehe

deathemperor 08-18-2004 12:30 AM

Very nice Revan, you've made the quickest move of ever.

the only thing I can make sure from now is you will get busy along


Quote:

Originally Posted by bitg
Can you give us some screen shots? Or maybe a demo site?

The screen shots are in the first post as attachment.

@Virulent1: I think You can only do it on your own by removing all of the other things but lottery.

Starscream 08-18-2004 07:10 AM

First off, I LOVE this hack! Thanks for releasing it and spending your time coding it.

Secondly, Is there any way to make a dropdown menu in the postbit legacy for the RPG stats? It is currently just too big for my site. I would really appreciate it if anyone could create this or at least point me in the right direction of how to do it.

Giveit2u43 08-18-2004 09:24 AM

I`m trying to add the RPG Stuff to the Public Profile page rather than the Postbit but not having much luck.. anybody else been able to do it or can give me some hints on how to do it?!

Revan 08-18-2004 11:52 AM

Quote:

Originally Posted by Starscream
First off, I LOVE this hack! Thanks for releasing it and spending your time coding it.

Secondly, Is there any way to make a dropdown menu in the postbit legacy for the RPG stats? It is currently just too big for my site. I would really appreciate it if anyone could create this or at least point me in the right direction of how to do it.

Ive already made a working mod like this for my own forums, check the attachment in the next post ;)
Note that Ill focus more on support for the main hack than this. Not saying your on yer own, just that its not a main priority ;)

Quote:

Originally Posted by Dark Dragon
I have the hack installed on my site, The Mystical Realm.

Anyways, I can't get battles to work. If I confirm/decline a battle, I'll get the "Invalid Password or Battle" error. Can anybody confirm if battles work for you? I'm not sure if it's a mistake I made installing it or a problem with the hack. :(

Are you sure you input a password?
Because if you leave the Battle Password field blank, you will get that error (Im gonna try to fix that later)

Quote:

Originally Posted by Giveit2u43
I`m trying to add the RPG Stuff to the Public Profile page rather than the Postbit but not having much luck.. anybody else been able to do it or can give me some hints on how to do it?!

This Ive never tried, so Im no good here :p
I might try it later if Im bored, not promising anything tho ;)

Revan 08-18-2004 11:55 AM

Blarg, this post has no purpose anymore.

deathemperor 08-18-2004 12:20 PM

I tested and found two errors:


1st is database error:
you said that you cant make the posting results, so I wonder what is this for

Code:

".TABLE_PREFIX."rpg_battle_options.postresults,".TABLE_PREFIX."rpg_battle_options.battleforum,
it should be removed or when opening rpg.php it will show db error.
one more thing with this script

Code:

LEFT JOIN ".TABLE_PREFIX."user ON ".TABLE_PREFIX."user.userid=$userid
it doesn't understand $userid, if I replace it with 1, it's fine of course, I think the solution is replace $userid with $bbuserinfo['userid'], didn't test yet

and:

when I came to clans.php, it show a blank page, came to clans.php?action=view it show a database error ( cant remember, I'm away from my PC).

and the templates as far as I've seen they weren't well-made, this could be easy changed. The manner things should be verify is the code since I'm not sure what to do when errors occurs.

The spells, apart from causing HP/MP, is it possible to causes status ?

I think you should have made it a beta testing board, problems occurs this way it's hard for you to verify --> fix all


All times are GMT. The time now is 12:19 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.01919 seconds
  • Memory Usage 1,854KB
  • 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
  • (6)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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