7lym / KillerAge-Amat

// ==UserScript==
// @name        KillerAge-Amat
// @namespace   www.kingsage.ro
// @description mda
// @include     http://*.kingsage.*game.php*
// @version     1.1
// @grant       none
// ==/UserScript==





var coords = ["572|582",
"573|582",
"574|582",
"571|591",
"571|592",
"577|592",
"571|593",
"572|593",
"576|593",
"577|593",
"574|594",
"575|594",
"577|594",
"579|594",
"564|589",
"565|589",
"568|590",
"560|591",
"559|592",
"569|592",
"567|593",
"568|593",
"565|594",
"566|594",
"567|594",
"570|594",
"565|595",
"566|595",
"567|595",
"563|596",
"565|597",
"566|597",
"567|597",
"561|598",
"563|598",
"565|598",
"566|598",
"571|598",
"563|599",
"564|600",
"560|601",
"561|601",
"565|601",
"564|602",
"565|602",
"563|603",
"565|603",
"566|603",
"561|604",
"564|604",
"561|605",
"565|605",
"564|606",
"555|607",
"556|608",
"557|608",
"556|609",
"559|610",
"561|610",
"562|610",
"563|610",
"565|610",
"556|611",
"557|611",
"563|611",
"556|612",
"557|612",
"558|612",
"574|598",
"575|598",
"577|598",
"578|598",
"579|598",
"580|598",
"581|598",
"573|599",
"578|599",
"582|599",
"578|600",
"571|602",
"575|602",
"576|602",
"573|603",
"575|603",
"569|604",
"570|604",
"572|604",
"573|604",
"575|604",
"579|604",
"582|604",
"570|605",
"575|605",
"577|605",
"581|605",
"570|606",
"571|606",
"574|606",
"575|606",
"576|606",
"581|606",
"570|607",
"572|607",
"573|607",
"576|607",
"581|607",
"582|607",
"573|608",
"574|608",
"575|608",
"572|609",
"574|609",
"577|609",
"572|610",
"584|598",
"585|598",
"595|598",
"596|599",
"597|600",
"587|601",
"588|601",
"594|601",
"597|601",
"588|602",
"597|602",
"588|603",
"591|603",
"596|603",
"589|604",
"591|604",
"593|604",
"587|605",
"588|605",
"595|605",
"596|605",
"587|606",
"589|606",
"591|606",
"595|606",
"592|607",
"587|608",
"588|608",
"589|608",
"590|608",
"595|608",
"596|608",
"597|608",
"587|609",
"595|609",
"588|610",
"561|613",
"562|613",
"566|613",
"557|614",
"564|614",
"565|614",
"566|614",
"556|615",
"559|615",
"560|615",
"563|615",
"565|615",
"554|616",
"559|616",
"565|616",
"555|617",
"556|617",
"558|617",
"559|617",
"560|617",
"561|617",
"565|617",
"566|617",
"556|618",
"561|618",
"562|618",
"563|618",
"564|618",
"555|619",
"557|619",
"561|619",
"562|619",
"566|619",
"558|620",
"561|620",
"562|620",
"564|620",
"566|620",
"557|621",
"561|621",
"564|621",
"566|621",
"560|622",
"563|622",
"565|622",
"566|622",
"568|622",
"555|623",
"557|623",
"561|623",
"563|623",
"561|624"
];
var max = coords.length - 1;
var min = 0;
var buton = document.getElementById('attack_protect');
if (buton !== null)
{
  // window.location.reload(history.go(-1));
  var ora = document.getElementById('countup-time').innerHTML;
  var ora2 = ora.substring(ora.length - 10, ora.length - 8);
  buton.disabled = false;
  buton.focus();
  window.setTimeout(function () {
    if (ora2 == '00' || ora2 == '01' || ora2 == '02' || ora2 == '03' || ora2 == '04' || ora2 == '05' || ora2 == '06' || ora2 == '07')
    window.history.back();
     else
    buton.click();
  }, 1500);
  //alert(ora2);
} 
else
{
  var err = document.getElementsByClassName('error');
  if (err.length === 0)
  {
    window.setTimeout(function () {
    document.getElementsByName('kata') [0].value = '1';},1000);
    //window.setTimeout(function () {
    //document.getElementsByName('spy') [0].value = '1';},1500);
      window.setTimeout(function () {
    document.getElementsByName('axe') [0].value = '89';},2000);
    var cc = coords[Math.floor(Math.random() * (max - min + 1) + min)];
    var cc1 = cc.substring(0, 3);
    var cc2 = cc.substring(4, 7);
        window.setTimeout(function () {
    document.getElementById('send_x').value = cc1;},2300);
          window.setTimeout(function () {
    document.getElementById('send_y').value = cc2;},2500);
            window.setTimeout(function () {
    document.getElementsByName('attack') [0].click();},3000);
  } 
  else
  {
    document.getElementsByName('kata') [0].value = '999';
    alert('Out of Chakra!:) Coded by 7lym:)');
  }
}