Overview Ikariam V5 Icon

Only available on StudyMode
  • Download(s) : 252
  • Published : November 18, 2012
Open Document
Text Preview
// ==UserScript==
// @name Overview Ikariam Icon
// @namespace Overview Ikariam Icon
// @description Overview Ikariam Icon
// @authorfrapao
// @include http://s*.*.ikariam.*/*
// @exclude http://support.*.ikariam.com/index.php?*
// @icon http://s3.amazonaws.com/uso_ss/icon/41051/large.jpg // @grant GM_getValue
// @grant GM_setValue
// @grantGM_deleteValue
// @grantGM_listValues
// @grantGM_log
// @grantGM_xmlhttpRequest
// @grant unsafeWindow

// @version 4.29d
// ==/UserScript==

////GLOBAL VARIABLES////
////===============>>>>> SCRIPT VERSION !!!!!!!!!!!!!!
var version='Ikariam Overview Icon - 4.29d'

var nameArmy = new Array ();
var countArmy = new Array ();
var s = new XMLSerializer();
var myday=''
var myora=''
var mymin=''
var mysec=''
var balloon=getVar("varTip")
var focusTable=getVar("varFocus")
var giu=getVar("yFine")
var currentId=''
var currentI=''

var view='';
xview=''
viewOn=0

var id ='';

unsafeWindow.ajax.Responder.wtChangeHTML = unsafeWindow.ajax.Responder.changeHTML;

unsafeWindow.ajax.Responder.changeHTML =
function(params, replaceView) {
var id = params[0];
unsafeWindow.ajax.Responder.wtChangeHTML(params, replaceView);
setTimeout( function() { testing(id);}, 0);
}

setInterval (function () {
elfine=document.getElementsByClassName("footerleft")
piede=elfine[0]
yend=trovaY(piede)
setVar ("yFine",yend)
},2000)

//Capacity of a ship
var cap = 500;

// list all buildings
var building = new Array(
"townHall","palace","palaceColony","tavern","museum","academy","workshop","temple", "embassy","warehouse","dump","port","branchOffice","wall","safehouse","barracks", "shipyard","forester","carpentering","winegrower","vineyard","stonemason","architect","glassblowing", "optician","alchemist","fireworker"

);
var LocalBuilding = new Array();
var IconBuilding = new Array();
var xArmy=new Array(
"skin/characters/military/x40_y40/y40_phalanx_faceright.png",
"skin/characters/military/x40_y40/y40_steamgiant_faceright.png",
"skin/characters/military/x40_y40/y40_spearman_faceright.png",
"skin/characters/military/x40_y40/y40_swordsman_faceright.png",
"skin/characters/military/x40_y40/y40_slinger_faceright.png",
"skin/characters/military/x40_y40/y40_archer_faceright.png",
"skin/characters/military/x40_y40/y40_marksman_faceright.png",
"skin/characters/military/x40_y40/y40_ram_faceright.png",
"skin/characters/military/x40_y40/y40_catapult_faceright.png",
"skin/characters/military/x40_y40/y40_mortar_faceright.png",
"skin/characters/military/x40_y40/y40_gyrocopter_faceright.png",
"skin/characters/military/x40_y40/y40_bombardier_faceright.png",
"skin/characters/military/x40_y40/y40_cook_faceright.png",
"skin/characters/military/x40_y40/y40_medic_faceright.png"
)

var xFleet=new Array(
"ship_flamethrower",
"ship_steamboat",
"ship_ram",
"ship_catapult",
"ship_ballista",
"ship_mortar",
"ship_rocketship",
"ship_submarine",
"ship_paddlespeedship",
"ship_ballooncarrier",
"ship_tender"
)
var xUnit=new Array(
"phalanx",
"steamgiant",
"spearman",
"swordsman",
"slinger",
"archer",
"marksman",
"ram",
"catapult",
"mortar",
"gyrocopter",
"bombardier",
"cook",
"medic",
"ship_flamethrower",
"ship_steamboat",
"ship_ram",
"ship_catapult",
"ship_ballista",
"ship_mortar",
"ship_rocketship",
"ship_submarine",
"ship_paddlespeedship",
"ship_ballooncarrier",
"ship_tender"
)

var townHallSpaces = [0, 60, 96, 142, 200, 262, 332, 410, 492, 580, 672, 768, 870, 976, 1086, 1200, 1320, 1440, 1566, 1696, 1828, 1964, 2102, 2246, 2390, 2540,
2690, 2845, 3003, 3163, 3326,3492, 3660, 3830, 4004, 4180, 4360, 4540, 4724, 4910, 5098, 5290, 5482, 5678, 5876, 6076, 6278, 6484, 6710]; var MaxInhabitants =[townHallSpaces];

//Maximum ships
var Max_ship=10;

var cityNombre = new Array();
var cityRec = new Array();
var islaId...
tracking img