/*______________________________________________________________________________ ******************************************************************************** WriterScriptIs : Abu.Rajih * VersionScript : 1.1 * DateWroteScript: 11-02-2020 * URL : https://forum.tribalwars.ae/index.php?members/abu-rajih.40926/* _______________________________________________________________________________* ******************************************************************************** ######## ## ######### $$ $$ ## * ## ## ## ## ## ###### $$ $$ ## * ## ## ## ## ## # ## * ########## ## #### ## ## ## ## ######## ## ## ####### * ## ## ### ## ## ## ######## ## ## ## ## ## ## * ## ## ## ## ## ## ## ## ## ## ## ## ## ## * ## ## ## ## ## ## $$ ## ## ## ## ## ## ## ## * ## ## ###### ##### $$ ## ## ###### # ## ## ## ## * ## * ## ## * #### * _______________________________________________________________________________* *******************************************************************************/ window.jQuery(($)=>{ if(window.game_data.screen != 'info_player') { window.UI.InfoMessage('السكربت يعمل من بروفايل اللاعبين ...' , 3000 , 'error'); } else{ window.Developer = ["سيد الاساطير" , 'Abu.Rajih' , 'https://forum.tribalwars.ae/index.php?members/abu-rajih.40926']; window.UI.InfoMessage('تم تشغيل السكربت
مبرمج السكربت: AbuRajih' , 3000 , 'success'); $('#villages_list').before(` `); $('#villages_list > thead > tr > th:nth-child(3)').after(''); $.get('/game.php?village='+window.game_data.village.id+'&screen=overview_villages&mode=prod' , function(data){ $(data).find('#production_table > tbody > tr').not(':eq(0)').each(function(id){ $(this).find('.rename-icon').remove(); var villages = $(this).find('td:eq(1)').html(); var resources = $(this).find('td:eq(3)').html(); var dealer = $(this).find('td:eq(5)').html(); $('#TBODY').append(''+villages+''+resources+''+dealer+''); $('#villageNumber').text('('+Number(id + 1)+')'); }); $('#TBODY > tr').each(function(id){ var ThisTr = $(this); $(this).find('input').click(function(){ window.UI.InfoMessage('مبرمج السكربت: AbuRajih
سيتم فتح صفحة نقطة التجمع لتستطيع الهجوم
إنتظر لبضعة ثواي ...' , 2500 , 'success'); var getMyVillageHref = $(ThisTr).find('a').attr('href'); var getMyVillageId = getMyVillageHref.match(/\d+/); var ThisOne = $.trim(getMyVillageId); localStorage.setItem('MyVillage' , ThisOne); setTimeout(()=>{ window.open('/game.php?village='+ localStorage.getItem('MyVillage') +'&screen=market&mode=send&target=' + localStorage.getItem('Target') , '_blank'); },2000); }); }); }); $('.hide').on('click',function(){ $('#village_notes_popup').remove(); $('#villages_list').find('th:nth-child(4) , td:nth-child(4)').remove(); }); $('#villages_list > tbody > tr').each(function(ID){ $(this).append(''); $(this).click(function(){ window.UI.InfoMessage('تم إختيار الهدف .. إنتظر لبضعة الثواني', 1500 , 'success'); var getHref = $('#villages_list > tbody > tr:eq('+ID+')').find('a:nth-child(1)').attr('href'); var getID = getHref.substring(getHref.lastIndexOf('=')+1); var ThisID = $.trim(getID); localStorage.setItem('Target', ThisID); setInterval(()=>{ $('#village_notes_popup').css('display','block'); },1500); }); }); } });