Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
phpRPG integration Details »»
phpRPG integration
Version: , by ULTIMATESSJ ULTIMATESSJ is offline
Developer Last Online: Jul 2006 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-01-2002 Last Update: Never Installs: 0
 
No support by the author.

I am trying my luck at integrating phpRPG into my forums, all i need done is to integrate it so that the user table from vBulletin is used for phpRPG, how would i go about doing this???

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-01-2002, 01:44 PM
Dark_Wizard Dark_Wizard is offline
 
Join Date: Nov 2001
Location: North Carolina
Posts: 1,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by ULTIMATESSJ
I am trying my luck at integrating phpRPG into my forums, all i need done is to integrate it so that the user table from vBulletin is used for phpRPG, how would i go about doing this???
It all depends on how the code was written for phpRPG. Do you have a url for us to view and download it?
Reply With Quote
  #3  
Old 08-03-2002, 10:06 AM
ULTIMATESSJ's Avatar
ULTIMATESSJ ULTIMATESSJ is offline
 
Join Date: Nov 2001
Location: Bristol, England
Posts: 315
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i looked in the scripts code and found this for how they make the users table

PHP Code:
        $sql mysql_query($query) or die(mysql_error());
        echo 
'.';

        
$query "
CREATE TABLE " 
PHPRPG_DB_PREFIX "_users (
  user_id smallint(5) unsigned NOT NULL auto_increment,
  user_name char(20) NOT NULL default '',
  user_pass char(32) binary NOT NULL default '',
  email char(60) NOT NULL default '',
  name char(20) NOT NULL default '',
  status char(20) NOT NULL default '',
  HP mediumint(8) unsigned NOT NULL default '20',
  HP_MAX mediumint(8) unsigned NOT NULL default '20',
  MP mediumint(8) unsigned NOT NULL default '10',
  MP_MAX mediumint(8) unsigned NOT NULL default '10',
  STM mediumint(8) unsigned NOT NULL default '200',
  STM_MAX mediumint(8) unsigned NOT NULL default '200',
  EXP mediumint(8) unsigned NOT NULL default '0',
  GP mediumint(8) unsigned NOT NULL default '0',
  STR tinyint(3) unsigned NOT NULL default '4',
  NTL tinyint(3) unsigned NOT NULL default '4',
  PIE tinyint(3) unsigned NOT NULL default '4',
  VIT tinyint(3) unsigned NOT NULL default '4',
  DEX tinyint(3) unsigned NOT NULL default '4',
  SPD tinyint(3) unsigned NOT NULL default '4',
  CW mediumint(8) unsigned NOT NULL default '0',
  CC mediumint(8) unsigned NOT NULL default '80',
  map_name char(20) NOT NULL default '',
  map_xpos tinyint(3) unsigned NOT NULL default '0',
  map_ypos tinyint(3) unsigned NOT NULL default '0',
  last_active char(255) NOT NULL default '',
  delay char(255) NOT NULL default '',
  delay_reason char(255) NOT NULL default '',
  race char(10) NOT NULL default '',
  avatar char(10) NOT NULL default '',
  host char(255) NOT NULL default '',
  PRIMARY KEY  (user_id)
) TYPE=MyISAM
        "

how could i bring that into the vBulletin users table???
Reply With Quote
  #4  
Old 08-03-2002, 04:32 PM
Dark_Wizard Dark_Wizard is offline
 
Join Date: Nov 2001
Location: North Carolina
Posts: 1,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have to update the RPG code to accept the differences in the vb user table like:
  • vb- userid RPG- user_id
    vb- username RPG- user_name
    etc...

and second would be to either add the fields that are unique to RPG into the vb user table or create another table and alter the RPG code.
Reply With Quote
  #5  
Old 08-04-2002, 01:20 AM
ULTIMATESSJ's Avatar
ULTIMATESSJ ULTIMATESSJ is offline
 
Join Date: Nov 2001
Location: Bristol, England
Posts: 315
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where would i find all the code for the vBulletin user table???
Reply With Quote
  #6  
Old 08-04-2002, 02:17 AM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you mean? You can view the database structure using phpMyAdmin.
Reply With Quote
  #7  
Old 08-04-2002, 03:17 PM
ULTIMATESSJ's Avatar
ULTIMATESSJ ULTIMATESSJ is offline
 
Join Date: Nov 2001
Location: Bristol, England
Posts: 315
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JulianD
What do you mean? You can view the database structure using phpMyAdmin.
i mean in the vbulletin files
Reply With Quote
  #8  
Old 08-28-2002, 10:40 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was having a long look at this... it is very doable, and should not be too hard to integrate - you only need to change a few lines of code here and there...

However, phpRPG is still BETA, and has lots of bugs. It's really a pre-released multiplayer RPG game based on php and mysql, and actually looks quite bad at the moment...

Also, the bugs are bad enough that you wouldn't want to use it anyway.

Refer to this review:

http://multiplayer.com/cgi-local/review.cgi?ID=1503

I would wait until they release an alpha version (it's still labeled as pre-alpha), at least a version 1.0 (it just became 0.5 from 0.3).
Reply With Quote
  #9  
Old 08-28-2002, 10:41 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

However, if you REALLY want to run it on your site, I can look at integrating it... but I don't think it's worth the effort and database changes... (you would have to modify vB too so that you can show the stats on vB).

Now, if you want to modify phpRPG so that it is better, then that's different. However, it's probably easier to code your own RPG hack then.
Reply With Quote
  #10  
Old 08-28-2002, 02:03 PM
g-force2k2 g-force2k2 is offline
 
Join Date: Mar 2002
Location: Everywhere you wanna be..
Posts: 1,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just taking a few looks at some of the coding i don't really like it that much... i really don't see anything special about it and i certainly wouldn't intergrate this into my vb.... (just my opinion) i haven't even seen it in action... but i can see that it does have a lot of bugs already regards...

g-force2k2
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:43 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.04391 seconds
  • Memory Usage 2,295KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete