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
Darkness's RPG Hack; By lanretessenkrad
Topic Started: Jan 25 2010, 08:34 AM (111 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: lanretessenkrad
Darkness's RPG Hack
 
Well first time making one. I know the release of the RPG Inferno just came out so I am sure nobody will use this one. Oh well. If you do give credit to me, especially for working up the battle system(which is manual, I will explain at the bottom).

Code:
 

<style>
.rpgmain {font-size: 10px}
.rpgmain2 {color: 000000}
</style>
<script>
/*
RPG Hack v3.2
Created by Webworldx & Peter - 17.11.03
Updated for xHTML compliance by Magus
Customized using RPG Hack Customizer - By Markup
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="9999"
NextLevel="20"
MoneySign="$"
NextWeapon="8"
NextItem="20"
AddMoney="15"

MoneyOn="N"
ItemWeapOn="N"

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

var statsImage=[]
statsImage[0]=["Health","/hp.gif"]
statsImage[1]=["Power","/str.gif"]
statsImage[2]=["Magicka","/mag.gif"]

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

function getStats() {
TheStats=[];
stats=[];
var Health=0;Power=1;Magicka=2;HolyKnight=1;DarkKnight=2;Paladin=3;Summoner=4;BlackMage=5;WhiteMage=6;Demon=7;Rogue=8;

TheStats[Health]=[]
TheStats[Health][HolyKnight]=parseInt(PostCount) / (3/2)
TheStats[Health][DarkKnight]=parseInt(PostCount) / 2
TheStats[Health][Paladin]=parseInt(PostCount) / 2
TheStats[Health][Summoner]=parseInt(PostCount) / 3
TheStats[Health][BlackMage]=parseInt(PostCount) * (2/7)
TheStats[Health][WhiteMage]=parseInt(PostCount) * (2/8)
TheStats[Health][Demon]=parseInt(PostCount) / 2
TheStats[Health][Rogue]=parseInt(PostCount) / 2

TheStats[Power]=[]
TheStats[Power][HolyKnight]=parseInt(PostCount) * (2/9)
TheStats[Power][DarkKnight]=parseInt(PostCount) * (2/11)
TheStats[Power][Paladin]=parseInt(PostCount) * (2/9)
TheStats[Power][Summoner]=parseInt(PostCount) * (1/15)
TheStats[Power][BlackMage]=parseInt(PostCount) * (1/15)
TheStats[Power][WhiteMage]=parseInt(PostCount) * (1/15)
TheStats[Power][Demon]=parseInt(PostCount) * (2/11)
TheStats[Power][Rogue]=parseInt(PostCount) * (1/6)

TheStats[Magicka]=[]
TheStats[Magicka][HolyKnight]=parseInt(PostCount) * (2/5)
TheStats[Magicka][DarkKnight]=parseInt(PostCount) * (2/5)
TheStats[Magicka][Paladin]=parseInt(PostCount) * (1/4)
TheStats[Magicka][Summoner]=parseInt(PostCount) * (1/2)
TheStats[Magicka][BlackMage]=parseInt(PostCount) * (1/2)
TheStats[Magicka][WhiteMage]=parseInt(PostCount) * (1/2)
TheStats[Magicka][Demon]=parseInt(PostCount) * (1/6)
TheStats[Magicka][Rogue]=parseInt(PostCount) * 0

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","Holy Knight"]
Race[2] = ["2","Dark Knight"]
Race[3] = ["3","Paladin"]
Race[4] = ["4","Summoner"]
Race[5] = ["5","Black Mage"]
Race[6] = ["6","White Mage"]
Race[7] = ["7","Demon"]
Race[8] = ["8","Rogue"]

var WPName=[ [] , [] ]
WPName[0][1]=[""]
WPName[0][2]=[""]
WPName[0][3]=[""]
WPName[0][4]=[""]
WPName[0][5]=[""]
WPName[0][6]=[""]
WPName[0][7]=[""]
WPName[0][8]=[""]

WPName[1][1]=[""]
WPName[1][2]=[""]
WPName[1][3]=[""]
WPName[1][4]=[""]
WPName[1][5]=[""]
WPName[1][6]=[""]
WPName[1][7]=[""]
WPName[1][8]=[""]

var WPURL=[ [] , [] ]
WPURL[0][1]=[""]
WPURL[0][2]=[""]
WPURL[0][3]=[""]
WPURL[0][4]=[""]
WPURL[0][5]=[""]
WPURL[0][6]=[""]
WPURL[0][7]=[""]
WPURL[0][8]=[""]

WPURL[1][1]=[""]
WPURL[1][2]=[""]
WPURL[1][3]=[""]
WPURL[1][4]=[""]
WPURL[1][5]=[""]
WPURL[1][6]=[""]
WPURL[1][7]=[""]
WPURL[1][8]=[""]

var Items=[]
Items[0]=[""]
Items[1]=[""]

var Extension="null"
</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>


This code is built mostly for people who don't like alot of editing codes. Because the stat limit is 9999 and that means it will last a long time. If you need to, I am not sure yet, but you can probably make the stat limit even higher than that. But it is built for forums that have alot of members with high posts.

The battle system is manual. It is all done with the 2 users that would wish to fight and a referee to do all the moves and check to make sure theres no cheating. The person who's current turn it is declares there move. The person who is the referee then uses dice to do the special effects of weapons/items. The referee keeps track of the person items currently wielded and their stats.

The rules are shown here on this thread on my forum which explains it a little more clearly. Weapons are also done manually if you look on my forum theres a shop area. There can also be user shops and trading as long as you have a forum keeping track of member's items so they can't cheat. This also means you have to have them add their items they buy to their signature.

The Rules Thread

If you would like to see it work please come and join it and try it out, We could use more people using it seeing as how one person from my site is doing it and thats it.


EDIT:Please give me comments.


NOTE: When adding the code, a part of it may seperate and cause it not to work. Please after adding this code check this part out.

Quote:
 

Health=0;Power=1;Magicka=2;HolyKnight=1;DarkKnight=2;Paladin=3;Summoner=4;BlackMage=5;WhiteMage=6;Demon=7;Rogue=8;


There may be spaces...There should not be any spaces at all. This will cause the code not to work if it has spaces
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply