مطلوب سكربت

  • بادئ الموضوع DeletedUser37973
  • تاريخ البدء

DeletedUser

Guest
طيب انا هاجم على اكثر من 100 قريه والموارد 440 ؟


فيه غلطط

حتى اخوي ميشو يقول غلط
 

DeletedUser38252

Guest
السكربت فيه غلط بالحسب ههههههههههههه 440 يعني 440 الف
بيتصلح قريبا
 

DeletedUser

Guest
جربوا ذا راح يعجبكم :86:

اتمنى تجربوه ولو فيه مشاكل قولوا لي عشان لا انشره بقائمة السكربتات المحدثه
:171:

PHP:
     javascript:    function calculate()    {        var total =            {                wood: 0,                stone: 0,                iron: 0,                haul: 0,                limit: 0            };        $('#commands_table tr:not(:first)').each(function()                                                 {            var url = $('a:first', this).attr('href');            $.ajax(                {                    url: url,                    success: function(html)                    {                        var info = $('#content_value table:eq(2) td:last', html).text().split('  ');                        if (info.length < 3)                        {                            info[3] = info[0].toString().trim();                            info[0] = '0';                            info[1] = '0';                            info[2] = '0';                        }                        else                        {                            info[0] = info[0].toString().trim();                            info[1] = info[1].toString().trim();                            info[3] = info[2].split('|')[1].toString().trim();                            info[2] = info[2].split('|')[0].toString().trim();                        }                        var resources = info[3].split('/');                        var haulInfo =                            {                                wood: info[0],                                stone: info[1],                                iron: info[2],                                haul: resources[0],                                limit: resources[1]                            };                        total.wood += Number(haulInfo.wood.replace('.', ''));                        total.stone += Number(haulInfo.stone.replace('.', ''));                        total.iron += Number(haulInfo.iron.replace('.', ''));                        total.haul += Number(haulInfo.haul);                        total.limit += Number(haulInfo.limit);                    }                });        });        $(document).ajaxStop(function()                             {            alert('حتى الان قمت بنهب\n\n' + '\n خشب: ' + total.wood + ' \n طمي: ' + total.stone + ' \n حديد: ' + total.iron + '\n\n\nمجموع الموارد التي قمت بنهبها\n\nالمجموع: ' + total.haul + ' ');        });    }    if (window.location.href.indexOf('type=return') === -1)    {        var redirect = confirm('السكربت يعمل من تحركات الجيوش {{رجوع}}\n هل تريد الذهاب الى صفحة تحركات الجيوش؟');        if (redirect)            window.location = 'game.php?mode=commands&screen=overview_villages&type=return';    }    else        calculate();

6591f497773727255820d32dbbfaf591.png

 
التعديل الأخير بواسطة المشرف:
أعلى