[code] Marvel Battle Beta
Page 1 of 1
[code] Marvel Battle Beta
IFX Arena Beta v1.0
Marvel SuperHeros
<Javascript>
<% Copyrite %>
Marvel SuperHeros
<Javascript>
<script type="text/javascript">
<!--
function currLocation()
{
alert(window.location)
}
function newLocation()
{
window.location="http://zX.invisionfree.com/Your Board/index.php?act=Msg&CODE=03"
}
var battleText="<center><font color=yellow>A T T A C K !!</font></center>"
frmAddress="http://zX.invisionfree.com/Your Board/"
frmBattle1="index.php?act=SR&f=##"
frmBattle2="index.php?act=SR&f=##"
frmFinale="index.php?act=SR&f=##"
imgURL="http://npx.np.funpic.org/xsrptx/marvel/"
var postNeeded=[]
postNeeded[1]="100"
postNeeded[2]="50"
postNeeded[3]="30"
postNeeded[4]="0"
var Character=[]
Character[1]="jungo"
Character[2]="omega"
Character[3]="rogue"
Character[4]="spider"
</script>
<script>//Start Battle Process
function createCookie(name, value, days){
if (days) {var date = new Date();date.setTime(date.getTime()+(days*24*60*
60*1000)); var expires = "; expires="+date.toGMTString(); }
else var expires = "";document·cookie = name+"="+value+expires+"; path=/";}
function readCookie(name){ var ca = document·cookie.split(';'); var nameEQ
= name + "="; for(var i=0; i < ca.length; i++) {
var c = ca[i];while (c.charAt(0)==' ') c = c.substring(1, c.length);if (
c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); }return
null;
}function eraseCookie(name){createCookie(name, "", -1);}
</script>
<% Copyrite %>
<script type="text/javascript">
/* Start IFX Battle */
getFramer();
function getFramer(){
document.write("<iframe name='UserCP' src='" + location.href.split("?")[0] + "?act=UserCP&CODE=0' style='display:none' onload='getPostCount()' /></iframe>");}
function getPostCount(){
var td = document.frames["UserCP"].document.getElementsByTagName("TD")
for(var i = 0; i < td.length; i++)
if(td[i].innerHTML == "Total number of posts to date")
userPost=parseInt(td[i+1].innerHTML.replace(/,/g, ""));
window.onerror = function() {return true;}
processBattle();
return;
}
</script>
<script type="text/javascript">
/*
RPG Hack v3.2
Created by Webworldx & Peter - 17.11.03
Updated for xHTML compliance by Magus
Customized using RPG Hack Customizer - By Markup
IFX Arena Battle Mode: Marvel SuperHeros Edit by Nemesis Prime
Now Playing X - 2005-07 [http://www.darkfx.com]
This code may not be redistributed without express permission.
This header must stay intact at all times. Failure to comply with the above may result in your board being deleted.
*/
</script>
<style>
.rpgmain {font-size: 10px}
.rpgmain2 {color: yellow}
</style>
<script>
RPGHigh="2000"
NextLevel="7"
MoneySign="$"
NextWeapon="2"
NextItem="5"
AddMoney="10"
MoneyOn="Y"
ItemWeapOn="Y"
var BaseURL="http://209.85.48.8/1882/184/emo"
var StatsURL="http://209.85.48.8/1882/184/emo"
var statsImage=[]
statsImage[0]=["hp","/hp.gif"]
statsImage[1]=["str","/str.gif"]
statsImage[2]=["mag","/mag.gif"]
statsImage[3]=["def","/def.gif"]
var theEXP = ["exp","/exp.gif"]
function getStats() {
TheStats=[];
stats=[];
var hp=0;str=1;mag=2;def=3;Hero=1;Villian=2;Merc=3;Cosmic=4;
TheStats[hp]=[]
TheStats[hp][Hero]=parseInt(PostCount) * 2
TheStats[hp][Villian]=parseInt(PostCount) * (1/2)
TheStats[hp][Merc]=parseInt(PostCount)
TheStats[hp][Cosmic]=parseInt(PostCount)
TheStats[str]=[]
TheStats[str][Hero]=parseInt(PostCount) * 7
TheStats[str][Villian]=parseInt(PostCount) * 7
TheStats[str][Merc]=parseInt(PostCount) * 3
TheStats[str][Cosmic]=parseInt(PostCount) * 3
TheStats[mag]=[]
TheStats[mag][Hero]=parseInt(PostCount) * (3/2)
TheStats[mag][Villian]=parseInt(PostCount) * 2
TheStats[mag][Merc]=parseInt(PostCount) / 2
TheStats[mag][Cosmic]=parseInt(PostCount)
TheStats[def]=[]
TheStats[def][Hero]=parseInt(PostCount) * (3)
TheStats[def][Villian]=parseInt(PostCount) * (7)
TheStats[def][Merc]=parseInt(PostCount) * (5)
TheStats[def][Cosmic]=parseInt(PostCount) * (9)
for (i=0;i<TheStats.length;i++){
if (ChosenRace==""){
stats[i]=TheStats[i][1]
} else {
stats[i]=TheStats[i][ChosenRace]
}}
for (i=0;i<stats.length;i++){
if (parseInt(stats[i]) >= parseInt(RPGHigh)) { stats[i]=RPGHigh; }
if (parseInt(stats[i]) < 0 ) { stats[i]=0 }
}
return stats
}
var Race=[];
Race[1] = ["1","Hero"]
Race[2] = ["2","Villian"]
Race[3] = ["3","Merc"]
Race[4] = ["4","Cosmic"]
var WPName=[ [] , [] ]
WPName[0][1]=["Knife","ElectroSword","GreatAxe","EnergonBow"]
WPName[0][2]=["Knife","EnergonAxe","DarkAxe"]
WPName[0][3]=["Knife","WarAxe","CyberClaws"]
WPName[0][4]=["Knife","EnergonMace","SparkAxe"]
WPName[1][1]=["Saber","GreatAxe","ElectroMace","StarSaber"]
WPName[1][2]=["Saber","NegaAxe","DarkAxe","DarkSaber"]
WPName[1][3]=["Saber","FireSword","GigaSword"]
WPName[1][4]=["Saber","IceSword","Sparkbuster"]
var WPURL=[ [] , [] ]
WPURL[0][1]=["knife","ES","GA","EB"]
WPURL[0][2]=["knife","EA","DA"]
WPURL[0][3]=["knife","WA","CC"]
WPURL[0][4]=["knife","EM","SA"]
WPURL[1][1]=["saber","GA","ElM","SS"]
WPURL[1][2]=["saber","NA","DA","DS"]
WPURL[1][3]=["saber","FS","GS"]
WPURL[1][4]=["saber","IS","SB"]
var Items=[]
Items[0]=["MindGem","PowerGem","RealityGem","SoulGem","SpaceGem","TimeGem"]
Items[1]=["gemmind","gempower","gemreality","gemsoul","gemspace","gemtime"]
var Extension=".gif"
</script>
<script src='http://209.85.48.9/1827/122/upload/p5325302.ibf'></script>
<script src='http://209.85.48.9/1827/122/upload/p5325304.ibf'></script>
<script type="text/javascript">
/* ProcessBattle */
function createCookie(name, value, days){
if (days) {var date = new Date();date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); }
else var expires = "";document·cookie = name+"="+value+expires+"; path=/";}
function readCookie(name){ var ca = document·cookie.split(';'); var nameEQ = name + "="; for(var i=0; i < ca.length; i++) {
var c = ca[i];while (c.charAt(0)==' ') c = c.substring(1, c.length);if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); }return null;
}function eraseCookie(name){createCookie(name, "", -1);}
function processBattle(){
home="http://"+location.hostname+location.pathname
span=document.getElementsByTagName("SPAN")
for(i=0;i<span.length;i++){
if(span[i].className=="postdetails"&&span[i].innerHTML.match("Posts: ")){
posts=parseInt(span[i].innerHTML.match(/Posts: (-*[\d,]+)/)[1].replace(/,/g,""))
tr=span[i].parentNode.parentNode
var memNo=tr.parentNode.parentNode.rows[tr.rowIndex-1].cells[0].innerHTML.match(/showuser=(\d+)/)[1]
var oppName=getopName(memNo);
eraseCookie('opponentName')
eraseCookie('opponentPost')
eraseCookie('userPosts')
createCookie('opponentName',oppName,'1');
createCookie('opponentPost',posts,'1');
createCookie('userPosts',userPost,'1');
nCont="<a href=" +frmAddress+ frmBattle1+">" + battleText + "</a>";
span[i].innerHTML+=nCont
}//ends if
}//ends for
}
function getopName(passvar) {
//gets opponents name
if (document.getElementsByTagName){
var e, i;
for (i = 0; e = document.getElementsByTagName('A')[i]; i++) {
if (e.href && e.href == frmAddress + 'index.php?showuser='+passvar){
passvar=e.firstChild.data;
}}}
return passvar
}
</script>
<script src="http://npx.pn.funpic.org/xsrptx/Ppoints.js"></script>
Bad Wolf- Designer GFX
-
Level : 46
Number of posts : 3391
Location : Satellite V
Rank : 7
Experience : 3014
Registration Date : 2006-12-24
Cprofile
Title: The Digital Alchemist
Luck:
(588/588)
Karma:
(530/777)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum