We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Modified, but wont work
Topic Started: Feb 19 2004, 11:49 PM (442 Views)
rdsxrthebst07
Member
[ * ]
I changed around the RPG hack code so that it had extra stats. Thats all I changed, now the RPG wont even appear on my board. Is there something wrong with the RPG server or is it the code, could someone please help me?

Code:
 
<style>
.rpgmain {font-size: 10px}
.rpgmain2 {color: 888888}
</style>
<script>
/*
RPG Hack v3.2
Created by Webworldx & Peter - 17.11.03
Updated for xHTML compliance by Magus

This code may not be redistributed without express permission.
This header must stay intact at all times. Failure to comply with the above may result in your board being deleted.
*/

RPGHigh="300"
NextLevel="10"
MoneySign="$"
NextWeapon="8"
NextItem="15"
AddMoney="15"

MoneyOn="Y"
ItemWeapOn="Y"

var BaseURL="http://www.webpost.net/ww/wwx/ifrpg/images"
var StatsURL="http://www.webpost.net/ww/wwx"

var statsImage=[];
statsImage[0]=["HP","/hp.gif"]
statsImage[1]=["STR","/str.gif"]
statsImage[2]=["MAG","/mag.gif"]
statsImage[3]=["DEF","/hp.gif"]
statsImage[4]=["AGL","/str.gif"]
statsImage[5]=["INT","/mag.gif"]
statsImage[6]=["STH","/hp.gif"]

var theEXP = ["EXP","/exp.gif"]

function getStats() {
TheStats=[];
stats=[];
var HP=0;STR=1;MAG=2;DEF=3;AGL=4;INT=5;STH=6;Archer=1;Mage=2;Warrior=3;

TheStats[HP]=[]
TheStats[HP][Archer]=PostCount
TheStats[HP][Mage]=PostCount
TheStats[HP][Warrior]=PostCount

TheStats[STR]=[]
TheStats[STR][Archer]=parseInt(TheStats[HP][Archer]) - 5
TheStats[STR][Mage]=parseInt(TheStats[HP][Mage]) - 25
TheStats[STR][Warrior]=parseInt(TheStats[HP][Warrior]) + 10

TheStats[MAG]=[]
TheStats[MAG][Archer]=parseInt(TheStats[HP][Archer] * (3/2))
TheStats[MAG][Mage]=parseInt(TheStats[HP][Mage] * 2)
TheStats[MAG][Warrior]=parseInt(TheStats[HP][Warrior] / 2)

TheStats[DEF]=[]
TheStats[DEF][Archer]=parseInt((4/3) *(TheStats[HP][Archer]) + 4)
TheStats[DEF][Mage]=parseInt(TheStats[HP][Mage] * (4/3))
TheStats[DEF][Warrior]=parseInt(TheStats[HP][Warrior] * (5/3))

TheStats[AGL]=[]
TheStats[AGL][Archer]=parseInt(TheStats[HP][Archer] * (4/3))
TheStats[AGL][Mage]=parseInt(TheStats[HP][Mage] * (6/5))
TheStats[AGL][Warrior]=parseInt(TheStats[HP][Warrior] - 13)

TheStats[INT]=[]
TheStats[INT][Archer]=parseInt(TheStats[HP][Archer] + 3)
TheStats[INT][Mage]=parseInt(TheStats[HP][Mage] * (3/2))
TheStats[INT][Warrior]=parseInt(TheStats[HP][Warrior] / (4/3))

TheStats[STH]=[]
TheStats[STH][Archer]=parseInt(TheStats[HP][Archer] * (5/4))
TheStats[STH][Mage]=parseInt(TheStats[HP][Archer] + 3)
TheStats[STH][Warrior]=parseInt(TheStats[HP][Warrior] -7)

for (i=0;i<TheStats.length;i++){
if (ChosenRace==""){
stats[i]=TheStats[i][1]
} else {
stats[i]=TheStats[i][ChosenRace]
}}

for (i=0;i<stats.length;i++){
if (parseInt(stats[i]) >= parseInt(RPGHigh)) { stats[i]=RPGHigh; }
if (parseInt(stats[i]) < 0 ) { stats[i]=0 }
}
return stats
}

var Race=[];
Race[1] = ["1","Archer"]
Race[2] = ["2","Mage"]
Race[3] = ["3","Warrior"]

var WPName=[ [] , [] ];
WPName[0][1]=["Bow","Gloves","Grass Boots","Thick Leather"]
WPName[0][2]=["Staff","Cloak","Freeze Spell","Basic Heal Spell","Seismic Wind"]
WPName[0][3]=["Wooden Sword","Light Armour","Helmet","Spear"]

WPName[1][1]=["Grand Bow","Tough Leather Gauntlets","Jungle Boots","Brigandine"]
WPName[1][2]=["Elite Staff","Cloak of Light","Repel Spell","Death Curse","Seismic Wind"]
WPName[1][3]=["Steel Sword","Immune Armour","Dazzling Helm","Spear of the Forsaken"]

var WPURL=[ [] , [] ];
WPURL[0][1]=["bow","gloves","grassboots","thickleather"]
WPURL[0][2]=["staff","cloak","freeze","basicheal","seismicwind"]
WPURL[0][3]=["wooden","lightarmour","helm","spear"]

WPURL[1][1]=["grandbow","leathergt","jungleboots","brigandine"]
WPURL[1][2]=["elitestaff","cloaklight","repel","deathcurse","seismicwind"]
WPURL[1][3]=["steel","immunearmour","dazzlinghelm","spforesaken"]

var Items=[]
Items[0]=["Fire Orb","Heal Leaf","Strength Increase Bottle","Ring of Death","Protect Shield","Sword of the Wise"]
Items[1]=["fireorb","healleaf","strincrease","ringdeath","lock","sticky"]

var Extension=".gif"
</script>

<script src="http://webpost.net/ww/wwx/ifrpg/images/u_rpgv3profile.js"></script>

<script src="http://webpost.net/ww/wwx/ifrpg/images/u_rpgv3forum.js"></script>

Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply