The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
RPG Integration Hack /w Battle (BETA) Details »» | |||||||||||||||||||||||||
RPG Integration Hack BETA by Bitsys
(vBulletin versions 2.2.6?, 2.2.7, 2.2.8, 2.2.9, and 2.3.0) This hack combines several RPG hacks into one and adds a battle hack. The hacks included in this hack are:
In addition to re-releasing thse hacks, I have added features to all of them (or else there would be no point in re-releasing).
This means that the RPG hacks are database driven and have been partially integrated with the Itemshop. This was necessary in order to make a battle hack, which is also included. Since most people are familiar with the RPG and Itemshop hacks, I will give a brief description of the Battle hack. If you want more information about either of the other two hacks, then refer to their original posts or download the .zip file and read the "readme.txt". If you are a visual learner, then you can scroll down to the second post in this thread, which contains the pictures of all of these hacks. Battle Features:
Getting started with the battle hack:
Why is this a BETA hack? I have tested the installation of this hack on vBulletin versions 2.2.7, 2.2.8, 2.2.9, and 2.3.0. However, because of the scale of this hack, there is plenty of room for errors. Therefore I am making the following disclaimer while this hack is in the BETA stage: WARNINGS:
Miscellaneous: The beta of this hack is free. The full/final release will also be free. All installation instructions and credits are included in the attachment. If you find a bug or have problems, feel free to post them here and I will try to fix them. Please read the included readme file if you have questions. If you can't find the answer, then post your question here and I will answer it. All hacks included in this hack have been re-released with permission of their original creators. Screenshots are in the second post of this thread. Installation: Installation instructions are included in the .zip file. ACKK! I NEED HELP!!! If you are having trouble and need some help, please refer to the help documentation included in the .zip file. It is located in the "extra" directory. If you need help and you have already installed the hack, make sure you check the RPG Manual link in the admin cp. Also, make sure you read the FAQ included with the manual. MY THREADS STOPPED DISPLAYING CORRECTLY!!! See if you are experiencing one of the following symptoms:
If you are experiencing one or more of the above problems, then your showthread.php file was not edited correctly by the installer. This problem usually occurs on boards with other hacks installed that modify the queries in showthread.php. Please go to https://vborg.vbsupport.ru/showpost....postcount=2261 and follow the instructions there. Add-ons: The following add-ons are not included in the default installation. You must apply these add-ons after you have installed the hack successfully. Member profile add-on This add-on let's you display the user's RPG Stats in their member profile. See the .zip file for the add-on. It is located in the "Member Profile Add-on" directory. Auto-update stats after posting This add-on automatically updates the user's stats after they make a post, instead of having to click on the update stats button in the user cp. This add-on involves 2 file edits. The add-on is located at https://vborg.vbsupport.ru/showthrea...452#post356452 Donation Queue by Darkwaltz4 Moderate all Donations. See Who is Donating to Who. All Donations go through Admins or Mods. The add-on is located at https://vborg.vbsupport.ru/showthrea...652#post408652 Battle Background Midi System by Darkwaltz4 Full control over the music that plays during your battles! The add-on is located at https://vborg.vbsupport.ru/showthrea...530#post410530 Randomized First Turn Addon by Moreliator "The following code gives the challenger a 33% chance to start the battle and the challenged person a 66% chance. Works quite well. I also included instructions on how to display "Determining..." on the battle.php browse page, that way people won't decline a challenge if they see they aren't going first. ". The add-on is located at https://vborg.vbsupport.ru/showthrea...614#post410614 Lock RPG Options at a Specified Level Addon by Moreliator This addon allows you to lock all users' RPG options in their USER CP when they reach a certain level. This add-on is located at https://vborg.vbsupport.ru/showthrea...111#post411111 Personal Shop Items Have Battle Bonuses by Triade The original personal shop, allows to have an item the don't do nothing in battle. With this add-on, you can build items with bonus in battle (the bonus is in the attack now). This add-on is located at https://vborg.vbsupport.ru/showthrea...328#post426328 Challengable Option by Darkwaltz4 Allows users to set themselves against recieving battle challenges. This add-on can be found at https://vborg.vbsupport.ru/showthrea...143#post411143 Contact Info: Bitsys Email: bitsys AT mail DOT com PM me for a faster response. I prefer PMs. ~~~~~~~~~~~~ Update 09/04/03 @ 1:46pm v0.68c Battle debug messages were accidentally left on. Minor shield bug was fixed in battlefight.php (Thanks Telchar). Re-upload battleupdate.php and battlefight.php. The new .zip file is located at the bottom of this post. Finally, here is the .zip file (v0.68c): Show Your Support
|
Comments |
#1792
|
||||
|
||||
Quote:
Quote:
Have you checked your modifyprofile template to see if there is duplicate HTML code in there? |
#1793
|
|||
|
|||
Quote:
$customfields_required $customfields Where I think it should only be in the later of the two. So it shows up twice but only the last one in the form is effective. So somehow the members.php file is messed up. Yet I didn't do any manual editing. This is what's loaded into the first variable: $profilefields=$DB_site->query("SELECT * FROM profilefield WHERE editable = 1 ORDER BY displayorder"); Here is what I think is loaded into the later: $profilefields=$DB_site->query("SELECT profilefieldid,required,title FROM profilefield WHERE hidden=0 ORDER BY displayorder"); Ideas? James |
#1794
|
|||
|
|||
Quote:
I did change a few things. First, I deleted the first instance of the $RPG Name and element and all that stuff in the modify_profile template. Next, I remember also having to delete a "_require" from the template because it was actually showing up on teh page. But that is all... |
#1795
|
||||
|
||||
Quote:
Quote:
Can both of you give me your modifyprofile template so that I can make sure I am on the same page as you? |
#1796
|
|||
|
|||
Sure, heres mine, pasted exactly as it is.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>$bbtitle - Update profile</title> $headinclude </head> <body> <SCRIPT LANGUAGE="JAVASCRIPT"> <!-- $racearrays $classarrays $typearrays function updateRaces(){ with (document.profile.alignment){ var choice = options[selectedIndex].value; } document.profile.rpgrace.length = 0; choice = eval(choice); for (var i=0;i<choice.length;i++){ with (document.profile.rpgrace){ options[length] = new Option(choice[i],choice[++i],false,false); } } if ((parseInt(navigator.appVersion) < 5) && (navigator.appName == "Netscape")) { history.go(0); } } function updateType(){ with (document.profile.rpggender){ var gender = options[selectedIndex].value; } if (gender == "gd1"){ with (document.profile.rpgclass){ var rclass = options.selectedIndex; } rclass = eval(rclass); document.profile.rpgtypename.value = typename1[rclass]; document.profile.rpgtypeid.value = typeid1[rclass]; } else if(gender == "gd2") { with (document.profile.rpgclass){ var rclass = options.selectedIndex; } rclass = eval(rclass); document.profile.rpgtypename.value = typename2[rclass]; document.profile.rpgtypeid.value = typeid2[rclass]; } else { document.profile.rpgtypename.value = typename0[0]; document.profile.rpgtypeid.value = typeid0[0]; } if ((parseInt(navigator.appVersion) < 5) && (navigator.appName == "Netscape")) { history.go(0); } } function updateClasses(){ with (document.profile.rpggender){ var choice = options[selectedIndex].value; } document.profile.rpgclass.length = 0; choice = eval(choice); for (var i=0;i<choice.length;i++){ with (document.profile.rpgclass){ options[length] = new Option(choice[i],choice[++i],false,false); } } document.profile.rpgtypename.value = typename0[0]; document.profile.rpgtypeid.value = typeid0[0]; updateType(); if ((parseInt(navigator.appVersion) < 5) && (navigator.appName == "Netscape")) { history.go(0); } } //--> </script> $header <!-- breadcrumb --> <table cellpadding="2" cellspacing="0" border="0" width="95%" align="center"> <tr> <td width="100%"><img src="https://vborg.vbsupport.ru/images/vb_bullet.gif" align="middle" alt="vBulletin"> <normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a> > <a href="usercp.php?s=$session[sessionhash]">User Control Panel For $bbuserinfo[username]</a> > Edit Profile</b></normalfont></td> </tr> </table> <!-- /breadcrumb --> <br> $cpnav <br> <center>$coppatext</center> <form name="profile" action="member.php" method="post"> <input type="hidden" name="s" value="$session[sessionhash]"> <table cellpadding="0" cellspacing="0" border="0" bgcolor="#0A293E" width="95%" align="center"><tr><td> <table cellpadding="4" cellspacing="1" border="0" width="100%"> <tr> <td bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" colspan="2"><normalfont color="#000000"><b>Edit Profile - $bbuserinfo[username]</b></normalfont></td> </tr> <tr> <td bgcolor="#1D6AA0" colspan="2"><normalfont color="#EEEEFF" class="thtcolor"><b>Registration: Required Information</b></normalfont> <smallfont color="#EEEEFF" class="thtcolor">All fields are required.</smallfont></td> </tr> $parentemail <tr> <td bgcolor="#1C5780"><normalfont><b>Email Address:</b></normalfont></td> <td bgcolor="#1C5780"><normalfont><input type="text" class="bginput" name="email" value="$bbuserinfo[email]" size="30" maxlength="150"></normalfont></td> </tr> <tr> <td bgcolor="#1C5780"><normalfont><b>Confirm Email Address:</b></normalfont></td> <td bgcolor="#1C5780"><normalfont><input type="text" class="bginput" name="emailconfirm" value="$bbuserinfo[email]" size="30" maxlength="150"></normalfont></td> </tr> <!-- *** --> <tr> <td bgcolor="#1D6AA0" colspan="2"><normalfont color="#EEEEFF" class="thtcolor"><b>Optional Information</b></normalfont> <smallfont color="#EEEEFF" class=thtcolor>All information will be viewable by other $bbtitle members.</smallfont></td> </tr> <tr> <td bgcolor="#1C5780"><b><normalfont>Homepage:</normalfont></b></td> <td bgcolor="#1C5780"><normalfont><input type="text" class="bginput" name="homepage" value="$bbuserinfo[homepage]" size="30" maxlength="200"></normalfont></td> </tr> <tr> <td bgcolor="#13486D"><b><normalfont>ICQ Number:</normalfont></b></td> <td bgcolor="#13486D"><normalfont><input type="text" class="bginput" name="icq" value="$bbuserinfo[icq]" size="30" maxlength="30"></normalfont></td> </tr> <tr bgcolor="#1C5780"> <td><b><normalfont>AOL Instant Messenger Handle:</normalfont></b></td> <td><normalfont><input type="text" class="bginput" name="aim" value="$bbuserinfo[aim]" size="30" maxlength="30"></normalfont></td> </tr> <tr> <td bgcolor="#13486D"><b><normalfont>Yahoo Messenger Handle:</normalfont></b></td> <td bgcolor="#13486D"><normalfont><input type="text" class="bginput" name="yahoo" value="$bbuserinfo[yahoo]" size="30" maxlength="30"></normalfont></td> </tr> <tr> <td bgcolor="#1C5780" valign="top"><b><normalfont>Signature:</normalfont></b><br> <smallfont>Optional signature you may use to appear at bottom of your posts.</smallfont> <p><smallfont>HTML code is $htmlonoff<br> <a href="misc.php?s=$session[sessionhash]&action=bbcode">vB Code</A> is $bbcodeonoff<br> [img] code is $imgcodeonoff<br> <a href="misc.php?s=$session[sessionhash]&action=showsmilies">Smilies</a> are $smiliesonoff </smallfont></p></td> <td bgcolor="#1C5780"><textarea name="signature" rows="6" cols="40">$signature</textarea></td> </tr> $birthday $customtext <tr> <td bgcolor="#1D6AA0" colspan="2"><normalfont color="#EEEEFF" class="thtcolor"><b>Additional Information</b></normalfont></td> </tr> $customfields <tr><td bgcolor="$bgcolor"><normalfont><b>Element Type:</b></normalfont><br> <smallfont>The Element type you want to be at the boards.</smallfont></td> <td bgcolor="$bgcolor"><normalfont> <select name="element"> $elementoptions </select> </normalfont></td> </tr> <tr> <td bgcolor="$bgcolor"><normalfont><b>RPG Alignment:</b></normalfont><br> <smallfont>The side you want your character to be on the RPG.</smallfont></td> <td bgcolor="$bgcolor"><normalfont> <select name="alignment" onchange="updateRaces()"> $alignmentoptions </select></normalfont></td> </tr> <tr> <td bgcolor="$bgcolor"><normalfont><b>RPG Race:</b></normalfont><br> <smallfont>The Race you want your character to be on the RPG.</smallfont></td> <td bgcolor="$bgcolor"><normalfont> <select name="rpgrace"> $raceoptions </select></normalfont></td> </tr> <tr> <td bgcolor="$bgcolor"><normalfont><b>RPG Gender:</b></normalfont><br> <smallfont>This would be your RPG Character's Gender, not your gender in real life.</smallfont></td> <td bgcolor="$bgcolor"><normalfont> <select name="rpggender" onchange="updateClasses()"> $genderoptions </select></normalfont></td> </tr> <tr> <td bgcolor="$bgcolor"><normalfont><b>RPG Class:</b></normalfont><br> <smallfont>The Class you want your character to be on the RPG.</td> <td bgcolor="$bgcolor"><smallfont> <select name="rpgclass" onchange="updateType()"> $classoptions </select></smallfont> </td> </tr> <tr> <td bgcolor="$bgcolor"><normalfont><b>RPG Type:</b></normalfont><br><smallfont>Your type is automatically determined by your class.</smallfont></td> <td bgcolor="$bgcolor" > <input type="text" class="bginput" name="rpgtypename" value="$rpgtypename" length="30" READONLY><input type="hidden" name="rpgtypeid" value="$rpgtypeid"> </td> </tr> <tr> <td bgcolor="$bgcolor"><normalfont><b>Build Stats</b></normalfont><br> <smallfont>Click here if you want to have stats shown on the board.</smallfont></td> <td bgcolor="$bgcolor"><normalfont> <input type="checkbox" name="updatestats">Update stats </normalfont></td> </tr> </table> </td></tr></table> <br> <table cellpadding="2" cellspacing="0" border="0" width="95%" align="center"> <tr> <td align="center"><normalfont> <input type="hidden" name="action" value="updateprofile"> <input type="submit" class="bginput" name="Submit" value="Submit Modifications" accesskey="s"> <input type="reset" class="bginput" name="Reset" value="Reset Fields"> </normalfont></td> </tr> </table> </form> $footer </body> </html> |
#1797
|
|||
|
|||
Ack, never mind. It was in there twice. How it got there I'm not sure as it was a new install. I've removed it. Thanks!
James |
#1798
|
||||
|
||||
*cracks knuckles* okays, i guess i might read through pages 80-120 cause thats how long its been since i was here :-p and im going to try to list some of the bizzarre things ive put this hack through, and if i put an asterisk (*) by it, please dont ask me how to do it yet, its probably too complicated to explain here, or its still volatile, lol....also, ill probably forget like alot, mainly because a bunch i did before i broke the hack on my boards, like 3 months ago...
Summon-type items * Summon Battle sequences * PP Potions PP Healing Center bit Donation Queue Registration points Bank interest thing moved to global.php Redid rpg stats to ~1000 x level=hp ~100 x level=ma/pp (really simple) Added a mess of custom messages based on rpg type Links to 'correct' itemshop based on type Itemshop FAQ, link to it from itemshop Target link to profile rpg section, so that i could link people to member.php?action=editprofile#rpg when they keep asking me where all the rpg stuff was >.< and 'edit ur profile' wasnt helping them... Fixing blank password bug... Changing all password fields to type='password' (looks nicer ) Random playing of battle midis on battlefight.php Rewrote some of the stupid battle messages :-p like whos gunna meditate in a cave??? lmao (no offense ) Removed/replaced a bunch of links, like the 'update stats' checkbox with a link to the healing center... there prolly more :-p and i guess im here to help *sigh* those strange problems everyone keeps having with the hack :-p |
#1799
|
|||
|
|||
Is there a way to make it so that people who own personal shops cannot create their own items? I would like it if they could just sell the items pre-made by the administration.
|
#1800
|
||||
|
||||
@ Darkwaltz4: Could you explain how I can install..... everything that doesn't have an asterisk by it?
|
#1801
|
||||
|
||||
Yes, you should release an addon :P
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|