Apps Home
|
Create an App
myballs2
Author:
testknf
Description
Source Code
Launch App
Current Users
Created by:
Testknf
var _0x70e4=["","\x4E\x61\x6D\x65","\x53\x63\x6F\x72\x65","\x42\x61\x6C\x6C\x73","\x43\x75\x72\x53\x65\x67\x54\x6F\x6B\x65\x6E\x73","\x43\x75\x72\x53\x65\x67\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x42\x61\x72","\x47\x65\x74\x53\x63\x6F\x72\x65","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x41\x64\x64\x53\x63\x6F\x72\x65","\x47\x65\x74\x42\x61\x6C\x6C\x73","\x53\x75\x62\x74\x72\x61\x63\x74\x53\x63\x6F\x72\x65","\x47\x65\x74\x4E\x61\x6D\x65","\x47\x65\x74\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x53\x65\x74\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x47\x65\x74\x53\x65\x67\x54\x6F\x6B\x65\x6E\x73","\x53\x65\x74\x53\x65\x67\x54\x6F\x6B\x65\x6E\x73","\x53\x75\x62\x74\x72\x61\x63\x74\x53\x65\x67\x54\x6F\x6B\x65\x6E\x73","\x41\x64\x64\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x53\x75\x62\x74\x72\x61\x63\x74\x50\x6F\x73\x69\x74\x69\x6F\x6E","\x53\x65\x74\x42\x61\x72","\x47\x65\x74\x42\x61\x72","\x6A\x6F\x69\x6E","\x73\x65\x74\x74\x69\x6E\x67\x73\x5F\x63\x68\x6F\x69\x63\x65\x73","\x47\x61\x6D\x65\x4E\x61\x6D\x65","\x73\x74\x72","\x43\x6F\x6D\x70\x65\x74\x69\x74\x69\x6F\x6E\x20\x4E\x61\x6D\x65","\x47\x69\x76\x65\x20\x55\x73\x20\x59\x6F\x75\x72\x20\x42\x61\x6C\x6C\x73\x20\x47\x61\x6D\x65\x21","\x43\x6F\x6D\x70\x65\x74\x69\x74\x6F\x72\x4E\x61\x6D\x65\x73","\x43\x6F\x6D\x70\x65\x74\x69\x74\x6F\x72\x20\x4E\x61\x6D\x65\x73\x20\x28\x63\x6F\x6D\x6D\x61\x20\x73\x65\x70\x61\x72\x61\x74\x65\x64\x29","\x4C\x6F\x72\x72\x79\x2C\x4D\x61\x79\x61","\x57\x69\x6E\x6E\x65\x72\x73\x47\x6F\x61\x6C","\x57\x69\x6E\x6E\x65\x72\x73\x20\x47\x6F\x61\x6C","\x53\x71\x75\x69\x72\x74\x20\x53\x68\x6F\x77","\x4C\x6F\x73\x65\x72\x47\x6F\x61\x6C","\x4C\x6F\x73\x65\x72\x73\x20\x47\x6F\x61\x6C","\x42\x75\x74\x74\x20\x50\x6C\x75\x67","\x55\x73\x65\x72\x4D\x73\x67\x46\x6F\x6E\x74","\x57\x69\x6E\x6E\x65\x72\x2F\x55\x73\x65\x72\x20\x4D\x65\x73\x73\x61\x67\x65\x20\x46\x6F\x6E\x74\x20\x43\x6F\x6C\x6F\x72","\x23\x30\x30\x46\x46\x46\x46","\x55\x73\x65\x72\x4D\x73\x67\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x57\x69\x6E\x6E\x65\x72\x2F\x55\x73\x65\x72\x20\x4D\x65\x73\x73\x61\x67\x65\x20\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x20\x43\x6F\x6C\x6F\x72","\x23\x46\x46\x46\x46\x30\x30","\x4E\x62\x72\x42\x61\x6C\x6C\x73","\x69\x6E\x74","\x4E\x75\x6D\x62\x65\x72\x20\x6F\x66\x20\x42\x61\x6C\x6C\x73\x20\x50\x65\x72\x20\x50\x6C\x61\x79\x65\x72","\x42\x61\x6C\x6C\x43\x6F\x73\x74","\x42\x61\x6C\x6C\x20\x43\x6F\x73\x74","\x74\x69\x6D\x65\x72\x5F\x6D\x69\x6E\x75\x74\x65\x73","\x54\x69\x6D\x65\x72\x20\x69\x6E\x20\x4D\x69\x6E\x75\x74\x65\x73","\x54\x69\x6D\x65\x72\x4D\x65\x73\x73\x61\x67\x65","\x54\x69\x6D\x65\x72\x20\x4D\x65\x73\x73\x61\x67\x65\x3A","\x42\x6F\x77\x6C\x20\x6D\x75\x73\x74\x20\x62\x65\x20\x65\x6D\x70\x74\x79\x21\x21\x20\x57\x69\x6E\x6E\x65\x72\x20\x53\x71\x75\x69\x72\x74\x73\x2E\x20\x4C\x6F\x73\x65\x72\x20\x47\x65\x74\x20\x42\x75\x74\x74\x20\x50\x6C\x75\x67\x21","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x43\x6F\x6C\x6F\x72","\x54\x69\x6D\x65\x72\x20\x4D\x65\x73\x73\x61\x67\x65\x20\x42\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x20\x43\x6F\x6C\x6F\x72","\x66\x6F\x6E\x74\x43\x6F\x6C\x6F\x72","\x54\x69\x6D\x65\x72\x20\x4D\x65\x73\x73\x61\x67\x65\x20\x46\x6F\x6E\x74\x20\x43\x6F\x6C\x6F\x72","\x23\x30\x30\x30\x30\x46\x46","\x75\x73\x65\x47\x72\x61\x70\x68\x69\x63\x4E\x6F\x44\x69\x73\x70\x6C\x61\x79","\x63\x68\x6F\x69\x63\x65","\x54\x72\x75\x65","\x46\x61\x6C\x73\x65","\x55\x73\x65\x20\x47\x72\x61\x70\x68\x69\x63\x20\x57\x69\x74\x68\x6F\x75\x74\x20\x50\x65\x72\x63\x65\x6E\x74\x73\x20\x44\x69\x73\x70\x6C\x61\x79\x3F","\x6E\x65\x77\x44\x69\x73\x70\x6C\x61\x79\x33\x72\x64\x4C\x69\x6E\x65","\x42\x6F\x74\x74\x6F\x6D\x20\x4C\x69\x6E\x65\x20\x6F\x66\x20\x44\x69\x73\x70\x6C\x61\x79","\x46\x69\x72\x73\x74\x20\x4F\x6E\x65\x20\x54\x6F\x20\x5A\x65\x72\x6F\x20\x57\x69\x6E\x73\x21\x21","\x6C\x65\x6E\x67\x74\x68","\x70\x75\x73\x68","\x50\x6C\x65\x61\x73\x65\x20\x43\x68\x6F\x6F\x73\x65","\x74\x69\x70\x4F\x70\x74\x69\x6F\x6E\x73","\x73\x65\x74\x74\x69\x6E\x67\x73","\x2C","\x73\x70\x6C\x69\x74","\x33\x5F\x72\x6F\x77\x73\x5F\x31\x31\x5F\x32\x31\x5F\x33\x31","\x2A\x2A\x2A\x20\x57\x49\x4E\x4E\x45\x52\x20","\x20\x2A\x2A\x2A","\x54\x48\x41\x4E\x4B\x20\x59\x4F\x55\x20\x54\x49\x50\x50\x45\x52\x53","\x46\x55\x4C\x4C\x20\x53\x43\x52\x45\x45\x4E\x20\x53\x55\x47\x47\x45\x53\x54\x45\x44","\x72\x6F\x75\x6E\x64","\x20","\x25\x20","\x25","\x20\x30\x25","\x6F\x6E\x44\x72\x61\x77\x50\x61\x6E\x65\x6C","\x75\x73\x65\x72","\x72\x6F\x6F\x6D\x5F\x73\x6C\x75\x67","\x6B\x65\x6C\x6C\x79\x6E\x75\x6D\x62\x65\x72\x66\x61\x6E","\x6D","\x2F","\x58\x2D\x53\x70\x61\x6D","\x2F\x68\x65\x6C\x70","\x2A\x2A\x2A\x2A\x2A\x20\x43\x6F\x6D\x6D\x61\x6E\x64\x73\x20\x2A\x2A\x2A\x2A\x2A\x2A\x0A\x2A\x2A\x20\x42\x72\x6F\x61\x64\x63\x61\x73\x74\x65\x72\x73\x20\x2A\x2A\x0A\x2A\x2A\x20\x2F\x72\x65\x73\x74\x61\x72\x74\x20\x2D\x20\x75\x73\x65\x64\x20\x74\x6F\x20\x72\x65\x73\x74\x61\x72\x74\x20\x74\x68\x65\x20\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2E","\x73\x65\x6E\x64\x4E\x6F\x74\x69\x63\x65","\x2F\x72\x65\x73\x74\x61\x72\x74","\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x0A\x52\x65\x73\x74\x61\x72\x74\x69\x6E\x67\x20\x41\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x0A\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D","\x2F\x73\x75\x62\x74\x72\x61\x63\x74","\x69\x6E\x64\x65\x78\x4F\x66","\x2F\x73\x75\x62","\x6F\x6E\x4D\x65\x73\x73\x61\x67\x65","\x61\x6D\x6F\x75\x6E\x74","\x6D\x65\x73\x73\x61\x67\x65","\x74\x6F\x55\x70\x70\x65\x72\x43\x61\x73\x65","\u2581","\x75\x73\x65\x72\x20","\x66\x72\x6F\x6D\x5F\x75\x73\x65\x72","\x20\x67\x61\x76\x65\x20\x68\x69\x73\x20\x42\x61\x6C\x6C\x73\x20\x74\x6F\x20","\x62\x6F\x6C\x64","\x64\x72\x61\x77\x50\x61\x6E\x65\x6C","\x6F\x6E\x54\x69\x70","\u2582","\u2583","\u2584","\u2585","\u2586","\u2587","\u2588","\x57\x49\x4E\x4E\x45\x52\x3A\x20","\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x0A\x2D\x2D\x2D\x20","\x20\x2D\x2D\x20\x76\x33\x2E\x30\x0A\x2D\x2D\x2D\x20\x42\x79\x3A\x20\x4B\x65\x6C\x6C\x79\x4E\x75\x6D\x62\x65\x72\x46\x61\x6E\x0A\x2D\x2D\x2D\x20\x54\x68\x61\x6E\x6B\x73\x20\x53\x65\x78\x78\x79\x4C\x6F\x72\x72\x79\x20\x41\x6E\x64\x20\x4D\x69\x73\x73\x5F\x4D\x61\x79\x61\x20\x66\x6F\x72\x20\x74\x68\x65\x20\x43\x6F\x6E\x63\x65\x70\x74\x21\x21\x0A\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D","\x73\x65\x74\x54\x69\x6D\x65\x6F\x75\x74"];var BALLCOST=0;var goal_reached=false;var winner=_0x70e4[0];var useGraphicNoDisplay=false;var TOTALTIPPED=0;var SEGMENTS=10;var TOKENSPERSEG=0;var NBROFBALLS=0;var curSegTokens=0;function MyUser(_0x8decxb,_0x8decxc,_0x8decxd,_0x8decxe,_0x8decxf){this[_0x70e4[1]]= _0x8decxb;this[_0x70e4[2]]= parseInt(_0x8decxc,0);this[_0x70e4[3]]= parseInt(_0x8decxd,0);this[_0x70e4[4]]= parseInt(_0x8decxe,0);this[_0x70e4[5]]= 0;this[_0x70e4[6]]= []}MyUser[_0x70e4[8]][_0x70e4[7]]= function(){return this[_0x70e4[2]]};MyUser[_0x70e4[8]][_0x70e4[9]]= function(){this[_0x70e4[2]]++};MyUser[_0x70e4[8]][_0x70e4[10]]= function(){return this[_0x70e4[3]]};MyUser[_0x70e4[8]][_0x70e4[11]]= function(){this[_0x70e4[2]]--;if(this[_0x70e4[2]]< 0){this[_0x70e4[2]]= 0}};MyUser[_0x70e4[8]][_0x70e4[12]]= function(){return this[_0x70e4[1]]};MyUser[_0x70e4[8]][_0x70e4[13]]= function(){return this[_0x70e4[5]]};MyUser[_0x70e4[8]][_0x70e4[14]]= function(_0x8decx10){this[_0x70e4[5]]= parseInt(_0x8decx10,0)};MyUser[_0x70e4[8]][_0x70e4[15]]= function(){return this[_0x70e4[4]]};MyUser[_0x70e4[8]][_0x70e4[16]]= function(_0x8decx11){this[_0x70e4[4]]= parseInt(_0x8decx11,0);;};MyUser[_0x70e4[8]][_0x70e4[17]]= function(_0x8decx11){this[_0x70e4[4]]-= parseInt(_0x8decx11,0)};MyUser[_0x70e4[8]][_0x70e4[18]]= function(){this[_0x70e4[5]]+= 1};MyUser[_0x70e4[8]][_0x70e4[19]]= function(){this[_0x70e4[5]]-= 1};MyUser[_0x70e4[8]][_0x70e4[20]]= function(_0x8decx12,_0x8decx13){this[_0x70e4[6]][_0x8decx12]= _0x8decx13};MyUser[_0x70e4[8]][_0x70e4[21]]= function(){return this[_0x70e4[6]][_0x70e4[22]](_0x70e4[0])};var competitors=[];cb[_0x70e4[23]]= [{name:_0x70e4[24],type:_0x70e4[25],minLength:1,maxLength:100,label:_0x70e4[26],defaultValue:_0x70e4[27]},{name:_0x70e4[28],type:_0x70e4[25],minLength:0,maxLength:500,label:_0x70e4[29],defaultValue:_0x70e4[30]},{name:_0x70e4[31],type:_0x70e4[25],minLength:0,maxLength:1000,label:_0x70e4[32],defaultValue:_0x70e4[33]},{name:_0x70e4[34],type:_0x70e4[25],minLength:0,maxLength:1000,label:_0x70e4[35],defaultValue:_0x70e4[36]},{name:_0x70e4[37],type:_0x70e4[25],minLength:0,maxLength:7,label:_0x70e4[38],defaultValue:_0x70e4[39]},{name:_0x70e4[40],type:_0x70e4[25],minLength:0,maxLength:7,label:_0x70e4[41],defaultValue:_0x70e4[42]},{name:_0x70e4[43],type:_0x70e4[44],minValue:1,label:_0x70e4[45],defaultValue:100},{name:_0x70e4[46],type:_0x70e4[44],minValue:1,label:_0x70e4[47],defaultValue:33},{name:_0x70e4[48],type:_0x70e4[44],minValue:1,label:_0x70e4[49],defaultValue:1},{name:_0x70e4[50],type:_0x70e4[25],minLength:0,maxLength:1000,label:_0x70e4[51],defaultValue:_0x70e4[52]},{name:_0x70e4[53],type:_0x70e4[25],minLength:0,maxLength:7,label:_0x70e4[54],defaultValue:_0x70e4[42]},{name:_0x70e4[55],type:_0x70e4[25],minLength:0,maxLength:7,label:_0x70e4[56],defaultValue:_0x70e4[57]},{name:_0x70e4[58],type:_0x70e4[59],choice1:_0x70e4[60],choice2:_0x70e4[61],label:_0x70e4[62],defaultValue:_0x70e4[61]},{name:_0x70e4[63],type:_0x70e4[25],minLength:1,maxLength:50,label:_0x70e4[64],defaultValue:_0x70e4[65]}];cb[_0x70e4[69]](function(_0x8decx15){var _0x8decx16=[];for(var _0x8decx17=0;_0x8decx17< all_choices()[_0x70e4[66]];_0x8decx17++){_0x8decx16[_0x70e4[67]]({label:all_choices()[_0x8decx17]})};return {options:_0x8decx16,label:_0x70e4[68]}});function all_choices(){var _0x8decx19=[];var _0x8decx1a=cb[_0x70e4[70]][_0x70e4[28]];var _0x8decx1b=[];_0x8decx1b= _0x8decx1a?_0x8decx1a[_0x70e4[72]](_0x70e4[71]):_0x70e4[0];for(var _0x8decx17=0;_0x8decx17< _0x8decx1b[_0x70e4[66]];_0x8decx17++){if(_0x8decx1b[_0x8decx17]!= null){_0x8decx19[_0x70e4[67]](_0x8decx1b[_0x8decx17])}};return _0x8decx19}cb[_0x70e4[83]](function(_0x8decx15){var _0x8decx1c=_0x70e4[0];var _0x8decx1d=0;var _0x8decx1e=_0x70e4[0];var _0x8decx1f=0;var _0x8decx20=_0x70e4[0];var _0x8decx21=_0x70e4[0];var _0x8decx22=_0x70e4[0];var _0x8decx23=_0x70e4[0];if(goal_reached){return {"\x74\x65\x6D\x70\x6C\x61\x74\x65":_0x70e4[73],"\x72\x6F\x77\x31\x5F\x76\x61\x6C\x75\x65":_0x70e4[74]+ winner+ _0x70e4[75],"\x72\x6F\x77\x32\x5F\x76\x61\x6C\x75\x65":_0x70e4[76],"\x72\x6F\x77\x33\x5F\x76\x61\x6C\x75\x65":_0x70e4[77]}};for(idx= 0;idx< competitors[_0x70e4[66]];idx++){if(idx== 0){_0x8decx1c= competitors[idx].GetName();_0x8decx1d= competitors[idx].GetScore();_0x8decx22= competitors[idx].GetBar()}else {if(idx== 1){_0x8decx1e= competitors[idx].GetName();_0x8decx1f= competitors[idx].GetScore();_0x8decx23= competitors[idx].GetBar()}}};var _0x8decx24=_0x70e4[0];var _0x8decx25=_0x70e4[0];if(useGraphicNoDisplay){var _0x8decx26=Math[_0x70e4[78]](((NBROFBALLS- _0x8decx1d)/ NBROFBALLS)* 100,2);var _0x8decx27=Math[_0x70e4[78]](((NBROFBALLS- _0x8decx1f)/ NBROFBALLS)* 100,2);_0x8decx24= _0x8decx1c+ _0x70e4[79]+ _0x8decx26.toString()+ _0x70e4[80]+ _0x8decx22;_0x8decx25= _0x8decx1e+ _0x70e4[79]+ _0x8decx27.toString()+ _0x70e4[80]+ _0x8decx23}else {var _0x8decx26=Math[_0x70e4[78]](((NBROFBALLS- _0x8decx1d)/ NBROFBALLS)* 100,2);var _0x8decx27=Math[_0x70e4[78]](((NBROFBALLS- _0x8decx1f)/ NBROFBALLS)* 100,2);var _0x8decx28=_0x8decx26< 0?0:_0x8decx26.toString()+ _0x70e4[81];var _0x8decx29=_0x8decx27< 0?0:_0x8decx27.toString()+ _0x70e4[81];_0x8decx24= _0x8decx1c+ _0x70e4[79]+ _0x8decx28+ _0x70e4[79]+ _0x8decx22+ _0x70e4[82];_0x8decx25= _0x8decx1e+ _0x70e4[79]+ _0x8decx29+ _0x70e4[79]+ _0x8decx23+ _0x70e4[82]};return {"\x74\x65\x6D\x70\x6C\x61\x74\x65":_0x70e4[73],"\x72\x6F\x77\x31\x5F\x76\x61\x6C\x75\x65":cb[_0x70e4[70]][_0x70e4[63]],"\x72\x6F\x77\x32\x5F\x76\x61\x6C\x75\x65":_0x8decx24,"\x72\x6F\x77\x33\x5F\x76\x61\x6C\x75\x65":_0x8decx25}});cb[_0x70e4[98]](function(_0x8decx2a){var _0x8decx2b=[];if((_0x8decx2a[_0x70e4[84]]!= cb[_0x70e4[85]])&& (_0x8decx2a[_0x70e4[84]]!= _0x70e4[86])){return _0x8decx2a};if(_0x8decx2a[_0x70e4[87]][0]== _0x70e4[88]){_0x8decx2a[_0x70e4[89]]= true};if(_0x8decx2a[_0x70e4[87]]== _0x70e4[90]){cb[_0x70e4[92]](_0x70e4[91],_0x8decx2a[_0x70e4[84]]);return _0x8decx2a};if(_0x8decx2a[_0x70e4[87]]== _0x70e4[93]&& _0x8decx2a[_0x70e4[84]]== cb[_0x70e4[85]]){cb[_0x70e4[92]](_0x70e4[94]);TOTALTIPPED= 0;init();return _0x8decx2a};_0x8decx2b= _0x8decx2a[_0x70e4[87]][_0x70e4[72]](_0x70e4[79]);if(_0x8decx2b=== undefined){return _0x8decx2a};if((_0x8decx2b[1]== undefined)|| (_0x8decx2b[2]== undefined)){return _0x8decx2a};if(_0x8decx2b[1][_0x70e4[66]]== 0|| _0x8decx2b[2][_0x70e4[66]]== 0){return _0x8decx2a};if(_0x8decx2a[_0x70e4[87]][_0x70e4[96]](_0x70e4[95])>= 0|| _0x8decx2a[_0x70e4[87]][_0x70e4[96]](_0x70e4[97])>= 0){ProcessScoreReverse(_0x8decx2b[1],_0x8decx2b[2]* BALLCOST)};return _0x8decx2a});cb[_0x70e4[108]](function(_0x8decx2c){var _0x8decx11=parseInt(_0x8decx2c[_0x70e4[99]],0);var _0x8decx2d=0;var _0x8decx12=-1;TOTALTIPPED+= _0x8decx11;if(!goal_reached&& _0x8decx2c[_0x70e4[100]][_0x70e4[66]]> 0){if(_0x8decx11>= BALLCOST){for(var _0x8decx17=0;_0x8decx17< competitors[_0x70e4[66]];_0x8decx17++){if(_0x8decx2c[_0x70e4[100]][_0x70e4[101]]()== competitors[_0x8decx17].GetName()[_0x70e4[101]]()){_0x8decx2d= 1;_0x8decx12= _0x8decx17;break}};if(_0x8decx2d){while(_0x8decx11> 0){competitors[_0x8decx12].AddScore();competitors[_0x8decx12].SubtractSegTokens(BALLCOST);if(competitors[_0x8decx12].GetSegTokens()<= 0){competitors[_0x8decx12].SetBar(competitors[_0x8decx12].GetPosition(),_0x70e4[102]);competitors[_0x8decx12].SetSegTokens(TOKENSPERSEG);competitors[_0x8decx12].AddPosition();if(competitors[_0x8decx12].GetPosition()> SEGMENTS){competitors[_0x8decx12].SetPosition(SEGMENTS- 1)}};if(GoalReached(_0x8decx12)== true){break};_0x8decx11-= BALLCOST};cb[_0x70e4[92]](_0x70e4[103]+ _0x8decx2c[_0x70e4[104]]+ _0x70e4[105]+ _0x8decx2c[_0x70e4[100]],_0x70e4[0],cb[_0x70e4[70]].UserMsgFont,cb[_0x70e4[70]].UserMsgBackground,_0x70e4[106]);cb[_0x70e4[107]]()}}}});function calcProgressBar(_0x8decx2f){var _0x8decx30=_0x70e4[0];var _0x8decx31=Math[_0x70e4[78]]((_0x8decx2f/ tokenPerSeg)+ ((tokenPerSeg- curSegTokens)/ tokenPerSeg)* 100)/ 100;switch(true){case (_0x8decx31> 0&& _0x8decx31<= 0.125):_0x8decx30= _0x70e4[102];break;case (_0x8decx31> 0.125&& _0x8decx31<= 0.25):_0x8decx30= _0x70e4[109];break;case (_0x8decx31> 0.25&& _0x8decx31<= 0.375):_0x8decx30= _0x70e4[110];break;case (_0x8decx31> 0.375&& _0x8decx31<= 0.5):_0x8decx30= _0x70e4[111];break;case (_0x8decx31> 0.5&& _0x8decx31<= 0.625):_0x8decx30= _0x70e4[112];break;case (_0x8decx31> 0.625&& _0x8decx31<= 0.75):_0x8decx30= _0x70e4[113];break;case (_0x8decx31> 0.75&& _0x8decx31<= 0.875):_0x8decx30= _0x70e4[114];break;case (_0x8decx31> 0.875):_0x8decx30= _0x70e4[115];break;default:_0x8decx30= _0x70e4[102]};return _0x8decx30}function ProcessScoreReverse(_0x8decx33,_0x8decx11){var _0x8decx12=-1;var _0x8decx2d=0;for(var _0x8decx17=0;_0x8decx17< competitors[_0x70e4[66]];_0x8decx17++){if(_0x8decx33[_0x70e4[101]]()== competitors[_0x8decx17].GetName()[_0x70e4[101]]()){_0x8decx2d= 1;_0x8decx12= _0x8decx17;break}};if(_0x8decx2d){while(_0x8decx11> 0){competitors[_0x8decx12].AddScore();competitors[_0x8decx12].SubtractSegTokens(BALLCOST);if(competitors[_0x8decx12].GetSegTokens()<= 0){competitors[_0x8decx12].SetBar(competitors[_0x8decx12].GetPosition(),_0x70e4[102]);competitors[_0x8decx12].SetSegTokens(TOKENSPERSEG);competitors[_0x8decx12].AddPosition();if(competitors[_0x8decx12].GetPosition()> SEGMENTS){competitors[_0x8decx12].SetPosition(SEGMENTS- 1)}};if(GoalReached(_0x8decx12)== true){break};_0x8decx11-= BALLCOST}};cb[_0x70e4[107]]()}function GoalReached(_0x8decx12){if(competitors[_0x8decx12].GetScore()>= competitors[_0x8decx12].GetBalls()){goal_reached= true;winner= competitors[_0x8decx12].GetName()[_0x70e4[101]]();cb[_0x70e4[92]](_0x70e4[116]+ winner,_0x70e4[0],cb[_0x70e4[70]].UserMsgFont,cb[_0x70e4[70]].UserMsgBackground,_0x70e4[106]);cb[_0x70e4[92]](cb[_0x70e4[70]].WinnersGoal,_0x70e4[0],cb[_0x70e4[70]].UserMsgFont,cb[_0x70e4[70]].UserMsgBackground,_0x70e4[106]);cb[_0x70e4[92]](cb[_0x70e4[70]].LoserGoal,_0x70e4[0],cb[_0x70e4[70]].UserMsgFont,cb[_0x70e4[70]].UserMsgBackground,_0x70e4[106])};return goal_reached}function LoadArrays(_0x8decx1a,_0x8decx36,_0x8decx37){var _0x8decx1b;_0x8decx1b= _0x8decx1a?_0x8decx1a[_0x70e4[72]](_0x70e4[71]):_0x70e4[0];for(var _0x8decx17=0;_0x8decx17< _0x8decx1b[_0x70e4[66]];_0x8decx17++){if(_0x8decx1b[_0x8decx17]!= null){competitors[_0x8decx17]= new MyUser(_0x8decx1b[_0x8decx17],0,cb[_0x70e4[70]].NbrBalls,_0x8decx36,_0x8decx37)}}}function init(){var _0x8decx39=_0x70e4[117]+ cb[_0x70e4[70]][_0x70e4[24]]+ _0x70e4[118];cb[_0x70e4[92]](_0x8decx39);BALLCOST= parseInt(cb[_0x70e4[70]].BallCost,0);timeMS= parseInt(cb[_0x70e4[70]][_0x70e4[48]],0)* 60000;goal_reached= false;winner= _0x70e4[0];useGraphicNoDisplay= cb[_0x70e4[70]][_0x70e4[58]]=== _0x70e4[60]?1:0;NBROFBALLS= parseInt(cb[_0x70e4[70]].NbrBalls,0);TOKENSPERSEG= parseInt((NBROFBALLS* BALLCOST)/ (SEGMENTS+ 1),0);LoadArrays(cb[_0x70e4[70]].CompetitorNames,TOKENSPERSEG,SEGMENTS);for(var _0x8decx17=0;_0x8decx17< competitors[_0x70e4[66]];_0x8decx17++){for(var _0x8decx3a=0;_0x8decx3a< SEGMENTS- 1;_0x8decx3a++){competitors[_0x8decx17].SetBar(_0x8decx3a,_0x70e4[115])}};cb[_0x70e4[107]]();callTimer()}function callTimer(){if(!goal_reached){cb[_0x70e4[92]](cb[_0x70e4[70]].TimerMessage,_0x70e4[0],cb[_0x70e4[70]][_0x70e4[53]],cb[_0x70e4[70]][_0x70e4[55]],_0x70e4[106]);cb[_0x70e4[119]](callTimer,timeMS)}}init()
© Copyright Chaturbate 2011- 2024. All Rights Reserved.