Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > RPG Integration Hack
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
RPG Integration Hack - Old Support Thread Details »»
RPG Integration Hack - Old Support Thread
Version: , by MindTrix MindTrix is offline
Developer Last Online: Jul 2013 Show Printable Version Email this Page

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

Nice conversion there mate, lot of work has gone into it so well done and thanks for sharing it

Show Your Support

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

Comments
  #262  
Old 09-01-2004, 03:25 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Normally I would have it run with the main global.php file, but that generated header sent errors, so I decided to go with the error-free admincp/global.php
(Later I also realized this is a security feature )
I cant really help you with that issue, its the way vB gives out script run rights (or summit like that)

You can change which user is displayed in the PM notification by altering these bits of code in battle.php:
(lines 353 through to 367 approx)
PHP Code:
        $userid $bbuserinfo['userid'];
        
$originating_user 1;
                
        
// insert private message text
        
$DB_site->query("INSERT INTO " TABLE_PREFIX "pmtext (fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature, allowsmilie) VALUES(
            '
$originating_user', 
            'Battle', 
            '"
.addslashes(htmlspecialchars($title))."', 
            '" 
addslashes($message). "', 
            '" 
addslashes(serialize($bbuserinfo[username])) . "', 
            '1', 
            " 
TIMENOW ", 
            '0', 
            '0'
        )"
);


/* Personal comments, not a part of the current code:
In the above, change originating_user to the userid of your selected RPG dude.
Also, change 'Battle' to the username of your selected RPG dude.
*/ 
(lines 378 through to 393)
PHP Code:
        // send the PM to the opponent
        // It is currently set to _this_ user.
        
$originating_user $bbuserinfo['userid'];
                
        
// insert private message text
        
$DB_site->query("INSERT INTO " TABLE_PREFIX "pmtext (fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature, allowsmilie) VALUES(
            '
$originating_user', 
            'Battle', 
            '"
.addslashes(htmlspecialchars($title))."', 
            '" 
addslashes($message). "', 
            '" 
addslashes(serialize($opponent[username])) . "', 
            '1', 
            " 
TIMENOW ", 
            '0', 
            '0'
        )"
);


/* Personal comments, not a part of the current code:
In the above, change originating_user to the userid of your selected RPG dude.
Also, change 'Battle' to the username of your selected RPG dude.
*/ 
That should do it.



On a sadder note, I have just recieved a notification of a most disturbing fact:
A site distributing vBulletin code modifications illegally (IE with the explicit purpose to avoid having to show licenced status here at vbulletin.org) has today uploaded the v2.5.3 of this RPG Integration Hack.
This pisses me off because I did not work my asses off to get this hack fixed up just so every leecher in the world can use it. I give it to YOU guys'n'gals for free because you, like me, have realised that vBulletin is an excellent forum software, and found it worth the money.
The user uploading it goes by the name of "rogue" on there, I dont know if that rings a bell to anyone on here. I just hope for his sake hes not dumb enough to use the same username here, like someone else on there did (unless he was uploading under false name to frame someone on here).
Ive taken image evidence of the abovementioned user (OR imposter, Im not framing anyone), and the RPG Integration Hack upload itself.

This has pissed me off greatly. Its the sorta thing that makes me regret releasing it.
If you want to distribute this hack to illegal websites, you must pay me $160 for each user that downloads the hack, which I will then send back to the users downloading it so they can stop being thieves.
I wont stop doing this hack for you guys just because of this, youve all been very patient and overbearing with me, which is what makes me want to continue this.

Now I know Ive spoken my opinion in the Lounge that may make me look like a hypocrite for saying this. I refer to the "Re: vB Call to Home" thread if anyone wants to know what I mean.
But Id just like to distinct between the 2 posts.
In that thread I said that I agree with the statement that piracy of vB will help spread the word and give users like me a complete tour of the software and what it can do for ME, MY forums and users.
This doesnt mean I want people running a live board with illegal vB's, and have good forums thanks to our hard work.



Thats enough ranting for now.

//peace


UPDATE: Hotfix for the bug 'Battle PM Links are broken' is attached to the 'Addons/Hotfixes' post, linked to from the first post.
  #263  
Old 09-01-2004, 04:31 PM
Troak Troak is offline
 
Join Date: Jan 2003
Location: Earth
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I ran a test battle, and I'm not sure if it only happened to me, but there seemed to be a lot of errors with coding somehow, I'll try to post up some examples soon.
  #264  
Old 09-01-2004, 07:33 PM
burnist's Avatar
burnist burnist is offline
 
Join Date: Jul 2003
Location: Ireland
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack adds 23 database tables (including the uCash ones)

rpg_battle
rpg_battle_midis
rpg_battle_options
rpg_battle_posts
rpg_battle_scenes
rpg_battle_stats
rpg_clan
rpg_items
rpg_items_cats
rpg_items_options
rpg_items_user
rpg_lottery
rpg_lottery_tickets
rpg_replacement
rpg_rpg_alignment
rpg_rpg_classf
rpg_rpg_classm
rpg_rpg_element
rpg_rpg_race
rpg_rpg_type

This takes the total tables in a database to 106 if there have been no other tables added. I would suggest you try and remove some of these tables in a near version eg rpg_items_options and rpg_battle_options could both be removed and there settings added to the $vboptions[foo] by adding the settings to the settings table, this would remove at least 2 queries and use a highly optimised query already in vB, also the class tables rpg_rpg_classf and rpg_rpg_classm could be joined and an extra coloum added to distinguish between male and female. Id also try to make a simple cash system using the userfields table, its not very hard, I made one and im a novice :P
  #265  
Old 09-01-2004, 08:27 PM
Rahzel_hx Rahzel_hx is offline
 
Join Date: Aug 2004
Location: Everett,Washington
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a problem with the battle scrren i get the error in the top left and the backgrounds are glitched see pic below
Attached Files
File Type: (21.3 KB, 31 views)
  #266  
Old 09-01-2004, 11:09 PM
fade fade is offline
 
Join Date: Feb 2003
Location: oz
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm, i get something roughly similar with your backgrounds rahzel, it begins to repeat itself (tile) down the bottom where the characters are.. only a minor thing really, but one i wanted to fix up eventually.
  #267  
Old 09-02-2004, 12:55 AM
Dyntheos Dyntheos is offline
 
Join Date: May 2002
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes I am seeing the same thing as fade with the tiling of backgrounds, only where the characters stand in battle.
  #268  
Old 09-02-2004, 01:14 AM
jpt62089 jpt62089 is offline
 
Join Date: Aug 2004
Location: The Milky Way Galaxy
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the battles work in Firefox right? I know RPG inferno 2.5 for IPB didnt work in FF...
  #269  
Old 09-02-2004, 02:00 AM
Rahzel_hx Rahzel_hx is offline
 
Join Date: Aug 2004
Location: Everett,Washington
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another Error I can't type in the update rpg info for the clan password >_<
  #270  
Old 09-02-2004, 08:01 AM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had this long reply typed up, but then this ++++ school pc crashed, so I cant be arsed to type it again.


@burnist:
I wont make a points system cos there was already one in there, it had displaying errors, and people might want to use uCash which would generate the hassle of me having to put a switch in for the points system.

I have noted your optimisation suggestions, and if you got more ideas you want to share, you can send me a pm with msn\email so we can talk more thorough
thanks



@the people with background errors:
No idea how to fix that, sorry



@jpt:
yes they do, I would never code anything not for firefox
Battle midis wont work without the "Play BGSOUND". I cant use embed tag because that would produce screen cutter in the form of a WMP control bar and other hassle.



@raz:
XD your not supposed to
That field gets automaticaly filled out when you join a clan
  #271  
Old 09-02-2004, 10:13 AM
Rogue Pan Rogue Pan is offline
 
Join Date: Mar 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i know what it is

Revan its still trying to look for the wbb images
Closed Thread


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 08:43 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.05577 seconds
  • Memory Usage 2,351KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete