Skrypt do sprawdzenia

PhysXc

Nowicjusz
Dołączył
18 Lipiec 2011
Posty
6
Punkty reakcji
0
Witam!
Nie mam pojęcia w jakim dziale powinienem zamieścić ten temat, także przepraszam.
Ale do rzeczy: chciałbym prosić o sprawdzenie tego oto skryptu:


Kod:
var initialBetAmount = 1;
var mode = 'martingale';
var betColor = 'red';


function tick(){var a=getStatus();if(a!==lastStatus&&"unknown"!==a){switch(a){case"waiting":bet();break;case"rolled":rolled()}lastStatus=a,printInfo()}}function checkBalance(){return getBalance()<currentBetAmount?(console.warn("BANKRUPT! Not enough balance for next bet, aborting."),clearInterval(refreshIntervalId),!1):!0}function printInfo(){var a=" \nStatus: "+lastStatus+"\nRolls played: "+currentRollNumber+"\nInitial bet amount: "+initialBetAmount+"\nCurrent bet amount: "+currentBetAmount+"\nLast roll result: "+(null===wonLastRoll()?"-":wonLastRoll()?"won":"lost");console.log(a)}function rolled(){return"anti-martingale"===mode?void antiMartingale():(martingale(),void currentRollNumber++)}function antiMartingale(){currentBetAmount=wonLastRoll()?2*currentBetAmount:initialBetAmount}function martingale(){currentBetAmount=wonLastRoll()?initialBetAmount:2*currentBetAmount}function bet(){checkBalance()&&(setBetAmount(currentBetAmount),setTimeout(placeBet,50))}function setBetAmount(a){$betAmountInput.val(a)}function placeBet(){return"red"===betColor?($redButton.click(),void(lastBetColor="red")) $blackButton.click(),void(lastBetColor="black"))}function getStatus(){var a=$statusBar.text();if(hasSubString(a,"Rolling in"))return"waiting";if(hasSubString(a,"***ROLLING***"))return"rolling";if(hasSubString(a,"rolled")){var b=parseInt(a.split("rolled")[1]);return lastRollColor=getColor(b),"rolled"}return"unknown"}function getBalance(){return parseInt($balance.text())}function hasSubString(a,b){return a.indexOf(b)>-1}function getColor(a){return 0==a?"green":a>=1&&7>=a?"red":"black"}function wonLastRoll(){return lastBetColor?lastRollColor===lastBetColor:null}var currentBetAmount=initialBetAmount,currentRollNumber=1,lastStatus,lastBetColor,lastRollColor,$balance=$("#balance"),$betAmountInput=$("#betAmount"),$statusBar=$(".progress #banner"),$redButton=$("#panel1-7 .betButton"),$blackButton=$("#panel8-14 .betButton"),refreshIntervalId=setInterval(tick,500);


Mianowicie chodzi mi o to, czy nie ma tu jakichś podejrzanych linijek, odnośników czy jak to tam się w języku informatycznym nazywa. Skrypt ma za zadanie tylko tyle: stawiać na wybrany kolor, a w razie przegranej podwajać stawkę.
Skrypt pochodzi z niepewnego źródła a ja boję się, że jego twórca jest oszustem.
Z góry dziękuję.
 

Drenek

Nowicjusz
Dołączył
21 Styczeń 2017
Posty
2
Punkty reakcji
0
Po co ci kod jak w ogóle nie wiesz jak go uruchomić i do czego służy.

Skrypt jest bezpieczny i jest to najprawdopodobniej JavaScript.
 

adii

Nowicjusz
Dołączył
3 Luty 2017
Posty
202
Punkty reakcji
23
Wiek
27
Z tego co się orientuje to służy do stawiania betów w ruletce na cs:go.
 
Do góry