Post by Trip on Nov 23, 2014 1:03:52 GMT -5
NOTE BEFORE ORIGINAL POST RELEASE: I originally made this for Mozilla FireFox, and then later made an Internet Explorer-compatible version. There were just a couple of minor bugs that didn't get fixed post release because they were so minor. I had planned on ironing out all the bugs (I knew how to fix them all), but never released a perfect bug-free version at the time. The users could still enjoy the game with little to no issues (code was 98% functional).
I actually found the thread still intact! HERE:
support.conforums2.com/index.cgi?board=Cquestions&num=1111674159&action=display&start=0
Heeeeeeeeeeeey people!!!!!!
After 3 days of tedious (and strange) coding, I've managed to create my very 1st complete RPG!!
I basically made this just for fun because I was 'kinda bored', lol.
Well, I got kinda lazy in the middle of coding it, so I didn't indent the main part of the code or baffled my brain with complex multidimensional arrays...was kinda in a rush to finish it, heehee.
Geez, making an RPG is kinda frustrating at times...so much to do, lol it's 86k+, xD.
Well anyways, I present to you all, my very 1st RPG!!!!
BABY RPG
Code Specifications:
Code Speed: Moderate-Fast
Compatibility: Mozilla Firefox ONLY
Browser Speed Limit: No Limit
TOS Check: Permitted
UserType: Very Friendly
+Works on ProBoards v4 AND Conforums
Goes In MAIN HEADER:
Goes in MAIN FOOTER:
Goes in ALL OTHER (Not Main) BOARD FOOTERS:
Now, after all that's in, you should be set to go.
Here is some information on Baby RPG:
First and foremost, this RPG is not for everybody. LOLOLOL!
I actually designed this to be 'n00bish', but I got too much into coding it and kinda made thing better than I had planned, heehee. This version is for Mozilla FireFox ONLY; IE was starting to annoy me while coding this. >_> So, I'll make the IE version maybe later.
As stated in the code specifications, it IS allowed on Proboards but....oh nvm lol, anyways...
Here's some Information on this hack.
This RPG has 5 Different Areas:
If you're getting started for the 1st time, you should go to the RPG Settings area and allow it to auto-configure you...it will do that for everyone anyways; just follow the simple instructions.
In this RPG, you have "Baby Points", which is basically your Currency.
You get some each time you attack an enemy and each time you kill one.
(Of course, you get way more if you defeat the enemy). ^_~
So, you can buy some stuff from the shops with your "Baby Points".
OKies, aside from the other obvious setup information, there's 1 thing I'd like to point out.
YOUR RPG AVATAR WILL BE THE SAME AS YOUR AVATAR. YOU MUST USE YOUR OWN AVATAR FOR IT TO SHOW IN THE BATTLE AREA. *was too lazy to add "No Avy" pic*
So, host your nice avy and update your profile; then the RPG will automatically take it from there.
(P.S. - For those who still don't get it, Don't use the ProBoards/Conforum Default Avatars........unless you hosted it yourself and used it as your own [custom] avatar; lmao if you did though. xD).
Ooooookiiiiiiiiiiiiiiiiies...
Admins, you'll see your "Control Panel" on the "Admin Page".
You will then have all the power from there.
Also, if you're the MAIN ADMIN, your username will be "admin" (for when you want to modify your own settings in the Admin Control Panel).
Enter the member's USERNAME, not DISPLAYED NAME when modifying their RPG setting within the Admin Control Panel.
....everything else is just about self-explanatory.
Whew, it took me a while to iron out some aggravating bugs, but I killed as many as I could; and I tested it on another ProBoard and a Conforum. Works like a charm for me.
Now, as far as the RPG content goes.......lol! You'll know who coded it (the one and only, me!). I honestly never went this far before. xD
Awwwwwwww, want a preview? ^^
Register Here --> karmadesigns.proboards22.com (nice skin)
OR
Register Here --> trip.conforums3.com (default template, but slightly faster code)
^: 1 PB and 1 CF.
Well, if anybody has any questions or comments, please feel free to post them or PM me.
Thanks so much!! You all should try it at least once, lol. ^_~
Baby RPG [FireFox Explorer Version] (Cross-Browser Integrated) Official Code Release
Baby RPG FULL CODE [Mozilla FireFox version]
I actually found the thread still intact! HERE:
support.conforums2.com/index.cgi?board=Cquestions&num=1111674159&action=display&start=0
Heeeeeeeeeeeey people!!!!!!
After 3 days of tedious (and strange) coding, I've managed to create my very 1st complete RPG!!

I basically made this just for fun because I was 'kinda bored', lol.
Well, I got kinda lazy in the middle of coding it, so I didn't indent the main part of the code or baffled my brain with complex multidimensional arrays...was kinda in a rush to finish it, heehee.
Geez, making an RPG is kinda frustrating at times...so much to do, lol it's 86k+, xD.
Well anyways, I present to you all, my very 1st RPG!!!!
BABY RPG
Code Specifications:
Code Speed: Moderate-Fast
Compatibility: Mozilla Firefox ONLY
Browser Speed Limit: No Limit
TOS Check: Permitted
UserType: Very Friendly
+Works on ProBoards v4 AND Conforums
Goes In MAIN HEADER:
<script>
//BABY RPG [Mozilla Firefox Version]
//MAIN HEADER Portion
//Created by Trip
//Get Member
Object = document.getElementsByTagName('td')[5].innerHTML
if(Object.match(/username=/)){
Username=RegExp.rightContext.split('"')[0]
} else {
Username="Guest"
}
if(navigator.appName!="Microsoft Internet Explorer"){
var present = document.getElementsByTagName('td')[5];
present.innerHTML+="<br /><center><strong>|<--<a href='/index.cgi?action=profile&username="+Username+"&bprof'>Your Baby RPG Settings</a>-->|</strong> <strong>|<--<a href='/index.cgi?action=profile&username="+Username+"&bebeprof'>Baby RPG Battle</a>-->|</strong> <strong>|<--<a href='/index.cgi?action=profile&username="+Username+"&bebeweaps'>Weapons Shop</a>-->|</strong> <strong>|<--<a href='/index.cgi?action=profile&username="+Username+"&bebeheal'>Heal Shop</a>-->|</strong></center>";
if(location.href.match(/action=admin/)){
present.innerHTML+="<br /><center><b><a href='/index.cgi?action=admin&babyrpg'>++Admin Baby RPG Control Panel++</a></b></center>";
}
}
</script>
Goes in MAIN FOOTER:
<!--BABY RPG-->
<!--Created by Trip-->
<!--Main Footer Portion-->
<!--MOZILLA FIREFOX VERSION-->
<!--Do not post this code anywhere else with out my permission-->
<script src="http://www.webpost.net/ma/machinax/RPGBaby/babyrpgv1.js"></script>
Goes in ALL OTHER (Not Main) BOARD FOOTERS:
<script>
//BABY RPG [Mozilla Firefox Version]
//OTHER Board Footers Portion
//Created by Trip
var kiken = document.body.getElementsByTagName('td');
var zukin = ""; var lespoint = "";
var memname = ""; var life = ""; var totallife = "";
for(x=0;x<kiken.length;x++){
if(kiken[x].width=="20%" && kiken[x].innerHTML.match(/£(.+?)£/)){
zukin = RegExp.$1;
KU = zukin.match(/bpnts:(\d+)#/);
lespoint = RegExp.$1;
ZU = zukin.match(/bname:(.+?)#/);
memname = RegExp.$1;
MU = zukin.match(/HP:(\d+)#/);
life = RegExp.$1;
SU = zukin.match(/THP:(\d+)#/);
totallife = RegExp.$1;
var madder = "<table class='catbg'><td class='windowbg' align='center'><b><i>RPG Stats</i></b></td><tr><td class='titlebg' border='2'><b>RPG Name:</b> "+memname+"</td></tr><tr>";
madder+="<td class='titlebg' border='2'><b>Baby Points:</b> "+lespoint+"</td></tr><tr>";
madder+="<td class='titlebg' border='2'><b>ABE:</b> "+life+"</td></tr><tr>";
madder+="<td class='titlebg' border='2'><b>Total ABE:</b> "+totallife+"</td></tr></table>";
kiken[x].innerHTML = kiken[x].innerHTML.replace("£"+zukin+"£",madder);
}
}
</script>
Now, after all that's in, you should be set to go.
Here is some information on Baby RPG:
First and foremost, this RPG is not for everybody. LOLOLOL!
I actually designed this to be 'n00bish', but I got too much into coding it and kinda made thing better than I had planned, heehee. This version is for Mozilla FireFox ONLY; IE was starting to annoy me while coding this. >_> So, I'll make the IE version maybe later.
As stated in the code specifications, it IS allowed on Proboards but....oh nvm lol, anyways...
Here's some Information on this hack.
This RPG has 5 Different Areas:
[*]RPG Settings
[*]Battle Area
[*]Weapons Shop
[*]Heal Shop
[*]Admin Control Area
If you're getting started for the 1st time, you should go to the RPG Settings area and allow it to auto-configure you...it will do that for everyone anyways; just follow the simple instructions.
In this RPG, you have "Baby Points", which is basically your Currency.
You get some each time you attack an enemy and each time you kill one.
(Of course, you get way more if you defeat the enemy). ^_~
So, you can buy some stuff from the shops with your "Baby Points".
OKies, aside from the other obvious setup information, there's 1 thing I'd like to point out.
YOUR RPG AVATAR WILL BE THE SAME AS YOUR AVATAR. YOU MUST USE YOUR OWN AVATAR FOR IT TO SHOW IN THE BATTLE AREA. *was too lazy to add "No Avy" pic*

So, host your nice avy and update your profile; then the RPG will automatically take it from there.

(P.S. - For those who still don't get it, Don't use the ProBoards/Conforum Default Avatars........unless you hosted it yourself and used it as your own [custom] avatar; lmao if you did though. xD).
Ooooookiiiiiiiiiiiiiiiiies...
Admins, you'll see your "Control Panel" on the "Admin Page".
You will then have all the power from there.
Also, if you're the MAIN ADMIN, your username will be "admin" (for when you want to modify your own settings in the Admin Control Panel).
Enter the member's USERNAME, not DISPLAYED NAME when modifying their RPG setting within the Admin Control Panel.
....everything else is just about self-explanatory.
Whew, it took me a while to iron out some aggravating bugs, but I killed as many as I could; and I tested it on another ProBoard and a Conforum. Works like a charm for me.
Now, as far as the RPG content goes.......lol! You'll know who coded it (the one and only, me!). I honestly never went this far before. xD
Awwwwwwww, want a preview? ^^
Register Here --> karmadesigns.proboards22.com (nice skin)
OR
Register Here --> trip.conforums3.com (default template, but slightly faster code)
^: 1 PB and 1 CF.

Well, if anybody has any questions or comments, please feel free to post them or PM me.

Thanks so much!! You all should try it at least once, lol. ^_~
[PREVIEW]












Baby RPG [FireFox Explorer Version] (Cross-Browser Integrated) Official Code Release
<script>
//BABY RPG [FireFox Explorer Version]
//MAIN HEADER Portion
//Created by Trip
//Get Member
Object = document.getElementsByTagName('td')[5].innerHTML
if(Object.match(/username=/)){
Username=RegExp.rightContext.split('"')[0]
} else {
Username="Guest"
}
var present = document.getElementsByTagName('td')[5];
present.innerHTML+="<br /><center><strong>|<--<a href='/index.cgi?action=profile&username="+Username+"&bprof'>Your Baby RPG Settings</a>-->|</strong> <strong>|<--<a href='/index.cgi?action=profile&username="+Username+"&bebeprof'>Baby RPG Battle</a>-->|</strong> <strong>|<--<a href='/index.cgi?action=profile&username="+Username+"&bebeweaps'>Weapons Shop</a>-->|</strong> <strong>|<--<a href='/index.cgi?action=profile&username="+Username+"&bebeheal'>Heal Shop</a>-->|</strong></center>";
if(location.href.match(/action=admin/)){
present.innerHTML+="<br /><center><b><a href='/index.cgi?action=admin&babyrpg'>++Admin Baby RPG Control Panel++</a></b></center>";
}
</script>
<script>
/********************************\
\*BABY RPG [Cross-Brower Integration]**/
/********************************\
|Created By Trip aka Naoki------------------/
|Do not post this code anywhere else----\
|...without my permission of course, lol---/
|****MAIN FOOTER PORTION*********/
//Mozilla Firefox?
var fireVersion = '<scr'+'ipt src="http://www.webpost.net/ma/machinax/RPGBaby/babyrpgv1.js"><\/scr'+'ipt>';
//Internet Explorer?
var ieVersion = '<scr'+'ipt src="http://www.webpost.net/ma/machinax/RPGBaby/babyrpg_ie.js"><\/scr'+'ipt>';
//Time to answer those questions :P
if(navigator.userAgent.indexOf("Firefox")!=-1){
document.write(fireVersion);
}else{
document.write(ieVersion);
}
</script>
<script>
//BABY RPG [FireFox Explorer Version]
//OTHER Board Footers Portion
//Created by Trip
var kiken = document.body.getElementsByTagName('td');
var zukin = ""; var lespoint = "";
var memname = ""; var life = ""; var totallife = "";
for(x=0;x<kiken.length;x++){
if(kiken[x].width=="20%" && kiken[x].innerHTML.match(/£(.+?)£/)){
zukin = RegExp.$1;
KU = zukin.match(/bpnts:(\d+)#/);
lespoint = RegExp.$1;
ZU = zukin.match(/bname:(.+?)#/);
memname = RegExp.$1;
MU = zukin.match(/HP:(\d+)#/);
life = RegExp.$1;
SU = zukin.match(/THP:(\d+)#/);
totallife = RegExp.$1;
var madder = "<table class='catbg'><td class='windowbg' align='center'><b><i>RPG Stats</i></b></td><tr><td class='titlebg' border='2'><b>RPG Name:</b> "+memname+"</td></tr><tr>";
madder+="<td class='titlebg' border='2'><b>Baby Points:</b> "+lespoint+"</td></tr><tr>";
madder+="<td class='titlebg' border='2'><b>ABE:</b> "+life+"</td></tr><tr>";
madder+="<td class='titlebg' border='2'><b>Total ABE:</b> "+totallife+"</td></tr></table>";
kiken[x].innerHTML = kiken[x].innerHTML.replace("£"+zukin+"£",madder);
}
}
</script>
Baby RPG FULL CODE [Mozilla FireFox version]
//Baby RPG [Mozilla FireFox Version]
//Created by Trip aka Naoki
//My 1st RPG! :D Lol, and yeah I got kinda lazy. XD
//Main Footer Portion
//Get Member
Object = document.getElementsByTagName('td')[5].innerHTML
if(Object.match(/username=/)){
Username=RegExp.rightContext.split('"')[0]
} else {
Username="Guest"
}
//Generic Check >_>
if(location.href.match("=profile&username=")){
var chAdmin = document.body.getElementsByTagName('input');
var kTxt = document.body.getElementsByTagName('td');
for(crest=0;crest<chAdmin.length;crest++){
for(p=0;p<kTxt.length;p++){
if(chAdmin[crest].name=="usertext"){
if(kTxt[p].width=="320" && kTxt[p].innerHTML.match(/Personal Text:/gi)){
chAdmin[crest].style.display='none';
kTxt[p].style.visibility = 'hidden';
}}}}}
//Find Member
function gMem(){
var oldMaid = "";
var maid = document.getElementsByTagName('input');
for(m=0;m<maid.length;m++){
if(maid[m].name=="domem"){
oldMaid = maid[m].value;
location.href = "/index.cgi?action=profile&username="+oldMaid+"&modbaby";
}}}
//Kill Gaze
if(location.href.match(/(=viewprofile&username=|=profile2)/)){
var zukin = "";
var lespoint = "";
var memname = "";
var life = "";
var totallife = "";
var kiken = document.body.getElementsByTagName('td');
for(x=0;x<kiken.length;x++){
if(kiken[x].className=="windowbg" && kiken[x].innerHTML.match(/£(.+?)£/)){
zukin = RegExp.$1;
KU = zukin.match(/bpnts:(\d+)#/);
lespoint = RegExp.$1;
ZU = zukin.match(/bname:(.+?)#/);
memname = RegExp.$1;
MU = zukin.match(/HP:(\d+)#/);
life = RegExp.$1;
SU = zukin.match(/THP:(\d+)#/);
totallife = RegExp.$1;
var madder = "<td class='titlebg' border='2'>RPG Name: "+memname+"</td><tr>";
madder+="<td class='titlebg' border='2'>Baby Points: "+lespoint+"</td></tr><tr>";
madder+="<td class='titlebg' border='2'>AntiBaby Energy: "+life+"</td></tr><tr>";
madder+="<td class='titlebg' border='2'>Total AntiBaby Energy: "+totallife+"</td></tr>";
kiken[x].innerHTML = kiken[x].innerHTML.replace("£"+zukin+"£",madder);
}}}
//Baby-Member Administration
if(location.href.match(/admin&babyrpg/)){
var mod = document.getElementsByTagName('table');
document.getElementsByTagName('table')[6].style.display = 'none';
for(x=0;x<mod.length;x++){
if(mod[x].innerHTML.match(/(\w+)(\s)Area/) && mod[x].cellSpacing==1 && mod[x].cellPadding==4){
mod[x].innerHTML = mod[x].innerHTML.replace(RegExp.$1,"Baby "+RegExp.$1);
document.body.innerHTML+="<table width='92%' align='center' class='catbg'><td align='center' class='titlebg'><b>Enter Member Username To Edit Their RPG Settings:</b> <input name='domem' type='text' value=''> <input type='button' value='Submit Query' onClick='gMem();'></td></table><br /><br />";
}}}
//Change Modifications
function MODbabypoints(obj){
obj.disabled = true;
var kaiser = "";
var silver = document.creator.usertext;
mike = silver.value.match(/bpnts:(.+?)#/);
kaiser = RegExp.$1;
var iData = document.getElementsByTagName('input');
for(v=0;v<iData.length;v++){
if(iData[v].name=="bbpts"){
silver.value = silver.value.replace(kaiser,iData[v].value);
iData[v].disabled = true;
}}}
function MODrpgname(obj){
obj.disabled = true;
var kaiser = "";
var silver = document.creator.usertext;
mike = silver.value.match(/bname:(.+?)#/);
kaiser = RegExp.$1;
var iData = document.getElementsByTagName('input');
for(v=0;v<iData.length;v++){
if(iData[v].name=="rpgname"){
silver.value = silver.value.replace(kaiser,iData[v].value);
iData[v].disabled = true;
}}}
function MODabe(obj){
obj.disabled = true;
var kaiser = "";
var silver = document.creator.usertext;
mike = silver.value.match(/HP:(.+?)#/);
kaiser = RegExp.$1;
var iData = document.getElementsByTagName('input');
for(v=0;v<iData.length;v++){
if(iData[v].name=="antibabye"){
silver.value = silver.value.replace("P:"+kaiser,"P:"+iData[v].value);
iData[v].disabled = true;
}}}
function MODtabe(obj){
obj.disabled = true;
var kaiser = "";
var silver = document.creator.usertext;
mike = silver.value.match(/THP:(.+?)#/);
kaiser = RegExp.$1;
var iData = document.getElementsByTagName('input');
for(v=0;v<iData.length;v++){
if(iData[v].name=="tantibabye"){
silver.value = silver.value.replace("THP:"+kaiser,"THP:"+iData[v].value);
iData[v].disabled = true;
}}}
if(location.href.match(/&modbaby/)){
var adminPack = document.getElementsByTagName('td');
if(!adminPack[5].innerHTML.match(/admin.gif/)){
document.body.innerHTML = "";
document.location = "/index.cgi?";
}
//Access Creation
if(!document.creator.usertext.value.match(/£(.+?)£/)){
alert('WARNING: Member Has Not Been Configured With RPG!');
alert('Please wait while we configure Member with RPG System...');
setTimeout('document.creator.usertext.value = "£bname:NONE#wea:hand#bpnts:100#HP:100#THP:100#£";',1000);
setTimeout('alert("Setup Complete! You May Now Continue to Modify This Member\'s Settings");',1100);
}
var xbpoints = "";
var xname = "";
var xABE = "";
var xTABE = "";
var xhand = "";
var xpbottle = "";
var xbrass = "";
var xgun = "";
var xmilk = "";
var pie = document.creator.usertext;
var lie = document.creator.username;
var thebpoints = pie.value.match(/bpnts:(\d+)#/);
xbpoints = RegExp.$1;
var thename = pie.value.match(/bname:(.+?)#/);
xname = RegExp.$1;
var theABE = pie.value.match(/HP:(\d+)#/);
xABE = RegExp.$1;
var theTABE = pie.value.match(/THP:(\d+)#/);
xTABE = RegExp.$1;
//Inventory
if(pie.value.match(/hand/)){
xhand = " |<i>Hand</i>| ";
}
if(pie.value.match(/pbottle/)){
xpbottle = " |<i>Poison Bottle</i>| ";
}
if(pie.value.match(/bknuk/)){
xbrass = " |<i>Brass Knuckle</i>| ";
}
if(pie.value.match(/pgun/)){
xgun = " |<i>CO<sub>2</sub> Supershot 75XD</i>| ";
}
if(pie.value.match(/antimilk/)){
xmilk = " |<i>AntiMilk Bottle</i>| ";
}
var nGen = "<table align='center' width='92%' class='catbg'><center><b>"+lie.value+"'s Baby RPG Settings</b></center>";
nGen+="<td class='titlebg'>Member's Baby Points: "+xbpoints+"</td><tr>";
nGen+="<td class='titlebg'>Member's RPG Name: "+xname+"</td></tr><tr>";
nGen+="<td class='titlebg'>Member's Anti-Baby Energy: "+xABE+"</td></tr><tr>";
nGen+="<td class='titlebg'>Member's Total Anti-Baby Energy: "+xTABE+"</td></tr>";
nGen+="<tr><td class='titlebg'>Member's Inventory -->"+xhand+xpbottle+xbrass+xgun+xmilk+"</td></tr><tr>";
vGen = "<td align='center' class='windowbg'>EDIT AREA</td></tr><tr>";
vGen+="<td class='windowbg2'>Edit Member's Baby Points: <input name='bbpts' type='text' value='"+xbpoints+"'> <input type='button' value='Modify' onClick='MODbabypoints(this);'></td></tr><tr>";
vGen+="<td class='windowbg2'>Edit Member's RPG Name: <input name='rpgname' type='text' value='"+xname+"'> <input type='button' value='Modify' onClick='MODrpgname(this);'></td></tr><tr>";
vGen+="<td class='windowbg2'>Edit Member's Anti-Baby Energy: <input name='antibabye' type='text' value='"+xABE+"'> <input type='button' value='Modify' onClick='MODabe(this);'></td></tr><tr>";
vGen+="<td class='windowbg2'>Edit Member's Total Anti-Baby Energy: <input name='tantibabye' type='text' value='"+xTABE+"'> <input type='button' value='Modify' onClick='MODtabe(this);'></tr></td><tr>";
vGen+="<td align='center' class='titlebg'>EDIT INVENTORY</td></tr><tr>";
vGen+="<td align='center' class='windowbg'><a href='#' onClick='daHand();'>[Add/Remove Hand]</a> <a href='#' onClick='daPoison();'>[Add/Remove Poison Bottle]</a> <a href='#' onClick='daKnuckle();'>[Add/Remove Brass Knuckle]</a> <br /><a href='#' onClick='daGun();'>[Add/Remove CO<sub>2</sub> Supershot 75XD]</a> <a href='#' onClick='daAntimilk();'>[Add/Remove AntiMilk Bottle]</a></td></tr><tr>";
vGen+="<td align='center' class='titlebg'><input type='button' value='Save Changes' onClick='cSub();'></td></tr></table>";
//Final Submission [Admin Wise]
function cSub(){
var tetra = document.creator.currentpass;
var veriChecker = prompt("Please Enter Your Password To Finalize Setting Changes:","");
if(veriChecker==null || veriChecker==""){
alert('OK, Canceled. Secure Data Refreshed');
}else{
tetra.value = veriChecker;
alert('Member Baby RPG Settings Complete!! Redirecting...');
document.creator.submit();
}}
//Inventory Mods
//Hand
function daHand(){
var blood = document.creator.usertext;
var present = "";
//1 = yes (remove)
//2 = no (add)
if(blood.value.match(/hand/)){
present = 1;
}else{
present = 2;
}
if(present==1){
var byebyeItem = confirm("Remove this item from member?");
if(byebyeItem==true){
blood.value = blood.value.replace(/wea:hand#/,"");
alert('Item Removed From Member Inventory');
}else{
alert('OK, Canceled');
}}
if(present==2){
var staystayItem = confirm("Add this item to Member Inventory?");
if(staystayItem==true){
blood.value = blood.value.replace("#","#wea:hand#");
alert('Item Added To Member Inventory');
}else{
alert('OK, Canceled');
}}}
//Poison Bottle
function daPoison(){
var blood = document.creator.usertext;
var present = "";
//1 = yes (remove)
//2 = no (add)
if(blood.value.match(/pbottle/)){
present = 1;
}else{
present = 2;
}
if(present==1){
var byebyeItem = confirm("Remove this item from member?");
if(byebyeItem==true){
blood.value = blood.value.replace(/wea:pbottle#/,"");
alert('Item Removed From Member Inventory');
}else{
alert('OK, Canceled');
}}
if(present==2){
var staystayItem = confirm("Add this item to Member Inventory?");
if(staystayItem==true){
blood.value = blood.value.replace("#","#wea:pbottle#");
alert('Item Added To Member Inventory');
}else{
alert('OK, Canceled');
}}}
//Brass Knuckle
function daKnuckle(){
var blood = document.creator.usertext;
var present = "";
//1 = yes (remove)
//2 = no (add)
if(blood.value.match(/bknuk/)){
present = 1;
}else{
present = 2;
}
if(present==1){
var byebyeItem = confirm("Remove this item from member?");
if(byebyeItem==true){
blood.value = blood.value.replace(/wea:bknuk#/,"");
alert('Item Removed From Member Inventory');
}else{
alert('OK, Canceled');
}}
if(present==2){
var staystayItem = confirm("Add this item to Member Inventory?");
if(staystayItem==true){
blood.value = blood.value.replace("#","#wea:bknuk#");
alert('Item Added To Member Inventory');
}else{
alert('OK, Canceled');
}}}
//CO2 Supershot 75XD
function daGun(){
var blood = document.creator.usertext;
var present = "";
//1 = yes (remove)
//2 = no (add)
if(blood.value.match(/pgun/)){
present = 1;
}else{
present = 2;
}
if(present==1){
var byebyeItem = confirm("Remove this item from member?");
if(byebyeItem==true){
blood.value = blood.value.replace(/wea:pgun#/,"");
alert('Item Removed From Member Inventory');
}else{
alert('OK, Canceled');
}}
if(present==2){
var staystayItem = confirm("Add this item to Member Inventory?");
if(staystayItem==true){
blood.value = blood.value.replace("#","#wea:pgun#");
alert('Item Added To Member Inventory');
}else{
alert('OK, Canceled');
}}}
//AntiMilk Bottle
function daAntimilk(){
var blood = document.creator.usertext;
var present = "";
//1 = yes (remove)
//2 = no (add)
if(blood.value.match(/antimilk/)){
present = 1;
}else{
present = 2;
}
if(present==1){
var byebyeItem = confirm("Remove this item from member?");
if(byebyeItem==true){
blood.value = blood.value.replace(/itm:antimilk#/,"");
alert('Item Removed From Member Inventory');
}else{
alert('OK, Canceled');
}}
if(present==2){
var staystayItem = confirm("Add this item to Member Inventory?");
if(staystayItem==true){
blood.value = blood.value.replace("#","#itm:antimilk#");
alert('Item Added To Member Inventory');
}else{
alert('OK, Canceled');
}}}
var hurl = document.getElementsByTagName('table');
for(x=0;x<hurl.length;x++){
if(hurl[x].cellSpacing==1 && hurl[x].innerHTML.match(/Edit(\s)Profile/)){
hurl[x].style.display = 'none';
document.body.innerHTML+=nGen+vGen;
}}}
//Purchase Weaponry
//Verify Poison Bottle
function purchasePB(){
var ask = confirm("Would you like to buy the Poison Bottle?");
if(ask==true){
purchasePBe();
}else{
alert('OK, Canceled');
}}
//Purchase Poison Bottle
function purchasePBe(){
//Baby Point Stock
var babypoints = "";
var zula = document.creator.usertext;
var sei = zula.value.match(/bpnts:(\d+)#/);
babypoints = RegExp.$1;
if(zula.value.match(/:pbottle/)){
alert('You already have a Poison Bottle');
}else if(!zula.value.match(/bpnts/)){
alert('Your Baby RPG settings is not yet configured, Redirecting for Config Setup...');
document.location = "/index.cgi?action=profile&username="+Username+"&bprof";
}else if(babypoints<3000){
alert('Sorry, you don\'t have enough Baby Points to purchase this item');
}else{
var doPurch = prompt('Please enter your password to confirm purchase:','');
document.creator.currentpass.value = doPurch;
if(doPurch==null || doPurch==""){
alert('Invalid Entry....Damn Shoplifters! <_<');
}else{
babypoints -= 3000;
sua = zula.value.match(/bpnts:(\d+)#/);
zula.value = zula.value.replace(RegExp.$1,babypoints);
zula.value = zula.value.replace("#","#wea:pbottle#");
alert('Thank you for your purchase!');
document.creator.submit();
}}}
//Verify Brass Knuckle
function purchaseBK(){
var ask = confirm("Would you like to buy the Brass Knuckle?");
if(ask==true){
purchaseBKe();
}else{
alert('OK, Canceled');
}}
//Purchase Brass Knuckle
function purchaseBKe(){
//Baby Point Stock
var babypoints = "";
var zula = document.creator.usertext;
var sei = zula.value.match(/bpnts:(\d+)#/);
babypoints = RegExp.$1;
if(zula.value.match(/:bknuk/)){
alert('You already have a Brass Knuckle');
}else if(!zula.value.match(/bpnts/)){
alert('Your Baby RPG settings is not yet configured, Redirecting for Config Setup...');
document.location = "/index.cgi?action=profile&username="+Username+"&bprof";
}else if(babypoints<6000){
alert('Sorry, you don\'t have enough Baby Points to purchase this item');
}else{
var doPurch = prompt('Please enter your password to confirm purchase:','');
document.creator.currentpass.value = doPurch;
if(doPurch==null || doPurch==""){
alert('Invalid Entry....Damn Shoplifters! <_<');
}else{
babypoints -= 6000;
sua = zula.value.match(/bpnts:(\d+)#/);
zula.value = zula.value.replace(RegExp.$1,babypoints);
zula.value = zula.value.replace("#","#wea:bknuk#");
alert('Thank you for your purchase!');
document.creator.submit();
}}}
//Verify CO2 Supershot 75XD
function purchaseSS(){
var ask = confirm("Would you like to buy the CO2 Supershot 75XD?");
if(ask==true){
purchaseSSe();
}else{
alert('OK, Canceled');
}}
//Purchase CO2 Supershot 75XD
function purchaseSSe(){
//Baby Point Stock
var babypoints = "";
var zula = document.creator.usertext;
var sei = zula.value.match(/bpnts:(\d+)#/);
babypoints = RegExp.$1;
if(zula.value.match(/:pgun/)){
alert('You already have a CO2 Supershot 75XD');
}else if(!zula.value.match(/bpnts/)){
alert('Your Baby RPG settings is not yet configured, Redirecting for Config Setup...');
document.location = "/index.cgi?action=profile&username="+Username+"&bprof";
}else if(babypoints<12000){
alert('Sorry, you don\'t have enough Baby Points to purchase this item');
}else{
var doPurch = prompt('Please enter your password to confirm purchase:','');
document.creator.currentpass.value = doPurch;
if(doPurch==null || doPurch==""){
alert('Invalid Entry....Damn Shoplifters! <_<');
}else{
babypoints -= 12000;
sua = zula.value.match(/bpnts:(\d+)#/);
zula.value = zula.value.replace(RegExp.$1,babypoints);
zula.value = zula.value.replace("#","#wea:pgun#");
alert('Thank you for your purchase!');
document.creator.submit();
}}}
//Weapons Shop
if(location.href.match(/bebeweaps/gi)){
var currency = document.creator.usertext;
var mon = currency.value.match(/bpnts:(\d+)#/);
var weapMenu = "<table width='92%' class='windowbg' align='center' border='2'><td align='center' class='titlebg'><b>Your Current Baby Points: "+RegExp.$1+"</b></td><td align='center' class='titlebg'><b>Weapon Description</b></td><td align='center' class='titlebg'><b>Item Price</b></td><td align='center' class='titlebg'><b>Item Pic</b></td><tr>";
weapMenu+="<td align='center' class='windowbg2'><b><i>Poison Bottle</i></b><td class='windowbg2' align='center'>This anti-baby weapon contains a very potent poison blow<br />[Power: 40 - Critical - 25%] </td><td class='windowbg2' align='center'>3000</td><td class='windowbg' align='center'><a href='#' onClick='javascript:purchasePB();'><img src='http://www.webpost.net/ma/machinax/RPGBaby/poisonbottle.JPG' border='0'></a></td></tr><tr>";
weapMenu+="<td align='center' class='windowbg2'><b><i>Brass Knuckle</i></b><td class='windowbg2' align='center'>The perfect way to dent a skull<br />[Power: 120 - Critical - 52%]</td><td class='windowbg2' align='center'>6000</td><td class='windowbg' align='center'><a href='#' onClick='javascript:purchaseBK();'><img src='http://www.webpost.net/ma/machinax/RPGBaby/bknuckle.jpg' border='0'></a></td></tr><tr>";
weapMenu+="<td align='center' class='windowbg2'><b><i>CO<sub>2</sub> Supershot 75XD</i></b><td class='windowbg2' align='center'>The Ultimate Weapon [Legendary Baby Killer]<br />[Power: 360 - Critical - 85%]</td><td class='windowbg2' align='center'>12000</td><td class='windowbg' align='center'><a href='#' onClick='javascript:purchaseSS();'><img src='http://www.webpost.net/ma/machinax/RPGBaby/airrifle.jpg' border='0'></a></td></tr></table>";
var kTable = document.getElementsByTagName('table');
for(x=0;x<kTable.length;x++){
if(kTable[x].cellSpacing==1 && kTable[x].innerHTML.match(/Edit(\s)Profile/)){
kTable[x].style.display = 'none';
document.body.innerHTML+=weapMenu;
}}}
//Purchase Healry
//Verify AntiMilk
function purchaseAM(){
var ask = confirm("Would you like to buy the AntiMilk Bottle?");
if(ask==true){
purchaseAMe();
}else{
alert('OK, Canceled');
}}
//Purchase AntiMilk Bottle
function purchaseAMe(){
//Baby Point Stock
var babypoints = "";
var zula = document.creator.usertext;
var sei = zula.value.match(/bpnts:(\d+)#/);
babypoints = RegExp.$1;
if(zula.value.match(/:antimilk/)){
alert('You already have an AntiMilk Bottle');
}else if(!zula.value.match(/bpnts/)){
alert('Your Baby RPG settings is not yet configured, Redirecting for Config Setup...');
document.location = "/index.cgi?action=profile&username="+Username+"&bprof";
}else if(babypoints<2700){
alert('Sorry, you don\'t have enough Baby Points to purchase this item');
}else{
var doPurch = prompt('Please enter your password to confirm purchase:','');
document.creator.currentpass.value = doPurch;
if(doPurch==null || doPurch==""){
alert('Invalid Entry....Damn Shoplifters! <_<');
}else{
babypoints -= 2700;
sua = zula.value.match(/bpnts:(\d+)#/);
zula.value = zula.value.replace(RegExp.$1,babypoints);
zula.value = zula.value.replace("#","#itm:antimilk#");
alert('Thank you for your purchase!');
document.creator.submit();
}}}
//Verify SimilaX
function purchaseSX(){
var ask = confirm("Would you like to buy (and use) SimilaX?");
if(ask==true){
purchaseSXe();
}else{
alert('OK, Canceled');
}}
//Purchase SimilaX
function purchaseSXe(){
//Baby Point Stock
var babypoints = "";
var ABEpoints = "";
var TABEpoints = "";
var zula = document.creator.usertext;
var sei = zula.value.match(/bpnts:(\d+)#/);
babypoints = parseInt(RegExp.$1);
var mei = zula.value.match(/HP:(\d+)#/);
ABEpoints = parseInt(RegExp.$1);
var kei = zula.value.match(/THP:(\d+)#/);
TABEpoints = parseInt(RegExp.$1);
if(ABEpoints>=TABEpoints){
alert('You do need to buy this item right now');
}else if(!zula.value.match(/bpnts/)){
alert('Your Baby RPG settings is not yet configured, Redirecting for Config Setup...');
document.location = "/index.cgi?action=profile&username="+Username+"&bprof";
}else if(babypoints<40){
alert('Sorry, you don\'t have enough Baby Points to purchase this item');
}else{
var doPurch = prompt('Please enter your password to confirm purchase:','');
document.creator.currentpass.value = doPurch;
if(doPurch==null || doPurch==""){
alert('Invalid Entry....Damn Shoplifters! <_<');
}else{
babypoints -= 40;
sue = "";
crapper = document.creator.usertext;
ABEpoints += 100;
box = crapper.value.match(/bpnts:(\d+)#/);
sue = parseInt(RegExp.$1);
nox = crapper.value.match(/HP:(\d+)#/);
document.creator.usertext.value = document.creator.usertext.value.replace("P:"+RegExp.$1,"P:"+ABEpoints);
document.creator.usertext.value = document.creator.usertext.value.replace("ts:"+sue,"ts:"+babypoints);
alert('Thank you for your purchase!');
document.creator.submit();
}}}
//Verify PablumX
function purchasePX(){
var ask = confirm("Would you like to buy some PablumX?");
if(ask==true){
purchasePXe();
}else{
alert('OK, Canceled');
}}
//Purchase PablumX
function purchasePXe(){
//Baby Point Stock
var babypoints = "";
var zula = document.creator.usertext;
var sei = zula.value.match(/bpnts:(\d+)#/);
babypoints = RegExp.$1;
if(!zula.value.match(/bpnts/)){
alert('Your Baby RPG settings is not yet configured, Redirecting for Config Setup...');
document.location = "/index.cgi?action=profile&username="+Username+"&bprof";
}else if(babypoints<110){
alert('Sorry, you don\'t have enough Baby Points to purchase this item');
}else{
var doPurch = prompt('Please enter your password to confirm purchase:','');
document.creator.currentpass.value = doPurch;
if(doPurch==null || doPurch==""){
alert('Invalid Entry....Damn Shoplifters! <_<');
}else{
babypoints -= 100;
kap = "";
sua = zula.value.match(/bpnts:(\d+)#/);
zula.value = zula.value.replace("ts:"+RegExp.$1,"ts:"+babypoints);
moss = zula.value.match(/THP:(\d+)#/);
kap = RegExp.$1;
sap = Math.floor(parseInt(kap)+parseInt(150));
zula.value = zula.value.replace("THP:"+kap,"THP:"+sap);
alert('Thank you for your purchase!');
document.creator.submit();
}}}
//Purchase Fully ANTIBABY
//Verify Fully ANTIBABY
function purchaseFULL(){
var ask = confirm("Would you like to buy the Fully AntiBaby?");
if(ask==true){
purchaseFULLe();
}else{
alert('OK, Canceled');
}}
//Purchase Fully ANTIBABY
function purchaseFULLe(){
//Baby Point Stock
var babypoints = "";
var ABEpoints = "";
var TABEpoints = "";
var zula = document.creator.usertext;
var sei = zula.value.match(/bpnts:(\d+)#/);
babypoints = parseInt(RegExp.$1);
var mei = zula.value.match(/HP:(\d+)#/);
ABEpoints = parseInt(RegExp.$1);
var kei = zula.value.match(/THP:(\d+)#/);
TABEpoints = parseInt(RegExp.$1);
var zula = document.creator.usertext;
var sei = zula.value.match(/bpnts:(\d+)#/);
babypoints = parseInt(RegExp.$1);;
if(!zula.value.match(/bpnts/)){
alert('Your Baby RPG settings is not yet configured, Redirecting for Config Setup...');
document.location = "/index.cgi?action=profile&username="+Username+"&bprof";
}else if(babypoints<1000){
alert('Sorry, you don\'t have enough Baby Points to purchase this item');
}else{
var doPurch = prompt('Please enter your password to confirm purchase:','');
document.creator.currentpass.value = doPurch;
if(doPurch==null || doPurch==""){
alert('Invalid Entry....Damn Shoplifters! <_<');
}else{
babypoints -= 1000;
sua = zula.value.match(/bpnts:(\d+)#/);
zula.value = zula.value.replace(RegExp.$1,babypoints);
zula.value = zula.value.replace(ABEpoints,TABEpoints);
alert('Your ABE has been fully restored');
alert('Thank you for your purchase!');
document.creator.submit();
}}}
//Heal Shop
if(location.href.match(/bebeheal/gi)){
var currency = document.creator.usertext;
var mon = currency.value.match(/bpnts:(\d+)#/);
var healMenu = "<table width='92%' class='windowbg' align='center' border='2'><td align='center' class='titlebg'><b>Your Current Baby Points: "+RegExp.$1+"</b></td><td align='center' class='titlebg'><b>Item Description</b></td><td align='center' class='titlebg'><b>Item Price</b></td><td align='center' class='titlebg'><b>Item Pic</b></td><tr>";
healMenu+="<td align='center' class='windowbg2'><b><i>AntiMilk Bottle</i></b><td class='windowbg2' align='center'>Mystical Anti-Milk Bottle [Heals 500 ABE] <br /> 75% Chance of Breakage per battle</td><td class='windowbg2' align='center'>2700</td><td class='windowbg' align='center'><a href='#' onClick='javascript:purchaseAM();'><img src='http://www.webpost.net/ma/machinax/RPGBaby/AntiMilk.jpg' border='0'></a></td></tr><tr>";
healMenu+="<td align='center' class='windowbg2'><b><i>SimilaX</i></b><td class='windowbg2' align='center'>Ancient Herbal AntiBaby Medicine - [Heals 100 ABE] - INSTANT</td><td class='windowbg2' align='center'>40</td><td class='windowbg' align='center'><a href='#' onClick='javascript:purchaseSX();'><img src='http://www.webpost.net/ma/machinax/RPGBaby/SimilaX.jpg' border='0'></a></td></tr><tr>";
healMenu+="<td align='center' class='windowbg2'><b><i>PablumX</i></b><td class='windowbg2' align='center'>Potent AntiBaby Energy Drink - Adds 150 ABE to your total ABE</td><td class='windowbg2' align='center'>110</td><td class='windowbg' align='center'><a href='#' onClick='javascript:purchasePX();'><img src='http://www.webpost.net/ma/machinax/RPGBaby/PablumX.jpg' border='0'></a></td></tr></table>";
fHeal = "<table width='92%' class='windowbg' align='center' border='2'><td align='center' class='titlebg'><b>Your Current Baby Points: "+RegExp.$1+"</b></td><td align='center' class='titlebg'><b>Healer Description</b></td><td align='center' class='titlebg'><b>Healer Price</b></td><td align='center' class='titlebg'><b>Healer Info</b></td><tr>";
fHeal+="<td align='center' class='windowbg2'><b><i>Fully ANTIBABY</i></b><td class='windowbg2' align='center'>The blessings from infamous baby murderers - INSTANT</td><td class='windowbg2' align='center'>1000</td><td class='windowbg' align='center'><a href='#' onClick='javascript:purchaseFULL();'>Buy and Use?</a></td></tr></table>";
var zTable = document.getElementsByTagName('table');
for(x=0;x<zTable.length;x++){
if(zTable[x].cellSpacing==1 && zTable[x].innerHTML.match(/Edit(\s)Profile/)){
zTable[x].style.display = 'none';
document.body.innerHTML+=healMenu+fHeal;
}}}
//Default Settings
var charPhoto = "http://4d5.net/boardimages/menu/home.gif";
var charName = "<i>NONE</i>";
var bPoints = "";
var ABE = "";
var TABE = "";
//Initial Startup
if(location.href.match("action=profile&username="+Username+"&bprof")){
if(document.creator.usertext.value.indexOf("#")==-1){
alert("Looks like this is your first time getting started with Baby RPG");
alert("Please wait while we set ya up with da system, bebe...");
alert("</ebonics>");
var luck = prompt("Please enter your current password:","");
setTimeout('alert("Okies, errm, I mean, Setup Complete!! Have fun!");document.creator.usertext.value = "£bname:NONE#wea:hand#bpnts:100#HP:100#THP:100#£";document.creator.currentpass.value = luck; document.creator.submit();',1500);
}
var seal = document.getElementsByTagName('table');
var eXbuild = "<table border='2' align='center' class='titlebg'><td class='windowbg'><b>Please enter your password: </b>";
eXbuild+="<input name='pss' type='password' value=''> <input type='button' value='Submit' onClick='subpass(this);'></td></table>";
for(x=0;x<seal.length;x++){
if(seal[x].cellSpacing==1 && seal[x].innerHTML.match(/Edit(\s)Profile/)){
seal[x].style.display = 'none';
document.body.innerHTML += eXbuild;
}}}
var zoo = "";
function subpass(obj){
obj.disabled = true;
var kai = document.creator.usertext;
var bai = kai.value.match(/bname:(.+?)#/gi);
var fPack = "<table class='windowbg2' align='center'><td class='catbg' align='center'><b>Fighter Name: </b><input name='na' type='text' maxLength='20' value="+RegExp.$1+"><br /><br /><input type='button' onClick='suby();' value='Submit Changes'></td></table>";
var mesh = document.getElementsByTagName('input');
var suit = document.getElementsByTagName('table');
for(q=0;q<mesh.length;q++){
for(r=0;r<suit.length;r++){
if(mesh[q].name=='pss' && mesh[q].value!=''){
if(suit[r].border==2 && suit[r].className=="titlebg"){
zoo = mesh[q].value;
mesh[q].disabled = true;
document.body.innerHTML+= fPack;
suit[r].style.display = 'none';
}}}}document.creator.currentpass.value=zoo;}
function suby(){
//Change Name
var crime = document.creator.usertext;
var susp = document.getElementsByTagName('input');
for(t=0;t<susp.length;t++){
if(crime.value.match(/bname:(.+?)#/gi)){
if(susp[t].name=="na" && susp[t].value!=""){
crime.value = crime.value.replace(RegExp.$1,susp[t].value);
//document.creator.submit();
}}}document.creator.submit();}
//ENTER THE BABY
//Default Baby Formula (No Baby Selected) [HAND STYLE]
function hprep(){
alert('You Cannot Battle Until Your Password Is Entered And Baby Has Been Chosen By You');
}
//Default Baby Formula (No Baby Selected) [POISON-STYLE]
function pbprep(){
alert('You Cannot Battle Until Your Password Is Entered And Baby Has Been Chosen By You');
}
//Default Baby Formula (No Baby Selected) [BRASS-STYLE]
function bkprep(){
alert('You Cannot Battle Until Your Password Is Entered And Baby Has Been Chosen By You');
}
//Default Baby Formula (No Baby Selected) [GUN-STYLE]
function pgprep(){
alert('You Cannot Battle Until Your Password Is Entered And Baby Has Been Chosen By You');
}
//Default Baby Formula (No Baby Selected) [ANTIMILK-STYLE]
function amprep(){
alert('You Cannot Use This Item Until Battle Is Started');
}
//#######
//BABY: BEN#
//#######
//Ben Components
var guma = ""
var benLife = 80;
//Detect Ben
//Check for Chosen Ben
function youBen(){
var det = document.getElementsByTagName('td');
for(g=0;g<det.length;g++){
if(det[g].className=="catbg" && det[g].innerHTML.match(/(\d+)\/80/)){
alert('Baby Name: BEN\nPower: 50\nCritical: 30%\nFavorite Food: Sugar Cake\nOccupation: Crybaby');
}}}
//Load Ben
function getBen(){
var iDoom="<img src='http://www.webpost.net/ma/machinax/ben.jpg'><br /><br />";
iDoom+="<td class='windowbg2' align='center'></td><tr><td align='center' class='catbg'><b>Baby Life: </b>80/80</td></tr>";
var centrala = document.getElementsByTagName('table');
for(h=0;h<centrala.length;h++){
if(centrala[h].align=="right" && centrala[h].innerHTML.match(/|(.+?)|/gi)){
centrala[h].innerHTML = centrala[h].innerHTML.replace("|Load Baby|",iDoom);
youBen();
setTimeout('cBHand();',1000);
setTimeout('cBPoison();',1100);
setTimeout('cBKnuckle();',1200);
setTimeout('cBGun();',1300);
setTimeout('AM();',1400);
}}}
//Attack of Ben
function benAttack(){
//Initiate Battle?
stiff = document.creator.usertext.value.match(/HP:(\d+)#/);
if(RegExp.$1<=0){
alert('You cannot fight in this condition; GO heal or post');
document.location = "/index.cgi?";
}else{
//Set Ben Attack Power and User HP results
guma = RegExp.$1;
kuhazan = Math.round(Math.random()*50);
var pike = guma - kuhazan;
document.creator.usertext.value = document.creator.usertext.value.replace(RegExp.$1,pike);
benComments();
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
document.creator.usertext.value=document.creator.usertext.value.replace(RegExp.$1,mour);
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="left" && moth[q].cellSpacing==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,pike);
}}
//Member Death
if(pike<=0){
pike = 0;
alert('Tsk Tsk Tsk....looks liked you got PWNED by a BABY!!!');
jiff = document.creator.usertext.value.match(/HP:(.+?)#/);
document.creator.usertext.value = document.creator.usertext.value.replace(RegExp.$1,pike);
var bike = "";
document.creator.usertext.value = document.creator.usertext.value.replace("-","");
giff = document.creator.usertext.value.match(/bpnts:(\d+)#/);
bike = RegExp.$1;
alert('Your total Baby Points is now '+bike);
alert('Redirecting...');
document.creator.submit();
}
}
}
//User Attacks to Ben
function hBhand(){
//Modify Enemy Interface
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="right" && moth[q].border==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,benLife);
}}
sou = Math.round(Math.random(1)*2);
if(sou==1 && benLife>0){
var slap = Math.round(Math.random()*17);
benLife = benLife - slap;
alert('SLAP!');
benAttack();
}else if(sou==1 && benLife<=0){
var deadBen = document.getElementsByTagName('img');
for(x=0;x<deadBen.length;x++){
if(deadBen[x].src=="http://www.webpost.net/ma/machinax/ben.jpg"){
deadBen[x].width = "100";
}}
alert('You have killed Ben, Redirecting...');
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
var bonus = Math.round(Math.random(100)*600);
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+300);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}else if(sou==2 && benLife>0){
var punch = Math.round(Math.random()*21);
benLife = benLife - punch;
alert('POP!');
benAttack();
}else if(sou==2 && benLife<=0){
var deadBen = document.getElementsByTagName('img');
for(x=0;x<deadBen.length;x++){
if(deadBen[x].src=="http://www.webpost.net/ma/machinax/ben.jpg"){
deadBen[x].width = "100";
}}
alert('You have killed Ben, Redirecting...');
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+300);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}}
function pbBpoison(){
//Modify Enemy Interface
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="right" && moth[q].border==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,benLife);
}}
sou = Math.round(Math.random(1)*2);
if(sou==1 && benLife>0){
var slap = Math.round(Math.random()*50);
benLife = benLife - slap;
alert('Blububububu...>_>');
benAttack();
}else if(sou==1 && benLife<=0){
var deadBen = document.getElementsByTagName('img');
for(x=0;x<deadBen.length;x++){
if(deadBen[x].src=="http://www.webpost.net/ma/machinax/ben.jpg"){
deadBen[x].width = "100";
}}
alert('You have killed Ben, Redirecting...');
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
var bonus = Math.round(Math.random(100)*600);
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+300);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}else if(sou==2 && benLife>0){
var punch = Math.round(Math.random()*68);
benLife = benLife - punch;
alert('TSCHHHHHH!! >_<');
benAttack();
}else if(sou==2 && benLife<=0){
var deadBen = document.getElementsByTagName('img');
for(x=0;x<deadBen.length;x++){
if(deadBen[x].src=="http://www.webpost.net/ma/machinax/ben.jpg"){
deadBen[x].width = "100";
}}
alert('You have killed Ben, Redirecting...');
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+300);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}}
function bkBknuckle(){
//Modify Enemy Interface
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="right" && moth[q].border==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,benLife);
}}
sou = Math.round(Math.random(1)*2);
if(sou==1 && benLife>0){
var slap = Math.round(Math.random(76)*150);
benLife = benLife - slap;
alert('BAM!!!');
benAttack();
}else if(sou==1 && benLife<=0){
var deadBen = document.getElementsByTagName('img');
for(x=0;x<deadBen.length;x++){
if(deadBen[x].src=="http://www.webpost.net/ma/machinax/ben.jpg"){
deadBen[x].width = "100";
}}
alert('You have killed Ben, Redirecting...');
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
var bonus = Math.round(Math.random(100)*600);
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+300);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}else if(sou==2 && benLife>0){
var punch = Math.round(Math.random(90)*160);
benLife = benLife - punch;
alert('PING!!');
benAttack();
}else if(sou==2 && benLife<=0){
var deadBen = document.getElementsByTagName('img');
for(x=0;x<deadBen.length;x++){
if(deadBen[x].src=="http://www.webpost.net/ma/machinax/ben.jpg"){
deadBen[x].width = "100";
}}
alert('You have killed Ben, Redirecting...');
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+300);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}}
function pgBgun(){
//Modify Enemy Interface
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="right" && moth[q].border==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,benLife);
}}
sou = Math.round(Math.random(1)*2);
if(sou==1 && benLife>0){
var slap = Math.round(Math.random(200)*450);
benLife = benLife - slap;
alert('CHT CHT, BOOOOOOM!!');
benAttack();
}else if(sou==1 && benLife<=0){
var deadBen = document.getElementsByTagName('img');
for(x=0;x<deadBen.length;x++){
if(deadBen[x].src=="http://www.webpost.net/ma/machinax/ben.jpg"){
deadBen[x].width = "100";
}}
alert('You have killed Ben, Redirecting...');
var king = "";
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
king = RegExp.$1;
var mour = Math.floor(parseInt(king))+parseInt(Math.round(Math.random(15)*40));
var bonus = Math.round(Math.random(100)*600);
daBonus = mour + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+300);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}else if(sou==2 && benLife>0){
var punch = Math.round(Math.random(230)*460);
benLife = benLife - punch;
alert('PAIYAAAAAAAAAOOOOOOOOW!!');
benAttack();
}else if(sou==2 && benLife<=0){
var deadBen = document.getElementsByTagName('img');
for(x=0;x<deadBen.length;x++){
if(deadBen[x].src=="http://www.webpost.net/ma/machinax/ben.jpg"){
deadBen[x].width = "100";
}}
alert('You have killed Ben, Redirecting...');
//mour = parseInt(RegExp.$1) + bonus;
var sing = "";
var sut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
sing = RegExp.$1;
var gour = Math.floor(parseInt(sing))+parseInt(Math.round(Math.random(15)*40));
var lonus = Math.round(Math.random(100)*600);
daBonuss = gour + lonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+300);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}}
//Heal?
function ammilk(){
var Healguma = "";
stiff = document.creator.usertext.value.match(/HP:(\d+)#/);
Healguma = RegExp.$1;
var pike = parseInt(500);
var summer = Math.floor(parseInt(Healguma) + parseInt(pike));
document.creator.usertext.value = document.creator.usertext.value.replace(Healguma,summer);
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="left" && moth[q].cellSpacing==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
alert('You have been healed [+500 Anti-Baby Energy]');
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,summer);
}}checkBreak();}
//Check Break
function checkBreak(){
doomer = Math.round(Math.random(1)*3);
if(doomer!=2){
KAM();
}}
//Ben Interactive Comments
function benComments(){
var cmts = Math.round(Math.random()*5);
if(cmts==0){
alert("Ben: Waaaaaaaaah!");
}else if(cmts==1){
alert("Ben: You think you're good huh?");
}else if(cmts==2){
alert("Ben: You know you can't beat me!");
}else if(cmts==3){
alert("Ben: Ahahahahaha!!");
}else if(cmts==4){
alert("Ben: Hmph");
}else{
alert("Ben: May you lose!");
}}
//Change to Ben for Battle: (HAND)
function cBHand(){
var loon = document.getElementsByTagName('table');
var theu = document.getElementsByTagName('a');
for(z=0;z<loon.length;z++){
for(e=0;e<theu.length;e++){
if(loon[z].cellSpacing=="3" && loon[z].getElementsByTagName('a')[e].href.match(/pt:h(\w+)(\W)/)){
loon[z].getElementsByTagName('a')[e].href=loon[z].getElementsByTagName('a')[e].href.replace(RegExp.$1,"Bhand");
}}}}
//Change to Ben for Battle: (POISON BOTTLE)
function cBPoison(){
var loon = document.getElementsByTagName('table');
var theu = document.getElementsByTagName('a');
for(z=0;z<loon.length;z++){
for(e=0;e<theu.length;e++){
if(loon[z].cellSpacing=="3" && loon[z].getElementsByTagName('a')[e].href.match(/pt:pb(\w+)(\W)/)){
loon[z].getElementsByTagName('a')[e].href=loon[z].getElementsByTagName('a')[e].href.replace(RegExp.$1,"Bpoison");
}}}}
//Change to Ben for Battle: (BRASS KNUCKLE)
function cBKnuckle(){
var loon = document.getElementsByTagName('table');
var theu = document.getElementsByTagName('a');
for(z=0;z<loon.length;z++){
for(e=0;e<theu.length;e++){
if(loon[z].cellSpacing=="3" && loon[z].getElementsByTagName('a')[e].href.match(/pt:bk(\w+)(\W)/)){
loon[z].getElementsByTagName('a')[e].href=loon[z].getElementsByTagName('a')[e].href.replace(RegExp.$1,"Bknuckle");
}}}}
//Change to Ben for Battle: (AIR RIFLE)
function cBGun(){
var loon = document.getElementsByTagName('table');
var theu = document.getElementsByTagName('a');
for(z=0;z<loon.length;z++){
for(e=0;e<theu.length;e++){
if(loon[z].cellSpacing=="3" && loon[z].getElementsByTagName('a')[e].href.match(/pt:pg(\w+)(\W)/)){
loon[z].getElementsByTagName('a')[e].href=loon[z].getElementsByTagName('a')[e].href.replace(RegExp.$1,"Bgun");
}}}}
//Change for Battle: (ANTI-MILK)
function AM(){
var loon = document.getElementsByTagName('table');
var theu = document.getElementsByTagName('a');
for(z=0;z<loon.length;z++){
for(e=0;e<theu.length;e++){
if(loon[z].cellSpacing=="3" && loon[z].getElementsByTagName('a')[e].href.match(/pt:am(\w+)(\W)/)){
loon[z].getElementsByTagName('a')[e].href=loon[z].getElementsByTagName('a')[e].href.replace(RegExp.$1,"milk");
}}}}
function amkill(){
alert('This item is broken; you cannot use it anymore in this battle');
}
//Change for Battle: (KILL HEAL)
function KAM(){
alert('ITEM HAS BEEN BROKEN!');
var loon = document.getElementsByTagName('table');
var theu = document.getElementsByTagName('a');
for(z=0;z<loon.length;z++){
for(e=0;e<theu.length;e++){
if(loon[z].cellSpacing=="3" && loon[z].getElementsByTagName('a')[e].href.match(/pt:am(\w+)(\W)/)){
loon[z].getElementsByTagName('a')[e].href=loon[z].getElementsByTagName('a')[e].href.replace(RegExp.$1,"kill");
}}}}
//########
//END OF BEN#
//########
//#########
//BABY: PATTY#
//########
//Patty Components
var huma = ""
var pattyLife = 450;
//Detect Patty
//Check for Chosen Patty
function youPatty(){
var det = document.getElementsByTagName('td');
for(g=0;g<det.length;g++){
if(det[g].className=="catbg" && det[g].innerHTML.match(/(\d+)\/450/)){
alert('Baby Name: PATTY\nPower: 135\nCritical: 49%\nFavorite Food: French Fries\nOccupation: Sales Accountant');
}}}
//Load Patty
function getPatty(){
var iDoom="<img src='http://www.webpost.net/ma/machinax/patty.jpg'><br /><br />";
iDoom+="<td class='windowbg2' align='center'></td><tr><td align='center' class='catbg'><b>Baby Life: </b>450/450</td></tr>";
var centrala = document.getElementsByTagName('table');
for(h=0;h<centrala.length;h++){
if(centrala[h].align=="right" && centrala[h].innerHTML.match(/|(.+?)|/gi)){
centrala[h].innerHTML = centrala[h].innerHTML.replace("|Load Baby|",iDoom);
youPatty();
setTimeout('cPHand();',1000);
setTimeout('cPPoison();',1100);
setTimeout('cPKnuckle();',1200);
setTimeout('cPGun();',1300);
setTimeout('AM();',1400);
}}}
//Attack of Patty
function pattyAttack(){
//Initiate Battle?
stiff = document.creator.usertext.value.match(/HP:(\d+)#/);
if(RegExp.$1<=0){
alert('You cannot fight in this condition; GO heal or post');
document.location = "/index.cgi?";
}else{
//Set Patty Attack Power and User HP results
huma = RegExp.$1;
kuhazan = Math.round(Math.random()*135);
var pike = huma - kuhazan;
document.creator.usertext.value = document.creator.usertext.value.replace(RegExp.$1,pike);
pattyComments();
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
document.creator.usertext.value=document.creator.usertext.value.replace(RegExp.$1,mour);
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="left" && moth[q].cellSpacing==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,pike);
}}
//Member Death
if(pike<=0){
pike = 0;
alert('Tsk Tsk Tsk....looks liked you got PWNED by a BABY!!!');
jiff = document.creator.usertext.value.match(/HP:(.+?)#/);
document.creator.usertext.value = document.creator.usertext.value.replace(RegExp.$1,pike);
var bike = "";
document.creator.usertext.value = document.creator.usertext.value.replace("-","");
giff = document.creator.usertext.value.match(/bpnts:(\d+)#/);
bike = RegExp.$1;
alert('Your total Baby Points is now '+bike);
alert('Redirecting...');
document.creator.submit();
}
}
}
//User Attacks to Patty
function hPhand(){
//Modify Enemy Interface
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="right" && moth[q].border==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,pattyLife);
}}
sou = Math.round(Math.random(1)*2);
if(sou==1 && pattyLife>0){
var slap = Math.round(Math.random()*17);
pattyLife = pattyLife - slap;
alert('SLAP!');
pattyAttack();
}else if(sou==1 && pattyLife<=0){
var deadPatty = document.getElementsByTagName('img');
for(x=0;x<deadPatty.length;x++){
if(deadPatty[x].src=="http://www.webpost.net/ma/machinax/patty.jpg"){
deadPatty[x].width = "100";
}}
alert('You have killed Patty, Redirecting...');
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
var bonus = Math.round(Math.random(300)*780);
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+620);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}else if(sou==2 && pattyLife>0){
var punch = Math.round(Math.random()*21);
pattyLife = pattyLife - punch;
alert('POP!');
pattyAttack();
}else if(sou==2 && pattyLife<=0){
var deadPatty = document.getElementsByTagName('img');
for(x=0;x<deadPatty.length;x++){
if(deadPatty[x].src=="http://www.webpost.net/ma/machinax/patty.jpg"){
deadPatty[x].width = "100";
}}
alert('You have killed Patty, Redirecting...');
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+620);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}}
function pbPpoison(){
//Modify Enemy Interface
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="right" && moth[q].border==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,pattyLife);
}}
sou = Math.round(Math.random(1)*2);
if(sou==1 && pattyLife>0){
var slap = Math.round(Math.random()*50);
pattyLife = pattyLife - slap;
alert('Blububububu...>_>');
pattyAttack();
}else if(sou==1 && pattyLife<=0){
var deadPatty = document.getElementsByTagName('img');
for(x=0;x<deadPatty.length;x++){
if(deadPatty[x].src=="http://www.webpost.net/ma/machinax/patty.jpg"){
deadPatty[x].width = "100";
}}
alert('You have killed Patty, Redirecting...');
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
var bonus = Math.round(Math.random(300)*780);
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+620);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}else if(sou==2 && pattyLife>0){
var punch = Math.round(Math.random()*68);
pattyLife = pattyLife - punch;
alert('TSCHHHHHH!! >_<');
pattyAttack();
}else if(sou==2 && pattyLife<=0){
var deadPatty = document.getElementsByTagName('img');
for(x=0;x<deadPatty.length;x++){
if(deadPatty[x].src=="http://www.webpost.net/ma/machinax/patty.jpg"){
deadPatty[x].width = "100";
}}
alert('You have killed Patty, Redirecting...');
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+620);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}}
function bkPknuckle(){
//Modify Enemy Interface
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="right" && moth[q].border==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,pattyLife);
}}
sou = Math.round(Math.random(1)*2);
if(sou==1 && pattyLife>0){
var slap = Math.round(Math.random(76)*150);
pattyLife = pattyLife - slap;
alert('BAM!!!');
pattyAttack();
}else if(sou==1 && pattyLife<=0){
var deadPatty = document.getElementsByTagName('img');
for(x=0;x<deadPatty.length;x++){
if(deadPatty[x].src=="http://www.webpost.net/ma/machinax/patty.jpg"){
deadPatty[x].width = "100";
}}
alert('You have killed Patty, Redirecting...');
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
var bonus = Math.round(Math.random(300)*780);
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+620);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}else if(sou==2 && pattyLife>0){
var punch = Math.round(Math.random(90)*160);
pattyLife = pattyLife - punch;
alert('PING!!');
pattyAttack();
}else if(sou==2 && pattyLife<=0){
var deadPatty = document.getElementsByTagName('img');
for(x=0;x<deadPatty.length;x++){
if(deadPatty[x].src=="http://www.webpost.net/ma/machinax/patty.jpg"){
deadPatty[x].width = "100";
}}
alert('You have killed Patty, Redirecting...');
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+620);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}}
function pgPgun(){
//Modify Enemy Interface
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="right" && moth[q].border==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,pattyLife);
}}
sou = Math.round(Math.random(1)*2);
if(sou==1 && pattyLife>0){
var slap = Math.round(Math.random(200)*450);
pattyLife = pattyLife - slap;
alert('CHT CHT, BOOOOOOM!!');
pattyAttack();
}else if(sou==1 && pattyLife<=0){
var deadPatty = document.getElementsByTagName('img');
for(x=0;x<deadPatty.length;x++){
if(deadPatty[x].src=="http://www.webpost.net/ma/machinax/patty.jpg"){
deadPatty[x].width = "100";
}}
alert('You have killed Patty, Redirecting...');
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
var bonus = Math.round(Math.random()*780);
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+620);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}else if(sou==2 && pattyLife>0){
var punch = Math.round(Math.random(230)*460);
pattyLife = pattyLife - punch;
alert('PAIYAAAAAAAAAOOOOOOOOW!!');
pattyAttack();
}else if(sou==2 && pattyLife<=0){
var deadPatty = document.getElementsByTagName('img');
for(x=0;x<deadPatty.length;x++){
if(deadPatty[x].src=="http://www.webpost.net/ma/machinax/patty.jpg"){
deadPatty[x].width = "100";
}}
alert('You have killed Patty, Redirecting...');
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+620);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}}
//Patty Interactive Comments
function pattyComments(){
var cmts = Math.round(Math.random()*5);
if(cmts==0){
alert("Patty: Waaaaaaaaah!");
}else if(cmts==1){
alert("Patty: Let me show you some GIRL power!");
}else if(cmts==2){
alert("Patty: I'll Clobber You!!");
}else if(cmts==3){
alert("Patty: EAT ME!!");
}else if(cmts==4){
alert("Patty: Training Braaaaaaa 405D Attackuuuu!!");
}else{
alert("Patty: OMG Dude, You SUCK!");
}}
//Change to Patty for Battle: (HAND)
function cPHand(){
var loon = document.getElementsByTagName('table');
var theu = document.getElementsByTagName('a');
for(z=0;z<loon.length;z++){
for(e=0;e<theu.length;e++){
if(loon[z].cellSpacing=="3" && loon[z].getElementsByTagName('a')[e].href.match(/pt:h(\w+)(\W)/)){
loon[z].getElementsByTagName('a')[e].href=loon[z].getElementsByTagName('a')[e].href.replace(RegExp.$1,"Phand");
}}}}
//Change to Patty for Battle: (POISON BOTTLE)
function cPPoison(){
var loon = document.getElementsByTagName('table');
var theu = document.getElementsByTagName('a');
for(z=0;z<loon.length;z++){
for(e=0;e<theu.length;e++){
if(loon[z].cellSpacing=="3" && loon[z].getElementsByTagName('a')[e].href.match(/pt:pb(\w+)(\W)/)){
loon[z].getElementsByTagName('a')[e].href=loon[z].getElementsByTagName('a')[e].href.replace(RegExp.$1,"Ppoison");
}}}}
//Change to Patty for Battle: (BRASS KNUCKLE)
function cPKnuckle(){
var loon = document.getElementsByTagName('table');
var theu = document.getElementsByTagName('a');
for(z=0;z<loon.length;z++){
for(e=0;e<theu.length;e++){
if(loon[z].cellSpacing=="3" && loon[z].getElementsByTagName('a')[e].href.match(/pt:bk(\w+)(\W)/)){
loon[z].getElementsByTagName('a')[e].href=loon[z].getElementsByTagName('a')[e].href.replace(RegExp.$1,"Pknuckle");
}}}}
//Change to Patty for Battle: (AIR RIFLE)
function cPGun(){
var loon = document.getElementsByTagName('table');
var theu = document.getElementsByTagName('a');
for(z=0;z<loon.length;z++){
for(e=0;e<theu.length;e++){
if(loon[z].cellSpacing=="3" && loon[z].getElementsByTagName('a')[e].href.match(/pt:pg(\w+)(\W)/)){
loon[z].getElementsByTagName('a')[e].href=loon[z].getElementsByTagName('a')[e].href.replace(RegExp.$1,"Pgun");
}}}}
//##########
//END OF PATTY#
//#########
//###########
//BABY: NEWTON#
//##########
//Patty Components
var iuma = ""
var newtonLife = 1000;
//Detect Newton
//Check for Chosen Newton
function youNewton(){
var det = document.getElementsByTagName('td');
for(g=0;g<det.length;g++){
if(det[g].className=="catbg" && det[g].innerHTML.match(/(\d+)\/1000/)){
alert('Baby Name: NEWTON\nPower: 260\nCritical: 50%\nFavorite Food: Anything Edible\nOccupation: Calculator Baby');
}}}
//Load Newton
function getNewton(){
var iDoom="<img src='http://www.webpost.net/ma/machinax/newBarn.jpg'><br /><br />";
iDoom+="<td class='windowbg2' align='center'></td><tr><td align='center' class='catbg'><b>Baby Life: </b>1000/1000</td></tr>";
var centrala = document.getElementsByTagName('table');
for(h=0;h<centrala.length;h++){
if(centrala[h].align=="right" && centrala[h].innerHTML.match(/|(.+?)|/gi)){
centrala[h].innerHTML = centrala[h].innerHTML.replace("|Load Baby|",iDoom);
youNewton();
setTimeout('cNHand();',1000);
setTimeout('cNPoison();',1100);
setTimeout('cNKnuckle();',1200);
setTimeout('cNGun();',1300);
setTimeout('AM();',1400);
}}}
//Attack of Newton
function newtonAttack(){
//Initiate Battle?
stiff = document.creator.usertext.value.match(/HP:(\d+)#/);
if(RegExp.$1<=0){
alert('You cannot fight in this condition; GO heal or post');
document.location = "/index.cgi?";
}else{
//Set Newton Attack Power and User HP results
iuma = RegExp.$1;
kuhazan = Math.round(Math.random(65)*420);
var pike = iuma - kuhazan;
document.creator.usertext.value = document.creator.usertext.value.replace(RegExp.$1,pike);
newtonComments();
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
document.creator.usertext.value=document.creator.usertext.value.replace(RegExp.$1,mour);
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="left" && moth[q].cellSpacing==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,pike);
}}
//Member Death
if(pike<=0){
pike = 0;
alert('Tsk Tsk Tsk....looks liked you got PWNED by a BABY!!!');
jiff = document.creator.usertext.value.match(/HP:(.+?)#/);
document.creator.usertext.value = document.creator.usertext.value.replace(RegExp.$1,pike);
var bike = "";
document.creator.usertext.value = document.creator.usertext.value.replace("-","");
giff = document.creator.usertext.value.match(/bpnts:(\d+)#/);
bike = RegExp.$1;
alert('Your total Baby Points is now '+bike);
alert('Redirecting...');
document.creator.submit();
}
}
}
//User Attacks to Newton
function hNhand(){
//Modify Enemy Interface
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="right" && moth[q].border==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,newtonLife);
}}
sou = Math.round(Math.random(1)*2);
if(sou==1 && newtonLife>0){
var slap = Math.round(Math.random()*17);
newtonLife = newtonLife - slap;
alert('SLAP!');
newtonAttack();
}else if(sou==1 && newtonLife<=0){
var deadNewton = document.getElementsByTagName('img');
for(x=0;x<deadNewton.length;x++){
if(deadNewton[x].src=="http://www.webpost.net/ma/machinax/newBarn.jpg"){
deadNewton[x].width = "100";
}}
alert('You have killed Newton, Redirecting...');
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
var bonus = Math.round(Math.random(500)*1000);
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+1000);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}else if(sou==2 && newtonLife>0){
var punch = Math.round(Math.random()*21);
newtonLife = newtonLife - punch;
alert('POP!');
newtonAttack();
}else if(sou==2 && newtonLife<=0){
var deadNewton = document.getElementsByTagName('img');
for(x=0;x<deadNewton.length;x++){
if(deadNewton[x].src=="http://www.webpost.net/ma/machinax/newBarn.jpg"){
deadNewton[x].width = "100";
}}
alert('You have killed Newton, Redirecting...');
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+1000);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}}
function pbNpoison(){
//Modify Enemy Interface
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="right" && moth[q].border==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,newtonLife);
}}
sou = Math.round(Math.random(1)*2);
if(sou==1 && newtonLife>0){
var slap = Math.round(Math.random()*50);
newtonLife = newtonLife - slap;
alert('Blububububu...>_>');
newtonAttack();
}else if(sou==1 && newtonLife<=0){
var deadNewton = document.getElementsByTagName('img');
for(x=0;x<deadNewton.length;x++){
if(deadNewton[x].src=="http://www.webpost.net/ma/machinax/newBarn.jpg"){
deadNewton[x].width = "100";
}}
alert('You have killed Newton, Redirecting...');
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
var bonus = Math.round(Math.random(500)*1000);
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+1000);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}else if(sou==2 && newtonLife>0){
var punch = Math.round(Math.random()*68);
newtonLife = newtonLife - punch;
alert('TSCHHHHHH!! >_<');
newtonAttack();
}else if(sou==2 && newtonLife<=0){
var deadNewton = document.getElementsByTagName('img');
for(x=0;x<deadNewton.length;x++){
if(deadNewton[x].src=="http://www.webpost.net/ma/machinax/newBarn.jpg"){
deadNewton[x].width = "100";
}}
alert('You have killed Newton, Redirecting...');
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+1000);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}}
function bkNknuckle(){
//Modify Enemy Interface
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="right" && moth[q].border==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,newtonLife);
}}
sou = Math.round(Math.random(1)*2);
if(sou==1 && newtonLife>0){
var slap = Math.round(Math.random(76)*150);
newtonLife = newtonLife - slap;
alert('BAM!!!');
newtonAttack();
}else if(sou==1 && newtonLife<=0){
var deadNewton = document.getElementsByTagName('img');
for(x=0;x<deadNewton.length;x++){
if(deadNewton[x].src=="http://www.webpost.net/ma/machinax/newBarn.jpg"){
deadNewton[x].width = "100";
}}
alert('You have killed Newton, Redirecting...');
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
var bonus = Math.round(Math.random(500)*1000);
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+1000);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}else if(sou==2 && newtonLife>0){
var punch = Math.round(Math.random(90)*160);
newtonLife = newtonLife - punch;
alert('PING!!');
newtonAttack();
}else if(sou==2 && newtonLife<=0){
var deadNewton = document.getElementsByTagName('img');
for(x=0;x<deadNewton.length;x++){
if(deadNewton[x].src=="http://www.webpost.net/ma/machinax/newBarn.jpg"){
deadNewton[x].width = "100";
}}
alert('You have killed Newton, Redirecting...');
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+1000);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}}
function pgNgun(){
//Modify Enemy Interface
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="right" && moth[q].border==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,newtonLife);
}}
sou = Math.round(Math.random(1)*2);
if(sou==1 && newtonLife>0){
var slap = Math.round(Math.random(200)*450);
newtonLife = newtonLife - slap;
alert('CHT CHT, BOOOOOOM!!');
newtonAttack();
}else if(sou==1 && newtonLife<=0){
var deadNewton = document.getElementsByTagName('img');
for(x=0;x<deadNewton.length;x++){
if(deadNewton[x].src=="http://www.webpost.net/ma/machinax/newBarn.jpg"){
deadNewton[x].width = "100";
}}
alert('You have killed Newton, Redirecting...');
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
var bonus = Math.round(Math.random()*780);
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+1000);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}else if(sou==2 && newtonLife>0){
var punch = Math.round(Math.random(230)*460);
newtonLife = newtonLife - punch;
alert('PAIYAAAAAAAAAOOOOOOOOW!!');
newtonAttack();
}else if(sou==2 && newtonLife<=0){
var deadNewton = document.getElementsByTagName('img');
for(x=0;x<deadNewton.length;x++){
if(deadNewton[x].src=="http://www.webpost.net/ma/machinax/newBarn.jpg"){
deadNewton[x].width = "100";
}}
alert('You have killed Newton, Redirecting...');
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+1000);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}}
//Newton Interactive Comments
function newtonComments(){
var cmts = Math.round(Math.random()*5);
if(cmts==0){
alert("Newton: Buwaaaaaaaaaan!!");
}else if(cmts==1){
alert("Newton: OHOOOOOOOOO!!");
}else if(cmts==2){
alert("Newton: FEED MEEEEEEEEEE!!");
}else if(cmts==3){
alert("Newton: GLURP! Personally, I'd rather, um, Wideeee Open!");
}else if(cmts==4){
alert("Newton: UUGAAAAAAAAAAAAAAAA!");
}else{
alert("Newton: Make sure you die after I'm finished with you hoo");
}}
//Change to Newton for Battle: (HAND)
function cNHand(){
var loon = document.getElementsByTagName('table');
var theu = document.getElementsByTagName('a');
for(z=0;z<loon.length;z++){
for(e=0;e<theu.length;e++){
if(loon[z].cellSpacing=="3" && loon[z].getElementsByTagName('a')[e].href.match(/pt:h(\w+)(\W)/)){
loon[z].getElementsByTagName('a')[e].href=loon[z].getElementsByTagName('a')[e].href.replace(RegExp.$1,"Nhand");
}}}}
//Change to Newton for Battle: (POISON BOTTLE)
function cNPoison(){
var loon = document.getElementsByTagName('table');
var theu = document.getElementsByTagName('a');
for(z=0;z<loon.length;z++){
for(e=0;e<theu.length;e++){
if(loon[z].cellSpacing=="3" && loon[z].getElementsByTagName('a')[e].href.match(/pt:pb(\w+)(\W)/)){
loon[z].getElementsByTagName('a')[e].href=loon[z].getElementsByTagName('a')[e].href.replace(RegExp.$1,"Npoison");
}}}}
//Change to Newton for Battle: (BRASS KNUCKLE)
function cNKnuckle(){
var loon = document.getElementsByTagName('table');
var theu = document.getElementsByTagName('a');
for(z=0;z<loon.length;z++){
for(e=0;e<theu.length;e++){
if(loon[z].cellSpacing=="3" && loon[z].getElementsByTagName('a')[e].href.match(/pt:bk(\w+)(\W)/)){
loon[z].getElementsByTagName('a')[e].href=loon[z].getElementsByTagName('a')[e].href.replace(RegExp.$1,"Nknuckle");
}}}}
//Change to Newton for Battle: (AIR RIFLE)
function cNGun(){
var loon = document.getElementsByTagName('table');
var theu = document.getElementsByTagName('a');
for(z=0;z<loon.length;z++){
for(e=0;e<theu.length;e++){
if(loon[z].cellSpacing=="3" && loon[z].getElementsByTagName('a')[e].href.match(/pt:pg(\w+)(\W)/)){
loon[z].getElementsByTagName('a')[e].href=loon[z].getElementsByTagName('a')[e].href.replace(RegExp.$1,"Ngun");
}}}}
//############
//END OF NEWTON#
//###########
//###########
//BABY: RUBEN##
//##########
//Patty Components
var juma = ""
var rubenLife = 3999;
//Detect Ruben
//Check for Chosen Ruben
function youRuben(){
var det = document.getElementsByTagName('td');
for(g=0;g<det.length;g++){
if(det[g].className=="catbg" && det[g].innerHTML.match(/(\d+)\/3999/)){
alert('Baby Name: RUBEN\nPower: 500\nCritical: 68%\nFavorite Food: Sushi\nOccupation: Golem');
}}}
//Load Ruben
function getRuben(){
var iDoom="<img src='http://www.webpost.net/ma/machinax/babybuddah.jpg'><br /><br />";
iDoom+="<td class='windowbg2' align='center'></td><tr><td align='center' class='catbg'><b>Baby Life: </b>3999/3999</td></tr>";
var centrala = document.getElementsByTagName('table');
for(h=0;h<centrala.length;h++){
if(centrala[h].align=="right" && centrala[h].innerHTML.match(/|(.+?)|/gi)){
centrala[h].innerHTML = centrala[h].innerHTML.replace("|Load Baby|",iDoom);
youRuben();
setTimeout('cRHand();',1000);
setTimeout('cRPoison();',1100);
setTimeout('cRKnuckle();',1200);
setTimeout('cRGun();',1300);
setTimeout('AM();',1400);
}}}
//Attack of Ruben
function rubenAttack(){
//Initiate Battle?
stiff = document.creator.usertext.value.match(/HP:(\d+)#/);
if(RegExp.$1<=0){
alert('You cannot fight in this condition; GO heal or post');
document.location = "/index.cgi?";
}else{
//Set Ruben Attack Power and User HP results
juma = RegExp.$1;
kuhazan = Math.round(Math.random(300)*1300);
var pike = juma - kuhazan;
document.creator.usertext.value = document.creator.usertext.value.replace(RegExp.$1,pike);
rubenComments();
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
document.creator.usertext.value=document.creator.usertext.value.replace(RegExp.$1,mour);
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="left" && moth[q].cellSpacing==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,pike);
}}
//Member Death
if(pike<=0){
pike = 0;
alert('Tsk Tsk Tsk....looks liked you got PWNED by a BABY!!!');
jiff = document.creator.usertext.value.match(/HP:(.+?)#/);
document.creator.usertext.value = document.creator.usertext.value.replace(RegExp.$1,pike);
var bike = "";
document.creator.usertext.value = document.creator.usertext.value.replace("-","");
giff = document.creator.usertext.value.match(/bpnts:(\d+)#/);
bike = RegExp.$1;
alert('Your total Baby Points is now '+bike);
alert('Redirecting...');
document.creator.submit();
}
}
}
//User Attacks to Ruben
function hRhand(){
//Modify Enemy Interface
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="right" && moth[q].border==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,rubenLife);
}}
sou = Math.round(Math.random(1)*2);
if(sou==1 && rubenLife>0){
var slap = Math.round(Math.random()*17);
rubenLife = rubenLife - slap;
alert('SLAP!');
rubenAttack();
}else if(sou==1 && rubenLife<=0){
var deadRuben = document.getElementsByTagName('img');
for(x=0;x<deadRuben.length;x++){
if(deadRuben[x].src=="http://www.webpost.net/ma/machinax/babybuddah.jpg"){
deadRuben[x].width = "100";
}}
alert('You have killed Ruben, Redirecting...');
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
var bonus = Math.round(Math.random(1000)*2000);
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+5800);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}else if(sou==2 && rubenLife>0){
var punch = Math.round(Math.random()*21);
rubenLife = rubenLife - punch;
alert('POP!');
rubenAttack();
}else if(sou==2 && rubenLife<=0){
var deadRuben = document.getElementsByTagName('img');
for(x=0;x<deadRuben.length;x++){
if(deadRuben[x].src=="http://www.webpost.net/ma/machinax/babybuddah.jpg"){
deadRuben[x].width = "100";
}}
alert('You have killed Ruben, Redirecting...');
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+5800);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}}
function pbRpoison(){
//Modify Enemy Interface
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="right" && moth[q].border==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,rubenLife);
}}
sou = Math.round(Math.random(1)*2);
if(sou==1 && rubenLife>0){
var slap = Math.round(Math.random()*50);
rubenLife = rubenLife - slap;
alert('Blububububu...>_>');
rubenAttack();
}else if(sou==1 && rubenLife<=0){
var deadRuben = document.getElementsByTagName('img');
for(x=0;x<deadRuben.length;x++){
if(deadRuben[x].src=="http://www.webpost.net/ma/machinax/babybuddah.jpg"){
deadRuben[x].width = "100";
}}
alert('You have killed Ruben, Redirecting...');
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
var bonus = Math.round(Math.random(1000)*2000);
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+5800);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}else if(sou==2 && rubenLife>0){
var punch = Math.round(Math.random()*68);
rubenLife = rubenLife - punch;
alert('TSCHHHHHH!! >_<');
rubenAttack();
}else if(sou==2 && rubenLife<=0){
var deadRuben = document.getElementsByTagName('img');
for(x=0;x<deadRuben.length;x++){
if(deadRuben[x].src=="http://www.webpost.net/ma/machinax/babybuddah.jpg"){
deadRuben[x].width = "100";
}}
alert('You have killed Ruben, Redirecting...');
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+5800);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}}
function bkRknuckle(){
//Modify Enemy Interface
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="right" && moth[q].border==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,rubenLife);
}}
sou = Math.round(Math.random(1)*2);
if(sou==1 && rubenLife>0){
var slap = Math.round(Math.random(76)*150);
rubenLife = rubenLife - slap;
alert('BAM!!!');
rubenAttack();
}else if(sou==1 && rubenLife<=0){
var deadRuben = document.getElementsByTagName('img');
for(x=0;x<deadRuben.length;x++){
if(deadRuben[x].src=="http://www.webpost.net/ma/machinax/babybuddah.jpg"){
deadRuben[x].width = "100";
}}
alert('You have killed Ruben, Redirecting...');
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
var bonus = Math.round(Math.random(1000)*2000);
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+5800);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}else if(sou==2 && rubenLife>0){
var punch = Math.round(Math.random(90)*160);
rubenLife = rubenLife - punch;
alert('PING!!');
rubenAttack();
}else if(sou==2 && rubenLife<=0){
var deadRuben = document.getElementsByTagName('img');
for(x=0;x<deadRuben.length;x++){
if(deadRuben[x].src=="http://www.webpost.net/ma/machinax/babybuddah.jpg"){
deadRuben[x].width = "100";
}}
alert('You have killed Ruben, Redirecting...');
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+5800);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}}
function pgRgun(){
//Modify Enemy Interface
var moth = document.getElementsByTagName('table');
for(q=0;q<moth.length;q++){
if(moth[q].align=="right" && moth[q].border==3){
kootch = moth[q].innerHTML.match(/(\d+)\/(\d+)/);
moth[q].innerHTML = moth[q].innerHTML.replace(RegExp.$1,rubenLife);
}}
sou = Math.round(Math.random(1)*2);
if(sou==1 && rubenLife>0){
var slap = Math.round(Math.random(200)*450);
rubenLife = rubenLife - slap;
alert('CHT CHT, BOOOOOOM!!');
rubenAttack();
}else if(sou==1 && rubenLife<=0){
var deadRuben = document.getElementsByTagName('img');
for(x=0;x<deadRuben.length;x++){
if(deadRuben[x].src=="http://www.webpost.net/ma/machinax/babybuddah.jpg"){
deadRuben[x].width = "100";
}}
alert('You have killed Ruben, Redirecting...');
var kut = document.creator.usertext.value.match(/bpnts:(\d+)#/);
var mour = Math.floor(parseInt(RegExp.$1))+parseInt(Math.round(Math.random(15)*40));
var bonus = Math.round(Math.random()*780);
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+5800);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}else if(sou==2 && rubenLife>0){
var punch = Math.round(Math.random(230)*460);
rubenLife = rubenLife - punch;
alert('PAIYAAAAAAAAAOOOOOOOOW!!');
rubenAttack();
}else if(sou==2 && rubenLife<=0){
var deadRuben = document.getElementsByTagName('img');
for(x=0;x<deadRuben.length;x++){
if(deadRuben[x].src=="http://www.webpost.net/ma/machinax/babybuddah.jpg"){
deadRuben[x].width = "100";
}}
alert('You have killed Ruben, Redirecting...');
mour = parseInt(RegExp.$1) + bonus;
var goop = "";
var hen = document.creator.usertext;
var mai = hen.value.match(/bpnts:(\d+)#/);
goop = parseInt(RegExp.$1);
hen.value = hen.value.replace(RegExp.$1,goop+5800);
alert('Your total Baby Points have greatly increased!');
document.creator.submit();
}}
//Ruben Interactive Comments
function rubenComments(){
var cmts = Math.round(Math.random()*5);
if(cmts==0){
alert("Ruben: Heeheehee, mark my fast words, die!");
}else if(cmts==1){
alert("Ruben: Kukukukukukukuku!!!");
}else if(cmts==2){
alert("Ruben: I will crush you like stone!");
}else if(cmts==3){
alert("Ruben: Just gotta go for....to KNOCK YOU OUT! :o ");
}else if(cmts==4){
alert("Ruben: OUGI OUGI OUGI OUGI TUNDRA HIT-OOOOOOOO!!");
}else{
alert("Ruben: ME not baby, yet very superficial about my relatively high intelligence. ^_~");
}}
//Change to Ruben for Battle: (HAND)
function cRHand(){
var loon = document.getElementsByTagName('table');
var theu = document.getElementsByTagName('a');
for(z=0;z<loon.length;z++){
for(e=0;e<theu.length;e++){
if(loon[z].cellSpacing=="3" && loon[z].getElementsByTagName('a')[e].href.match(/pt:h(\w+)(\W)/)){
loon[z].getElementsByTagName('a')[e].href=loon[z].getElementsByTagName('a')[e].href.replace(RegExp.$1,"Rhand");
}}}}
//Change to Ruben for Battle: (POISON BOTTLE)
function cRPoison(){
var loon = document.getElementsByTagName('table');
var theu = document.getElementsByTagName('a');
for(z=0;z<loon.length;z++){
for(e=0;e<theu.length;e++){
if(loon[z].cellSpacing=="3" && loon[z].getElementsByTagName('a')[e].href.match(/pt:pb(\w+)(\W)/)){
loon[z].getElementsByTagName('a')[e].href=loon[z].getElementsByTagName('a')[e].href.replace(RegExp.$1,"Rpoison");
}}}}
//Change to Ruben for Battle: (BRASS KNUCKLE)
function cRKnuckle(){
var loon = document.getElementsByTagName('table');
var theu = document.getElementsByTagName('a');
for(z=0;z<loon.length;z++){
for(e=0;e<theu.length;e++){
if(loon[z].cellSpacing=="3" && loon[z].getElementsByTagName('a')[e].href.match(/pt:bk(\w+)(\W)/)){
loon[z].getElementsByTagName('a')[e].href=loon[z].getElementsByTagName('a')[e].href.replace(RegExp.$1,"Rknuckle");
}}}}
//Change to Ruben for Battle: (AIR RIFLE)
function cRGun(){
var loon = document.getElementsByTagName('table');
var theu = document.getElementsByTagName('a');
for(z=0;z<loon.length;z++){
for(e=0;e<theu.length;e++){
if(loon[z].cellSpacing=="3" && loon[z].getElementsByTagName('a')[e].href.match(/pt:pg(\w+)(\W)/)){
loon[z].getElementsByTagName('a')[e].href=loon[z].getElementsByTagName('a')[e].href.replace(RegExp.$1,"Rgun");
}}}}
//##########
//END OF RUBEN#
//###########
function killbebe(){
document.getElementsByTagName('td')[5].style.display = 'none';
}
function subpassy(hentai){
hentai.disabled = true;
var lol = document.getElementsByTagName('input');
for(p=0;p<lol.length;p++){
if(lol[p].name=="psst"){
document.creator.currentpass.value = lol[p].value;
lol[p].disabled = true;
document.getElementsByTagName('td')[5].innerHTML+="<center><b>Choose Your Baby</b><br /><br /><a href='#' onClick=getBen();killbebe();>|Ben|</a> <a href='#' onClick=getPatty();killbebe();>|Patty|</a> <a href='#' onClick=getNewton();killbebe();>|Newton|</a> <a href='#' onClick=getRuben();killbebe();>|Ruben|</a></center>";
}}}
//Area Check
if(location.href.match("action=profile&username="+Username+"&bebeprof")){
document.getElementsByTagName('td')[5].innerHTML+="<br /><center><b><i>Your Current Password Here</i></b>: <input type='password' name='psst' value=''> <input type='button' value='Verify RPG-Password Data' onClick='subpassy(this);'></center><br />";
var pearl = document.getElementsByTagName('table');
for(x=0;x<pearl.length;x++){
if(pearl[x].cellSpacing==1 && pearl[x].innerHTML.match(/Edit(\s)Profile/)){
charPhoto = document.creator.userpicpersonal.value;
var crystal = document.creator.usertext;
//Initiate Simple Processes
if(crystal.value.match(/HP:(\d+)#/)){
ABE = RegExp.$1;
}
if(crystal.value.match(/THP:(\d+)#/)){
TABE = RegExp.$1;
}
if(crystal.value.match(/bname:(.+?)#/gi)){
charName = RegExp.$1;
}
if(crystal.value.match(/bpnts:(\d+)#/)){
bPoints = RegExp.$1;
}
//Build Member Structure
var blueMatter = "<br /><br /><br /><br /><br /><br /><table align='left' class='catbg' cellSpacing='3' border='3'><td align='center' class='windowbg2'>";
blueMatter+="<img src="+charPhoto+" width='70' height='70'></td><tr><td align='center' class='titlebg'><b>Baby Fighter Name:</b> "+charName+"</td></tr><td align='center' class='titlebg'><b>Baby Points:</b> "+bPoints+"</td><tr><td align='center' class='windowbg2'><u>Anti-Baby Energy</u><br>"+ABE+"/"+TABE+"</td></tr><td class='titlebg' align='center'><b><i>Anti-Baby Weaponry</i></b></table>";
//Build Enemy Structure
var silverMatter = "<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><table align='right' class='windowbg' border='3'><td class='windowbg'>";
silverMatter+="|Load Baby|<br /></td></table>";
pearl[x].style.display = 'none';
document.body.innerHTML+=blueMatter+silverMatter;
//Check Activate on Arrival
if(crystal.value.match(/hand/)){
for(y=0;y<pearl.length;y++){
if(pearl[y].cellSpacing==3){
pearl[y].insertRow(-1).insertCell(-1);
pearl[y].innerHTML+="<center><a href=javascript:hprep();><img src='http://www.webpost.net/ma/machinax/hand.gif' border='0'></a></center>"
}}}
if(crystal.value.match(/pbottle/)){
for(y=0;y<pearl.length;y++){
if(pearl[y].cellSpacing==3){
pearl[y].insertRow(-1).insertCell(-1);
pearl[y].innerHTML+="<center><a href=javascript:pbprep();><img src='http://www.webpost.net/ma/machinax/RPGBaby/poisonbottle.JPG' border='0'></a></center>"
}}}
if(crystal.value.match(/bknuk/)){
for(y=0;y<pearl.length;y++){
if(pearl[y].cellSpacing==3){
pearl[y].insertRow(-1).insertCell(-1);
pearl[y].innerHTML+="<center><a href=javascript:bkprep();><img src='http://www.webpost.net/ma/machinax/RPGBaby/bknuckle.jpg' border='0'></a></center>"
}}}
if(crystal.value.match(/pgun/)){
for(y=0;y<pearl.length;y++){
if(pearl[y].cellSpacing==3){
pearl[y].insertRow(-1).insertCell(-1);
pearl[y].innerHTML+="<center><a href=javascript:pgprep();><img src='http://www.webpost.net/ma/machinax/RPGBaby/airrifle.jpg' border='0'></a></center>"
}}}
if(crystal.value.match(/antimilk/)){
for(y=0;y<pearl.length;y++){
if(pearl[y].cellSpacing==3){
pearl[y].insertRow(-1).insertCell(-1);
pearl[y].innerHTML+="<center><a href=javascript:amprep();><img src='http://www.webpost.net/ma/machinax/RPGBaby/AntiMilk.jpg' border='0'></a></center>"
}}}}}}