Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Pomóc w skrypcie do gry www
Xxnieznajomyxx
post 22.06.2018, 17:01:19
Post #1





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 22.06.2018

Ostrzeżenie: (0%)
-----


Witam mam do was prozbe mianowicie chcialem naprawic skrypt do gry thecrims.com zeby sam rabowal(wybieral najlepszy rabunek)a jak skaczysie energia szed do klubu i bral uzupelnial energie w klubie oto skrypt ale nie moge zrobic zeby dzialal:

// ==UserScript==
// @name TheCrims_rabunki
// @namespace thecrims.js
// @include http://*.thecrims.com/robbery
// @version 1
// @grant none
// ==/UserScript==

var interval = -1;

function robbery(input, min_health) {
var health = parseInt($('[ng-bind="user.stamina"]').text());
if(health >= min_health) {
input.removeAttr('disabled');
input.prop('disabled', false);
input.click();
setTimeout(robbery, 1500, input, min_health);
} else {
location.href = '/nightlife';
}
}

function check_robbery() {
var input = $('input[value="Zrób to!"]');
var form = input.parents('form').eq(0);
var select = form.find('select');
var options = select.find('option');

if(options.length > 1) {
clearInterval(interval);
var max_dmg_val = 0;
var min_health = 0;
options.each(function() {
var name = $(this).text();
var matches = name.match(/.* \- ([0-9]+)%.*?SP: ([0-9]+)%/);
if(matches && parseInt(matches[2]) === 100) {
max_dmg_val = $(this).attr('value');
min_health = parseInt(matches[1]);
}
});
select.val(max_dmg_val).trigger('change');
setTimeout(robbery, 500, input, min_health);
}
}

interval = setInterval(check_robbery, 100);

Prosze o pomoc
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 28.03.2024 - 16:32