Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javascript:
- (function($) {
- if(!window.location.href.match(/&screen=market&mode=call/)){
- window.UI.InfoMessage('السكربت يعمل من السوق --> طلب' , 1500 , 'error');
- setTimeout(()=>{
- window.UI.InfoMessage('سيتم نقلك الى مكان عمل السكربت ...' , 3000 , 'success');
- window.location.href = '/game.php?village='+window.game_data.village.id+'&screen=market&mode=call';
- },1500);
- }
- window.Developer = ["Salim Fadhil" , 'AbuRajih' ,'salim.rageh45@outlook.com' , '+96899745412' , '1.0' , 'https://forum.tribalwars.ae/index.php?members/abu-rajih.40926' , 'https://www.instagram.com/hzg_0/'];
- $('#village_list').before(`
- <center>
- <table align="center" id='CopyRight'>
- <thead>
- <tr>
- <th style='width:50px;text-align:center;'>المبرمج</th>
- <th style='font-size:16px; font-weight:bold;'>:</th>
- <th style='width:90px;text-align:center;'><a href=`+window.Developer[5]+` title=`+window.Developer[1]+` target='_blank'>`+window.Developer[0]+`</a></th>
- </tr>
- <tr>
- <th style='width:50px;text-align:center;'>E-Mail</th>
- <th style='font-size:16px; font-weight:bold;'>:</th>
- <th style='width:90px;text-align:center;'><a href='mailto:`+window.Developer[2]+`&subject=استفسار بخصوص السكربت' >`+window.Developer[2]+`</a></th>
- </tr>
- <tr>
- <th style='width:50px;text-align:center;'>WhatsApp</th>
- <th style='font-size:16px; font-weight:bold;'>:</th>
- <th style='width:90px;text-align:center;'><a href='https://api.whatsapp.com/send?phone=`+window.Developer[3]+`' target='_blank' >`+window.Developer[3]+`</a></th>
- </tr>
- <tr>
- <th style='width:50px;text-align:center;'>Instgram</th>
- <th style='font-size:16px; font-weight:bold;'>:</th>
- <th style='width:90px;text-align:center;'><a href='`+window.Developer[6]+`' target='_blank' >`+window.Developer[6]+`</a></th>
- </tr>
- </thead>
- </table>
- <table id="res_sum" class="vis overview_table" width="250px">
- <thead>
- <tr>
- <th colspan="3" style="text-align:center"><b>طلـب مـوارد</b></th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td style="text-align:center" id="total_wood"><span class="res wood"></span><br/><input placeholder="0" type="text" style="text-align:center;font-weight:bold;font-style:times new roman;width:70%;" maxlength="6" id="WOD" /></td>
- <td style="text-align:center" id="total_stone"><span class="res stone"></span><br/><input placeholder="0" type="text" style="text-align:center;font-weight:bold;font-style:times new roman;width:70%;" maxlength="6" id="STN" /></td>
- <td style="text-align:center" id="total_iron"><span class="res iron"></span><br/><input placeholder="0" type="text" style="text-align:center;font-weight:bold;font-style:times new roman;width:70%;" maxlength="6" id="IRN" /></td>
- </tr>
- <tr><th colspan="3" style="text-align:center;">سحب من القرى حسب مسافة السفر</th></tr>
- <tr>
- <td style="text-align:center" colspan="3">
- <input placeholder="0" type="text" style="text-align:center;font-weight:bold;font-style:times new roman;width:15%;" maxlength="2" title="ثواني" value="59" id="Seconds" disabled/> :
- <input placeholder="0" type="text" style="text-align:center;font-weight:bold;font-style:times new roman;width:15%;" maxlength="2" title="دقائق" value="59" id="Minutes" disabled/> :
- <input placeholder="0" type="text" style="text-align:center;font-weight:bold;font-style:times new roman;width:15%;" maxlength="2" title="ساعات" id="Hours" />
- </td>
- </tr>
- <tr>
- <th colspan="3" style="text-align:center;"><input type="button" style="width:100%" title="ادخل الموارد ثم اضغط هذا الزر لسحب موارد" class="btn" id="GetResources" value="سحب موارد" /></th>
- </tr>
- </tbody>
- </table>
- </center>
- <style>
- #CopyRight,#CopyRight th{border:1px solid black !important;background:#eee;}
- #CopyRight th , #CopyRight th a{background: #eddab0 !important;font-family: 'times new roman', sans-serif;font-size:15px;}
- #CopyRight{background:white}
- </style>`);
- $('#GetResources').on('click' , function(WOD , STN , IRN){
- WOD = $('#WOD').val(); STN = $('#STN').val(); IRN = $('#IRN').val();
- $('#village_list > tbody > tr').each(function(){
- window.time = $.trim($(this).find('td:nth-child(2)').text());
- if(window.time.split(':')[0] <= $('#Hours').val())
- {
- $(this).find('input[type=checkbox]').click();
- $(this).find('td.wood > input').val(WOD);
- $(this).find('td.stone > input').val(STN);
- $(this).find('td.iron > input').val(IRN);
- }
- else{
- $(this).find('input[type=checkbox]').remove();
- $(this).attr('disabled')
- }
- });
- $('input[type=submit]').eq(0).click();
- });
- })(window.jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement