vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   RPG Class Hack v3.3 (https://vborg.vbsupport.ru/showthread.php?t=43558)

Goldknight 10-03-2002 07:11 AM

Quote:

Originally posted by [D]Vincent
I could make a spell system perhaps. But I would have to think up a buy for them to gain the spells. How the spells are listed, where would be the best place to list the spells, what the spells were, what effects the spells had. I might be able to do this when I have some free time.
Do you still need the list or ? If so pls let me know, I ll more than glad to provide you the list. :)

Ninth Dimension 10-03-2002 11:02 AM

Is there anychance that you could set-up elements for this as well? If you can't, or don't want to, it's fair enough because I know how to do it myself, I just fancied being lazy :)

Silenced Soul 10-03-2002 09:44 PM

Henry, that is something HE added. Just add a customfield, find the field number and then $post[field#].

And I found the error, it was in the templates, but, like you said you have it fixed so no need to post it.

Either way, amazing hack my man, I really appriciate you posting this so I didn't have to code it all... er, that's just lazy, well, thank you :nods:

DarkDraco07 10-09-2002 11:21 PM

when me or my members want to change alignment, class or race. some of them dont work. say u want to be an elf, it sets you to dwarf. if u want to be good or bad, it sets you to neutral. and stuff like that

BloodThirsty229 10-13-2002 04:11 PM

Everytime I go to change my profile and I click Elf it switches it to Dwarf. Is this a database error?
I installed this in vB2.2.8 and thats not the only error but everytime someone logs in it brings them back to the index and says they're logged out. I'm not sure if this is an error from this hack, but is there anyway for me to fix any of these?

wolfe 10-15-2002 10:07 PM

Very Nice Hack

DarkDraco07 10-16-2002 05:14 AM

can someoen answer my question??

Ninth Dimension 10-16-2002 09:47 AM

Quote:

Originally posted by DarkDraco07
when me or my members want to change alignment, class or race. some of them dont work. say u want to be an elf, it sets you to dwarf. if u want to be good or bad, it sets you to neutral. and stuff like that
This hack has some bugs in it, but bugs that are very simple to fix. You need to find the changes that you made in the member.php file and edit it to fix the problem.

You will find all of the code looks something like this:
PHP Code:

  if ($bbuserinfo[rpgrace] == "0") {
    
$rpgrace_select[0] = " selected";
  } elseif (
$bbuserinfo[rpgrace] == "1") {
    
$rpgrace_select[1] = " selected";
  } 

, you will need to go though and make sure that at the number of the square brackets []'s matches the one in the quotes.

Once you have done this for all the new elements added to this file, you will need to do something like this in the template.

open "modifyprofile" and find the class hack html code and replace with the following:
Code:

<tr>
                <td bgcolor="#1C5780"><normalfont><b>RPG Race:</b></normalfont><br>
                <smallfont>The Race you want your character to be on the RPG.</smallfont></td>
                <td bgcolor="#1C5780"><normalfont>
                            <select name="rpgrace">
                <option value="0"$rpgrace_select[0]>Unknown</option>
        <option value="1"$rpgrace_select[1]>Human</option>
        <option value="2"$rpgrace_select[2]>Elf</option>
                <option value="3"$rpgrace_select[3]>Dwarf</option>
        <option value="4"$rpgrace_select[4]>Orc</option>
        <option value="5"$rpgrace_select[5]>Ogre</option>
                <option value="6"$rpgrace_select[6]>Goblin</option>
                <option value="7"$rpgrace_select[7]>Dragonian</option>
                    </select></normalfont></td>
                            </tr>
<tr>
        <td bgcolor="#13486D"><normalfont><b>RPG Class:</b></normalfont><br>
<smallfont>The Class you want your character to be on the RPG.</td>
        <td bgcolor="#13486D"><smallfont><select name="rpgclass">
                      <option value="0"$rpgclass_select[0]>None</option>
                      <option value="1"$rpgclass_select[1]>Sky Reaper</option>
                      <option value="2"$rpgclass_select[2]>Archer</option>
                      <option value="3"$rpgclass_select[3]>Arch Mage</option>
                      <option value="4"$rpgclass_select[4]>Assassin</option>
                      <option value="5"$rpgclass_select[5]>Black Mage</option>
                      <option value="6"$rpgclass_select[6]>Black Smith</option>
                      <option value="7"$rpgclass_select[7]>Bodyguard</option>
                      <option value="8"$rpgclass_select[8]>Calculator</option>
                      <option value="9"$rpgclass_select[9]>Captain</option>
                      <option value="10"$rpgclass_select[10]>Chemist</option>
                      <option value="11"$rpgclass_select[11]>Dark Knight</option>
                      <option value="12"$rpgclass_select[12]>Dragoon</option>
                      <option value="13"$rpgclass_select[13]>Ex-Soldier</option>
                      <option value="14"$rpgclass_select[14]>Foot Soldier</option>
                      <option value="15"$rpgclass_select[15]>Gambler</option>
                      <option value="16"$rpgclass_select[16]>Geomancer</option>
                      <option value="17"$rpgclass_select[17]>Holy Knight</option>
                      <option value="18"$rpgclass_select[18]>Knight</option>
                      <option value="19"$rpgclass_select[19]>Mediator</option>
                      <option value="20"$rpgclass_select[20]>Mercenary</option>
                      <option value="21"$rpgclass_select[21]>Mime</option>
                      <option value="22"$rpgclass_select[22]>Monk</option>
                      <option value="23"$rpgclass_select[23]>Ninja</option>
                      <option value="24"$rpgclass_select[24]>Oracle</option>
                      <option value="25"$rpgclass_select[25]>Red Mage</option>
                      <option value="26"$rpgclass_select[26]>Samurai</option>
                      <option value="27"$rpgclass_select[27]>Sniper</option>
                      <option value="28"$rpgclass_select[28]>Squire</option>
                      <option value="29"$rpgclass_select[29]>Summoner</option>
                      <option value="30"$rpgclass_select[30]>Thief</option>
                      <option value="31"$rpgclass_select[31]>Time Mage</option>
                      <option value="32"$rpgclass_select[32]>Vampire</option>
                      <option value="33"$rpgclass_select[33]>White Mage</option>
        </select></smallfont></td>
</tr>


<tr>
                <td bgcolor="#1C5780"><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="#1C5780"><normalfont>
                            <select name="rpggender">
                <option value="0"$rpggender_select[0]>Unknown</option>
        <option value="1"$rpggender_select[1]>Female</option>
        <option value="2"$rpggender_select[2]>Male</option>
                    </select></normalfont></td>
                            </tr>
<tr>
                <td bgcolor="#13486D"><normalfont><b>RPG Alignment:</b></normalfont><br>
                <smallfont>The side you want your character to be on the RPG.</smallfont></td>
                <td bgcolor="#13486D"><normalfont>
                            <select name="alignment">
                <option value="0"$rpgalign_select[0]>Neutral</option>
        <option value="1"$rpgalign_select[1]>Good</option>
        <option value="2"$rpgalign_select[2]>Evil</option>
                    </select></normalfont></td>
                            </tr>
<tr>
                <td bgcolor="#1C5780"><normalfont><b>RPG Type:</b></normalfont><br>
                <smallfont>The RPG Type you want your character to be on the RPG.</smallfont></td>
                <td bgcolor="#1C5780"><normalfont>
    <select name="rpgtype">
    <option value="0"$rpgtype_select[0]>None</option>
        <option value="1"$rpgtype_select[1]>Fighter</option>
        <option value="2"$rpgtype_select[2]>Mage</option>
        <option value="3"$rpgtype_select[3]>Thief</option>
        <option value="4"$rpgtype_select[4]>Attacker</option>
        <option value="5"$rpgtype_select[5]>Defender</option>
        </select></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>

That should fix the bugs in the code, if not, pester the author a little more :)

Ninth Dimension 10-16-2002 09:48 AM

Quote:

Originally posted by BloodThirsty229
Everytime I go to change my profile and I click Elf it switches it to Dwarf. Is this a database error?
I installed this in vB2.2.8 and thats not the only error but everytime someone logs in it brings them back to the index and says they're logged out. I'm not sure if this is an error from this hack, but is there anyway for me to fix any of these?

My post above should fix your problem too.

Jitway 10-22-2002 01:39 AM

Can someone tell me why everyone on my board get these numbers by the RPG looks like this

Vampire
123.2 117.6 78 45 49 33.6
Novice Dark Goblin
Evil Male Attacker x200% Attack

Thanks!


All times are GMT. The time now is 06:36 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.01207 seconds
  • Memory Usage 1,771KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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