Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*______________________________________________________________________________
- ********************************************************************************
- WriterScriptIs : Salim Fadhil *
- VersionScript : 1.0 *
- DateWroteScript : 09-05-2020 *
- URL : https://forum.tribalwars.ae/index.php?members/abu-rajih.40926/*
- _______________________________________________________________________________*
- ********************************************************************************
- ######## ## ######### $$ $$ ## *
- ## ## ## ## ## ###### $$ $$ ## *
- ## ## ## ## ## # ## *
- ########## ## #### ## ## ## ## ######## ## ## ####### *
- ## ## ### ## ## ## ######## ## ## ## ## ## ## *
- ## ## ## ## ## ## ## ## ## ## ## ## ## ## *
- ## ## ## ## ## ## $$ ## ## ## ## ## ## ## ## *
- ## ## ###### ##### $$ ## ## ###### # ## ## ## ## *
- ## *
- ## ## *
- #### *
- _______________________________________________________________________________*
- *******************************************************************************/
- javascript:
- (function($) {
- window.popup = `
- <link href="https://fonts.googleapis.com/css2?family=Cairo&display=swap" rel="stylesheet">
- <div id="CountTroops" class="popup_style ui-draggable" style="width: 400px; position: fixed; top: 0px; left: 1px; display: block;">
- <div id="CountTroops_menu" style="text-align:center;font-family: 'Cairo', sans-serif;font-size:16px;" class="popup_menu ui-draggable-handle">سكربت حاصد الجيوش<a id="close_CountTroops" onclick="$('#CountTroops').remove();" href="#">X</a></div>
- <div id="CountTroops_content" class="popup_content" style="height: auto; overflow-y: auto;text-align:center;">
- <center><b style="color:#555;font-family: 'Cairo', sans-serif;">كل الشكر والتقدير للداعم الرسمي : <a style="color:black;font-family: 'Cairo', sans-serif;" href="https://forum.tribalwars.ae/index.php?members/%D9%83%D9%8A%D9%81%D8%A7%D8%A7%D8%B2.39856/" target="_blank">كيفااز</a></b></center>
- <table align="center" >
- <tr><th id = 'th' colspan = '4'><b style='font-family: Cairo, sans-serif;text-align:center;font-size:14px;'>مبرمج السكربت</b></th></tr>
- <tr><td id = 'td' colspan = '4'><a id="Salim" title = 'Abu.Rajih' href="https://forum.tribalwars.ae/index.php?members/abu-rajih.40926/" target="_blank">سيد الاساطير</a></td></tr>
- <tr><th id = 'th' colspan="3" >شرح للسكربت</th> <th id = 'th' ><a style='font-family: Cairo, sans-serif;font-size:16px;' href="https://forum.tribalwars.ae/index.php?threads/%D8%B3%D9%83%D8%B1%D8%A8%D8%AA-%D8%AD%D8%A7%D8%B5%D8%AF-%D8%A7%D9%84%D8%AC%D9%8A%D9%88%D8%B4-2020-%D9%86%D8%B3%D8%AE%D8%A9-%D8%B4%D9%87%D8%B1-%D9%85%D8%A7%D9%8A%D9%88.97104/" target="_blank">إضغط هنا</a></th></tr>
- <tr>
- <th id="th" style="font-size:14px;">نوع المجموعة</th>
- <td id="td">
- <select id="GroupOption">
- </select>
- </td>
- <th id="th" style="font-size:14px;">فلترة حسب </td>
- <td id="td"><select id="chooseOption">
- <option value="5">الكل</option><option value="1">ملكك</option><option value="2">في القرى</option><option value="3">خارج القرى</option><option value="4">متحرك</option>
- </select></td>
- </tr>
- <tr><th id="th" class="bring_data_here" colspan="4"></th></tr>
- <tr>
- <th id="th"><img src="https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/spear.png" style="vertical-align: middle" alt="" class=""></th><td id="td" class="spear"></td> <th id="th"><img src="https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/spy.png" style="vertical-align: middle" alt="" class=""></th><td id="td" class="spy"></td>
- </tr>
- <tr>
- <th id="th"><img src="https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/sword.png" style="vertical-align: middle" alt="" class=""></th><td id="td" class="sword"></td> <th id="th"><img src="https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/light.png" style="vertical-align: middle" alt="" class=""></th><td id="td" class="light"></td>
- </tr>
- <tr id="checkUnits">
- <th id="th"><img src="https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/archer.png" style="vertical-align: middle" alt="" class=""></th><td id="td" class="archer"></td> <th id="th"><img src="https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/marcher.png" style="vertical-align: middle" alt="" class=""></th><td id="td" class="marcher"></td>
- </tr>
- <tr>
- <th id="th"><img src="https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/axe.png" style="vertical-align: middle" alt="" class=""></th><td id="td" class="axe"></td> <th id="th"><img src="https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/heavy.png" style="vertical-align: middle" alt="" class=""></th><td id="td" class="heavy"></td>
- </tr>
- <tr>
- <th id="th"><img src="https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/catapult.png" style="vertical-align: middle" alt="" class=""></th><td id="td" class="catapult"></td> <th id="th"><img src="https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/ram.png" style="vertical-align: middle" alt="" class=""></th><td id="td" class="ram"></td>
- </tr>
- <tr>
- <th id="th"><img src="https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/knight.png" style="vertical-align: middle" alt="" class=""></th><td id="td" class="knight"></td> <th id="th"><img src="https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/snob.png" style="vertical-align: middle" alt="" class=""></th><td id="td" class="snob"></td>
- </tr>
- <tr style="display:none;" id="ShowTool">
- <th colspan="4" id="th"><input type="button" id="ShowDetails" class="btn" style="width:95%;" value="نسخ هذه المعلومات !" /></th>
- </tr>
- <tr id="copyPlace" style="display:none">
- <th id="th" colspan="4"><textarea id="result" style="width:95%;height:100%;"></textarea></th>
- </tr>
- <tr><th id="th" colspan="4">
- <input id="GETNOW" value="بدء عملية الإستخراج" class="btn btn-confirm-yes btn-larg" style="width:95%" type="button" />
- </th></tr>
- </table>
- </div></div>
- <script>
- dragElement(document.getElementById("CountTroops"));
- function dragElement(elmnt) {
- var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
- if (document.getElementById("CountTroops_menu")) {
- document.getElementById("CountTroops_menu").onmousedown = dragMouseDown;
- } else {
- elmnt.onmousedown = dragMouseDown;
- }
- function dragMouseDown(e) {
- e = e || window.event;
- e.preventDefault();
- pos3 = e.clientX;
- pos4 = e.clientY;
- document.onmouseup = closeDragElement;
- document.onmousemove = elementDrag;
- }
- function elementDrag(e) {
- e = e || window.event;
- e.preventDefault();
- pos1 = pos3 - e.clientX;
- pos2 = pos4 - e.clientY;
- pos3 = e.clientX;
- pos4 = e.clientY;
- elmnt.style.top = (elmnt.offsetTop - pos2) + "px";
- elmnt.style.left = (elmnt.offsetLeft - pos1) + "px";
- }
- function closeDragElement() {
- document.onmouseup = null;
- document.onmousemove = null;
- }
- }
- </script>
- <style>
- #close_CountTroops{border:1px solid #f33;color:#eee;background:#f33;text-align:center;width:16px;height:16px;}
- #close_CountTroops:hover{background:#f11;color:#fff;border:1px solid #f11;}
- #table,#th,#td { border:1px solid black; font-family: 'Cairo', sans-serif; font-size:16px; text-align:center; width:300px; }
- #Salim { font-family: 'Cairo', sans-serif; font-size: 20px; animation: salim 2s linear infinite; }
- @keyframes salim {
- 0% {text-shadow:0 0 3px #000;}
- 15% {text-shadow:0 0 9px #000;}
- 30% {text-shadow:0 0 3px #000;}
- 45% {color:rgba(80,80,80,.1);}
- 60% {text-shadow:0 0 3px #7d5d11;color:#222;}
- 80% {text-shadow:0 0 9px #000;}
- 100%{text-shadow:0 0 3px #000;}
- }
- </style>
- `;
- $('body').append(window.popup);
- if(window.game_data.units.length < 13){
- $('#checkUnits').hide();
- }
- window.index = $('#chooseOption').val();
- $('#chooseOption').on('change', function(){
- window.index = $(this).val();
- });
- $.get(`/game.php?village=`+window.game_data.village.id+`&screen=overview_villages&mode=units` , function(DataGot){
- $(DataGot).find('#paged_view_content > div').each(function(i,e){
- if(window.mobile == false){
- for(i = 0; i < $(this).find('a , strong').length; i++){
- if(!$(this).find('a , strong').eq(i)[0].href){
- $(this).find('a , strong').eq(i)[0].href = '/game.php?village='+window.game_data.village.id+'&screen=overview_villages&type=complete&mode=units&group='+0+'&';
- }
- $('#GroupOption').append('<option value="'+$(this).find('a , strong').eq(i)[0].href+'" name="'+$.trim($(this).find('a , strong').eq(i).html())+'">'+ $.trim($(this).find('a , strong').eq(i).html()) +'</option>');
- }
- setTimeout(()=>{
- window.group = $('#GroupOption').val();
- },100);
- $('#GroupOption').change(function(){
- window.group = $(this).val();
- });
- }
- else{
- if($(this).find('select').length == 0){
- for(i = 0; i < $(this).find('a , strong').length; i++){
- if(!$(this).find('a , strong').eq(i)[0].href){
- $(this).find('a , strong').eq(i)[0].href = '/game.php?village='+window.game_data.village.id+'&screen=overview_villages&type=complete&mode=units&group='+0+'&';
- }
- $('#GroupOption').append('<option value="'+$(this).find('a , strong').eq(i)[0].href+'" name="'+$.trim($(this).find('a , strong').eq(i).html())+'">'+ $.trim($(this).find('a , strong').eq(i).html()) +'</option>');
- }
- setTimeout(()=>{
- window.group = $('#GroupOption').val();
- },100);
- $('#GroupOption').change(function(){
- window.group = $(this).val();
- });
- }
- else{
- $('#GroupOption').replaceWith($(this).find('select').removeAttr('onchange').attr('id','GroupOption'));
- setTimeout(()=>{
- window.group = $('#GroupOption').val();
- },100);
- $('#GroupOption').change(function(){
- window.group = $(this).val();
- });
- }
- }
- });
- });
- $('#GETNOW').on('click' , function(){
- window.spear = 0; window.sword = 0; window.archer = 0; window.axe = 0; window.spy = 0; window.light = 0;
- window.marcher = 0; window.heavy = 0; window.ram = 0; window.catapult = 0; window.knight = 0; window.snob = 0;
- $('.spear').text(null);$('.sword').text(null);$('.archer').text(null);$('.axe').text(null);
- $('.spy').text(null);$('.light').text(null);$('.marcher').text(null);$('.heavy').text(null);
- $('.ram').text(null);$('.catapult').text(null);$('.knight').text(null);$('.snob').text(null);
- $.get(window.group , function(getData){
- $(getData).find('#units_table > tbody').each(function(){
- setTimeout(()=>{
- if(window.game_data.units.length == 13){
- if(window.index == 1){
- window.spear = parseInt(window.spear) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(3)').html()));
- window.sword = parseInt(window.sword) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(4)').html()));
- window.archer = parseInt(window.archer) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(6)').html()));
- window.axe = parseInt(window.axe) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(5)').html()));
- window.spy = parseInt(window.spy) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(7)').html()));
- window.light = parseInt(window.light) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(8)').html()));
- window.marcher = parseInt(window.marcher) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(9)').html()));
- window.heavy = parseInt(window.heavy) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(10)').html()));
- window.ram = parseInt(window.ram) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(11)').html()));
- window.catapult = parseInt(window.catapult) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(12)').html()));
- window.knight = parseInt(window.knight) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(13)').html()));
- window.snob = parseInt(window.snob) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(14)').html()));
- }else{
- window.spear = parseInt(window.spear) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(2)').html()));
- window.sword = parseInt(window.sword) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(3)').html()));
- window.archer = parseInt(window.archer) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(5)').html()));
- window.axe = parseInt(window.axe) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(4)').html()));
- window.spy = parseInt(window.spy) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(6)').html()));
- window.light = parseInt(window.light) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(7)').html()));
- window.marcher = parseInt(window.marcher) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(8)').html()));
- window.heavy = parseInt(window.heavy) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(9)').html()));
- window.ram = parseInt(window.ram) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(10)').html()));
- window.catapult = parseInt(window.catapult) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(11)').html()));
- window.knight = parseInt(window.knight) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(12)').html()));
- window.snob = parseInt(window.snob) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(13)').html()));
- }
- $('.spear').text(window.spear);$('.sword').text(window.sword);$('.archer').text(window.archer);$('.axe').text(window.axe);
- $('.spy').text(window.spy);$('.light').text(window.light);$('.marcher').text(window.marcher);$('.heavy').text(window.heavy);
- $('.ram').text(window.ram);$('.catapult').text(window.catapult);$('.knight').text(window.knight);$('.snob').text(window.snob);
- }else{
- if(window.index == 1){
- window.spear = parseInt(window.spear) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(3)').html()));
- window.sword = parseInt(window.sword) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(4)').html()));
- window.axe = parseInt(window.axe) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(5)').html()));
- window.spy = parseInt(window.spy) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(6)').html()));
- window.light = parseInt(window.light) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(7)').html()));
- window.heavy = parseInt(window.heavy) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(8)').html()));
- window.ram = parseInt(window.ram) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(9)').html()));
- window.catapult = parseInt(window.catapult) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(10)').html()));
- window.knight = parseInt(window.knight) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(11)').html()));
- window.snob = parseInt(window.snob) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(12)').html()));
- }else{
- window.spear = parseInt(window.spear) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(2)').html()));
- window.sword = parseInt(window.sword) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(3)').html()));
- window.axe = parseInt(window.axe) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(4)').html()));
- window.spy = parseInt(window.spy) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(5)').html()));
- window.light = parseInt(window.light) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(6)').html()));
- window.heavy = parseInt(window.heavy) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(7)').html()));
- window.ram = parseInt(window.ram) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(8)').html()));
- window.catapult = parseInt(window.catapult) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(9)').html()));
- window.knight = parseInt(window.knight) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(10)').html()));
- window.snob = parseInt(window.snob) + parseInt($.trim($(this).find('tr:nth-child('+window.index+') > td:nth-child(11)').html()));
- }
- $('.spear').text(window.spear);$('.sword').text(window.sword);$('.axe').text(window.axe);
- $('.spy').text(window.spy);$('.light').text(window.light);$('.heavy').text(window.heavy);
- $('.ram').text(window.ram);$('.catapult').text(window.catapult);$('.knight').text(window.knight);
- $('.snob').text(window.snob);
- }
- },250);
- });
- });
- setTimeout(function(){
- $('#ShowTool').show();
- },800);
- });
- $('#ShowDetails').on('click' , function(){
- var sp,sw,ax,ar,py,li,ma,he,ra,ca,kn,sn;
- if(window.game_data.units.length == 13){
- sp = $('.spear').text(); sw = $('.sword').text(); ax = $('.axe').text();
- ar = $('.archer').text(); py = $('.spy').text(); li = $('.light').text();
- ma = $('.marcher').text(); he = $('.heavy').text(); ra = $('.ram').text();
- ca = $('.catapult').text(); kn = document.querySelector('.knight').innerText; sn = $('.snob').text();
- }else{
- sp = $('.spear').text(); sw = $('.sword').text(); ax = $('.axe').text();
- py = $('.spy').text(); li = $('.light').text(); he = $('.heavy').text();
- ra = $('.ram').text(); ca = $('.catapult').text(); kn = document.querySelector('.knight').innerText;
- sn = $('.snob').text();
- }
- if(window.game_data.units.length == 13){
- if(window.Mobile == false){
- $('#result').val(`
- نوع المجموعة : [b][color=#a500a5]`+$('#GroupOption')[0].selectedOptions[0].getAttribute('name')+`[/color][/b] || فلترة حسب : [b][color=#a500a5]`+$('#chooseOption')[0].selectedOptions[0].text+`[/color][/b]
- [table]
- [**][img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/spear.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/sword.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/axe.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/archer.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/spy.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/light.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/marcher.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/heavy.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/ram.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/catapult.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/knight.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/snob.png[/img][/**]
- [*]
- `+sp.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+sw.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+ax.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+ar.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+py.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+li.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+ma.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+he.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+ra.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+ca.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+kn+`[|]
- `+sn.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`
- [/table]
- `);
- }else{
- $('#result').val(`
- نوع المجموعة : [b][color=#a500a5]`+$('#GroupOption')[0].selectedOptions[0].innerText+`[/color][/b] || فلترة حسب : [b][color=#a500a5]`+$('#chooseOption')[0].selectedOptions[0].text+`[/color][/b]
- [table]
- [**][img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/spear.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/sword.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/axe.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/archer.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/spy.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/light.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/marcher.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/heavy.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/ram.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/catapult.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/knight.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/snob.png[/img][/**]
- [*]
- `+sp.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+sw.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+ax.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+ar.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+py.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+li.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+ma.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+he.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+ra.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+ca.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+kn+`[|]
- `+sn.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`
- [/table]
- `);
- }
- }else{
- if(window.Mobile == false){
- $('#result').val(`
- نوع المجموعة : [b][color=#a500a5]`+$('#GroupOption')[0].selectedOptions[0].getAttribute('name')+`[/color][/b] || فلترة حسب : [b][color=#a500a5]`+$('#chooseOption')[0].selectedOptions[0].text+`[/color][/b]
- [table]
- [**][img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/spear.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/sword.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/axe.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/spy.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/light.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/heavy.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/ram.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/catapult.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/knight.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/snob.png[/img][/**]
- [*]
- `+sp.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+sw.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+ax.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+py.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+li.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+he.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+ra.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+ca.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+kn+`[|]
- `+sn.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`
- [/table]
- `);
- }else{
- $('#result').val(`
- نوع المجموعة : [b][color=#a500a5]`+$('#GroupOption')[0].selectedOptions[0].innerText+`[/color][/b] || فلترة حسب : [b][color=#a500a5]`+$('#chooseOption')[0].selectedOptions[0].text+`[/color][/b]
- [table]
- [**][img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/spear.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/sword.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/axe.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/spy.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/light.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/heavy.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/ram.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/catapult.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/knight.png[/img][||]
- [img]https://dsae.innogamescdn.com/asset/d25bbc6/graphic/unit/recruit/snob.png[/img][/**]
- [*]
- `+sp.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+sw.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+ax.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+py.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+li.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+he.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+ra.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+ca.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`[|]
- `+kn+`[|]
- `+sn.replace(/\d(?=(?:\d{3})+$)/g, '$&.')+`
- [/table]
- `);
- }
- }
- window.UI.InfoMessage('يتم الان نسخ المعلومات ...' , 1000 , 'success');
- setTimeout(()=>{
- $('#copyPlace').show();
- $('#result').select();
- },1001);
- setTimeout(()=>{
- document.execCommand('copy');
- window.UI.InfoMessage('تم نسخ المعلومات بنجاح.' , 1000 , 'success');
- $('#copyPlace').hide();
- },1002);
- });
- })(window.jQuery);
Add Comment
Please, Sign In to add comment