var url = location.href.split("rpg")[0]; var base_url = location.href.split('pages')[0]; var Template = '

Welcome to Divinity RPG!

RPG Areas

· Town
· Guilds
· Battlegrounds
· Quests
· RPG Profile


Personal links

· Clear RPG Profile
· Return To Forums
· User CP
· Check Messages
· Log Out
· Go Back

'; var RandomMessages = new Array(); RandomMessages[0] = "Remember to always carry an item to replenish your Life or Magic."; RandomMessages[1] = "Talk to everyone, you never know when someone will have something important to say."; RandomMessages[2] = "You may only carry one Weapon and/or Armor at a time."; RandomMessages[3] = "Don't forget that you can use your Stat Item by viewing your Inventory."; RandomMessages[4] = "Remember you can create your own Bank Account to either Deposit or Withdraw."; RandomMessages[5] = "Always use the opportunity to get in for Free at the Inn."; RandomMessages[6] = "You may clear your entire RPG Profile by clicking the Clear RPG Profile link under Personal Links."; RandomMessages[7] = "Selling your items will decrease by 50% in Value."; RandomMessages[8] = "Check your opponents Stats carefully before you enage in battle with them."; RandomMessages[9] = "Always be cautious before you take on a Quest Battle, you never know how strong the Boss might be."; RandomMessages[10] = "Clearing your Bank Account will also erase anything you have Deposited."; RandomMessages[11] = "You may not engage in a Quest Battle without a Quest! Be sure to talk to everyone at the Town Square."; RandomMessages[12] = "You may not enter a battle without a Weapon! Be sure to check if you have a Weapon before you battle."; //Below are contributed victory lines created by: Slasher, One Time, Duveaux, godkillah, Eureka/Ken var Victory_Lines = new Array(); //Slasher's Contribution Victory_Lines[0] = "The enemy lunges at you and misses. You stab him in the head, then say, 'While you're down there, how about you shine my shoes?'"; Victory_Lines[1] = "As you slice your enemies head off, you turn to the crowd of people and say, 'Okay, shows over. You can go home now.'"; //One Time's Contribution Victory_Lines[2] = "While delivering your final blow, you yawn. 'Wow, that was easy!'"; Victory_Lines[3] = "You know, what's the point of even reading this when you know how badly you pwn anyways?"; Victory_Lines[4] = "After killing your opponent, you turn around and say, 'I am ready to fight! Oh, dang, that was it? Rip off, I asked for a challenge!'"; //Duveaux's Contribution Victory_Lines[5] = "After knocking out your opponent and staring at it for a while, you say: 'Well.. I guess it sucks being you right now..'"; //godkillah's Contribution Victory_Lines[6] = "You see your opponent suffering a slow and painful death, you laugh and say: 'Did you truly think you'd be able to beat me?' you cut your enemies head off and smile at it."; Victory_Lines[7] = "Your enemy lies in front of you, you know you can end his life now. You can hear how he begs you for mercy. You seem to enjoy his suffering, you take a step closer to him and rip his heart out."; Victory_Lines[8] = "You'd never want to take away someone's life, but there in front of you, you can see your opponent, death, you realise you've killed him."; //Eureka/Ken's Contribution Victory_Lines[9] = "Victory is a thing for strong-willed people like me, not for weasels like you."; Victory_Lines[10] = "Something as ugly as you can never defeat me."; if(location.href.match(/\/rpg/i)){ document.title="RPG - Entrance"; a = Template+ '

Divinity RPG


Welcome to Divinity RPG! An RPG aimed for complete and utter destruction!
Find your ways through this epic RPG created for a ZetaBoard forum, with many quests and even battles!
You will also have the chance to spend your '+cur_name+' inside the Shop,
go Bank some money and gain this '+cur_name+' from fighting or completing quests!


Good luck brave adventurer!



Divinity RPG created by slayer766 - TheCodingZone
'; document.getElementById("slayer_rpg").innerHTML=a } if(location.href.match(/\/rpg\/town/i)){ document.title="Town"; a = Template+ '

Town



Loading, please wait...



'+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+'





Town Square Links

· Visit Town Square
· Visit Inn
· Visit Bank
· Visit Blacksmith
· Visit Armory
· Visit Item Shop
· Visit Stats Shop
· Visit Pet Shop


Divinity RPG created by slayer766 - TheCodingZone
'; document.getElementById("slayer_rpg").innerHTML=a } if(location.href.match(/\/rpg\/guild/i)!=null){ document.title="Guild"; a = Template+ '

Guild



Loading, please wait...



'+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+'





Guild Links

· View Guild
· Join a Guild
· Leave a Guild


Divinity RPG created by slayer766 - TheCodingZone
'; document.getElementById("slayer_rpg").innerHTML=a } if(location.href.match(/\/rpg\/fight/i)!=null){ document.title="RPG Battlegrounds"; a = Template+ '

RPG Battlegrounds



Loading, please wait...



'+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+'





Battleground Links



Divinity RPG created by slayer766 - TheCodingZone
'; document.getElementById("slayer_rpg").innerHTML=a } if(location.href.match(/\/rpg\/quest/i)!=null){ document.title="RPG Quests"; a = Template+ '

RPG Quests



Loading, please wait...



'+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+'





Quest Links

· View Quests
· View Stats
· View Inventory















Divinity RPG created by slayer766 - TheCodingZone
'; document.getElementById("slayer_rpg").innerHTML=a } if(location.href.match(/\/rpg\/profile/i)!=null){ document.title="RPG Profile"; a = Template+ '

RPG Profile



Loading, please wait...



'+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+'





Profile Links

· View Stats
· View Inventory
· View Bank Stats
· View Battles Won/Lost
· View Party Members


Divinity RPG created by slayer766 - TheCodingZone
'; document.getElementById("slayer_rpg").innerHTML=a } if(location.href.match(/\/rpg\/(town|guild|fight|quest|profile)/i)){ document.write(""); } function Pick_Monster(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c 0 && rawr[8] != "None"){ b = 'You may now choose which monster you will fight! Look below to find the details of all the monsters, once you find the one you want to fight just simple select it from the dropdown list.

Choose your Monster to fight:



'; a = '

Monster List

'; for(c in Monsters){ a+=""; } a += '

Fight this monster?
Monster Name: "+Monsters[c][1]+"
Level: "+Monsters[c][6]+"
HP: "+Monsters[c][2]+"/"+Monsters[c][2]+"
MP: "+Monsters[c][3]+"/"+Monsters[c][3]+"
ATK: "+Monsters[c][4]+"
DEF: "+Monsters[c][5]+"
Exp. for killing: "+Monsters[c][7]+"
"+cur_name+" for killing: "+Monsters[c][8]+"

'; document.getElementById("monsterlist").innerHTML = a document.getElementById("rpg_profile_info").innerHTML = b } } } } } function FightMonster(Monster){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c 0){ document.getElementById("monsterlist").innerHTML=""; document.getElementById("remove_in_battle").innerHTML="

· Attack "+Monster+"
· Use Potion 1
· Use Potion 2

"; document.getElementById("place_b_log").innerHTML="

Battle Log

"; for(s in Classes){ if(rawr[10] == Classes[s][0]){ FightMArea = ""; } } for(r in Monsters){ if(Monster == Monsters[r][1]){ FightMArea += "


"; } } FightMArea += "

Your Stats
HP: "+rawr[2]+"/"+rawr[3]+"
MP: "+rawr[4]+"/"+rawr[5]+"
ATK: "+rawr[6]+"
DEF: "+rawr[7]+"
Weapon: "+rawr[8]+"
Armor: "+rawr[9]+"
Items: "+rawr[12]+", "+rawr[13]+"
BATTLE!

"+Monster+" Stats
HP: "+Monsters[r][2]+"/"+Monsters[r][2]+"
MP: "+Monsters[r][3]+"/"+Monsters[r][3]+"
ATK: "+Monsters[r][4]+"
DEF: "+Monsters[r][5]+"
Exp. for kill: "+Monsters[r][7]+"
"+cur_name+" for kill: "+Monsters[r][8]+"

"; document.getElementById("rpg_profile_info").innerHTML= FightMArea; } } } } } function View_Quest(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c

Guild Information
"; for(t in Guilds){ if(rawr[21] == Guilds[t][0]){ View_GArea += "Guild Leader: "+Guilds[t][1]+"
"; } } } else{ View_GArea = "You don\'t have a Guild. Please click this: Join a Guild to join a current Guild."; } document.getElementById("rpg_profile_info").innerHTML= View_GArea; } else{ return; } } } } function Join_Guild(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c'+Guilds[c][0]; } a += ''; } else{ alert("You are already in a Guild!"); return false; } document.getElementById("rpg_profile_info").innerHTML = a; } else{ return; } } } } function DoJoinGuild(guild){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c


"; } } } } function Leave_Guild(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c ?

"; } else{ alert("You can\'t leave a Guild if you aren't in one!"); return false; } document.getElementById("rpg_profile_info").innerHTML= Leave_GArea; } else{ return; } } } } function DoLeaveGuild(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c


"; } } } } function UsePotion1(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c used a Healing Potion! "+Items[0][4]+" HP restored.
"; var new_u_life = Math.floor(parseInt(u_hp)+parseInt(Items[0][4])); document.getElementById("heal_potion").innerHTML="None"; document.getElementById("user_hp").innerHTML=new_u_life; //Check for over-limit MaxHP if(Math.floor(parseInt(new_u_life)) > rawr[3]){ document.getElementById("user_hp").innerHTML=rawr[3]; } if(rawr[19] > 0){ return Boss_Turn(); } else{ return Monster_Turn(); } } } } } } function UsePotion2(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c used a Magic Potion! "+Items[1][5]+" MP restored.
"; var new_u_magic = Math.floor(parseInt(u_mp)+parseInt(Items[1][5])); document.getElementById("magic_potion").innerHTML="None"; document.getElementById("user_mp").innerHTML=new_u_magic; //Check for over-limit MaxMP if(Math.floor(parseInt(new_u_magic)) > rawr[5]){ document.getElementById("user_mp").innerHTML=rawr[5]; } if(rawr[19] > 0){ return Boss_Turn(); } else{ return Monster_Turn(); } } } } } } function Attack(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c 0){ if(Chances == 0 || Chances == 1 || Chances == 2){ document.getElementById("M_battle_log").innerHTML+="You attacked "+m_name+" with "+rawr[8]+" for a minimum damage of 1!
"; var min_dam_u = document.getElementById("minimum_damage_u").innerHTML; var minimum_dam_u = Math.floor(parseInt(m_hp)-parseInt(min_dam_u)); document.getElementById("monster_hp").innerHTML=minimum_dam_u; return Monster_Turn(); } if(Chances == 3 || Chances == 4){ document.getElementById("M_battle_log").innerHTML+="You attacked "+m_name+" with "+rawr[8]+" and missed!
"; return Monster_Turn(); } if(Chances == 5){ document.getElementById("M_battle_log").innerHTML+="You attacked "+m_name+" with "+rawr[8]+", the attack was blocked!
"; return Monster_Turn(); } } if(Math.floor(parseInt(u_hp)) > 0 && Math.floor(parseInt(damage)) > 0){ if(Chances == 0 || Chances == 1 || Chances == 2){ document.getElementById("M_battle_log").innerHTML+="You attacked "+m_name+" with "+rawr[8]+" for a total damage of "+damage+"!
"; document.getElementById("monster_hp").innerHTML=new_m_life; return Monster_Turn(); } if(Chances == 3 || Chances == 4){ document.getElementById("M_battle_log").innerHTML+="You attacked "+m_name+" with "+rawr[8]+" and missed!
"; return Monster_Turn(); } if(Chances == 5){ document.getElementById("M_battle_log").innerHTML+="You attacked "+m_name+" with "+rawr[8]+", the attack was blocked!
"; return Monster_Turn(); } if(Chances == 6){ document.getElementById("M_battle_log").innerHTML+="You attacked "+m_name+" with "+rawr[8]+", for a maximum damage of "+critical_hit+"! Critical Hit!
"; document.getElementById("monster_hp").innerHTML=critical_hit_life; return Monster_Turn(); } } } } } } function Monster_Turn(){ /* 0-2 = Hit 3-4 = Miss 5 = Block 6 = Critical Hit */ var Chances2 = Math.floor(Math.random()*7); var m_name = document.getElementById("monster_name").innerHTML; var u_name = document.getElementById("top_info").getElementsByTagName("a")[0].innerHTML; var m_hp = document.getElementById("monster_hp").innerHTML; var m_atk = document.getElementById("monster_atk").innerHTML; var u_def = document.getElementById("user_def").innerHTML; var u_hp = document.getElementById("user_hp").innerHTML; var damage = Math.floor(parseInt(m_atk)-parseInt(u_def)); var new_u_life = Math.floor(parseInt(u_hp)-parseInt(damage)); var critical_hit = Math.floor(parseInt(damage)*2); var critical_hit_life = Math.floor(parseInt(u_hp)-parseInt(critical_hit)); if(Math.floor(parseInt(m_hp)) <= 0){ var get_exp = document.getElementById("monster_exp").innerHTML; var get_gold = document.getElementById("monster_gold").innerHTML; document.getElementById("u_controls").innerHTML="You were victorious!

Exp. Points Gained: "+get_exp+"
"+cur_name+" Pieces Found: "+get_gold+""; document.getElementById("M_battle_log").innerHTML+="
"+m_name+" has been slain, you were victorious!

"+Victory_Lines[Math.floor(Math.random()*Victory_Lines.length)]+""; setTimeout("User_Win();",5000); } if(Math.floor(parseInt(damage)) <= 0 && Math.floor(parseInt(m_hp)) > 0){ if(Chances2 == 0 || Chances2 == 1 || Chances2 == 2){ document.getElementById("M_battle_log").innerHTML+=""+m_name+" attacked for a minimum damage of 1!
"; var min_dam_m = document.getElementById("minimum_damage_m").innerHTML; var minimum_dam_m = Math.floor(parseInt(u_hp)-parseInt(min_dam_m)); document.getElementById("user_hp").innerHTML=minimum_dam_m; } if(Chances2 == 3 || Chances2 == 4){ document.getElementById("M_battle_log").innerHTML+=""+m_name+" attacked and missed!
"; } if(Chances2 == 5){ document.getElementById("M_battle_log").innerHTML+=""+m_name+" attacked and "+u_name+" blocked the attack!
"; } } if(Math.floor(parseInt(m_hp)) > 0 && Math.floor(parseInt(damage)) > 0){ if(Chances2 == 0 || Chances2 == 1 || Chances2 == 2){ document.getElementById("M_battle_log").innerHTML+=""+m_name+" attacked for a total damage of "+damage+"!
"; document.getElementById("user_hp").innerHTML=new_u_life; if(Math.floor(parseInt(new_u_life)) <= 0){ document.getElementById("u_controls").innerHTML="You were defeated!

"; document.getElementById("M_battle_log").innerHTML+="
"+m_name+" has slain you, you have been defeated!"; setTimeout("User_Lose();",5000); } } if(Chances2 == 6){ document.getElementById("M_battle_log").innerHTML+=""+m_name+" attacked for a maximum damage of "+critical_hit+"! Critical Hit!
"; document.getElementById("user_hp").innerHTML=critical_hit_life; if(Math.floor(parseInt(critical_hit_life)) <= 0){ document.getElementById("u_controls").innerHTML="You were defeated!

"; document.getElementById("M_battle_log").innerHTML+="
"+m_name+" has slain you, you have been defeated!"; setTimeout("User_Lose();",5000); } } if(Chances2 == 3 || Chances2 == 4){ document.getElementById("M_battle_log").innerHTML+=""+m_name+" attacked and missed!
"; } if(Chances2 == 5){ document.getElementById("M_battle_log").innerHTML+=""+m_name+" attacked and "+u_name+" blocked the attack!
"; } } } function Attack_Boss(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c 0){ if(Chances == 0 || Chances == 1 || Chances == 2){ document.getElementById("M_battle_log").innerHTML+="You attacked "+b_name+" with "+rawr[8]+" for a minimum damage of 1!
"; var min_dam_u = document.getElementById("minimum_damage_u").innerHTML; var minimum_dam_u = Math.floor(parseInt(b_hp)-parseInt(min_dam_u)); document.getElementById("boss_hp").innerHTML=minimum_dam_u; return Boss_Turn(); } if(Chances == 3 || Chances == 4){ document.getElementById("M_battle_log").innerHTML+="You attacked "+b_name+" with "+rawr[8]+" and missed!
"; return Boss_Turn(); } if(Chances == 5){ document.getElementById("M_battle_log").innerHTML+="You attacked "+b_name+" with "+rawr[8]+", the attack was blocked!
"; return Boss_Turn(); } } if(Math.floor(parseInt(u_hp)) > 0 && Math.floor(parseInt(damage)) > 0){ if(Chances == 0 || Chances == 1 || Chances == 2){ document.getElementById("M_battle_log").innerHTML+="You attacked "+b_name+" with "+rawr[8]+" for a total damage of "+damage+"!
"; document.getElementById("boss_hp").innerHTML=new_b_life; return Boss_Turn(); } if(Chances == 3 || Chances == 4){ document.getElementById("M_battle_log").innerHTML+="You attacked "+b_name+" with "+rawr[8]+" and missed!
"; return Boss_Turn(); } if(Chances == 5){ document.getElementById("M_battle_log").innerHTML+="You attacked "+b_name+" with "+rawr[8]+", the attack was blocked!
"; return Boss_Turn(); } if(Chances == 6){ document.getElementById("M_battle_log").innerHTML+="You attacked "+b_name+" with "+rawr[8]+", for a maximum damage of "+critical_hit+"! Critical Hit!
"; document.getElementById("boss_hp").innerHTML=critical_hit_life; return Boss_Turn(); } } } } } } function Boss_Turn(){ /* 0-2 = Hit 3-4 = Miss 5 = Block 6 = Critical Hit */ var Chances2 = Math.floor(Math.random()*7); var b_name = document.getElementById("boss_name").innerHTML; var u_name = document.getElementById("top_info").getElementsByTagName("a")[0].innerHTML; var b_hp = document.getElementById("boss_hp").innerHTML; var b_atk = document.getElementById("boss_atk").innerHTML; var u_def = document.getElementById("user_def").innerHTML; var u_hp = document.getElementById("user_hp").innerHTML; var damage = Math.floor(parseInt(b_atk)-parseInt(u_def)); var new_u_life = Math.floor(parseInt(u_hp)-parseInt(damage)); var critical_hit = Math.floor(parseInt(damage)*2); var critical_hit_life = Math.floor(parseInt(u_hp)-parseInt(critical_hit)); if(Math.floor(parseInt(b_hp)) <= 0){ var get_exp = document.getElementById("boss_exp").innerHTML; var get_gold = document.getElementById("boss_gold").innerHTML; document.getElementById("u_controls").innerHTML="You were victorious!

Exp. Points Gained: "+get_exp+"
"+cur_name+" Pieces Found: "+get_gold+""; document.getElementById("M_battle_log").innerHTML+="
"+b_name+" has been slain, you were victorious!

"+Victory_Lines[Math.floor(Math.random()*Victory_Lines.length)]+""; setTimeout("User_Win_Boss();",5000); } if(Math.floor(parseInt(damage)) <= 0 && Math.floor(parseInt(b_hp)) > 0){ if(Chances2 == 0 || Chances2 == 1 || Chances2 == 2){ document.getElementById("M_battle_log").innerHTML+=""+b_name+" attacked for a minimum damage of 1!
"; var min_dam_b = document.getElementById("minimum_damage_b").innerHTML; var minimum_dam_b = Math.floor(parseInt(u_hp)-parseInt(min_dam_b)); document.getElementById("user_hp").innerHTML=minimum_dam_b; } if(Chances2 == 3 || Chances2 == 4){ document.getElementById("M_battle_log").innerHTML+=""+b_name+" attacked and missed!
"; } if(Chances2 == 5){ document.getElementById("M_battle_log").innerHTML+=""+b_name+" attacked and "+u_name+" blocked the attack!
"; } } if(Math.floor(parseInt(b_hp)) > 0 && Math.floor(parseInt(damage)) > 0){ if(Chances2 == 0 || Chances2 == 1 || Chances2 == 2){ document.getElementById("M_battle_log").innerHTML+=""+b_name+" attacked for a total damage of "+damage+"!
"; document.getElementById("user_hp").innerHTML=new_u_life; if(Math.floor(parseInt(new_u_life)) <= 0){ document.getElementById("u_controls").innerHTML="You were defeated!

"; document.getElementById("M_battle_log").innerHTML+="
"+b_name+" has slain you, you have been defeated!"; setTimeout("User_Lose();",5000); } } if(Chances2 == 6){ document.getElementById("M_battle_log").innerHTML+=""+b_name+" attacked for a maximum damage of "+critical_hit+"! Critical Hit!
"; document.getElementById("user_hp").innerHTML=critical_hit_life; if(Math.floor(parseInt(critical_hit_life)) <= 0){ document.getElementById("u_controls").innerHTML="You were defeated!

"; document.getElementById("M_battle_log").innerHTML+="
"+b_name+" has slain you, you have been defeated!"; setTimeout("User_Lose();",5000); } } if(Chances2 == 3 || Chances2 == 4){ document.getElementById("M_battle_log").innerHTML+=""+b_name+" attacked and missed!
"; } if(Chances2 == 5){ document.getElementById("M_battle_log").innerHTML+=""+b_name+" attacked and "+u_name+" blocked the attack!
"; } } } function User_Win(){ document.getElementById("place_b_log").innerHTML=""; var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c


"; } } } } } function User_Win_Boss(){ document.getElementById("place_b_log").innerHTML=""; var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c

Current Level: "+current_level+"
HP Increases "+Up_HP+" Every Stat PointHP - 0 +
MP Increases "+Up_MP+" Every Stat PointMP - 0 +
ATK Increases "+Up_ATK+" Every Stat PointATK - 0 +
DEF Increases "+Up_DEF+" Every Stat PointDEF - 0 +

"; } else{ Lvl.innerHTML = "

You gained a Level up!

You have reached a new level, and by doing so you have received stat points. You may use these stat points to improve your character. Use them wisely.

Current Stat Points Left: "+Stat_Amount+"

Current Level: "+current_level+"
HP Increases "+Up_HP+" Every Stat PointHP - 0 +
MP Increases "+Up_MP+" Every Stat PointMP - 0 +
ATK Increases "+Up_ATK+" Every Stat PointATK - 0 +
DEF Increases "+Up_DEF+" Every Stat PointDEF - 0 +

"; } } } } } function IncreaseHP(){ var stats = document.getElementById("stat_points").innerHTML; if(Math.floor(parseInt(stats)) <= 0){ alert("No more stat points left!"); } else{ var minus_statp = Math.floor(parseInt(stats)-1); document.getElementById("stat_points").innerHTML=minus_statp; var hp = document.getElementById("hp_stat").innerHTML; var add_hp = Math.floor(parseInt(hp)+parseInt(Up_HP)); document.getElementById("hp_stat").innerHTML=add_hp; } } function DecreaseHP(){ var stats = document.getElementById("stat_points").innerHTML; var hp = document.getElementById("hp_stat").innerHTML; if(Math.floor(parseInt(hp)) == 0){ alert("You cannot have negative stats!"); } else{ var plus_statp = Math.floor(parseInt(stats)+1); document.getElementById("stat_points").innerHTML=plus_statp; var minus_hp = Math.floor(parseInt(hp)-parseInt(Up_HP)); document.getElementById("hp_stat").innerHTML=minus_hp; } } function IncreaseMP(){ var stats = document.getElementById("stat_points").innerHTML; if(Math.floor(parseInt(stats)) <= 0){ alert("No more stat points left!"); } else{ var minus_statp = Math.floor(parseInt(stats)-1); document.getElementById("stat_points").innerHTML=minus_statp; var mp = document.getElementById("mp_stat").innerHTML; var add_mp = Math.floor(parseInt(mp)+parseInt(Up_MP)); document.getElementById("mp_stat").innerHTML=add_mp; } } function DecreaseMP(){ var stats = document.getElementById("stat_points").innerHTML; var mp = document.getElementById("mp_stat").innerHTML; if(Math.floor(parseInt(mp)) == 0){ alert("You cannot have negative stats!"); } else{ var plus_statp = Math.floor(parseInt(stats)+1); document.getElementById("stat_points").innerHTML=plus_statp; var minus_mp = Math.floor(parseInt(mp)-parseInt(Up_MP)); document.getElementById("mp_stat").innerHTML=minus_mp; } } function IncreaseATK(){ var stats = document.getElementById("stat_points").innerHTML; if(Math.floor(parseInt(stats)) <= 0){ alert("No more stat points left!"); } else{ var minus_statp = Math.floor(parseInt(stats)-1); document.getElementById("stat_points").innerHTML=minus_statp; var atk = document.getElementById("atk_stat").innerHTML; var add_atk = Math.floor(parseInt(atk)+parseInt(Up_ATK)); document.getElementById("atk_stat").innerHTML=add_atk; } } function DecreaseATK(){ var stats = document.getElementById("stat_points").innerHTML; var atk = document.getElementById("atk_stat").innerHTML; if(Math.floor(parseInt(atk)) == 0){ alert("You cannot have negative stats!"); } else{ var plus_statp = Math.floor(parseInt(stats)+1); document.getElementById("stat_points").innerHTML=plus_statp; var minus_atk = Math.floor(parseInt(atk)-parseInt(Up_ATK)); document.getElementById("atk_stat").innerHTML=minus_atk; } } function IncreaseDEF(){ var stats = document.getElementById("stat_points").innerHTML; if(Math.floor(parseInt(stats)) <= 0){ alert("No more stat points left!"); } else{ var minus_statp = Math.floor(parseInt(stats)-1); document.getElementById("stat_points").innerHTML=minus_statp; var def = document.getElementById("def_stat").innerHTML; var add_def = Math.floor(parseInt(def)+parseInt(Up_DEF)); document.getElementById("def_stat").innerHTML=add_def; } } function DecreaseDEF(){ var stats = document.getElementById("stat_points").innerHTML; var def = document.getElementById("def_stat").innerHTML; if(Math.floor(parseInt(def)) == 0){ alert("You cannot have negative stats!"); } else{ var plus_statp = Math.floor(parseInt(stats)+1); document.getElementById("stat_points").innerHTML=plus_statp; var minus_def = Math.floor(parseInt(def)-parseInt(Up_DEF)); document.getElementById("def_stat").innerHTML=minus_def; } } function UpdateStats(chya){ var stats_left = document.getElementById("stat_points").innerHTML; if(Math.floor(parseInt(stats_left)) > 0){ alert("You still have Stat points left to distribute!\nPlease distribute these points before you Update your stats"); } else{ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c


"; document.getElementById("SlayerTCZ").innerHTML=""; } } } } } function User_Lose(){ document.getElementById("place_b_log").innerHTML=""; var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c


"; } } } } function Quest_Fight(){ if(location.href.match(/rpg\/fight/i)){ if(document.getElementById("monsterlist").innerHTML.match(/Monster List/i)){ document.getElementById("monsterlist").innerHTML=''; } } var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c 0 && rawr[8] != "None"){ for(w in Quest_Bosses){ document.getElementById("rpg_profile_info").innerHTML = "You must travel up the hill side and defeat the beast. Fight this beast? Yes
(Remember, this beast is unknown. So be prepared before you fight him.)"; } } //Quest 2 if(rawr[19] == "b" && rawr[2] > 0 && rawr[8] != "None"){ for(w in Quest_Bosses){ document.getElementById("rpg_profile_info").innerHTML = "Slay the bandits and bring back the Blacksmith\'s Kaldium Metal. Fight the bandits? Yes
"; } } //Quest 3 if(rawr[19] == 4 && rawr[2] > 0 && rawr[8] != "None"){ for(w in Quest_Bosses){ document.getElementById("rpg_profile_info").innerHTML = "Enter beneath the Sewers and slay the evil demon, Fight this Demon? Yes
(Remember, this demon is unknown. So be prepared before you fight!)"; } } //Quest 4 if(rawr[19] == "e" && rawr[2] > 0 && rawr[8] != "None"){ for(w in Quest_Bosses){ document.getElementById("rpg_profile_info").innerHTML = "You search around the Town and after stumbling upon a dirt path you find yourself in front of a Dark Cave...
Enter the Dark Cave? Yes
(Good luck...)"; } } //Quest 5, last Quest if(rawr[19] == 7 && rawr[2] > 0 && rawr[8] != "None"){ for(w in Quest_Bosses){ document.getElementById("rpg_profile_info").innerHTML = "You travel North, into the wilderness only to find yourself before the biggest demon you had ever saw...
Slay this Demon? Hell Yes!
(This is your final Quest, good luck.)"; } } } else{ return; } } } } function Fight_Boss(Boss){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c 0){ document.getElementById("monsterlist").innerHTML=""; document.getElementById("remove_in_battle").innerHTML="

· Attack "+Boss+"
· Use Potion 1
· Use Potion 2

"; document.getElementById("place_b_log").innerHTML="
Battle Log
"; for(s in Classes){ if(rawr[10] == Classes[s][0]){ FightMArea = ""; } } for(r in Quest_Bosses){ if(Boss == Quest_Bosses[r][1]){ FightMArea += "


"; } } FightMArea += "

Your Stats
HP: "+rawr[2]+"/"+rawr[3]+"
MP: "+rawr[4]+"/"+rawr[5]+"
ATK: "+rawr[6]+"
DEF: "+rawr[7]+"
Weapon: "+rawr[8]+"
Armor: "+rawr[9]+"
Items: "+rawr[12]+", "+rawr[13]+"
BATTLE!

"+Boss+" Stats
HP: "+Quest_Bosses[r][2]+"/"+Quest_Bosses[r][2]+"
MP: "+Quest_Bosses[r][3]+"/"+Quest_Bosses[r][3]+"
ATK: "+Quest_Bosses[r][4]+"
DEF: "+Quest_Bosses[r][5]+"
Exp. for kill: "+Quest_Bosses[r][7]+"
"+cur_name+" for kill: "+Quest_Bosses[r][8]+"

"; document.getElementById("rpg_profile_info").innerHTML= FightMArea; } } } } } function Collect_Reward(yah){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c


"; } } //Give User Reward for Quest 2 if(yah == 2){ if(rawr[19] == 3){ window.frames['CheckProfile'].document.forms['posting'].post.value+="[RPGData:"+rawr[0]+"|"+rawr[1]+"|"+Math.floor(parseInt(rawr[2])+parseInt(10))+"|"+Math.floor(parseInt(rawr[3])+parseInt(10))+"|"+Math.floor(parseInt(rawr[4])+parseInt(10))+"|"+Math.floor(parseInt(rawr[5])+parseInt(10))+"|"+Math.floor(parseInt(rawr[6])+parseInt(4))+"|"+Math.floor(parseInt(rawr[7])+parseInt(4))+"|"+rawr[8]+"|"+rawr[9]+"|"+rawr[10]+"|"+rawr[11]+"|"+rawr[12]+"|"+rawr[13]+"|"+rawr[14]+"|"+rawr[15]+"|"+rawr[16]+"|"+rawr[17]+"|"+rawr[18]+"|c|"+rawr[20]+"|"+rawr[21]+"]"; window.frames['CheckProfile'].document.forms['posting'].submit(); document.getElementById("rpg_profile_info").innerHTML="

Updating Quest Information, please wait...



"+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+"



"; } } //Give User Reward for Quest 3 if(yah == 3){ if(rawr[19] == "d"){ alert("+"+Quest_Rewards[0][1]+" "+cur_name); window.frames['CheckProfile'].document.forms['posting'].post.value+="[RPGData:"+Math.floor(parseInt(rawr[0])+parseInt(Quest_Rewards[0][1]))+"|"+rawr[1]+"|"+rawr[2]+"|"+rawr[3]+"|"+rawr[4]+"|"+rawr[5]+"|"+rawr[6]+"|"+rawr[7]+"|"+rawr[8]+"|"+rawr[9]+"|"+rawr[10]+"|"+rawr[11]+"|"+rawr[12]+"|"+rawr[13]+"|"+rawr[14]+"|"+rawr[15]+"|"+rawr[16]+"|"+rawr[17]+"|"+rawr[18]+"|5|"+rawr[20]+"|"+rawr[21]+"]"; window.frames['CheckProfile'].document.forms['posting'].submit(); document.getElementById("rpg_profile_info").innerHTML="

Updating Quest Information, please wait...



"+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+"



"; } } //Give User Reward for Quest 4 if(yah == 4){ if(rawr[19] == 6){ alert("+"+Quest_Rewards[0][2]+" "+cur_name); window.frames['CheckProfile'].document.forms['posting'].post.value+="[RPGData:"+Math.floor(parseInt(rawr[0])+parseInt(Quest_Rewards[0][2]))+"|"+rawr[1]+"|"+rawr[2]+"|"+rawr[3]+"|"+rawr[4]+"|"+rawr[5]+"|"+rawr[6]+"|"+rawr[7]+"|"+rawr[8]+"|"+rawr[9]+"|"+rawr[10]+"|"+rawr[11]+"|"+rawr[12]+"|"+rawr[13]+"|"+rawr[14]+"|"+rawr[15]+"|"+rawr[16]+"|"+rawr[17]+"|"+rawr[18]+"|f|"+rawr[20]+"|"+rawr[21]+"]"; window.frames['CheckProfile'].document.forms['posting'].submit(); document.getElementById("rpg_profile_info").innerHTML="

Updating Quest Information, please wait...



"+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+"



"; } } //Give User Reward for Quest 5 if(yah == 5){ if(rawr[19] == "g"){ alert("+"+Final_Quest[0][0]+" HP\n+"+Final_Quest[0][1]+" MP\n+"+Final_Quest[0][2]+" ATK\n+"+Final_Quest[0][3]+" DEF"); window.frames['CheckProfile'].document.forms['posting'].post.value+="[RPGData:"+rawr[0]+"|"+rawr[1]+"|"+Math.floor(parseInt(rawr[2])+parseInt(Final_Quest[0][0]))+"|"+Math.floor(parseInt(rawr[3])+parseInt(Final_Quest[0][0]))+"|"+Math.floor(parseInt(rawr[4])+parseInt(Final_Quest[0][1]))+"|"+Math.floor(parseInt(rawr[5])+parseInt(Final_Quest[0][1]))+"|"+Math.floor(parseInt(rawr[6])+parseInt(Final_Quest[0][2]))+"|"+Math.floor(parseInt(rawr[7])+parseInt(Final_Quest[0][3]))+"|"+rawr[8]+"|"+rawr[9]+"|"+rawr[10]+"|"+rawr[11]+"|"+rawr[12]+"|"+rawr[13]+"|"+rawr[14]+"|"+rawr[15]+"|"+rawr[16]+"|"+rawr[17]+"|"+rawr[18]+"|8|"+rawr[20]+"|"+rawr[21]+"]"; window.frames['CheckProfile'].document.forms['posting'].submit(); document.getElementById("rpg_profile_info").innerHTML="

Updating Quest Information, please wait...



"+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+"



"; } } } else{ return; } } } } function Accept_Quest(ID){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c


"; } } } } function Visit_TSquare(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c

Hello "+u_name+", and welcome! My name is Warren and I am the Town Elder.

Greetings hero, in my old age it has been very
hard for me to hike up the hill side to
pick flesh flowers for my house. I miss the sweet
smell of flowers in my house, oh sorry I was
ranting on again. I would like you to go up
the hill side and pick me some flowers for me, yes
this is very easy but recently a Monster has been
wrecking havoc up there. So you'll need to defeat the
monster to get the flowers for me.

Would you be willing to help me? Accept
"; } if(rawr[19] == 1){ TSquareArea = "You currently have a Quest
"+right_access+"

Please help me obtain those flowers, I would greatly appreciate
your help. Remember that you must defeat the beast before
you can obtain the flowers.
"; } if(rawr[19] == "a"){ TSquareArea = "You currently have no Quest
"+right_access+"

You have defeated the evil beast, and you
have brought back my flowers! Please accept this reward!


Collect Reward


"; } if(rawr[19] == 2){ c = "b"; TSquareArea = "You currently have no Quest
"+right_access+"

Ah, a customer,

Well you look like a strong person indeed, maybe you could help
me with a small task. I like to make unique weapons and
armor with odd metals I found across these lands. I had a
special shipment coming in from Ragesh. As it was being escorted
here, but a group of bandits raided my shipment and took my special
Kaldium Metal which I was going to use to create a special
weapon with it. Now I cannot do that, them damn bastards! But
since you look so strong and talented I was wondering if you
could possibly take back what was rightfuly mine and I shall make
a special weapon for you in return, what do you say about that? Accept
"; } if(rawr[19] == "b"){ TSquareArea = "You currently have a Quest
"+right_access+"

Please help me obtain the Kaldium Metal. Remember that a group of bandits stole it from me."; } if(rawr[19] == 3){ TSquareArea = "You currently have no Quest
"+right_access+"

Oh thank you very much for returning my Kaldium Metal!.
My shop should now be bursting with new customers! Now that I
have what you returned, I will craft a special item for you. It\'s the least I could do!
Collect Reward
"; } if(rawr[19] == "c"){ TSquareArea = "You currently have no Quest
"+right_access+"

Who are you, and what do you want?

Oh never mind, I thought you were something else. Thank god your
not that thing. Oh your new to town aren\'t ya. Well the
problem is, during the night creepy demonic roars come from the sewers
below me. I can\'t sleep at night because it scares me
half to death. Some of my animals have gone missing as well,
I\'ll say whatever down below is eating my animals. But it\'s too
dangerous to enter the sewers, none of the people of this
town would even be brave enough to enter. But a hero like
yourself would be, do you think you could enter the sewers and
kill whatever is eating my animals and scaring me? Accept
"; } if(rawr[19] == 4){ TSquareArea = "You currently have a Quest
"+right_access+"

Please help me by finding out what is below in the sewers."; } if(rawr[19] == "d"){ TSquareArea = "You currently have no Quest
"+right_access+"

You have slain the demon below?! Thank you very much brave hero! Here, take this reward...
Collect Reward
"; } if(rawr[19] == 5){ a = "e"; TSquareArea = "You currently have no Quest
"+right_access+"

Oh you frighten me..

I\'m sorry that I am a bit jumpie. It\'s just that I
lost my wedding ring and I\'m trying to hide my loss from
my wife. She would kill me if she found out that I
have lost it. But maybe this isn\'t all bad, maybe you could
find it for me? Well the last place I was near
was the town, well it\'s possible that I lost it there.
Think you could help me out by looking for it? Accept
"; } if(rawr[19] == "e"){ TSquareArea = "You currently have a Quest
"+right_access+"

Please help me find my Lost Ring..."; } if(rawr[19] == 6){ TSquareArea = "You currently have no Quest
"+right_access+"

You found my Ring!!! I don\'t even have words to describe what you have done for me!
Maybe this will help: Collect Reward
"; } if(rawr[19] == "f"){ TSquareArea = "You currently have no Quest
"+right_access+"

HERO! By the gods will you help us?! Recently we have spotted
a gigantic monster of some sort off in the wilderness, just north
of here. This monster is performing some sort of ritual and I
believe is planning to destroy all of mankind! You cannot allow
this to happen, you must find this demon and slay him before he destroys us all! Accept
"; } if(rawr[19] == 7){ TSquareArea = "You currently have a Quest
"+right_access+"

Please find this demon and slay him before he finds us..."; } if(rawr[19] == "g"){ TSquareArea = "You currently have no Quest
"+right_access+"

You have done it!!! You defeated the greatest demon of them all!! There is no reward that we could give you for what you have done for us, but please, this might be worthy.
Collect Reward
"; } if(rawr[19] == 8){ TSquareArea = "All Quests completed
"+right_access+"

We are forever in your debt brave hero."; } document.getElementById("rpg_profile_info").innerHTML= TSquareArea; } else{ return; } } } } function Talk_Villager(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c

Hello "+u_name+", and welcome! My name is Bishop and I am a Villager here at the Town.

"+u_name+", it seems to me that you are just starting your adventure.
Well if you would like to obtain a quest, then
you might want to speak with Warren, our Town Elder.
He is the wisest of us all here and will
have much to tell you and maybe even something else.
"; } if(rawr[19] == 1){ TSquareArea = "You currently have a Quest
"+right_access+"

Speak with Warren, the Town Elder for more information.



"; } if(rawr[19] == "a"){ TSquareArea = "You currently have no Quest
"+right_access+"

Thank the heavens you defeated the beast beneath our town!
I am forever grateful, and I hope the Elders' reward
was enough for the trouble. Now that you have
that out of the way there was something I meant
to ask you. I have recently lost my treasured Gem
it was supposed to be a gift to my beloved
wife. Please help me find my Gem and I shall
reward you with what I can.

Would you be willing to help me? Accept
"; } if(rawr[19] == 2){ TSquareArea = "You currently have no Quest
"+right_access+"

The beast...has it been slain?! By the gods! Well done lad! I knew you could do it."; } if(rawr[19] == "b"){ TSquareArea = "You currently have a Quest
"+right_access+"

Our local Blacksmith has been quite stressed at the moment since his
shipment of rare metals has not been seen. I believe he might
have something to ask you.
"; } if(rawr[19] == 3){ TSquareArea = "You currently have no Quest
"+right_access+"

You have retrieved the Blacksmiths\' metal! You should return it to him immediately."; } if(rawr[19] == "c"){ TSquareArea = "You currently have no Quest
"+right_access+"

My lord, you might want to seek out our towns Pet Owner for more information."; } if(rawr[19] == 4){ TSquareArea = "You currently have a Quest
"+right_access+"

Every night I tend to hear strange noises coming from beneath the sewers by the Pet Owners shop..."; } if(rawr[19] == "d"){ TSquareArea = "You currently have no Quest
"+right_access+"

Great job brave hero, you have saved Karen\'s Pet Shop!"; } if(rawr[19] == 5){ TSquareArea = "You currently have no Quest
"+right_access+"

Speak with Blake, our Town Armorer for your quest."; } if(rawr[19] == "e"){ TSquareArea = "You currently have a Quest
"+right_access+"

Speak with Blake, our Town Armorer for your quest."; } if(rawr[19] == 6){ TSquareArea = "You currently have no Quest
"+right_access+"

Return to the Armorer for your reward."; } if(rawr[19] == "f"){ TSquareArea = "You currently have no Quest
"+right_access+"

HERO! By the gods will you help us?! Recently we have spotted
a gigantic monster of some sort off in the wilderness, just north
of here. This monster is performing some sort of ritual and I
believe is planning to destroy all of mankind! You cannot allow
this to happen, you must find this demon and slay him before he destroys us all! Accept
"; } if(rawr[19] == 7){ TSquareArea = "You currently have a Quest
"+right_access+"

Please find this demon and slay him before he finds us..."; } if(rawr[19] == "g"){ TSquareArea = "You currently have no Quest
"+right_access+"

You have done it!!! You defeated the greatest demon of them all!! There is no reward that we could give you for what you have done for us, but please, this might be worthy.
Collect Reward
"; } if(rawr[19] == 8){ TSquareArea = "All Quests completed
"+right_access+"

The skies are beginning to clear again, thanks to you."; } document.getElementById("rpg_profile_info").innerHTML= TSquareArea; } else{ return; } } } } function Talk_Elder(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c

Hello "+u_name+", and welcome! My name is Warren and I am the Town Elder.

I see that you are just starting your adventure "+u_name+".
As you know you have no quest at the moment
you can go around and talk to everyone to obtain
as much information as you possibly can. To start your
adventure I am in need of your help. There have
been rumors of a gigantic beast hidden in the sewers
beneath the town. Please vanquish this beast before he strikes.

Would you be willing to help me? Accept
"; } if(rawr[19] == 1){ TSquareArea = "You currently have a Quest
"+right_access+"

Please help me obtain those flowers, I would greatly appreciate
your help. Remember that you must defeat the beast before
you can obtain the flowers.
"; } if(rawr[19] == "a"){ TSquareArea = "You currently have no Quest
"+right_access+"

You have defeated the evil beast beneath our Town! Please accept this reward!


Collect Reward


"; } if(rawr[19] == 2){ TSquareArea = "You currently have no Quest
"+right_access+"

You truly are a hero, and there hasn\'t been someone of your statue for a long time."; } if(rawr[19] == "b"){ TSquareArea = "You currently have a Quest
"+right_access+"

Please don\'t disturb me."; } if(rawr[19] == 3){ TSquareArea = "You currently have no Quest
"+right_access+"

You seem to amaze me once again with your bravery and potential!
The Blacksmith is going to be thrilled, so you might want to visit him.
"; } if(rawr[19] == "c"){ TSquareArea = "You currently have no Quest
"+right_access+"

Please visit with the Pet Owner, she has been acting quite strange lately..."; } if(rawr[19] == 4){ TSquareArea = "You currently have a Quest
"+right_access+"

Please don\'t disturb me."; } if(rawr[19] == "d"){ TSquareArea = "You currently have no Quest
"+right_access+"

So it was a Evil Demon disturbing the peace..."; } if(rawr[19] == 5){ TSquareArea = "You currently have no Quest
"+right_access+"

Please speak with the Armorer of the Town."; } if(rawr[19] == "e"){ TSquareArea = "You currently have a Quest
"+right_access+"

Please speak with the Armorer of the Town."; } if(rawr[19] == 6){ TSquareArea = "You currently have no Quest
"+right_access+"

Retrieving that Ring was one hell of a job! Well done hero!"; } if(rawr[19] == "f"){ TSquareArea = "You currently have no Quest
"+right_access+"

Much wisdom is gained from a single battle."; } if(rawr[19] == 7){ TSquareArea = "You currently have a Quest
"+right_access+"

Fighting this demon will require the best of anything you can afford,
please be safe brave hero! We are all counting on you!
"; } if(rawr[19] == "g"){ TSquareArea = "You currently have no Quest
"+right_access+"

Current Status is Away."; } if(rawr[19] == 8){ TSquareArea = "All Quests completed
"+right_access+"

We are forever in your debt brave hero."; } document.getElementById("rpg_profile_info").innerHTML= TSquareArea; } else{ return; } } } } function Talk_Blacksmith(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c

Hello "+u_name+", welcome to our Town! I am known as Tyran the Blacksmith.

Well from the looks of it you are new here.
If you would like to obtain a quest, then
you might want to speak with Warren, our Town Elder.
You can speak to me later about quests concerning me.
"; } if(rawr[19] == 1){ TSquareArea = "You currently have a Quest
"+right_access+"

If you are worried about your current quest, speak with Warren.



"; } if(rawr[19] == "a"){ TSquareArea = "You currently have no Quest
"+right_access+"

You have defeated the beast! Thank you!



"; } if(rawr[19] == 2){ c = "b"; TSquareArea = "You currently have no Quest
"+right_access+"

Ah, a customer,

Well you look like a strong person indeed, maybe you could help
me with a small task. I like to make unique weapons and
armor with odd metals I found across these lands. I had a
special shipment coming in from Ragesh. As it was being escorted
here, but a group of bandits raided my shipment and took my special
Kaldium Metal which I was going to use to create a special
weapon with it. Now I cannot do that, them damn bastards! But
since you look so strong and talented I was wondering if you
could possibly take back what was rightfuly mine and I shall make
a special weapon for you in return, what do you say about that? Accept
"; } if(rawr[19] == "b"){ TSquareArea = "You currently have a Quest
"+right_access+"

Please help me obtain the Kaldium Metal. Remember that a group of bandits stole it from me."; } if(rawr[19] == 3){ TSquareArea = "You currently have no Quest
"+right_access+"

Oh thank you very much for returning my Kaldium Metal!.
My shop should now be bursting with new customers! Now that I
have what you returned, I will craft a special item for you. It\'s the least I could do!
Collect Reward
"; } if(rawr[19] == "c"){ TSquareArea = "You currently have no Quest
"+right_access+"

I\'m sorry but I\'m busy at the moment. Please come back later."; } if(rawr[19] == 4){ TSquareArea = "You currently have a Quest
"+right_access+"

The best defense is a good offense!"; } if(rawr[19] == "d"){ TSquareArea = "You currently have no Quest
"+right_access+"

Well done! Karen will be very pleased!"; } if(rawr[19] == 5){ TSquareArea = "You currently have no Quest
"+right_access+"

My neighbor will have the information you need, so speak with Blake."; } if(rawr[19] == "e"){ TSquareArea = "You currently have a Quest
"+right_access+"

My neighbor will have the information you need, so speak with Blake."; } if(rawr[19] == 6){ TSquareArea = "You currently have no Quest
"+right_access+"

My neighbor will have the information you need, so speak with Blake."; } if(rawr[19] == "f"){ TSquareArea = "You currently have no Quest
"+right_access+"

People come from all over the lands to purchase what I have to offer."; } if(rawr[19] == 7){ TSquareArea = "You currently have a Quest
"+right_access+"

I have the finest Weaponry in all the lands, do make your decisions wise."; } if(rawr[19] == "g"){ TSquareArea = "You currently have no Quest
"+right_access+"

Current Status is Away."; } if(rawr[19] == 8){ TSquareArea = "All Quests completed
"+right_access+"

Once again you have proven yourself worthy among the gods."; } document.getElementById("rpg_profile_info").innerHTML= TSquareArea; } else{ return; } } } } function Talk_Innkeeper(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c

Hi there. My name is Helena and I run the Inn in Town.

If you ever need somewhere you stay you can find
me at the Inn. But, "+u_name+", it looks like to
you might want to speak with Warren, our Town Elder.
Your adventure begins with him, so please go speak with him.
"; } if(rawr[19] == 1){ TSquareArea = "You currently have a Quest
"+right_access+"

Find out where Warren is and he will give you more information.



"; } if(rawr[19] == "a"){ TSquareArea = "You currently have no Quest
"+right_access+"

Thank you young hero for saving us from the beast!"; } if(rawr[19] == 2){ TSquareArea = "You currently have no Quest
"+right_access+"

Hello there. Our Blacksmith has been spending alot of time at the Pub recently.
You should head over to the Blacksmith and see how he is doing.
"; } if(rawr[19] == "b"){ TSquareArea = "You currently have a Quest
"+right_access+"

I don\'t have any information for you at this
time. Please check back later.
"; } if(rawr[19] == 3){ TSquareArea = "You currently have no Quest
"+right_access+"

ZzZzZzZzZz..."; } if(rawr[19] == "c"){ TSquareArea = "You currently have no Quest
"+right_access+"

Hi there, you should go talk to the Pet Owner. I hear she\'s in need of some assistance."; } if(rawr[19] == 4){ TSquareArea = "You currently have a Quest
"+right_access+"

I don\'t have any information for you at this
time. Please check back later.
"; } if(rawr[19] == "d"){ TSquareArea = "You currently have no Quest
"+right_access+"

I don\'t have any information for you at this
time. Please check back later.
"; } if(rawr[19] == 5){ TSquareArea = "You currently have no Quest
"+right_access+"

My Inn seems to be running slow lately on business..."; } if(rawr[19] == "e"){ TSquareArea = "You currently have a Quest
"+right_access+"

Please speak with the Armorer."; } if(rawr[19] == 6){ TSquareArea = "You currently have no Quest
"+right_access+"

Please speak with the Armorer."; } if(rawr[19] == "f"){ TSquareArea = "You currently have no Quest
"+right_access+"

When you are in need of healing, please stop by my Inn and you will leave feeling healthy again."; } if(rawr[19] == 7){ TSquareArea = "You currently have a Quest
"+right_access+"

Brave hero, you fear nothing, though seeing the size of
this demon makes me feel that you can\'t defeat him...but I believe in you!
"; } if(rawr[19] == "g"){ TSquareArea = "You currently have no Quest
"+right_access+"

Current Status is Away."; } if(rawr[19] == 8){ TSquareArea = "All Quests completed
"+right_access+"

Complete bravery for you to slay such a demon...well done hero."; } document.getElementById("rpg_profile_info").innerHTML= TSquareArea; } else{ return; } } } } function Talk_Armorer(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c

Hello to you. I am known as Blake and the Armory is my home.

If you are just starting your adventure then you might
want to speak with Warren, our Town Elder for your quest.
Be careful, and always remember to have the best armor you can get!
"; } if(rawr[19] == 1){ TSquareArea = "You currently have a Quest
"+right_access+"

Warren is the person you should seek for more information.



"; } if(rawr[19] == "a"){ TSquareArea = "You currently have no Quest
"+right_access+"

I have heard that you defeated the beast, well done me lord! Now that you are
back you must buy my Armor! You will need it for upcoming fights!
"; } if(rawr[19] == 2){ TSquareArea = "You currently have no Quest
"+right_access+"

Please speak with my neighbor, the Blacksmith. He seems troubled."; } if(rawr[19] == "b"){ TSquareArea = "You currently have a Quest
"+right_access+"

Haha! Now that the Blacksmith shipment has dwindled down, I have been
bursting with many customers! If you have any time, stop down by
my Armory for our finest Armor in the lands!
"; } if(rawr[19] == 3){ TSquareArea = "You currently have no Quest
"+right_access+"

Gah! You did manage to find the Blacksmiths\' Kaldium Metal...
Well I congratulate you, this still doesn\'t mean the Blacksmith
will triumph over me in sales!
"; } if(rawr[19] == "c"){ TSquareArea = "You currently have no Quest
"+right_access+"

Sorry mate but I\'m a bit busy at the moment!"; } if(rawr[19] == 4){ TSquareArea = "You currently have a Quest
"+right_access+"

You might want to pack up with what you need before you enter a battle!"; } if(rawr[19] == "d"){ TSquareArea = "You currently have no Quest
"+right_access+"

Make sure you always carry at least the best armor you can afford."; } if(rawr[19] == 5){ a = "e"; TSquareArea = "You currently have no Quest
"+right_access+"

Oh you frighten me..

I\'m sorry that I am a bit jumpie. It\'s just that I
lost my wedding ring and I\'m trying to hide my loss from
my wife. She would kill me if she found out that I
have lost it. But maybe this isn\'t all bad, maybe you could
find it for me? Well the last place I was near
was the town, well it\'s possible that I lost it there.
Think you could help me out by looking for it? Accept
"; } if(rawr[19] == "e"){ TSquareArea = "You currently have a Quest
"+right_access+"

Please help me find my Lost Ring..."; } if(rawr[19] == 6){ TSquareArea = "You currently have no Quest
"+right_access+"

You found my Ring!!! I don\'t even have words to describe what you have done for me!
Maybe this will help: Collect Reward
"; } if(rawr[19] == "f"){ TSquareArea = "You currently have no Quest
"+right_access+"

Speak with the Villager, he seems to act like he knows something of value."; } if(rawr[19] == 7){ TSquareArea = "You currently have a Quest
"+right_access+"

My Armor has been considered useful by all Knights of these lands."; } if(rawr[19] == "g"){ TSquareArea = "You currently have no Quest
"+right_access+"

Current Status is Away."; } if(rawr[19] == 8){ TSquareArea = "All Quests completed
"+right_access+"

I knew you could do it! Now you can pretty much slay anything! Just don\'t get the idea of slaying me..."; } document.getElementById("rpg_profile_info").innerHTML= TSquareArea; } else{ return; } } } } function Talk_Bank(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c

My name is Marcus, you will find me in the Bank.

For all of your banking needs please visit me at the bank.
You should speak with Warren, our Town Elder for your quest.
Your beginning adventure should always be remembered!
"; } if(rawr[19] == 1){ TSquareArea = "You currently have a Quest
"+right_access+"

Seek out Warren for more information.



"; } if(rawr[19] == "a"){ TSquareArea = "You currently have no Quest
"+right_access+"

Wow! The beast, you defeated it?! Very well done!"; } if(rawr[19] == 2){ TSquareArea = "You currently have no Quest
"+right_access+"

Please do not disturb me."; } if(rawr[19] == "b"){ TSquareArea = "You currently have a Quest
"+right_access+"

I\'m sorry but I don\'t have any information for you at this time.
You should try speaking with the Blacksmith.
"; } if(rawr[19] == 3){ TSquareArea = "You currently have no Quest
"+right_access+"

Very good young hero, you\'ve managed to find what the Blacksmith was
looking for! Now this means more customers for me!
"; } if(rawr[19] == "c"){ TSquareArea = "You currently have no Quest
"+right_access+"

Please come back at a later time."; } if(rawr[19] == 4){ TSquareArea = "You currently have a Quest
"+right_access+"

One hundred years ago there was a mighty warrior who destroyed an entire army single handed!"; } if(rawr[19] == "d"){ TSquareArea = "You currently have no Quest
"+right_access+"

Thank you for saving Karen\'s Pet shop! She will have a reward if you seek her out."; } if(rawr[19] == 5){ TSquareArea = "You currently have no Quest
"+right_access+"

Please visit later, I am busy..."; } if(rawr[19] == "e"){ TSquareArea = "You currently have a Quest
"+right_access+"

Please visit later, I am busy..."; } if(rawr[19] == 6){ TSquareArea = "You currently have no Quest
"+right_access+"

Great work once again brave hero, Blake will be thrilled!"; } if(rawr[19] == "f"){ TSquareArea = "You currently have no Quest
"+right_access+"

The Villager has been acting quite strange lately...you might want to talk to him."; } if(rawr[19] == 7){ TSquareArea = "You currently have a Quest
"+right_access+"

This demon that was spotted recently is the largest creature I have ever seen..."; } if(rawr[19] == "g"){ TSquareArea = "You currently have no Quest
"+right_access+"

Current Status is Away."; } if(rawr[19] == 8){ TSquareArea = "All Quests completed
"+right_access+"

May the gods see you as one of the mightiest."; } document.getElementById("rpg_profile_info").innerHTML= TSquareArea; } else{ return; } } } } function Talk_PetOwner(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c

Hello "+u_name+". My name is Karen, and loving Pets is my passion.

If you are curious as to where to start your adventure
you should find Warren, our Town Elder.
Remember that if you would ever need a companion to
help you on you adventure, please visit me at the Pet Shop.
"; } if(rawr[19] == 1){ TSquareArea = "You currently have a Quest
"+right_access+"

Warren, the Town Elder would be the person to talk to for more information.



"; } if(rawr[19] == "a"){ TSquareArea = "You currently have no Quest
"+right_access+"

The evil beast has been vanquished! My pets and I are extremely grateful!"; } if(rawr[19] == 2){ TSquareArea = "You currently have no Quest
"+right_access+"

My information is limited, try asking around."; } if(rawr[19] == "b"){ TSquareArea = "You currently have a Quest
"+right_access+"

Please don\'t disturb me."; } if(rawr[19] == 3){ TSquareArea = "You currently have no Quest
"+right_access+"

I thank you for helping out our townsfolk. May you have good
fortune on journeys to come.
"; } if(rawr[19] == "c"){ TSquareArea = "You currently have no Quest
"+right_access+"

Who are you, and what do you want?

Oh never mind, I thought you were something else. Thank god your
not that thing. Oh your new to town aren\'t ya. Well the
problem is, during the night creepy demonic roars come from the sewers
below me. I can\'t sleep at night because it scares me
half to death. Some of my animals have gone missing as well,
I\'ll say whatever down below is eating my animals. But it\'s too
dangerous to enter the sewers, none of the people of this
town would even be brave enough to enter. But a hero like
yourself would be, do you think you could enter the sewers and
kill whatever is eating my animals and scaring me? Accept
"; } if(rawr[19] == 4){ TSquareArea = "You currently have a Quest
"+right_access+"

Please help me by finding out what is below in the sewers."; } if(rawr[19] == "d"){ TSquareArea = "You currently have no Quest
"+right_access+"

You have slain the demon below?! Thank you very much brave hero! Here, take this reward...
Collect Reward
"; } if(rawr[19] == 5){ TSquareArea = "You currently have no Quest
"+right_access+"

Please come back later, I am a bit busy right now tending to my Pets."; } if(rawr[19] == "e"){ TSquareArea = "You currently have a Quest
"+right_access+"

Please come back later, I am a bit busy right now tending to my Pets."; } if(rawr[19] == 6){ TSquareArea = "You currently have no Quest
"+right_access+"

Blake has been so lost without his ring, and now that you have it he will be grateful!"; } if(rawr[19] == "f"){ TSquareArea = "You currently have no Quest
"+right_access+"

My Pets are marvelous creatures, though lately they have been acting very strange..."; } if(rawr[19] == 7){ TSquareArea = "You currently have a Quest
"+right_access+"

Please do find out what is wrong, I hate seeing my Pets like this."; } if(rawr[19] == "g"){ TSquareArea = "You currently have no Quest
"+right_access+"

Current Status is Away."; } if(rawr[19] == 8){ TSquareArea = "All Quests completed
"+right_access+"

Finally we are at peace and my Pets are playful as ever! Thank you hero!"; } document.getElementById("rpg_profile_info").innerHTML= TSquareArea; } else{ return; } } } } function Visit_Bank(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;cyou have, or you can withdraw deposited "+cur_name+" from your
Bank Account!


Your Bank Information

Current "+cur_name+": "+rawr[0]+"
Current Deposited "+cur_name+": "+rawr[17]+"
Clear my Bank Account? Yes
(Clearing your Bank Account will result in the loss of current deposited "+cur_name+")


Deposit "+cur_name+":


Withdraw "+cur_name+":
"; } else{ BankArea = "You have no Bank Account, Create Bank Account."; } document.getElementById("rpg_profile_info").innerHTML= BankArea; } else{ return; } } } } function DepositIt(){ var get_deposit = document.getElementById("deposit_gold").value; var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c rawr[0] && get_deposit.match(/^\d+$/i)){ alert("You don\'t have enough to deposit!"); } if(Math.floor(parseInt(get_deposit)) == 0 && get_deposit.match(/^\d+$/i)){ alert("Why deposit zero...?"); } if(!get_deposit.match(/^\d+$/i)){ alert("Please input a NUMBER!"); } if(Math.floor(parseInt(get_deposit)) <= rawr[0] && get_deposit.match(/^\d+$/i) && (Math.floor(parseInt(get_deposit)) != 0)){ window.frames['CheckProfile'].document.forms['posting'].post.value+="[RPGData:"+Math.floor(parseInt(rawr[0])-parseInt(get_deposit))+"|"+rawr[1]+"|"+rawr[2]+"|"+rawr[3]+"|"+rawr[4]+"|"+rawr[5]+"|"+rawr[6]+"|"+rawr[7]+"|"+rawr[8]+"|"+rawr[9]+"|"+rawr[10]+"|"+rawr[11]+"|"+rawr[12]+"|"+rawr[13]+"|"+rawr[14]+"|"+rawr[15]+"|"+rawr[16]+"|"+Math.floor(parseInt(rawr[17])+parseInt(get_deposit))+"|"+rawr[18]+"|"+rawr[19]+"|"+rawr[20]+"|"+rawr[21]+"]"; window.frames['CheckProfile'].document.forms['posting'].submit(); document.getElementById("rpg_profile_info").innerHTML="

Depositing "+cur_name+", please wait...



"+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+"



"; } } } } } function WithdrawIt(){ var get_withdraw = document.getElementById("withdraw_gold").value; var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c rawr[17] && get_withdraw.match(/^\d+$/i)){ alert("You don\'t have enough to withdraw!"); } if(Math.floor(parseInt(get_withdraw)) == 0 && get_withdraw.match(/^\d+$/i)){ alert("Why withdraw zero...?"); } if(!get_withdraw.match(/^\d+$/i)){ alert("Please input a NUMBER!"); } if(Math.floor(parseInt(get_withdraw)) <= rawr[17] && get_withdraw.match(/^\d+$/i) && (Math.floor(parseInt(get_withdraw)) != 0)){ window.frames['CheckProfile'].document.forms['posting'].post.value+="[RPGData:"+Math.floor(parseInt(rawr[0])+parseInt(get_withdraw))+"|"+rawr[1]+"|"+rawr[2]+"|"+rawr[3]+"|"+rawr[4]+"|"+rawr[5]+"|"+rawr[6]+"|"+rawr[7]+"|"+rawr[8]+"|"+rawr[9]+"|"+rawr[10]+"|"+rawr[11]+"|"+rawr[12]+"|"+rawr[13]+"|"+rawr[14]+"|"+rawr[15]+"|"+rawr[16]+"|"+Math.floor(parseInt(rawr[17])-parseInt(get_withdraw))+"|"+rawr[18]+"|"+rawr[19]+"|"+rawr[20]+"|"+rawr[21]+"]"; window.frames['CheckProfile'].document.forms['posting'].submit(); document.getElementById("rpg_profile_info").innerHTML="

Withdrawing "+cur_name+", please wait...



"+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+"



"; } } } } } function Visit_Inn(){ if(location.href.match(/rpg\/fight/i)){ if(document.getElementById("monsterlist").innerHTML.match(/Monster List/i)){ document.getElementById("monsterlist").innerHTML=''; } } var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;cbelow, remember you must have enough "+cur_name+" to do so.


Your level is "+Max_Levelh+" or below, so you can stay for free!
Price to stay the night: Free!
Your Current "+cur_name+": "+rawr[0]+"
Your Current health: "+rawr[2]+"
Max Health: "+rawr[3]+"
Your Current Magic: "+rawr[4]+"
Max Magic: "+rawr[5]+"

Replenish my life"; } if(rawr[1] > Max_Levelh){ InnArea = "
Welcome to the Inn! In here you are able to restore your
Health and Magic points. Just simply click the \"Replenish my life\" link
below, remember you must have enough "+cur_name+" to do so.

Your level is above "+Max_Levelh+", so you must pay full price!
Price to stay the night: "+Inn_price+"
Your Current "+cur_name+": "+rawr[0]+"
Your Current health: "+rawr[2]+"
Max Health: "+rawr[3]+"
Your Current Magic: "+rawr[4]+"
Max Magic: "+rawr[5]+"

Replenish my life"; } document.getElementById("rpg_profile_info").innerHTML= InnArea; } else{ return; } } } } function InnFill(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c= Inn_price) && (rawr[2] != rawr[3] || rawr[4] != rawr[5])){ window.frames['CheckProfile'].document.forms['posting'].post.value+="[RPGData:"+Math.floor(parseInt(rawr[0])-Inn_price)+"|"+rawr[1]+"|"+rawr[3]+"|"+rawr[3]+"|"+rawr[5]+"|"+rawr[5]+"|"+rawr[6]+"|"+rawr[7]+"|"+rawr[8]+"|"+rawr[9]+"|"+rawr[10]+"|"+rawr[11]+"|"+rawr[12]+"|"+rawr[13]+"|"+rawr[14]+"|"+rawr[15]+"|"+rawr[16]+"|"+rawr[17]+"|"+rawr[18]+"|"+rawr[19]+"|"+rawr[20]+"|"+rawr[21]+"]"; window.frames['CheckProfile'].document.forms['posting'].submit(); document.getElementById("rpg_profile_info").innerHTML="

Replenishing Life, please wait...



"+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+"



"; } } } } } function InnFillFree(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c


"; } } } } } function Visit_Blacksmith(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c: "+rawr[0]+"
Blacksmith Equipment
"; BArea += ""; for(i=0;i"; } BArea += "
Weapon NamePriceDescriptionAttackBuy"+B_Weapons[i][1]+""+B_Weapons[i][2]+""+B_Weapons[i][3]+""+B_Weapons[i][4]+"[ Buy ]

My Equipment
"; BArea += ""; for(h in B_Weapons){ if(rawr[8] == B_Weapons[h][1] && rawr[8] != "None"){ BArea += "
Weapon NameValueSell
"+B_Weapons[h][1]+""+Math.floor(parseInt(B_Weapons[h][2])/2)+"[ Sell ]
"; } } if(rawr[8] == "None"){ BArea+="NoneNoneNone"; } document.getElementById("rpg_profile_info").innerHTML = BArea; } else{ return; } } } } function buyItem(name,price,atk){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c= price){ window.frames['CheckProfile'].document.forms['posting'].post.value+="[RPGData:"+Math.floor(parseInt(rawr[0])-parseInt(price))+"|"+rawr[1]+"|"+rawr[2]+"|"+rawr[3]+"|"+rawr[4]+"|"+rawr[5]+"|"+Math.floor(parseInt(rawr[6])+parseInt(atk))+"|"+rawr[7]+"|"+name+"|"+rawr[9]+"|"+rawr[10]+"|"+rawr[11]+"|"+rawr[12]+"|"+rawr[13]+"|"+rawr[14]+"|"+rawr[15]+"|"+rawr[16]+"|"+rawr[17]+"|"+rawr[18]+"|"+rawr[19]+"|"+rawr[20]+"|"+rawr[21]+"]"; window.frames['CheckProfile'].document.forms['posting'].submit(); document.getElementById("rpg_profile_info").innerHTML="

Adding "+name+" to Inventory, please wait...



"+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+"



"; } } } } } function sellItem(name,price,atk){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c


"+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+"



"; } } } } } function Visit_Armory(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c: "+rawr[0]+"
Armory Equipment
"; BArea += ""; for(i=0;i"; } BArea += "
Armor NamePriceDescriptionDefenseBuy"+A_Armor[i][1]+""+A_Armor[i][2]+""+A_Armor[i][3]+""+A_Armor[i][4]+"[ Buy ]

My Equipment
"; BArea += ""; for(h in A_Armor){ if(rawr[9] == A_Armor[h][1] && rawr[9] != "None"){ BArea += "
Armor NameValueSell
"+A_Armor[h][1]+""+Math.floor(parseInt(A_Armor[h][2])/2)+"[ Sell ]
"; } } if(rawr[9] == "None"){ BArea+="NoneNoneNone"; } document.getElementById("rpg_profile_info").innerHTML = BArea; } else{ return; } } } } function buyItem2(name,price,def){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c= price){ window.frames['CheckProfile'].document.forms['posting'].post.value+="[RPGData:"+Math.floor(parseInt(rawr[0])-parseInt(price))+"|"+rawr[1]+"|"+rawr[2]+"|"+rawr[3]+"|"+rawr[4]+"|"+rawr[5]+"|"+rawr[6]+"|"+Math.floor(parseInt(rawr[7])+parseInt(def))+"|"+rawr[8]+"|"+name+"|"+rawr[10]+"|"+rawr[11]+"|"+rawr[12]+"|"+rawr[13]+"|"+rawr[14]+"|"+rawr[15]+"|"+rawr[16]+"|"+rawr[17]+"|"+rawr[18]+"|"+rawr[19]+"|"+rawr[20]+"|"+rawr[21]+"]"; window.frames['CheckProfile'].document.forms['posting'].submit(); document.getElementById("rpg_profile_info").innerHTML="

Adding "+name+" to Inventory, please wait...



"+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+"



"; } } } } } function sellItem2(name,price,def){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c


"+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+"



"; } } } } } function Visit_Item(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c: "+rawr[0]+"
Item Shop
"; IArea += ""; for(i=0;i"; } IArea += "
Item NamePriceDescriptionHP +MP +Buy"+Items[i][1]+""+Items[i][2]+""+Items[i][3]+""+Items[i][4]+""+Items[i][5]+"[ Buy ]

My Items
"; IArea += ""; for(h in Items){ if(rawr[12] == Items[h][1] && rawr[12] != "None"){ IArea += ""; } if(rawr[13] == Items[h][1] && rawr[13] != "None"){ IArea += ""; } } if(rawr[12] == "None" && rawr[13] == "None"){ IArea+=""; } IArea += "
Item NameValueSell
"+Items[h][1]+""+Math.floor(parseInt(Items[h][2])/2)+"[ Sell ]
"+Items[h][1]+""+Math.floor(parseInt(Items[h][2])/2)+"[ Sell ]
NoneNoneNone
"; document.getElementById("rpg_profile_info").innerHTML = IArea; } else{ return; } } } } function Visit_Stats_Shop(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c: "+rawr[0]+"
Stats Shop
"; SIArea += ""; for(i in Stat_Items){ SIArea += ""; } SIArea += "
Stat NamePriceDescriptionHP +MP +ATK +DEF +Buy
"+Stat_Items[i][1]+""+Stat_Items[i][2]+""+Stat_Items[i][3]+""+Stat_Items[i][4]+""+Stat_Items[i][5]+""+Stat_Items[i][6]+""+Stat_Items[i][7]+"[ Buy ]

My Current Stat Item(s)
"; SIArea += ""; for(h in Stat_Items){ if(rawr[18] == Stat_Items[h][1] && rawr[18] != "None"){ SIArea += ""; } } if(rawr[18] == "None"){ SIArea+=""; } SIArea += "
Item NameValueSell
"+Stat_Items[h][1]+""+Math.floor(parseInt(Stat_Items[h][2])/2)+"[ Sell ]
NoneNoneNone
"; document.getElementById("rpg_profile_info").innerHTML = SIArea; } else{ return; } } } } function buyStat(name,price){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c= price){ window.frames['CheckProfile'].document.forms['posting'].post.value+="[RPGData:"+Math.floor(parseInt(rawr[0])-parseInt(price))+"|"+rawr[1]+"|"+rawr[2]+"|"+rawr[3]+"|"+rawr[4]+"|"+rawr[5]+"|"+rawr[6]+"|"+rawr[7]+"|"+rawr[8]+"|"+rawr[9]+"|"+rawr[10]+"|"+rawr[11]+"|"+rawr[12]+"|"+rawr[13]+"|"+rawr[14]+"|"+rawr[15]+"|"+rawr[16]+"|"+rawr[17]+"|"+name+"|"+rawr[19]+"|"+rawr[20]+"|"+rawr[21]+"]"; window.frames['CheckProfile'].document.forms['posting'].submit(); document.getElementById("rpg_profile_info").innerHTML="

Adding "+name+" to Inventory, please wait...



"+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+"



"; } } } } } } function sellStat(name,price){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c


"+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+"



"; } } } } } } function buyItems(name,price){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c= price){ window.frames['CheckProfile'].document.forms['posting'].post.value+="[RPGData:"+Math.floor(parseInt(rawr[0])-parseInt(price))+"|"+rawr[1]+"|"+rawr[2]+"|"+rawr[3]+"|"+rawr[4]+"|"+rawr[5]+"|"+rawr[6]+"|"+rawr[7]+"|"+rawr[8]+"|"+rawr[9]+"|"+rawr[10]+"|"+rawr[11]+"|"+name+"|"+rawr[13]+"|"+rawr[14]+"|"+rawr[15]+"|"+rawr[16]+"|"+rawr[17]+"|"+rawr[18]+"|"+rawr[19]+"|"+rawr[20]+"|"+rawr[21]+"]"; window.frames['CheckProfile'].document.forms['posting'].submit(); document.getElementById("rpg_profile_info").innerHTML="

Adding "+name+" to Inventory, please wait...



"+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+"



"; } if(rawr[13] == "None" && name == Items[1][1] && Math.floor(parseInt(rawr[0])) >= price){ window.frames['CheckProfile'].document.forms['posting'].post.value+="[RPGData:"+Math.floor(parseInt(rawr[0])-parseInt(price))+"|"+rawr[1]+"|"+rawr[2]+"|"+rawr[3]+"|"+rawr[4]+"|"+rawr[5]+"|"+rawr[6]+"|"+rawr[7]+"|"+rawr[8]+"|"+rawr[9]+"|"+rawr[10]+"|"+rawr[11]+"|"+rawr[12]+"|"+name+"|"+rawr[14]+"|"+rawr[15]+"|"+rawr[16]+"|"+rawr[17]+"|"+rawr[18]+"|"+rawr[19]+"|"+rawr[20]+"|"+rawr[21]+"]"; window.frames['CheckProfile'].document.forms['posting'].submit(); document.getElementById("rpg_profile_info").innerHTML="

Adding "+name+" to Inventory, please wait...



"+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+"



"; } } } } } function sellItems(name,price){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c


"+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+"



"; } if(rawr[13] == name && Items[1][1] == rawr[13]){ window.frames['CheckProfile'].document.forms['posting'].post.value+="[RPGData:"+Math.floor(parseInt(rawr[0])+parseInt(price))+"|"+rawr[1]+"|"+rawr[2]+"|"+rawr[3]+"|"+rawr[4]+"|"+rawr[5]+"|"+rawr[6]+"|"+rawr[7]+"|"+rawr[8]+"|"+rawr[9]+"|"+rawr[10]+"|"+rawr[11]+"|"+rawr[12]+"|None|"+rawr[14]+"|"+rawr[15]+"|"+rawr[16]+"|"+rawr[17]+"|"+rawr[18]+"|"+rawr[19]+"|"+rawr[20]+"|"+rawr[21]+"]"; window.frames['CheckProfile'].document.forms['posting'].submit(); document.getElementById("rpg_profile_info").innerHTML="

Removing "+name+" from Inventory, please wait...



"+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+"



"; } } } } } function Visit_Pet(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;cExperience: "+rawr[11]+"
Experience for next level: "+(exp_needed-rawr[11])+"
"+cur_name+": "+rawr[0]+"

HP: "+rawr[2]+"/"+rawr[3]+"
MP: "+rawr[4]+"/"+rawr[5]+"
ATK: "+rawr[6]+"
DEF: "+rawr[7]+"
Class: "+rawr[10]+"
Guild: "+rawr[21]+""; } else{ return; } } } } function User_Inventory(){ if(location.href.match(/rpg\/fight/i)){ if(document.getElementById("monsterlist").innerHTML.match(/Monster List/i)){ document.getElementById("monsterlist").innerHTML=''; } } var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c "+B_Weapons[b][1]+"
Description: "+B_Weapons[b][3]+"
Attack: "+B_Weapons[b][4]+"
Sell Value: "+Math.floor(parseInt(B_Weapons[b][2])/2)+"
"; } } for(l in A_Armor){ if(rawr[9] == A_Armor[l][1]){ document.getElementById("rpg_user_info").innerHTML+="
Armor Details
-------------
"+A_Armor[l][1]+"
Description: "+A_Armor[l][3]+"
Defense: "+A_Armor[l][4]+"
Sell Value: "+Math.floor(parseInt(A_Armor[l][2])/2)+"
"; } } for(v in Items){ if(rawr[12] == Items[v][1]){ document.getElementById("rpg_user_info").innerHTML+="
Item Details
-------------
"+Items[v][1]+"
Description: "+Items[v][3]+"
HP+: "+Items[v][4]+"
MP+: "+Items[v][5]+"
Sell Value: "+Math.floor(parseInt(Items[v][2])/2)+"

"; } } for(p in Items){ if(rawr[13] == Items[p][1]){ document.getElementById("rpg_user_info").innerHTML+="
Item Details
-------------
"+Items[p][1]+"
Description: "+Items[v][3]+"
HP+: "+Items[v][4]+"
MP+: "+Items[v][5]+"
Sell Value: "+Math.floor(parseInt(Items[v][2])/2)+"

"; } } for(o in Stat_Items){ if(rawr[18] == Stat_Items[o][1]){ document.getElementById("rpg_user_info").innerHTML+="
Stat Item Details
-------------
"+Stat_Items[o][1]+" (Use)
Description: "+Stat_Items[o][3]+"
HP+: "+Stat_Items[o][4]+"
MP+: "+Stat_Items[o][5]+"
ATK+: "+Stat_Items[o][6]+"
DEF+: "+Stat_Items[o][7]+"
Sell Value: "+Math.floor(parseInt(Stat_Items[o][2])/2)+"

"; } } if(rawr[8] == "None" && rawr[9] == "None" && rawr[12] == "None" && rawr[13] == "None" && rawr[18] == "None"){ document.getElementById("rpg_user_info").innerHTML+="

No Inventory"; } else{ return; } } } } } function UseStat(name){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c


"; } } } } function Bank_Stats(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c "+rawr[0]+"
Current Deposited "+cur_name+": "+rawr[17]+"
"; if(rawr[16] == 1){ BankArea += "Bank Account: Yes"; } else{ BankArea += "Bank Account: None"; } document.getElementById("rpg_profile_info").innerHTML= BankArea; } else{ return; } } } } function User_Battles(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c 0 || rawr[15] > 0){ var b_per = Math.round((parseInt(rawr[14])/(parseInt(rawr[14])+parseInt(rawr[15])))*100); var b_total = Math.floor(parseInt(rawr[14])+parseInt(rawr[15])); document.getElementById("rpg_profile_info").innerHTML="User Battle Stats

Battles Won: "+rawr[14]+"/"+b_total+"
Battles Lost: "+rawr[15]+"/"+b_total+"
Battles Percentage: "+b_per+"%"; } else if(rawr[14] == 0 || rawr[15] == 0){ var b_per = Math.round((parseInt(rawr[14])/(parseInt(rawr[14])+parseInt(rawr[15])))*100); var b_total = Math.floor(parseInt(rawr[14])+parseInt(rawr[15])); document.getElementById("rpg_profile_info").innerHTML="User Battle Stats

Battles Won: "+rawr[14]+"/"+b_total+"
Battles Lost: "+rawr[15]+"/"+b_total+"
Battles Percentage: 0%"; } } else{ return; } } } } function User_Party(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c


"; } } } } } function CleanBankAccount(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c


"; } } } } function CreateBankAccount(){ var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c


"; } } } } function CheckForProfile(){ if(location.href.match(/\/rpg\/fight/i)){ if(document.getElementById("remove_in_battle").innerHTML.match(/You were defeated/i) || document.getElementById("remove_in_battle").innerHTML.match(/You were victorious/i)){ document.getElementById("remove_in_battle").innerHTML='· View Stats
· View Inventory
· Challenge a Monster
· Quest Battle!
· Player vs Player
· Visit Inn'; } } f=0; noRPG = true; var a = window.frames['CheckProfile'].document.getElementsByTagName("td"); for(c=0;c 1 && a[c].innerHTML.match(/RPGData:(.[^\]]*)/i)){ noRPG = false; document.getElementById("rpg_profile_info").innerHTML="From this point on you are able to access a right side panel with extra areas.
Please use these areas to your convenience."; return false; } } if(f <= 2){ if(noRPG == true){ a='Choose your Class:



Class Information

'; for(c in Classes){ a+='


Class Name: '+Classes[c][0]+'

HP: '+Classes[c][1]+'/'+Classes[c][1]+'
MP: '+Classes[c][2]+'/'+Classes[c][2]+'
ATK: '+Classes[c][3]+'
DEF: '+Classes[c][4]+'

'; } document.getElementById("rpg_profile_info").innerHTML = a } } } function SetRPGProfile(tehwhat){ for(h in Classes){ if(tehwhat == Classes[h][0]){ //Currency,Level,HP,MaxHP,MP,MaxMP,ATK,DEF,Weapon,Armor,Class,Exp,Item1,Item2,Wins,Loses,Bank Account(0=No1=Yes),Deposited Currency,StatItemHolder,QuestID,QuestItem,Guild window.frames['CheckProfile'].document.forms['posting'].post.value+="[RPGData:"+default_amount+"|1|"+Classes[h][1]+"|"+Classes[h][1]+"|"+Classes[h][2]+"|"+Classes[h][2]+"|"+Classes[h][3]+"|"+Classes[h][4]+"|None|None|"+tehwhat+"|0|None|None|0|0|0|0|None|0|None|None]"; window.frames['CheckProfile'].document.forms['posting'].submit(); document.getElementById("rpg_profile_info").innerHTML="

Creating your RPG Profile, please wait...



"+RandomMessages[Math.floor(Math.random()*RandomMessages.length)]+"



"; } } } if(location.href==top.location.href && location.href.match(/\?c/i) && location.href.match(/=32/i)){ backup="" if(document.forms['posting'].post.value.match(/\[RPGData:(.*)\]/i)){ backup="[RPGData:"+RegExp.$1+"]" document.forms['posting'].post.value=document.forms['posting'].post.value.split("[RPGData:"+RegExp.$1+"]").join("") } document.forms['posting'].onsubmit=function(){ if(document.forms['posting'].post.value.match(/\[RPGData:(.*)\]/i)){ document.forms['posting'].post.value=document.forms['posting'].post.value.split("[RPGData:"+RegExp.$1+"]").join("") } document.forms['posting'].post.value=backup+document.forms['posting'].post.value } var a = document.getElementsByTagName("td"); for(c=0;c
Experience:
"+rawr[11]+"
Exp. to next lvl.:
"+(exp_needed-rawr[11])+"
"+cur_name+"
"+rawr[0]+"
HP:
"+rawr[2]+"/"+rawr[3]+"
MP
"+rawr[4]+"/"+rawr[5]+"
ATK:
"+rawr[6]+"
DEF:
"+rawr[7]+"
Class:
"+rawr[10]+"
Guild:
"+rawr[21]+"
"; } } } } var topic = document.getElementsByTagName("td"); for(hide=0;hide