How to use getRandomInt method in Cypress

Best JavaScript code snippet using cypress

drone.js

Source:drone.js Github

copy

Full Screen

...21 sleep(x);22}23// a subset of layers to differentiate time delay24function l1() {25 var random_x = getRandomInt(420, 699);26 sleep(random_x);27}28function la2() {29 var random_x = getRandomInt(4271, 10000);30 sleep(random_x);31}32function lay3() {33 var random_x = getRandomInt(0, 414);34 sleep(random_x);35}36function laye4() {37 var random_x = getRandomInt(14103, 31413);38 sleep(random_x);39}40// function that calls all layer41// sleeping for between 18.794 millisecond to 42.526 milliseconds42// used if necessary43function layer5() {44 l1();45 la2();46 lay3();47 laye4();48}49//function that returns random interger between floor and ceiling with50function getRandomInt(min, max) {51 min = Math.ceil(min);52 max = Math.floor(max);53 return Math.floor(Math.random() * (max - min + 1)) + min;54}55function // 1 unit combination56SoloMix() {57 var time = 0;58 // randomlly 100,200 cycle interval59 while (time++ <= 1000) {60 // top left61 var X_firstHalf = [62 getRandomInt(576, 586),63 getRandomInt(616, 630),64 getRandomInt(656, 670),65 getRandomInt(699, 716),66 getRandomInt(576, 586),67 getRandomInt(616, 630),68 getRandomInt(656, 670),69 getRandomInt(699, 716),70 getRandomInt(576, 586),71 getRandomInt(616, 630),72 getRandomInt(656, 670),73 getRandomInt(699, 716),74 getRandomInt(576, 586),75 getRandomInt(616, 630),76 ];77 var X_secondHalf = [78 getRandomInt(656, 670),79 getRandomInt(699, 716),80 getRandomInt(576, 586),81 getRandomInt(616, 630),82 getRandomInt(656, 670),83 getRandomInt(699, 716),84 getRandomInt(576, 586),85 getRandomInt(616, 630),86 getRandomInt(656, 670),87 getRandomInt(699, 716),88 getRandomInt(576, 586),89 getRandomInt(616, 630),90 getRandomInt(656, 670),91 getRandomInt(699, 716),92 ];93 var Y_firstHalf = [94 getRandomInt(247, 258),95 getRandomInt(247, 258),96 getRandomInt(247, 258),97 getRandomInt(247, 258),98 getRandomInt(283, 296),99 getRandomInt(283, 296),100 getRandomInt(283, 296),101 getRandomInt(283, 296),102 getRandomInt(321, 332),103 getRandomInt(321, 332),104 getRandomInt(321, 332),105 getRandomInt(321, 332),106 getRandomInt(358, 371),107 getRandomInt(358, 371),108 ];109 var Y_secondHalf = [110 getRandomInt(358, 371),111 getRandomInt(358, 371),112 getRandomInt(389, 406),113 getRandomInt(389, 406),114 getRandomInt(389, 406),115 getRandomInt(389, 406),116 getRandomInt(431, 444),117 getRandomInt(431, 444),118 getRandomInt(431, 444),119 getRandomInt(431, 444),120 getRandomInt(463, 479),121 getRandomInt(463, 479),122 getRandomInt(463, 479),123 getRandomInt(463, 479),124 ];125 // random mousemovement126 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332));127 var x = 3;128 var y = 3;129 // movemouse to the 3rd row,7th column 381, 198130 var xlocation = getRandomInt(381 - x, 381 + x);131 var ylocation = getRandomInt(198 - y, 198 + y);132 scv.moveMouseSmooth(xlocation, ylocation);133 scv.mouseClick('right');134 tick(getRandomInt(700, 800));135 scv.moveMouseSmooth(xlocation, ylocation + 85);136 scv.mouseClick();137 tick(getRandomInt(700, 800));138 scv.moveMouse(139 getRandomInt(429 - 4, 429 + 4),140 getRandomInt(198 - 3, 198 + 3)141 );142 scv.mouseClick();143 // a1144 closeBank1();145 tick(getRandomInt(700, 800));146 var temp = getRandomInt(0, 13);147 scv.moveMouseSmooth(X_firstHalf[temp], Y_firstHalf[temp]);148 scv.mouseClick();149 tick(getRandomInt(700, 800));150 var temp2 = getRandomInt(0, 13);151 scv.moveMouseSmooth(X_secondHalf[temp2], Y_secondHalf[temp2]);152 scv.mouseClick();153 tick(getRandomInt(700, 800));154 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480));155 scv.mouseClick();156 tick(getRandomInt(100, 200));157 scv.mouseClick();158 sleep(getRandomInt(8800, 9200));159 scv.moveMouseSmooth(160 getRandomInt(256, 256 + 97),161 getRandomInt(190, 190 + 53)162 );163 scv.mouseClick();164 sleep(getRandomInt(634, 780));165 advancedDeposit1();166 sleep(getRandomInt(634, 780));167 }168}169function // slowly combining the clean herb with vial of water in a designated location with 2 svcs with random intervals+ random combination elements170DuoMix() {171 var time = 0;172 var randomTime=getRandomInt(300, 350);173 // randomlly between 3 hour -5 hour worktime174 while (time < randomTime) {175 time++;176 // top left177 scv.moveMouseSmooth(getRandomInt(600, 700), getRandomInt(1, 900));178 var X_firstHalf = [179 getRandomInt(576, 586),180 getRandomInt(616, 630),181 getRandomInt(656, 670),182 getRandomInt(699, 716),183 getRandomInt(576, 586),184 getRandomInt(616, 630),185 getRandomInt(656, 670),186 getRandomInt(699, 716),187 getRandomInt(576, 586),188 getRandomInt(616, 630),189 getRandomInt(656, 670),190 getRandomInt(699, 716),191 getRandomInt(576, 586),192 getRandomInt(616, 630),193 ];194 var X_secondHalf = [195 getRandomInt(656, 670),196 getRandomInt(699, 716),197 getRandomInt(576, 586),198 getRandomInt(616, 630),199 getRandomInt(656, 670),200 getRandomInt(699, 716),201 getRandomInt(576, 586),202 getRandomInt(616, 630),203 getRandomInt(656, 670),204 getRandomInt(699, 716),205 getRandomInt(576, 586),206 getRandomInt(616, 630),207 getRandomInt(656, 670),208 getRandomInt(699, 716),209 ];210 var Y_firstHalf = [211 getRandomInt(247, 258),212 getRandomInt(247, 258),213 getRandomInt(247, 258),214 getRandomInt(247, 258),215 getRandomInt(283, 296),216 getRandomInt(283, 296),217 getRandomInt(283, 296),218 getRandomInt(283, 296),219 getRandomInt(321, 332),220 getRandomInt(321, 332),221 getRandomInt(321, 332),222 getRandomInt(321, 332),223 getRandomInt(358, 371),224 getRandomInt(358, 371),225 ];226 var Y_secondHalf = [227 getRandomInt(358, 371),228 getRandomInt(358, 371),229 getRandomInt(389, 406),230 getRandomInt(389, 406),231 getRandomInt(389, 406),232 getRandomInt(389, 406),233 getRandomInt(431, 444),234 getRandomInt(431, 444),235 getRandomInt(431, 444),236 getRandomInt(431, 444),237 getRandomInt(463, 479),238 getRandomInt(463, 479),239 getRandomInt(463, 479),240 getRandomInt(463, 479),241 ];242 //bottom left243 var X1_firstHalf = [244 getRandomInt(576, 586),245 getRandomInt(616, 630),246 getRandomInt(656, 670),247 getRandomInt(699, 716),248 getRandomInt(576, 586),249 getRandomInt(616, 630),250 getRandomInt(656, 670),251 getRandomInt(699, 716),252 getRandomInt(576, 586),253 getRandomInt(616, 630),254 getRandomInt(656, 670),255 getRandomInt(699, 716),256 getRandomInt(576, 586),257 getRandomInt(616, 630),258 ];259 var X1_secondHalf = [260 getRandomInt(656, 670),261 getRandomInt(699, 716),262 getRandomInt(576, 586),263 getRandomInt(616, 630),264 getRandomInt(656, 670),265 getRandomInt(699, 716),266 getRandomInt(576, 586),267 getRandomInt(616, 630),268 getRandomInt(656, 670),269 getRandomInt(699, 716),270 getRandomInt(576, 586),271 getRandomInt(616, 630),272 getRandomInt(656, 670),273 getRandomInt(699, 716),274 ];275 var Y1_firstHalf = [276 getRandomInt(247, 258) + 534,277 getRandomInt(247, 258) + 534,278 getRandomInt(247, 258) + 534,279 getRandomInt(247, 258) + 534,280 getRandomInt(283, 296) + 534,281 getRandomInt(283, 296) + 534,282 getRandomInt(283, 296) + 534,283 getRandomInt(283, 296) + 534,284 getRandomInt(321, 332) + 534,285 getRandomInt(321, 332) + 534,286 getRandomInt(321, 332) + 534,287 getRandomInt(321, 332) + 534,288 getRandomInt(358, 371) + 534,289 getRandomInt(358, 371) + 534,290 ];291 var Y1_secondHalf = [292 getRandomInt(358, 371) + 534,293 getRandomInt(358, 371) + 534,294 getRandomInt(389, 406) + 534,295 getRandomInt(389, 406) + 534,296 getRandomInt(389, 406) + 534,297 getRandomInt(389, 406) + 534,298 getRandomInt(431, 444) + 534,299 getRandomInt(431, 444) + 534,300 getRandomInt(431, 444) + 534,301 getRandomInt(431, 444) + 534,302 getRandomInt(463, 479) + 534,303 getRandomInt(463, 479) + 534,304 getRandomInt(463, 479) + 534,305 getRandomInt(463, 479) + 534,306 ];307 // random mousemovement308 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332));309 var x = 3;310 var y = 3;311 // movemouse to the 3rd row,7th column 381, 198312 var xlocation = getRandomInt(381 - x, 381 + x);313 var ylocation = getRandomInt(198 - y, 198 + y);314 scv.moveMouseSmooth(xlocation, ylocation);315 scv.mouseClick('right');316 tick(getRandomInt(700, 800));317 scv.moveMouseSmooth(xlocation, ylocation + 85);318 scv.mouseClick();319 tick(getRandomInt(700, 800));320 scv.moveMouse(321 getRandomInt(429 - 4, 429 + 4),322 getRandomInt(198 - 3, 198 + 3)323 );324 scv.mouseClick();325 // a1326 closeBank1();327 tick(getRandomInt(700, 800));328 var temp = getRandomInt(0, 13);329 scv.moveMouseSmooth(X_firstHalf[temp], Y_firstHalf[temp]);330 scv.mouseClick();331 tick(getRandomInt(700, 800));332 var temp2 = getRandomInt(0, 13);333 scv.moveMouseSmooth(X_secondHalf[temp2], Y_secondHalf[temp2]);334 scv.mouseClick();335 tick(getRandomInt(700, 800));336 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480));337 scv.mouseClick();338 // random mousemovement339 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332) + 534);340 // b1341 var xlocation = getRandomInt(381 - x, 381 + x);342 var ylocation = getRandomInt(198 - y, 198 + y) + 534;343 scv.moveMouseSmooth(xlocation, ylocation);344 scv.mouseClick('right');345 tick(getRandomInt(700, 800));346 scv.moveMouseSmooth(xlocation, ylocation + 85);347 scv.mouseClick();348 tick(getRandomInt(700, 800));349 scv.moveMouse(350 getRandomInt(429 - 4, 429 + 4),351 getRandomInt(198 - 3, 198 + 3) + 534352 );353 scv.mouseClick();354 closeBank2();355 tick(getRandomInt(700, 800));356 var temp3 = getRandomInt(0, 13);357 scv.moveMouseSmooth(X1_firstHalf[temp3], Y1_firstHalf[temp3]);358 scv.mouseClick();359 var temp4 = getRandomInt(0, 13);360 scv.moveMouseSmooth(X1_secondHalf[temp4], Y1_secondHalf[temp4]);361 scv.mouseClick();362 tick(getRandomInt(700, 800));363 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480) + 534);364 scv.mouseClick();365 sleep(getRandomInt(4300, 4700));366 scv.moveMouseSmooth(367 getRandomInt(256, 256 + 97),368 getRandomInt(190, 190 + 53)369 );370 scv.mouseClick();371 sleep(getRandomInt(634, 780));372 advancedDeposit1();373 sleep(getRandomInt(1200, 2000));374 scv.moveMouseSmooth(375 getRandomInt(256, 256 + 97),376 getRandomInt(190, 190 + 53) + 534377 );378 scv.mouseClick();379 sleep(getRandomInt(634, 780));380 advancedDeposit2();381 console.log(randomTime-time + 'cycles left');382 }383}384function // slowly harvesting gas once wait6ms385DuoMake1stRow1tick() {386 // top left387 scv.moveMouseSmooth(getRandomInt(600, 700), getRandomInt(1, 900));388 var X_firstHalf = [389 getRandomInt(576, 586),390 getRandomInt(616, 630),391 getRandomInt(656, 670),392 getRandomInt(699, 716),393 getRandomInt(576, 586),394 getRandomInt(616, 630),395 getRandomInt(656, 670),396 getRandomInt(699, 716),397 getRandomInt(576, 586),398 getRandomInt(616, 630),399 getRandomInt(656, 670),400 getRandomInt(699, 716),401 getRandomInt(576, 586),402 getRandomInt(616, 630),403 ];404 var X_secondHalf = [405 getRandomInt(656, 670),406 getRandomInt(699, 716),407 getRandomInt(576, 586),408 getRandomInt(616, 630),409 getRandomInt(656, 670),410 getRandomInt(699, 716),411 getRandomInt(576, 586),412 getRandomInt(616, 630),413 getRandomInt(656, 670),414 getRandomInt(699, 716),415 getRandomInt(576, 586),416 getRandomInt(616, 630),417 getRandomInt(656, 670),418 getRandomInt(699, 716),419 ];420 var Y_firstHalf = [421 getRandomInt(247, 258),422 getRandomInt(247, 258),423 getRandomInt(247, 258),424 getRandomInt(247, 258),425 getRandomInt(283, 296),426 getRandomInt(283, 296),427 getRandomInt(283, 296),428 getRandomInt(283, 296),429 getRandomInt(321, 332),430 getRandomInt(321, 332),431 getRandomInt(321, 332),432 getRandomInt(321, 332),433 getRandomInt(358, 371),434 getRandomInt(358, 371),435 ];436 var Y_secondHalf = [437 getRandomInt(358, 371),438 getRandomInt(358, 371),439 getRandomInt(389, 406),440 getRandomInt(389, 406),441 getRandomInt(389, 406),442 getRandomInt(389, 406),443 getRandomInt(431, 444),444 getRandomInt(431, 444),445 getRandomInt(431, 444),446 getRandomInt(431, 444),447 getRandomInt(463, 479),448 getRandomInt(463, 479),449 getRandomInt(463, 479),450 getRandomInt(463, 479),451 ];452 //bottom left453 var X1_firstHalf = [454 getRandomInt(576, 586),455 getRandomInt(616, 630),456 getRandomInt(656, 670),457 getRandomInt(699, 716),458 getRandomInt(576, 586),459 getRandomInt(616, 630),460 getRandomInt(656, 670),461 getRandomInt(699, 716),462 getRandomInt(576, 586),463 getRandomInt(616, 630),464 getRandomInt(656, 670),465 getRandomInt(699, 716),466 getRandomInt(576, 586),467 getRandomInt(616, 630),468 ];469 var X1_secondHalf = [470 getRandomInt(656, 670),471 getRandomInt(699, 716),472 getRandomInt(576, 586),473 getRandomInt(616, 630),474 getRandomInt(656, 670),475 getRandomInt(699, 716),476 getRandomInt(576, 586),477 getRandomInt(616, 630),478 getRandomInt(656, 670),479 getRandomInt(699, 716),480 getRandomInt(576, 586),481 getRandomInt(616, 630),482 getRandomInt(656, 670),483 getRandomInt(699, 716),484 ];485 var Y1_firstHalf = [486 getRandomInt(247, 258) + 534,487 getRandomInt(247, 258) + 534,488 getRandomInt(247, 258) + 534,489 getRandomInt(247, 258) + 534,490 getRandomInt(283, 296) + 534,491 getRandomInt(283, 296) + 534,492 getRandomInt(283, 296) + 534,493 getRandomInt(283, 296) + 534,494 getRandomInt(321, 332) + 534,495 getRandomInt(321, 332) + 534,496 getRandomInt(321, 332) + 534,497 getRandomInt(321, 332) + 534,498 getRandomInt(358, 371) + 534,499 getRandomInt(358, 371) + 534,500 ];501 var Y1_secondHalf = [502 getRandomInt(358, 371) + 534,503 getRandomInt(358, 371) + 534,504 getRandomInt(389, 406) + 534,505 getRandomInt(389, 406) + 534,506 getRandomInt(389, 406) + 534,507 getRandomInt(389, 406) + 534,508 getRandomInt(431, 444) + 534,509 getRandomInt(431, 444) + 534,510 getRandomInt(431, 444) + 534,511 getRandomInt(431, 444) + 534,512 getRandomInt(463, 479) + 534,513 getRandomInt(463, 479) + 534,514 getRandomInt(463, 479) + 534,515 getRandomInt(463, 479) + 534,516 ];517 // random mousemovement518 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332));519 var x = 3;520 var y = 3;521 // movemouse to the 3rd row,7th column 381, 198522 var xlocation = getRandomInt(381 - x, 381 + x);523 var ylocation = getRandomInt(125 - y, 125 + y);524 scv.moveMouseSmooth(xlocation, ylocation);525 scv.mouseClick('right');526 tick(getRandomInt(700, 800));527 scv.moveMouseSmooth(xlocation, ylocation + 85);528 scv.mouseClick();529 tick(getRandomInt(700, 800));530 scv.moveMouse(getRandomInt(429 - 4, 429 + 4), getRandomInt(125 - 3, 125 + 3));531 scv.mouseClick();532 // a1533 closeBank1();534 tick(getRandomInt(700, 800));535 var temp = getRandomInt(0, 13);536 scv.moveMouseSmooth(X_firstHalf[temp], Y_firstHalf[temp]);537 scv.mouseClick();538 tick(getRandomInt(700, 800));539 var temp2 = getRandomInt(0, 13);540 scv.moveMouseSmooth(X_secondHalf[temp2], Y_secondHalf[temp2]);541 scv.mouseClick();542 tick(getRandomInt(700, 800));543 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480));544 scv.mouseClick();545 // random mousemovement546 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332) + 534);547 // b1548 var xlocation = getRandomInt(381 - x, 381 + x);549 var ylocation = getRandomInt(125 - y, 125 + y) + 534;550 scv.moveMouseSmooth(xlocation, ylocation);551 scv.mouseClick('right');552 tick(getRandomInt(700, 800));553 scv.moveMouseSmooth(xlocation, ylocation + 85);554 scv.mouseClick();555 tick(getRandomInt(700, 800));556 scv.moveMouse(557 getRandomInt(429 - 4, 429 + 4),558 getRandomInt(125 - 3, 125 + 3) + 534559 );560 scv.mouseClick();561 closeBank2();562 tick(getRandomInt(700, 800));563 var temp3 = getRandomInt(0, 13);564 scv.moveMouseSmooth(X1_firstHalf[temp3], Y1_firstHalf[temp3]);565 scv.mouseClick();566 tick(getRandomInt(700, 800));567 var temp4 = getRandomInt(0, 13);568 scv.moveMouseSmooth(X1_secondHalf[temp4], Y1_secondHalf[temp4]);569 scv.mouseClick();570 tick(getRandomInt(700, 800));571 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480) + 534);572 scv.mouseClick();573 // set timer depending on the variants574 //575 sleep(getRandomInt(6100, 6700)); // for 1tick unf potions576 //577 //578 //579 scv.moveMouseSmooth(getRandomInt(256, 256 + 97), getRandomInt(190, 190 + 53));580 scv.mouseClick();581 sleep(getRandomInt(634, 780));582 advancedDeposit1();583 sleep(getRandomInt(1200, 2000));584 scv.moveMouseSmooth(585 getRandomInt(256, 256 + 97),586 getRandomInt(190, 190 + 53) + 534587 );588 scv.mouseClick();589 sleep(getRandomInt(634, 780));590 advancedDeposit2();591}592function // slowly harvesting gas once wait7.5ms593DuoMake1stRow2tick() {594 // top left595 scv.moveMouseSmooth(getRandomInt(600, 700), getRandomInt(1, 900));596 var X_firstHalf = [597 getRandomInt(576, 586),598 getRandomInt(616, 630),599 getRandomInt(656, 670),600 getRandomInt(699, 716),601 getRandomInt(576, 586),602 getRandomInt(616, 630),603 getRandomInt(656, 670),604 getRandomInt(699, 716),605 getRandomInt(576, 586),606 getRandomInt(616, 630),607 getRandomInt(656, 670),608 getRandomInt(699, 716),609 getRandomInt(576, 586),610 getRandomInt(616, 630),611 ];612 var X_secondHalf = [613 getRandomInt(656, 670),614 getRandomInt(699, 716),615 getRandomInt(576, 586),616 getRandomInt(616, 630),617 getRandomInt(656, 670),618 getRandomInt(699, 716),619 getRandomInt(576, 586),620 getRandomInt(616, 630),621 getRandomInt(656, 670),622 getRandomInt(699, 716),623 getRandomInt(576, 586),624 getRandomInt(616, 630),625 getRandomInt(656, 670),626 getRandomInt(699, 716),627 ];628 var Y_firstHalf = [629 getRandomInt(247, 258),630 getRandomInt(247, 258),631 getRandomInt(247, 258),632 getRandomInt(247, 258),633 getRandomInt(283, 296),634 getRandomInt(283, 296),635 getRandomInt(283, 296),636 getRandomInt(283, 296),637 getRandomInt(321, 332),638 getRandomInt(321, 332),639 getRandomInt(321, 332),640 getRandomInt(321, 332),641 getRandomInt(358, 371),642 getRandomInt(358, 371),643 ];644 var Y_secondHalf = [645 getRandomInt(358, 371),646 getRandomInt(358, 371),647 getRandomInt(389, 406),648 getRandomInt(389, 406),649 getRandomInt(389, 406),650 getRandomInt(389, 406),651 getRandomInt(431, 444),652 getRandomInt(431, 444),653 getRandomInt(431, 444),654 getRandomInt(431, 444),655 getRandomInt(463, 479),656 getRandomInt(463, 479),657 getRandomInt(463, 479),658 getRandomInt(463, 479),659 ];660 //bottom left661 var X1_firstHalf = [662 getRandomInt(576, 586),663 getRandomInt(616, 630),664 getRandomInt(656, 670),665 getRandomInt(699, 716),666 getRandomInt(576, 586),667 getRandomInt(616, 630),668 getRandomInt(656, 670),669 getRandomInt(699, 716),670 getRandomInt(576, 586),671 getRandomInt(616, 630),672 getRandomInt(656, 670),673 getRandomInt(699, 716),674 getRandomInt(576, 586),675 getRandomInt(616, 630),676 ];677 var X1_secondHalf = [678 getRandomInt(656, 670),679 getRandomInt(699, 716),680 getRandomInt(576, 586),681 getRandomInt(616, 630),682 getRandomInt(656, 670),683 getRandomInt(699, 716),684 getRandomInt(576, 586),685 getRandomInt(616, 630),686 getRandomInt(656, 670),687 getRandomInt(699, 716),688 getRandomInt(576, 586),689 getRandomInt(616, 630),690 getRandomInt(656, 670),691 getRandomInt(699, 716),692 ];693 var Y1_firstHalf = [694 getRandomInt(247, 258) + 534,695 getRandomInt(247, 258) + 534,696 getRandomInt(247, 258) + 534,697 getRandomInt(247, 258) + 534,698 getRandomInt(283, 296) + 534,699 getRandomInt(283, 296) + 534,700 getRandomInt(283, 296) + 534,701 getRandomInt(283, 296) + 534,702 getRandomInt(321, 332) + 534,703 getRandomInt(321, 332) + 534,704 getRandomInt(321, 332) + 534,705 getRandomInt(321, 332) + 534,706 getRandomInt(358, 371) + 534,707 getRandomInt(358, 371) + 534,708 ];709 var Y1_secondHalf = [710 getRandomInt(358, 371) + 534,711 getRandomInt(358, 371) + 534,712 getRandomInt(389, 406) + 534,713 getRandomInt(389, 406) + 534,714 getRandomInt(389, 406) + 534,715 getRandomInt(389, 406) + 534,716 getRandomInt(431, 444) + 534,717 getRandomInt(431, 444) + 534,718 getRandomInt(431, 444) + 534,719 getRandomInt(431, 444) + 534,720 getRandomInt(463, 479) + 534,721 getRandomInt(463, 479) + 534,722 getRandomInt(463, 479) + 534,723 getRandomInt(463, 479) + 534,724 ];725 // random mousemovement726 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332));727 var x = 3;728 var y = 3;729 // movemouse to the 3rd row,7th column 381, 198730 var xlocation = getRandomInt(381 - x, 381 + x);731 var ylocation = getRandomInt(125 - y, 125 + y);732 scv.moveMouseSmooth(xlocation, ylocation);733 scv.mouseClick('right');734 tick(getRandomInt(700, 800));735 scv.moveMouseSmooth(xlocation, ylocation + 85);736 scv.mouseClick();737 tick(getRandomInt(700, 800));738 scv.moveMouse(getRandomInt(429 - 4, 429 + 4), getRandomInt(125 - 3, 125 + 3));739 scv.mouseClick();740 // a1741 closeBank1();742 tick(getRandomInt(700, 800));743 var temp = getRandomInt(0, 13);744 scv.moveMouseSmooth(X_firstHalf[temp], Y_firstHalf[temp]);745 scv.mouseClick();746 tick(getRandomInt(700, 800));747 var temp2 = getRandomInt(0, 13);748 scv.moveMouseSmooth(X_secondHalf[temp2], Y_secondHalf[temp2]);749 scv.mouseClick();750 tick(getRandomInt(700, 800));751 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480));752 scv.mouseClick();753 // random mousemovement754 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332) + 534);755 // b1756 var xlocation = getRandomInt(381 - x, 381 + x);757 var ylocation = getRandomInt(125 - y, 125 + y) + 534;758 scv.moveMouseSmooth(xlocation, ylocation);759 scv.mouseClick('right');760 tick(getRandomInt(700, 800));761 scv.moveMouseSmooth(xlocation, ylocation + 85);762 scv.mouseClick();763 tick(getRandomInt(700, 800));764 scv.moveMouse(765 getRandomInt(429 - 4, 429 + 4),766 getRandomInt(125 - 3, 125 + 3) + 534767 );768 scv.mouseClick();769 closeBank2();770 tick(getRandomInt(700, 800));771 var temp3 = getRandomInt(0, 13);772 scv.moveMouseSmooth(X1_firstHalf[temp3], Y1_firstHalf[temp3]);773 scv.mouseClick();774 tick(getRandomInt(700, 800));775 var temp4 = getRandomInt(0, 13);776 scv.moveMouseSmooth(X1_secondHalf[temp4], Y1_secondHalf[temp4]);777 scv.mouseClick();778 tick(getRandomInt(700, 800));779 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480) + 534);780 scv.mouseClick();781 // set timer depending on the variants782 //783 sleep(getRandomInt(7500, 7800)); // for 1tick unf potions784 //785 //786 //787 scv.moveMouseSmooth(getRandomInt(256, 256 + 97), getRandomInt(190, 190 + 53));788 scv.mouseClick();789 sleep(getRandomInt(634, 780));790 advancedDeposit1();791 sleep(getRandomInt(1200, 2000));792 scv.moveMouseSmooth(793 getRandomInt(256, 256 + 97),794 getRandomInt(190, 190 + 53) + 534795 );796 scv.mouseClick();797 sleep(getRandomInt(634, 780));798 advancedDeposit2();799}800function // slowly harvesting gas once wait9ms801DuoMake1stRow3tick() {802 // top left803 scv.moveMouseSmooth(getRandomInt(600, 700), getRandomInt(1, 900));804 var X_firstHalf = [805 getRandomInt(576, 586),806 getRandomInt(616, 630),807 getRandomInt(656, 670),808 getRandomInt(699, 716),809 getRandomInt(576, 586),810 getRandomInt(616, 630),811 getRandomInt(656, 670),812 getRandomInt(699, 716),813 getRandomInt(576, 586),814 getRandomInt(616, 630),815 getRandomInt(656, 670),816 getRandomInt(699, 716),817 getRandomInt(576, 586),818 getRandomInt(616, 630),819 ];820 var X_secondHalf = [821 getRandomInt(656, 670),822 getRandomInt(699, 716),823 getRandomInt(576, 586),824 getRandomInt(616, 630),825 getRandomInt(656, 670),826 getRandomInt(699, 716),827 getRandomInt(576, 586),828 getRandomInt(616, 630),829 getRandomInt(656, 670),830 getRandomInt(699, 716),831 getRandomInt(576, 586),832 getRandomInt(616, 630),833 getRandomInt(656, 670),834 getRandomInt(699, 716),835 ];836 var Y_firstHalf = [837 getRandomInt(247, 258),838 getRandomInt(247, 258),839 getRandomInt(247, 258),840 getRandomInt(247, 258),841 getRandomInt(283, 296),842 getRandomInt(283, 296),843 getRandomInt(283, 296),844 getRandomInt(283, 296),845 getRandomInt(321, 332),846 getRandomInt(321, 332),847 getRandomInt(321, 332),848 getRandomInt(321, 332),849 getRandomInt(358, 371),850 getRandomInt(358, 371),851 ];852 var Y_secondHalf = [853 getRandomInt(358, 371),854 getRandomInt(358, 371),855 getRandomInt(389, 406),856 getRandomInt(389, 406),857 getRandomInt(389, 406),858 getRandomInt(389, 406),859 getRandomInt(431, 444),860 getRandomInt(431, 444),861 getRandomInt(431, 444),862 getRandomInt(431, 444),863 getRandomInt(463, 479),864 getRandomInt(463, 479),865 getRandomInt(463, 479),866 getRandomInt(463, 479),867 ];868 //bottom left869 var X1_firstHalf = [870 getRandomInt(576, 586),871 getRandomInt(616, 630),872 getRandomInt(656, 670),873 getRandomInt(699, 716),874 getRandomInt(576, 586),875 getRandomInt(616, 630),876 getRandomInt(656, 670),877 getRandomInt(699, 716),878 getRandomInt(576, 586),879 getRandomInt(616, 630),880 getRandomInt(656, 670),881 getRandomInt(699, 716),882 getRandomInt(576, 586),883 getRandomInt(616, 630),884 ];885 var X1_secondHalf = [886 getRandomInt(656, 670),887 getRandomInt(699, 716),888 getRandomInt(576, 586),889 getRandomInt(616, 630),890 getRandomInt(656, 670),891 getRandomInt(699, 716),892 getRandomInt(576, 586),893 getRandomInt(616, 630),894 getRandomInt(656, 670),895 getRandomInt(699, 716),896 getRandomInt(576, 586),897 getRandomInt(616, 630),898 getRandomInt(656, 670),899 getRandomInt(699, 716),900 ];901 var Y1_firstHalf = [902 getRandomInt(247, 258) + 534,903 getRandomInt(247, 258) + 534,904 getRandomInt(247, 258) + 534,905 getRandomInt(247, 258) + 534,906 getRandomInt(283, 296) + 534,907 getRandomInt(283, 296) + 534,908 getRandomInt(283, 296) + 534,909 getRandomInt(283, 296) + 534,910 getRandomInt(321, 332) + 534,911 getRandomInt(321, 332) + 534,912 getRandomInt(321, 332) + 534,913 getRandomInt(321, 332) + 534,914 getRandomInt(358, 371) + 534,915 getRandomInt(358, 371) + 534,916 ];917 var Y1_secondHalf = [918 getRandomInt(358, 371) + 534,919 getRandomInt(358, 371) + 534,920 getRandomInt(389, 406) + 534,921 getRandomInt(389, 406) + 534,922 getRandomInt(389, 406) + 534,923 getRandomInt(389, 406) + 534,924 getRandomInt(431, 444) + 534,925 getRandomInt(431, 444) + 534,926 getRandomInt(431, 444) + 534,927 getRandomInt(431, 444) + 534,928 getRandomInt(463, 479) + 534,929 getRandomInt(463, 479) + 534,930 getRandomInt(463, 479) + 534,931 getRandomInt(463, 479) + 534,932 ];933 // random mousemovement934 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332));935 var x = 3;936 var y = 3;937 // movemouse to the 3rd row,7th column 381, 198938 var xlocation = getRandomInt(381 - x, 381 + x);939 var ylocation = getRandomInt(125 - y, 125 + y);940 scv.moveMouseSmooth(xlocation, ylocation);941 scv.mouseClick('right');942 tick(getRandomInt(700, 800));943 scv.moveMouseSmooth(xlocation, ylocation + 85);944 scv.mouseClick();945 tick(getRandomInt(700, 800));946 scv.moveMouse(getRandomInt(429 - 4, 429 + 4), getRandomInt(125 - 3, 125 + 3));947 scv.mouseClick();948 // a1949 closeBank1();950 tick(getRandomInt(700, 800));951 var temp = getRandomInt(0, 13);952 scv.moveMouseSmooth(X_firstHalf[temp], Y_firstHalf[temp]);953 scv.mouseClick();954 tick(getRandomInt(700, 800));955 var temp2 = getRandomInt(0, 13);956 scv.moveMouseSmooth(X_secondHalf[temp2], Y_secondHalf[temp2]);957 scv.mouseClick();958 tick(getRandomInt(700, 800));959 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480));960 scv.mouseClick();961 // random mousemovement962 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332) + 534);963 // b1964 var xlocation = getRandomInt(381 - x, 381 + x);965 var ylocation = getRandomInt(125 - y, 125 + y) + 534;966 scv.moveMouseSmooth(xlocation, ylocation);967 scv.mouseClick('right');968 tick(getRandomInt(700, 800));969 scv.moveMouseSmooth(xlocation, ylocation + 85);970 scv.mouseClick();971 tick(getRandomInt(700, 800));972 scv.moveMouse(973 getRandomInt(429 - 4, 429 + 4),974 getRandomInt(125 - 3, 125 + 3) + 534975 );976 scv.mouseClick();977 closeBank2();978 tick(getRandomInt(700, 800));979 var temp3 = getRandomInt(0, 13);980 scv.moveMouseSmooth(X1_firstHalf[temp3], Y1_firstHalf[temp3]);981 scv.mouseClick();982 tick(getRandomInt(700, 800));983 var temp4 = getRandomInt(0, 13);984 scv.moveMouseSmooth(X1_secondHalf[temp4], Y1_secondHalf[temp4]);985 scv.mouseClick();986 tick(getRandomInt(700, 800));987 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480) + 534);988 scv.mouseClick();989 // set timer depending on the variants990 //991 sleep(getRandomInt(9200, 9400)); // for 1tick unf potions992 //993 //994 //995 scv.moveMouseSmooth(getRandomInt(256, 256 + 97), getRandomInt(190, 190 + 53));996 scv.mouseClick();997 sleep(getRandomInt(634, 780));998 advancedDeposit1();999 sleep(getRandomInt(1200, 2000));1000 scv.moveMouseSmooth(1001 getRandomInt(256, 256 + 97),1002 getRandomInt(190, 190 + 53) + 5341003 );1004 scv.mouseClick();1005 sleep(getRandomInt(634, 780));1006 advancedDeposit2();1007}1008function // slowing making supply once wait7.5ms1009DuoMake2ndRow2tick() {1010 // top left1011 scv.moveMouseSmooth(getRandomInt(600, 700), getRandomInt(1, 900));1012 var X_firstHalf = [1013 getRandomInt(576, 586),1014 getRandomInt(616, 630),1015 getRandomInt(656, 670),1016 getRandomInt(699, 716),1017 getRandomInt(576, 586),1018 getRandomInt(616, 630),1019 getRandomInt(656, 670),1020 getRandomInt(699, 716),1021 getRandomInt(576, 586),1022 getRandomInt(616, 630),1023 getRandomInt(656, 670),1024 getRandomInt(699, 716),1025 getRandomInt(576, 586),1026 getRandomInt(616, 630),1027 ];1028 var X_secondHalf = [1029 getRandomInt(656, 670),1030 getRandomInt(699, 716),1031 getRandomInt(576, 586),1032 getRandomInt(616, 630),1033 getRandomInt(656, 670),1034 getRandomInt(699, 716),1035 getRandomInt(576, 586),1036 getRandomInt(616, 630),1037 getRandomInt(656, 670),1038 getRandomInt(699, 716),1039 getRandomInt(576, 586),1040 getRandomInt(616, 630),1041 getRandomInt(656, 670),1042 getRandomInt(699, 716),1043 ];1044 var Y_firstHalf = [1045 getRandomInt(247, 258),1046 getRandomInt(247, 258),1047 getRandomInt(247, 258),1048 getRandomInt(247, 258),1049 getRandomInt(283, 296),1050 getRandomInt(283, 296),1051 getRandomInt(283, 296),1052 getRandomInt(283, 296),1053 getRandomInt(321, 332),1054 getRandomInt(321, 332),1055 getRandomInt(321, 332),1056 getRandomInt(321, 332),1057 getRandomInt(358, 371),1058 getRandomInt(358, 371),1059 ];1060 var Y_secondHalf = [1061 getRandomInt(358, 371),1062 getRandomInt(358, 371),1063 getRandomInt(389, 406),1064 getRandomInt(389, 406),1065 getRandomInt(389, 406),1066 getRandomInt(389, 406),1067 getRandomInt(431, 444),1068 getRandomInt(431, 444),1069 getRandomInt(431, 444),1070 getRandomInt(431, 444),1071 getRandomInt(463, 479),1072 getRandomInt(463, 479),1073 getRandomInt(463, 479),1074 getRandomInt(463, 479),1075 ];1076 //bottom left1077 var X1_firstHalf = [1078 getRandomInt(576, 586),1079 getRandomInt(616, 630),1080 getRandomInt(656, 670),1081 getRandomInt(699, 716),1082 getRandomInt(576, 586),1083 getRandomInt(616, 630),1084 getRandomInt(656, 670),1085 getRandomInt(699, 716),1086 getRandomInt(576, 586),1087 getRandomInt(616, 630),1088 getRandomInt(656, 670),1089 getRandomInt(699, 716),1090 getRandomInt(576, 586),1091 getRandomInt(616, 630),1092 ];1093 var X1_secondHalf = [1094 getRandomInt(656, 670),1095 getRandomInt(699, 716),1096 getRandomInt(576, 586),1097 getRandomInt(616, 630),1098 getRandomInt(656, 670),1099 getRandomInt(699, 716),1100 getRandomInt(576, 586),1101 getRandomInt(616, 630),1102 getRandomInt(656, 670),1103 getRandomInt(699, 716),1104 getRandomInt(576, 586),1105 getRandomInt(616, 630),1106 getRandomInt(656, 670),1107 getRandomInt(699, 716),1108 ];1109 var Y1_firstHalf = [1110 getRandomInt(247, 258) + 534,1111 getRandomInt(247, 258) + 534,1112 getRandomInt(247, 258) + 534,1113 getRandomInt(247, 258) + 534,1114 getRandomInt(283, 296) + 534,1115 getRandomInt(283, 296) + 534,1116 getRandomInt(283, 296) + 534,1117 getRandomInt(283, 296) + 534,1118 getRandomInt(321, 332) + 534,1119 getRandomInt(321, 332) + 534,1120 getRandomInt(321, 332) + 534,1121 getRandomInt(321, 332) + 534,1122 getRandomInt(358, 371) + 534,1123 getRandomInt(358, 371) + 534,1124 ];1125 var Y1_secondHalf = [1126 getRandomInt(358, 371) + 534,1127 getRandomInt(358, 371) + 534,1128 getRandomInt(389, 406) + 534,1129 getRandomInt(389, 406) + 534,1130 getRandomInt(389, 406) + 534,1131 getRandomInt(389, 406) + 534,1132 getRandomInt(431, 444) + 534,1133 getRandomInt(431, 444) + 534,1134 getRandomInt(431, 444) + 534,1135 getRandomInt(431, 444) + 534,1136 getRandomInt(463, 479) + 534,1137 getRandomInt(463, 479) + 534,1138 getRandomInt(463, 479) + 534,1139 getRandomInt(463, 479) + 534,1140 ];1141 // random mousemovement1142 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332));1143 var x = 3;1144 var y = 3;1145 // movemouse to the 3rd row,7th column 381, 1981146 var xlocation = getRandomInt(381 - x, 381 + x);1147 var ylocation = getRandomInt(163 - y, 163 + y);1148 scv.moveMouseSmooth(xlocation, ylocation);1149 scv.mouseClick('right');1150 tick(getRandomInt(700, 800));1151 scv.moveMouseSmooth(xlocation, ylocation + 85);1152 scv.mouseClick();1153 tick(getRandomInt(700, 800));1154 scv.moveMouse(getRandomInt(429 - 4, 429 + 4), getRandomInt(163 - 3, 163 + 3));1155 scv.mouseClick();1156 // a11157 closeBank1();1158 tick(getRandomInt(700, 800));1159 var temp = getRandomInt(0, 13);1160 scv.moveMouseSmooth(X_firstHalf[temp], Y_firstHalf[temp]);1161 scv.mouseClick('right');1162 tick(getRandomInt(700, 800));1163 scv.moveMouseSmooth(1164 X_firstHalf[temp],1165 Y_firstHalf[temp] + getRandomInt(42, 43)1166 );1167 scv.mouseClick();1168 tick(getRandomInt(700, 800));1169 var temp2 = getRandomInt(0, 13);1170 scv.moveMouseSmooth(X_secondHalf[temp2], Y_secondHalf[temp2]);1171 scv.mouseClick();1172 tick(getRandomInt(700, 800));1173 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480));1174 scv.mouseClick();1175 // random mousemovement1176 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332) + 534);1177 // b11178 var xlocation = getRandomInt(381 - x, 381 + x);1179 var ylocation = getRandomInt(163 - y, 163 + y) + 534;1180 scv.moveMouseSmooth(xlocation, ylocation);1181 scv.mouseClick('right');1182 tick(getRandomInt(700, 800));1183 scv.moveMouseSmooth(xlocation, ylocation + 85);1184 scv.mouseClick();1185 tick(getRandomInt(700, 800));1186 scv.moveMouse(1187 getRandomInt(429 - 4, 429 + 4),1188 getRandomInt(163 - 3, 163 + 3) + 5341189 );1190 scv.mouseClick();1191 closeBank2();1192 tick(getRandomInt(700, 800));1193 var temp3 = getRandomInt(0, 13);1194 scv.moveMouseSmooth(X1_firstHalf[temp3], Y1_firstHalf[temp3]);1195 scv.mouseClick('right');1196 tick(getRandomInt(700, 800));1197 scv.moveMouseSmooth(1198 X1_firstHalf[temp3],1199 Y1_firstHalf[temp3] + getRandomInt(42, 43)1200 );1201 scv.mouseClick('left');1202 var temp4 = getRandomInt(0, 13);1203 scv.moveMouseSmooth(X1_secondHalf[temp4], Y1_secondHalf[temp4]);1204 scv.mouseClick();1205 tick(getRandomInt(700, 800));1206 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480) + 534);1207 scv.mouseClick();1208 //1209 //1210 //1211 sleep(getRandomInt(6100, 6700));1212 //1213 //1214 //1215 scv.moveMouseSmooth(getRandomInt(256, 256 + 97), getRandomInt(190, 190 + 53));1216 scv.mouseClick();1217 sleep(getRandomInt(634, 780));1218 advancedDeposit1();1219 sleep(getRandomInt(1200, 2000));1220 scv.moveMouseSmooth(1221 getRandomInt(256, 256 + 97),1222 getRandomInt(190, 190 + 53) + 5341223 );1224 scv.mouseClick();1225 sleep(getRandomInt(634, 780));1226 advancedDeposit2();1227}1228function // slowly mining minerals once wait7.5ms1229DuoMake3rdRow1tick() {1230 scv.moveMouseSmooth(getRandomInt(600, 700), getRandomInt(1, 900));1231 var X_firstHalf = [1232 getRandomInt(576, 586),1233 getRandomInt(616, 630),1234 getRandomInt(656, 670),1235 getRandomInt(699, 716),1236 getRandomInt(576, 586),1237 getRandomInt(616, 630),1238 getRandomInt(656, 670),1239 getRandomInt(699, 716),1240 getRandomInt(576, 586),1241 getRandomInt(616, 630),1242 getRandomInt(656, 670),1243 getRandomInt(699, 716),1244 getRandomInt(576, 586),1245 getRandomInt(616, 630),1246 ];1247 var X_secondHalf = [1248 getRandomInt(656, 670),1249 getRandomInt(699, 716),1250 getRandomInt(576, 586),1251 getRandomInt(616, 630),1252 getRandomInt(656, 670),1253 getRandomInt(699, 716),1254 getRandomInt(576, 586),1255 getRandomInt(616, 630),1256 getRandomInt(656, 670),1257 getRandomInt(699, 716),1258 getRandomInt(576, 586),1259 getRandomInt(616, 630),1260 getRandomInt(656, 670),1261 getRandomInt(699, 716),1262 ];1263 var Y_firstHalf = [1264 getRandomInt(247, 258),1265 getRandomInt(247, 258),1266 getRandomInt(247, 258),1267 getRandomInt(247, 258),1268 getRandomInt(283, 296),1269 getRandomInt(283, 296),1270 getRandomInt(283, 296),1271 getRandomInt(283, 296),1272 getRandomInt(321, 332),1273 getRandomInt(321, 332),1274 getRandomInt(321, 332),1275 getRandomInt(321, 332),1276 getRandomInt(358, 371),1277 getRandomInt(358, 371),1278 ];1279 var Y_secondHalf = [1280 getRandomInt(358, 371),1281 getRandomInt(358, 371),1282 getRandomInt(389, 406),1283 getRandomInt(389, 406),1284 getRandomInt(389, 406),1285 getRandomInt(389, 406),1286 getRandomInt(431, 444),1287 getRandomInt(431, 444),1288 getRandomInt(431, 444),1289 getRandomInt(431, 444),1290 getRandomInt(463, 479),1291 getRandomInt(463, 479),1292 getRandomInt(463, 479),1293 getRandomInt(463, 479),1294 ];1295 //bottom left1296 var X1_firstHalf = [1297 getRandomInt(576, 586),1298 getRandomInt(616, 630),1299 getRandomInt(656, 670),1300 getRandomInt(699, 716),1301 getRandomInt(576, 586),1302 getRandomInt(616, 630),1303 getRandomInt(656, 670),1304 getRandomInt(699, 716),1305 getRandomInt(576, 586),1306 getRandomInt(616, 630),1307 getRandomInt(656, 670),1308 getRandomInt(699, 716),1309 getRandomInt(576, 586),1310 getRandomInt(616, 630),1311 ];1312 var X1_secondHalf = [1313 getRandomInt(656, 670),1314 getRandomInt(699, 716),1315 getRandomInt(576, 586),1316 getRandomInt(616, 630),1317 getRandomInt(656, 670),1318 getRandomInt(699, 716),1319 getRandomInt(576, 586),1320 getRandomInt(616, 630),1321 getRandomInt(656, 670),1322 getRandomInt(699, 716),1323 getRandomInt(576, 586),1324 getRandomInt(616, 630),1325 getRandomInt(656, 670),1326 getRandomInt(699, 716),1327 ];1328 var Y1_firstHalf = [1329 getRandomInt(247, 258) + 534,1330 getRandomInt(247, 258) + 534,1331 getRandomInt(247, 258) + 534,1332 getRandomInt(247, 258) + 534,1333 getRandomInt(283, 296) + 534,1334 getRandomInt(283, 296) + 534,1335 getRandomInt(283, 296) + 534,1336 getRandomInt(283, 296) + 534,1337 getRandomInt(321, 332) + 534,1338 getRandomInt(321, 332) + 534,1339 getRandomInt(321, 332) + 534,1340 getRandomInt(321, 332) + 534,1341 getRandomInt(358, 371) + 534,1342 getRandomInt(358, 371) + 534,1343 ];1344 var Y1_secondHalf = [1345 getRandomInt(358, 371) + 534,1346 getRandomInt(358, 371) + 534,1347 getRandomInt(389, 406) + 534,1348 getRandomInt(389, 406) + 534,1349 getRandomInt(389, 406) + 534,1350 getRandomInt(389, 406) + 534,1351 getRandomInt(431, 444) + 534,1352 getRandomInt(431, 444) + 534,1353 getRandomInt(431, 444) + 534,1354 getRandomInt(431, 444) + 534,1355 getRandomInt(463, 479) + 534,1356 getRandomInt(463, 479) + 534,1357 getRandomInt(463, 479) + 534,1358 getRandomInt(463, 479) + 534,1359 ];1360 // random mousemovement1361 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332));1362 var x = 3;1363 var y = 3;1364 // movemouse to the 3rd row,7th column 381, 1981365 var xlocation = getRandomInt(381 - x, 381 + x);1366 var ylocation = getRandomInt(198 - y, 198 + y);1367 scv.moveMouseSmooth(xlocation, ylocation);1368 scv.mouseClick('right');1369 tick(getRandomInt(700, 800));1370 scv.moveMouseSmooth(xlocation, ylocation + 85);1371 scv.mouseClick();1372 tick(getRandomInt(700, 800));1373 scv.moveMouse(getRandomInt(429 - 4, 429 + 4), getRandomInt(198 - 3, 198 + 3));1374 scv.mouseClick();1375 // a11376 closeBank1();1377 tick(getRandomInt(700, 800));1378 var temp = getRandomInt(0, 13);1379 scv.moveMouseSmooth(X_firstHalf[temp], Y_firstHalf[temp]);1380 scv.mouseClick();1381 tick(getRandomInt(700, 800));1382 var temp2 = getRandomInt(0, 13);1383 scv.moveMouseSmooth(X_secondHalf[temp2], Y_secondHalf[temp2]);1384 scv.mouseClick();1385 tick(getRandomInt(700, 800));1386 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480));1387 scv.mouseClick();1388 // random mousemovement1389 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332) + 534);1390 // b11391 var xlocation = getRandomInt(381 - x, 381 + x);1392 var ylocation = getRandomInt(198 - y, 198 + y) + 534;1393 scv.moveMouseSmooth(xlocation, ylocation);1394 scv.mouseClick('right');1395 tick(getRandomInt(700, 800));1396 scv.moveMouseSmooth(xlocation, ylocation + 85);1397 scv.mouseClick();1398 tick(getRandomInt(700, 800));1399 scv.moveMouse(1400 getRandomInt(429 - 4, 429 + 4),1401 getRandomInt(198 - 3, 198 + 3) + 5341402 );1403 scv.mouseClick();1404 closeBank2();1405 tick(getRandomInt(700, 800));1406 var temp3 = getRandomInt(0, 13);1407 scv.moveMouseSmooth(X1_firstHalf[temp3], Y1_firstHalf[temp3]);1408 scv.mouseClick();1409 tick(getRandomInt(700, 800));1410 var temp4 = getRandomInt(0, 13);1411 scv.moveMouseSmooth(X1_secondHalf[temp4], Y1_secondHalf[temp4]);1412 scv.mouseClick();1413 tick(getRandomInt(700, 800));1414 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480) + 534);1415 scv.mouseClick();1416 // set timer depending on the variants1417 //1418 sleep(getRandomInt(6700, 7400)); // 1tick for unf potions1419 //1420 //1421 //1422 scv.moveMouseSmooth(getRandomInt(256, 256 + 97), getRandomInt(190, 190 + 53));1423 scv.mouseClick();1424 sleep(getRandomInt(634, 780));1425 advancedDeposit1();1426 sleep(getRandomInt(1200, 2000));1427 scv.moveMouseSmooth(1428 getRandomInt(256, 256 + 97),1429 getRandomInt(190, 190 + 53) + 5341430 );1431 scv.mouseClick();1432 sleep(getRandomInt(634, 780));1433 advancedDeposit2();1434}1435function // slowly mining minerals once wait9ms1436DuoMake3rdRow3tick() {1437 scv.moveMouseSmooth(getRandomInt(600, 700), getRandomInt(1, 900));1438 var X_firstHalf = [1439 getRandomInt(576, 586),1440 getRandomInt(616, 630),1441 getRandomInt(656, 670),1442 getRandomInt(699, 716),1443 getRandomInt(576, 586),1444 getRandomInt(616, 630),1445 getRandomInt(656, 670),1446 getRandomInt(699, 716),1447 getRandomInt(576, 586),1448 getRandomInt(616, 630),1449 getRandomInt(656, 670),1450 getRandomInt(699, 716),1451 getRandomInt(576, 586),1452 getRandomInt(616, 630),1453 ];1454 var X_secondHalf = [1455 getRandomInt(656, 670),1456 getRandomInt(699, 716),1457 getRandomInt(576, 586),1458 getRandomInt(616, 630),1459 getRandomInt(656, 670),1460 getRandomInt(699, 716),1461 getRandomInt(576, 586),1462 getRandomInt(616, 630),1463 getRandomInt(656, 670),1464 getRandomInt(699, 716),1465 getRandomInt(576, 586),1466 getRandomInt(616, 630),1467 getRandomInt(656, 670),1468 getRandomInt(699, 716),1469 ];1470 var Y_firstHalf = [1471 getRandomInt(247, 258),1472 getRandomInt(247, 258),1473 getRandomInt(247, 258),1474 getRandomInt(247, 258),1475 getRandomInt(283, 296),1476 getRandomInt(283, 296),1477 getRandomInt(283, 296),1478 getRandomInt(283, 296),1479 getRandomInt(321, 332),1480 getRandomInt(321, 332),1481 getRandomInt(321, 332),1482 getRandomInt(321, 332),1483 getRandomInt(358, 371),1484 getRandomInt(358, 371),1485 ];1486 var Y_secondHalf = [1487 getRandomInt(358, 371),1488 getRandomInt(358, 371),1489 getRandomInt(389, 406),1490 getRandomInt(389, 406),1491 getRandomInt(389, 406),1492 getRandomInt(389, 406),1493 getRandomInt(431, 444),1494 getRandomInt(431, 444),1495 getRandomInt(431, 444),1496 getRandomInt(431, 444),1497 getRandomInt(463, 479),1498 getRandomInt(463, 479),1499 getRandomInt(463, 479),1500 getRandomInt(463, 479),1501 ];1502 //bottom left1503 var X1_firstHalf = [1504 getRandomInt(576, 586),1505 getRandomInt(616, 630),1506 getRandomInt(656, 670),1507 getRandomInt(699, 716),1508 getRandomInt(576, 586),1509 getRandomInt(616, 630),1510 getRandomInt(656, 670),1511 getRandomInt(699, 716),1512 getRandomInt(576, 586),1513 getRandomInt(616, 630),1514 getRandomInt(656, 670),1515 getRandomInt(699, 716),1516 getRandomInt(576, 586),1517 getRandomInt(616, 630),1518 ];1519 var X1_secondHalf = [1520 getRandomInt(656, 670),1521 getRandomInt(699, 716),1522 getRandomInt(576, 586),1523 getRandomInt(616, 630),1524 getRandomInt(656, 670),1525 getRandomInt(699, 716),1526 getRandomInt(576, 586),1527 getRandomInt(616, 630),1528 getRandomInt(656, 670),1529 getRandomInt(699, 716),1530 getRandomInt(576, 586),1531 getRandomInt(616, 630),1532 getRandomInt(656, 670),1533 getRandomInt(699, 716),1534 ];1535 var Y1_firstHalf = [1536 getRandomInt(247, 258) + 534,1537 getRandomInt(247, 258) + 534,1538 getRandomInt(247, 258) + 534,1539 getRandomInt(247, 258) + 534,1540 getRandomInt(283, 296) + 534,1541 getRandomInt(283, 296) + 534,1542 getRandomInt(283, 296) + 534,1543 getRandomInt(283, 296) + 534,1544 getRandomInt(321, 332) + 534,1545 getRandomInt(321, 332) + 534,1546 getRandomInt(321, 332) + 534,1547 getRandomInt(321, 332) + 534,1548 getRandomInt(358, 371) + 534,1549 getRandomInt(358, 371) + 534,1550 ];1551 var Y1_secondHalf = [1552 getRandomInt(358, 371) + 534,1553 getRandomInt(358, 371) + 534,1554 getRandomInt(389, 406) + 534,1555 getRandomInt(389, 406) + 534,1556 getRandomInt(389, 406) + 534,1557 getRandomInt(389, 406) + 534,1558 getRandomInt(431, 444) + 534,1559 getRandomInt(431, 444) + 534,1560 getRandomInt(431, 444) + 534,1561 getRandomInt(431, 444) + 534,1562 getRandomInt(463, 479) + 534,1563 getRandomInt(463, 479) + 534,1564 getRandomInt(463, 479) + 534,1565 getRandomInt(463, 479) + 534,1566 ];1567 // random mousemovement1568 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332));1569 var x = 3;1570 var y = 3;1571 // movemouse to the 3rd row,7th column 381, 1981572 var xlocation = getRandomInt(381 - x, 381 + x);1573 var ylocation = getRandomInt(198 - y, 198 + y);1574 scv.moveMouseSmooth(xlocation, ylocation);1575 scv.mouseClick('right');1576 tick(getRandomInt(700, 800));1577 scv.moveMouseSmooth(xlocation, ylocation + 85);1578 scv.mouseClick();1579 tick(getRandomInt(700, 800));1580 scv.moveMouse(getRandomInt(429 - 4, 429 + 4), getRandomInt(198 - 3, 198 + 3));1581 scv.mouseClick();1582 // a11583 closeBank1();1584 tick(getRandomInt(700, 800));1585 var temp = getRandomInt(0, 13);1586 scv.moveMouseSmooth(X_firstHalf[temp], Y_firstHalf[temp]);1587 scv.mouseClick();1588 tick(getRandomInt(700, 800));1589 var temp2 = getRandomInt(0, 13);1590 scv.moveMouseSmooth(X_secondHalf[temp2], Y_secondHalf[temp2]);1591 scv.mouseClick();1592 tick(getRandomInt(700, 800));1593 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480));1594 scv.mouseClick();1595 // random mousemovement1596 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332) + 534);1597 // b11598 var xlocation = getRandomInt(381 - x, 381 + x);1599 var ylocation = getRandomInt(198 - y, 198 + y) + 534;1600 scv.moveMouseSmooth(xlocation, ylocation);1601 scv.mouseClick('right');1602 tick(getRandomInt(700, 800));1603 scv.moveMouseSmooth(xlocation, ylocation + 85);1604 scv.mouseClick();1605 tick(getRandomInt(700, 800));1606 scv.moveMouse(1607 getRandomInt(429 - 4, 429 + 4),1608 getRandomInt(198 - 3, 198 + 3) + 5341609 );1610 scv.mouseClick();1611 closeBank2();1612 tick(getRandomInt(700, 800));1613 var temp3 = getRandomInt(0, 13);1614 scv.moveMouseSmooth(X1_firstHalf[temp3], Y1_firstHalf[temp3]);1615 scv.mouseClick();1616 tick(getRandomInt(700, 800));1617 var temp4 = getRandomInt(0, 13);1618 scv.moveMouseSmooth(X1_secondHalf[temp4], Y1_secondHalf[temp4]);1619 scv.mouseClick();1620 tick(getRandomInt(700, 800));1621 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480) + 534);1622 scv.mouseClick();1623 // set timer depending on the variants1624 //1625 sleep(getRandomInt(8800, 9300)); // 3or 1tick yew potions1626 //1627 //1628 //1629 scv.moveMouseSmooth(getRandomInt(256, 256 + 97), getRandomInt(190, 190 + 53));1630 scv.mouseClick();1631 sleep(getRandomInt(634, 780));1632 advancedDeposit1();1633 sleep(getRandomInt(1200, 2000));1634 scv.moveMouseSmooth(1635 getRandomInt(256, 256 + 97),1636 getRandomInt(190, 190 + 53) + 5341637 );1638 scv.mouseClick();1639 sleep(getRandomInt(634, 780));1640 advancedDeposit2();1641}1642function closeBank1() {1643 scv.moveMouseSmooth(getRandomInt(551, 556), getRandomInt(111, 125));1644 for (var i = 0; i < getRandomInt(1, 2); i++) {1645 scv.mouseClick();1646 sleep(231);1647 }1648}1649function closeBank2() {1650 scv.moveMouseSmooth(getRandomInt(551, 556), getRandomInt(111, 125) + 534);1651 for (var i = 0; i < getRandomInt(1, 2); i++) {1652 scv.mouseClick();1653 sleep(231);1654 }1655}1656function closeBank3() {1657 scv.moveMouseSmooth(1658 getRandomInt(551, 556) + 779,1659 getRandomInt(111, 125) + 5341660 );1661 for (var i = 0; i < getRandomInt(1, 2); i++) {1662 scv.mouseClick();1663 sleep(231);1664 }1665}1666function // instantly click all grimmy herbs with 1 scvs1667SoloClean() {1668 for (var i = 0; i < 1000; i++) {1669 scv.moveMouseSmooth(1670 getRandomInt(429 - 4, 429 + 4),1671 getRandomInt(198 - 3, 198 + 3)1672 );1673 scv.mouseClick();1674 sleep(getRandomInt(700, 800));1675 closeBank1();1676 sleep(getRandomInt(700, 800));1677 var X_herbArray = [1678 getRandomInt(576, 586),1679 getRandomInt(576, 586),1680 getRandomInt(576, 586),1681 getRandomInt(576, 586),1682 getRandomInt(576, 586),1683 getRandomInt(576, 586),1684 getRandomInt(576, 586),1685 getRandomInt(616, 630),1686 getRandomInt(616, 630),1687 getRandomInt(616, 630),1688 getRandomInt(616, 630),1689 getRandomInt(616, 630),1690 getRandomInt(616, 630),1691 getRandomInt(616, 630),1692 getRandomInt(656, 670),1693 getRandomInt(656, 670),1694 getRandomInt(656, 670),1695 getRandomInt(656, 670),1696 getRandomInt(656, 670),1697 getRandomInt(656, 670),1698 getRandomInt(656, 670),1699 getRandomInt(699, 716),1700 getRandomInt(699, 716),1701 getRandomInt(699, 716),1702 getRandomInt(699, 716),1703 getRandomInt(699, 716),1704 getRandomInt(699, 716),1705 getRandomInt(699, 716),1706 ];1707 var Y_herbArray = [1708 getRandomInt(247, 258),1709 getRandomInt(283, 296),1710 getRandomInt(321, 332),1711 getRandomInt(358, 371),1712 getRandomInt(389, 406),1713 getRandomInt(431, 444),1714 getRandomInt(463, 479),1715 getRandomInt(247, 258),1716 getRandomInt(283, 296),1717 getRandomInt(321, 332),1718 getRandomInt(358, 371),1719 getRandomInt(389, 406),1720 getRandomInt(431, 444),1721 getRandomInt(463, 479),1722 getRandomInt(247, 258),1723 getRandomInt(283, 296),1724 getRandomInt(321, 332),1725 getRandomInt(358, 371),1726 getRandomInt(389, 406),1727 getRandomInt(431, 444),1728 getRandomInt(463, 479),1729 getRandomInt(247, 258),1730 getRandomInt(283, 296),1731 getRandomInt(321, 332),1732 getRandomInt(358, 371),1733 getRandomInt(389, 406),1734 getRandomInt(431, 444),1735 getRandomInt(463, 479),1736 ];1737 //a21738 var counter = 0;1739 while (counter < 27) {1740 var destiny = getRandomInt(0, 27);1741 if (X_herbArray[destiny] != 0 && Y_herbArray[destiny] != 0) {1742 // time complexity applied, just coen 352, from data structures, from algorithm1743 scv.moveMouse(X_herbArray[destiny], Y_herbArray[destiny]);1744 scv.mouseClick();1745 tick();1746 X_herbArray[destiny] = 0;1747 Y_herbArray[destiny] = 0;1748 counter++;1749 }1750 }1751 sleep(getRandomInt(2400, 2500));1752 scv.moveMouseSmooth(1753 getRandomInt(256, 256 + 97),1754 getRandomInt(190, 190 + 53)1755 );1756 scv.mouseClick();1757 tick(getRandomInt(100, 200));1758 scv.mouseClick();1759 sleep(getRandomInt(634, 780));1760 advancedDeposit1();1761 }1762}1763function // instantly click all grimmy herbs with 2 svcs1764DuoClean() {1765 var time = 0;1766 var randomTime=getRandomInt(300, 350);1767 // randomlly between 3 hour -5 hour worktime1768 while (time < randomTime) {1769 time++;1770 // random mousemovement1771 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332));1772 // click the location of 3rd row, 8th position1773 scv.moveMouse(1774 getRandomInt(429 - 4, 429 + 4),1775 getRandomInt(198 - 3, 198 + 3)1776 );1777 scv.mouseClick();1778 sleep(getRandomInt(700, 800));1779 closeBank1();1780 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332) + 534);1781 // b11782 scv.moveMouseSmooth(1783 getRandomInt(429 - 4, 429 + 4),1784 getRandomInt(198 - 3, 198 + 3) + 5341785 );1786 scv.mouseClick();1787 sleep(getRandomInt(700, 800));1788 closeBank2();1789 console.log(' harvesting vespian gas ');1790 var X_herbArray = [1791 getRandomInt(576, 586),1792 getRandomInt(576, 586),1793 getRandomInt(576, 586),1794 getRandomInt(576, 586),1795 getRandomInt(576, 586),1796 getRandomInt(576, 586),1797 getRandomInt(576, 586),1798 getRandomInt(616, 630),1799 getRandomInt(616, 630),1800 getRandomInt(616, 630),1801 getRandomInt(616, 630),1802 getRandomInt(616, 630),1803 getRandomInt(616, 630),1804 getRandomInt(616, 630),1805 getRandomInt(656, 670),1806 getRandomInt(656, 670),1807 getRandomInt(656, 670),1808 getRandomInt(656, 670),1809 getRandomInt(656, 670),1810 getRandomInt(656, 670),1811 getRandomInt(656, 670),1812 getRandomInt(699, 716),1813 getRandomInt(699, 716),1814 getRandomInt(699, 716),1815 getRandomInt(699, 716),1816 getRandomInt(699, 716),1817 getRandomInt(699, 716),1818 getRandomInt(699, 716),1819 ];1820 var Y_herbArray = [1821 getRandomInt(247, 258),1822 getRandomInt(283, 296),1823 getRandomInt(321, 332),1824 getRandomInt(358, 371),1825 getRandomInt(389, 406),1826 getRandomInt(431, 444),1827 getRandomInt(463, 479),1828 getRandomInt(247, 258),1829 getRandomInt(283, 296),1830 getRandomInt(321, 332),1831 getRandomInt(358, 371),1832 getRandomInt(389, 406),1833 getRandomInt(431, 444),1834 getRandomInt(463, 479),1835 getRandomInt(247, 258),1836 getRandomInt(283, 296),1837 getRandomInt(321, 332),1838 getRandomInt(358, 371),1839 getRandomInt(389, 406),1840 getRandomInt(431, 444),1841 getRandomInt(463, 479),1842 getRandomInt(247, 258),1843 getRandomInt(283, 296),1844 getRandomInt(321, 332),1845 getRandomInt(358, 371),1846 getRandomInt(389, 406),1847 getRandomInt(431, 444),1848 getRandomInt(463, 479),1849 ];1850 /*1851 Optional Arrays1852 var X_herbArray2 = [1853 getRandomInt(576, 586),1854 getRandomInt(576, 586),1855 getRandomInt(576, 586),1856 getRandomInt(576, 586),1857 getRandomInt(576, 586),1858 getRandomInt(576, 586),1859 getRandomInt(576, 586),1860 getRandomInt(616, 630),1861 getRandomInt(616, 630),1862 getRandomInt(616, 630),1863 getRandomInt(616, 630),1864 getRandomInt(616, 630),1865 getRandomInt(616, 630),1866 getRandomInt(616, 630),1867 getRandomInt(656, 670),1868 getRandomInt(656, 670),1869 getRandomInt(656, 670),1870 getRandomInt(656, 670),1871 getRandomInt(656, 670),1872 getRandomInt(656, 670),1873 getRandomInt(656, 670),1874 getRandomInt(699, 716),1875 getRandomInt(699, 716),1876 getRandomInt(699, 716),1877 getRandomInt(699, 716),1878 getRandomInt(699, 716),1879 getRandomInt(699, 716),1880 getRandomInt(699, 716),1881 ];*/1882 /*var Y_herbArray2 = [1883 getRandomInt(247, 258) + 534,1884 getRandomInt(283, 296) + 534,1885 getRandomInt(321, 332) + 534,1886 getRandomInt(358, 371) + 534,1887 getRandomInt(389, 406) + 534,1888 getRandomInt(431, 444) + 534,1889 getRandomInt(463, 479) + 534,1890 getRandomInt(247, 258) + 534,1891 getRandomInt(283, 296) + 534,1892 getRandomInt(321, 332) + 534,1893 getRandomInt(358, 371) + 534,1894 getRandomInt(389, 406) + 534,1895 getRandomInt(431, 444) + 534,1896 getRandomInt(463, 479) + 534,1897 getRandomInt(247, 258) + 534,1898 getRandomInt(283, 296) + 534,1899 getRandomInt(321, 332) + 534,1900 getRandomInt(358, 371) + 534,1901 getRandomInt(389, 406) + 534,1902 getRandomInt(431, 444) + 534,1903 getRandomInt(463, 479) + 534,1904 getRandomInt(247, 258) + 534,1905 getRandomInt(283, 296) + 534,1906 getRandomInt(321, 332) + 534,1907 getRandomInt(358, 371) + 534,1908 getRandomInt(389, 406) + 534,1909 getRandomInt(431, 444) + 534,1910 getRandomInt(463, 479) + 534,1911 ];1912*/1913 //a21914 var counter = 0;1915 while (counter < 27) {1916 var destiny = getRandomInt(0, 27);1917 if (X_herbArray[destiny] != 0 && Y_herbArray[destiny] != 0) {1918 // time complexity applied, just coen 352, from data structures, from algorithm1919 scv.moveMouse(X_herbArray[destiny], Y_herbArray[destiny]);1920 scv.mouseClick();1921 scv.moveMouse(X_herbArray[destiny], Y_herbArray[destiny] + 534);1922 scv.mouseClick();1923 X_herbArray[destiny] = 0;1924 Y_herbArray[destiny] = 0;1925 counter++;1926 }1927 }1928 sleep(getRandomInt(2830, 3130));1929 scv.moveMouseSmooth(1930 getRandomInt(256, 256 + 97),1931 getRandomInt(190, 190 + 53)1932 );1933 scv.mouseClick();1934 var r1= getRandomInt(1,3);1935 for( var i=0;i<r1;i++){1936 sleep(getRandomInt(134, 180));1937 scv.mouseClick();1938 }1939 sleep(getRandomInt(134, 280));1940 scv.mouseClick();1941 sleep(getRandomInt(634, 780));1942 advancedDeposit1();1943 sleep(getRandomInt(1200, 2000));1944 scv.moveMouseSmooth(1945 getRandomInt(256, 256 + 97),1946 getRandomInt(190, 190 + 53) + 5341947 );1948 scv.mouseClick(); 1949 var r2= getRandomInt(1,3);1950 for( var i=0;i<r2;i++){1951 sleep(getRandomInt(134, 180));1952 scv.mouseClick();1953 }1954 sleep(getRandomInt(634, 780));1955 advancedDeposit2();1956 1957 console.log(randomTime-time + 'cycles left');1958 }1959}1960function // instantly click all grimmy herbs with 3 svcs1961TrioClean() {1962 var yida = 0;1963 for (var i = 0; i < 1300; i++) {1964 // random mousemovement1965 console.log(' initialized arbitrary mouse pattern ');1966 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332));1967 // click the location of 3rd row, 8th position1968 scv.moveMouse(1969 getRandomInt(429 - 4, 429 + 4),1970 getRandomInt(198 - 3, 198 + 3)1971 );1972 scv.mouseClick();1973 sleep(getRandomInt(700, 800));1974 closeBank1();1975 console.log(' randomized arbitrary mouse pattern ');1976 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332) + 534);1977 // b11978 scv.moveMouseSmooth(1979 getRandomInt(429 - 4, 429 + 4),1980 getRandomInt(198 - 3, 198 + 3) + 5341981 );1982 scv.mouseClick();1983 sleep(getRandomInt(700, 800));1984 closeBank2();1985 console.log(' finalized arbitrary mouse pattern ');1986 scv.moveMouseSmooth(getRandomInt(0, 560) + 779, getRandomInt(0, 332) + 534);1987 // c11988 scv.moveMouseSmooth(1989 getRandomInt(429 - 4, 429 + 4) + 779,1990 getRandomInt(198 - 3, 198 + 3) + 5341991 );1992 scv.mouseClick();1993 sleep(getRandomInt(700, 800));1994 closeBank3();1995 console.log(' harvesting vespian gas ');1996 var X_herbArray = [1997 getRandomInt(576, 586),1998 getRandomInt(576, 586),1999 getRandomInt(576, 586),2000 getRandomInt(576, 586),2001 getRandomInt(576, 586),2002 getRandomInt(576, 586),2003 getRandomInt(576, 586),2004 getRandomInt(616, 630),2005 getRandomInt(616, 630),2006 getRandomInt(616, 630),2007 getRandomInt(616, 630),2008 getRandomInt(616, 630),2009 getRandomInt(616, 630),2010 getRandomInt(616, 630),2011 getRandomInt(656, 670),2012 getRandomInt(656, 670),2013 getRandomInt(656, 670),2014 getRandomInt(656, 670),2015 getRandomInt(656, 670),2016 getRandomInt(656, 670),2017 getRandomInt(656, 670),2018 getRandomInt(699, 716),2019 getRandomInt(699, 716),2020 getRandomInt(699, 716),2021 getRandomInt(699, 716),2022 getRandomInt(699, 716),2023 getRandomInt(699, 716),2024 getRandomInt(699, 716),2025 ];2026 var Y_herbArray = [2027 getRandomInt(247, 258),2028 getRandomInt(283, 296),2029 getRandomInt(321, 332),2030 getRandomInt(358, 371),2031 getRandomInt(389, 406),2032 getRandomInt(431, 444),2033 getRandomInt(463, 479),2034 getRandomInt(247, 258),2035 getRandomInt(283, 296),2036 getRandomInt(321, 332),2037 getRandomInt(358, 371),2038 getRandomInt(389, 406),2039 getRandomInt(431, 444),2040 getRandomInt(463, 479),2041 getRandomInt(247, 258),2042 getRandomInt(283, 296),2043 getRandomInt(321, 332),2044 getRandomInt(358, 371),2045 getRandomInt(389, 406),2046 getRandomInt(431, 444),2047 getRandomInt(463, 479),2048 getRandomInt(247, 258),2049 getRandomInt(283, 296),2050 getRandomInt(321, 332),2051 getRandomInt(358, 371),2052 getRandomInt(389, 406),2053 getRandomInt(431, 444),2054 getRandomInt(463, 479),2055 ];2056 var X_herbArray2 = [2057 getRandomInt(576, 586),2058 getRandomInt(576, 586),2059 getRandomInt(576, 586),2060 getRandomInt(576, 586),2061 getRandomInt(576, 586),2062 getRandomInt(576, 586),2063 getRandomInt(576, 586),2064 getRandomInt(616, 630),2065 getRandomInt(616, 630),2066 getRandomInt(616, 630),2067 getRandomInt(616, 630),2068 getRandomInt(616, 630),2069 getRandomInt(616, 630),2070 getRandomInt(616, 630),2071 getRandomInt(656, 670),2072 getRandomInt(656, 670),2073 getRandomInt(656, 670),2074 getRandomInt(656, 670),2075 getRandomInt(656, 670),2076 getRandomInt(656, 670),2077 getRandomInt(656, 670),2078 getRandomInt(699, 716),2079 getRandomInt(699, 716),2080 getRandomInt(699, 716),2081 getRandomInt(699, 716),2082 getRandomInt(699, 716),2083 getRandomInt(699, 716),2084 getRandomInt(699, 716),2085 ];2086 var Y_herbArray2 = [2087 getRandomInt(247, 258) + 534,2088 getRandomInt(283, 296) + 534,2089 getRandomInt(321, 332) + 534,2090 getRandomInt(358, 371) + 534,2091 getRandomInt(389, 406) + 534,2092 getRandomInt(431, 444) + 534,2093 getRandomInt(463, 479) + 534,2094 getRandomInt(247, 258) + 534,2095 getRandomInt(283, 296) + 534,2096 getRandomInt(321, 332) + 534,2097 getRandomInt(358, 371) + 534,2098 getRandomInt(389, 406) + 534,2099 getRandomInt(431, 444) + 534,2100 getRandomInt(463, 479) + 534,2101 getRandomInt(247, 258) + 534,2102 getRandomInt(283, 296) + 534,2103 getRandomInt(321, 332) + 534,2104 getRandomInt(358, 371) + 534,2105 getRandomInt(389, 406) + 534,2106 getRandomInt(431, 444) + 534,2107 getRandomInt(463, 479) + 534,2108 getRandomInt(247, 258) + 534,2109 getRandomInt(283, 296) + 534,2110 getRandomInt(321, 332) + 534,2111 getRandomInt(358, 371) + 534,2112 getRandomInt(389, 406) + 534,2113 getRandomInt(431, 444) + 534,2114 getRandomInt(463, 479) + 534,2115 ];2116 var X_herbArray3 = [2117 getRandomInt(576, 586) + 779,2118 getRandomInt(576, 586) + 779,2119 getRandomInt(576, 586) + 779,2120 getRandomInt(576, 586) + 779,2121 getRandomInt(576, 586) + 779,2122 getRandomInt(576, 586) + 779,2123 getRandomInt(576, 586) + 779,2124 getRandomInt(616, 630) + 779,2125 getRandomInt(616, 630) + 779,2126 getRandomInt(616, 630) + 779,2127 getRandomInt(616, 630) + 779,2128 getRandomInt(616, 630) + 779,2129 getRandomInt(616, 630) + 779,2130 getRandomInt(616, 630) + 779,2131 getRandomInt(656, 670) + 779,2132 getRandomInt(656, 670) + 779,2133 getRandomInt(656, 670) + 779,2134 getRandomInt(656, 670) + 779,2135 getRandomInt(656, 670) + 779,2136 getRandomInt(656, 670) + 779,2137 getRandomInt(656, 670) + 779,2138 getRandomInt(699, 716) + 779,2139 getRandomInt(699, 716) + 779,2140 getRandomInt(699, 716) + 779,2141 getRandomInt(699, 716) + 779,2142 getRandomInt(699, 716) + 779,2143 getRandomInt(699, 716) + 779,2144 getRandomInt(699, 716) + 779,2145 ];2146 var Y_herbArray3 = [2147 getRandomInt(247, 258) + 534,2148 getRandomInt(283, 296) + 534,2149 getRandomInt(321, 332) + 534,2150 getRandomInt(358, 371) + 534,2151 getRandomInt(389, 406) + 534,2152 getRandomInt(431, 444) + 534,2153 getRandomInt(463, 479) + 534,2154 getRandomInt(247, 258) + 534,2155 getRandomInt(283, 296) + 534,2156 getRandomInt(321, 332) + 534,2157 getRandomInt(358, 371) + 534,2158 getRandomInt(389, 406) + 534,2159 getRandomInt(431, 444) + 534,2160 getRandomInt(463, 479) + 534,2161 getRandomInt(247, 258) + 534,2162 getRandomInt(283, 296) + 534,2163 getRandomInt(321, 332) + 534,2164 getRandomInt(358, 371) + 534,2165 getRandomInt(389, 406) + 534,2166 getRandomInt(431, 444) + 534,2167 getRandomInt(463, 479) + 534,2168 getRandomInt(247, 258) + 534,2169 getRandomInt(283, 296) + 534,2170 getRandomInt(321, 332) + 534,2171 getRandomInt(358, 371) + 534,2172 getRandomInt(389, 406) + 534,2173 getRandomInt(431, 444) + 534,2174 getRandomInt(463, 479) + 534,2175 ];2176 //a22177 var counter = 0;2178 while (counter < 27) {2179 var destiny = getRandomInt(0, 27);2180 if (X_herbArray[destiny] != 0 && Y_herbArray[destiny] != 0) {2181 // time complexity applied, just coen 352, from data structures, from algorithm2182 scv.moveMouse(X_herbArray[destiny], Y_herbArray[destiny]);2183 scv.mouseClick();2184 scv.moveMouse(X_herbArray[destiny], Y_herbArray[destiny] + 534);2185 scv.mouseClick();2186 scv.moveMouse(X_herbArray[destiny] + 779, Y_herbArray[destiny] + 534);2187 scv.mouseClick();2188 X_herbArray[destiny] = 0;2189 Y_herbArray[destiny] = 0;2190 counter++;2191 }2192 }2193 sleep(getRandomInt(2300, 3130));2194 scv.moveMouseSmooth(2195 getRandomInt(256, 256 + 97),2196 getRandomInt(190, 190 + 53)2197 );2198 scv.mouseClick();2199 sleep(getRandomInt(634, 780));2200 scv.moveMouseSmooth(getRandomInt(432, 454), getRandomInt(327, 342));2201 scv.mouseClick();2202 scv.moveMouseSmooth(2203 getRandomInt(256, 256 + 97),2204 getRandomInt(190, 190 + 53) + 5342205 );2206 scv.mouseClick();2207 sleep(getRandomInt(634, 780));2208 //bankcccc2209 scv.moveMouseSmooth(getRandomInt(432, 454), getRandomInt(327, 342) + 534);2210 scv.mouseClick();2211 scv.moveMouseSmooth(2212 getRandomInt(256, 256 + 97) + 779,2213 getRandomInt(190, 190 + 53) + 5342214 );2215 scv.mouseClick();2216 sleep(getRandomInt(634, 780));2217 //bankcccc2218 scv.moveMouseSmooth(2219 getRandomInt(432, 454) + 779,2220 getRandomInt(327, 342) + 5342221 );2222 scv.mouseClick();2223 yida++;2224 console.log(yida + ' cycle sucessful');2225 }2226}2227function // used in Algorithm42228DuoMakeSupply() {2229 // top left2230 scv.moveMouseSmooth(getRandomInt(600, 700), getRandomInt(1, 900));2231 var X_firstHalf = [2232 getRandomInt(576, 586),2233 getRandomInt(616, 630),2234 getRandomInt(656, 670),2235 getRandomInt(699, 716),2236 getRandomInt(576, 586),2237 getRandomInt(616, 630),2238 getRandomInt(656, 670),2239 getRandomInt(699, 716),2240 getRandomInt(576, 586),2241 getRandomInt(616, 630),2242 getRandomInt(656, 670),2243 getRandomInt(699, 716),2244 getRandomInt(576, 586),2245 getRandomInt(616, 630),2246 ];2247 var X_secondHalf = [2248 getRandomInt(656, 670),2249 getRandomInt(699, 716),2250 getRandomInt(576, 586),2251 getRandomInt(616, 630),2252 getRandomInt(656, 670),2253 getRandomInt(699, 716),2254 getRandomInt(576, 586),2255 getRandomInt(616, 630),2256 getRandomInt(656, 670),2257 getRandomInt(699, 716),2258 getRandomInt(576, 586),2259 getRandomInt(616, 630),2260 getRandomInt(656, 670),2261 getRandomInt(699, 716),2262 ];2263 var Y_firstHalf = [2264 getRandomInt(247, 258),2265 getRandomInt(247, 258),2266 getRandomInt(247, 258),2267 getRandomInt(247, 258),2268 getRandomInt(283, 296),2269 getRandomInt(283, 296),2270 getRandomInt(283, 296),2271 getRandomInt(283, 296),2272 getRandomInt(321, 332),2273 getRandomInt(321, 332),2274 getRandomInt(321, 332),2275 getRandomInt(321, 332),2276 getRandomInt(358, 371),2277 getRandomInt(358, 371),2278 ];2279 var Y_secondHalf = [2280 getRandomInt(358, 371),2281 getRandomInt(358, 371),2282 getRandomInt(389, 406),2283 getRandomInt(389, 406),2284 getRandomInt(389, 406),2285 getRandomInt(389, 406),2286 getRandomInt(431, 444),2287 getRandomInt(431, 444),2288 getRandomInt(431, 444),2289 getRandomInt(431, 444),2290 getRandomInt(463, 479),2291 getRandomInt(463, 479),2292 getRandomInt(463, 479),2293 getRandomInt(463, 479),2294 ];2295 //bottom left2296 var X1_firstHalf = [2297 getRandomInt(576, 586),2298 getRandomInt(616, 630),2299 getRandomInt(656, 670),2300 getRandomInt(699, 716),2301 getRandomInt(576, 586),2302 getRandomInt(616, 630),2303 getRandomInt(656, 670),2304 getRandomInt(699, 716),2305 getRandomInt(576, 586),2306 getRandomInt(616, 630),2307 getRandomInt(656, 670),2308 getRandomInt(699, 716),2309 getRandomInt(576, 586),2310 getRandomInt(616, 630),2311 ];2312 var X1_secondHalf = [2313 getRandomInt(656, 670),2314 getRandomInt(699, 716),2315 getRandomInt(576, 586),2316 getRandomInt(616, 630),2317 getRandomInt(656, 670),2318 getRandomInt(699, 716),2319 getRandomInt(576, 586),2320 getRandomInt(616, 630),2321 getRandomInt(656, 670),2322 getRandomInt(699, 716),2323 getRandomInt(576, 586),2324 getRandomInt(616, 630),2325 getRandomInt(656, 670),2326 getRandomInt(699, 716),2327 ];2328 var Y1_firstHalf = [2329 getRandomInt(247, 258) + 534,2330 getRandomInt(247, 258) + 534,2331 getRandomInt(247, 258) + 534,2332 getRandomInt(247, 258) + 534,2333 getRandomInt(283, 296) + 534,2334 getRandomInt(283, 296) + 534,2335 getRandomInt(283, 296) + 534,2336 getRandomInt(283, 296) + 534,2337 getRandomInt(321, 332) + 534,2338 getRandomInt(321, 332) + 534,2339 getRandomInt(321, 332) + 534,2340 getRandomInt(321, 332) + 534,2341 getRandomInt(358, 371) + 534,2342 getRandomInt(358, 371) + 534,2343 ];2344 var Y1_secondHalf = [2345 getRandomInt(358, 371) + 534,2346 getRandomInt(358, 371) + 534,2347 getRandomInt(389, 406) + 534,2348 getRandomInt(389, 406) + 534,2349 getRandomInt(389, 406) + 534,2350 getRandomInt(389, 406) + 534,2351 getRandomInt(431, 444) + 534,2352 getRandomInt(431, 444) + 534,2353 getRandomInt(431, 444) + 534,2354 getRandomInt(431, 444) + 534,2355 getRandomInt(463, 479) + 534,2356 getRandomInt(463, 479) + 534,2357 getRandomInt(463, 479) + 534,2358 getRandomInt(463, 479) + 534,2359 ];2360 // random mousemovement2361 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332));2362 var x = 3;2363 var y = 3;2364 // movemouse to the 3rd row,7th column 381, 1982365 var xlocation = getRandomInt(381 - x, 381 + x);2366 var ylocation = getRandomInt(198 - y, 198 + y);2367 scv.moveMouseSmooth(xlocation, ylocation);2368 scv.mouseClick('right');2369 tick(getRandomInt(700, 800));2370 scv.moveMouseSmooth(xlocation, ylocation + 85);2371 scv.mouseClick();2372 tick(getRandomInt(700, 800));2373 scv.moveMouse(getRandomInt(429 - 4, 429 + 4), getRandomInt(198 - 3, 198 + 3));2374 scv.mouseClick();2375 // a12376 closeBank1();2377 tick(getRandomInt(700, 800));2378 var temp = getRandomInt(0, 13);2379 scv.moveMouseSmooth(X_firstHalf[temp], Y_firstHalf[temp]);2380 scv.mouseClick();2381 var temp2 = getRandomInt(0, 13);2382 scv.moveMouseSmooth(X_secondHalf[temp2], Y_secondHalf[temp2]);2383 scv.mouseClick();2384 tick(getRandomInt(700, 800));2385 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480));2386 scv.mouseClick();2387 // random mousemovement2388 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332) + 534);2389 // b12390 var xlocation = getRandomInt(381 - x, 381 + x);2391 var ylocation = getRandomInt(163 - y, 163 + y) + 534;2392 scv.moveMouseSmooth(xlocation, ylocation);2393 scv.mouseClick('right');2394 tick(getRandomInt(700, 800));2395 scv.moveMouseSmooth(xlocation, ylocation + 85);2396 scv.mouseClick();2397 tick(getRandomInt(700, 800));2398 scv.moveMouse(2399 getRandomInt(429 - 4, 429 + 4),2400 getRandomInt(163 - 3, 163 + 3) + 5342401 );2402 scv.mouseClick();2403 closeBank2();2404 tick(getRandomInt(700, 800));2405 var temp3 = getRandomInt(0, 13);2406 scv.moveMouseSmooth(X1_firstHalf[temp3], Y1_firstHalf[temp3]);2407 scv.mouseClick('right');2408 tick(getRandomInt(700, 800));2409 scv.moveMouseSmooth(2410 X1_firstHalf[temp3],2411 Y1_firstHalf[temp3] + getRandomInt(42, 43)2412 );2413 scv.mouseClick('left');2414 var temp4 = getRandomInt(0, 13);2415 scv.moveMouseSmooth(X1_secondHalf[temp4], Y1_secondHalf[temp4]);2416 scv.mouseClick();2417 tick(getRandomInt(700, 800));2418 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480) + 534);2419 scv.mouseClick();2420 sleep(getRandomInt(9400, 10700));2421 scv.moveMouseSmooth(getRandomInt(256, 256 + 97), getRandomInt(190, 190 + 53));2422 scv.mouseClick();2423 sleep(getRandomInt(634, 780));2424 advancedDeposit1();2425 sleep(getRandomInt(1200, 2000));2426 scv.moveMouseSmooth(2427 getRandomInt(256, 256 + 97),2428 getRandomInt(190, 190 + 53) + 5342429 );2430 scv.mouseClick();2431 sleep(getRandomInt(634, 780));2432 advancedDeposit2();2433}2434function // used in Algorithm42435DuoMakeSupplyReverse() {2436 // top left2437 scv.moveMouseSmooth(getRandomInt(600, 700), getRandomInt(1, 900));2438 var X_firstHalf = [2439 getRandomInt(576, 586),2440 getRandomInt(616, 630),2441 getRandomInt(656, 670),2442 getRandomInt(699, 716),2443 getRandomInt(576, 586),2444 getRandomInt(616, 630),2445 getRandomInt(656, 670),2446 getRandomInt(699, 716),2447 getRandomInt(576, 586),2448 getRandomInt(616, 630),2449 getRandomInt(656, 670),2450 getRandomInt(699, 716),2451 getRandomInt(576, 586),2452 getRandomInt(616, 630),2453 ];2454 var X_secondHalf = [2455 getRandomInt(656, 670),2456 getRandomInt(699, 716),2457 getRandomInt(576, 586),2458 getRandomInt(616, 630),2459 getRandomInt(656, 670),2460 getRandomInt(699, 716),2461 getRandomInt(576, 586),2462 getRandomInt(616, 630),2463 getRandomInt(656, 670),2464 getRandomInt(699, 716),2465 getRandomInt(576, 586),2466 getRandomInt(616, 630),2467 getRandomInt(656, 670),2468 getRandomInt(699, 716),2469 ];2470 var Y_firstHalf = [2471 getRandomInt(247, 258),2472 getRandomInt(247, 258),2473 getRandomInt(247, 258),2474 getRandomInt(247, 258),2475 getRandomInt(283, 296),2476 getRandomInt(283, 296),2477 getRandomInt(283, 296),2478 getRandomInt(283, 296),2479 getRandomInt(321, 332),2480 getRandomInt(321, 332),2481 getRandomInt(321, 332),2482 getRandomInt(321, 332),2483 getRandomInt(358, 371),2484 getRandomInt(358, 371),2485 ];2486 var Y_secondHalf = [2487 getRandomInt(358, 371),2488 getRandomInt(358, 371),2489 getRandomInt(389, 406),2490 getRandomInt(389, 406),2491 getRandomInt(389, 406),2492 getRandomInt(389, 406),2493 getRandomInt(431, 444),2494 getRandomInt(431, 444),2495 getRandomInt(431, 444),2496 getRandomInt(431, 444),2497 getRandomInt(463, 479),2498 getRandomInt(463, 479),2499 getRandomInt(463, 479),2500 getRandomInt(463, 479),2501 ];2502 //bottom left2503 var X1_firstHalf = [2504 getRandomInt(576, 586),2505 getRandomInt(616, 630),2506 getRandomInt(656, 670),2507 getRandomInt(699, 716),2508 getRandomInt(576, 586),2509 getRandomInt(616, 630),2510 getRandomInt(656, 670),2511 getRandomInt(699, 716),2512 getRandomInt(576, 586),2513 getRandomInt(616, 630),2514 getRandomInt(656, 670),2515 getRandomInt(699, 716),2516 getRandomInt(576, 586),2517 getRandomInt(616, 630),2518 ];2519 var X1_secondHalf = [2520 getRandomInt(656, 670),2521 getRandomInt(699, 716),2522 getRandomInt(576, 586),2523 getRandomInt(616, 630),2524 getRandomInt(656, 670),2525 getRandomInt(699, 716),2526 getRandomInt(576, 586),2527 getRandomInt(616, 630),2528 getRandomInt(656, 670),2529 getRandomInt(699, 716),2530 getRandomInt(576, 586),2531 getRandomInt(616, 630),2532 getRandomInt(656, 670),2533 getRandomInt(699, 716),2534 ];2535 var Y1_firstHalf = [2536 getRandomInt(247, 258) + 534,2537 getRandomInt(247, 258) + 534,2538 getRandomInt(247, 258) + 534,2539 getRandomInt(247, 258) + 534,2540 getRandomInt(283, 296) + 534,2541 getRandomInt(283, 296) + 534,2542 getRandomInt(283, 296) + 534,2543 getRandomInt(283, 296) + 534,2544 getRandomInt(321, 332) + 534,2545 getRandomInt(321, 332) + 534,2546 getRandomInt(321, 332) + 534,2547 getRandomInt(321, 332) + 534,2548 getRandomInt(358, 371) + 534,2549 getRandomInt(358, 371) + 534,2550 ];2551 var Y1_secondHalf = [2552 getRandomInt(358, 371) + 534,2553 getRandomInt(358, 371) + 534,2554 getRandomInt(389, 406) + 534,2555 getRandomInt(389, 406) + 534,2556 getRandomInt(389, 406) + 534,2557 getRandomInt(389, 406) + 534,2558 getRandomInt(431, 444) + 534,2559 getRandomInt(431, 444) + 534,2560 getRandomInt(431, 444) + 534,2561 getRandomInt(431, 444) + 534,2562 getRandomInt(463, 479) + 534,2563 getRandomInt(463, 479) + 534,2564 getRandomInt(463, 479) + 534,2565 getRandomInt(463, 479) + 534,2566 ];2567 // random mousemovement2568 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332));2569 var x = 3;2570 var y = 3;2571 // movemouse to the 3rd row,7th column 381, 1982572 var xlocation = getRandomInt(381 - x, 381 + x);2573 var ylocation = getRandomInt(163 - y, 163 + y);2574 scv.moveMouseSmooth(xlocation, ylocation);2575 scv.mouseClick('right');2576 tick(getRandomInt(700, 800));2577 scv.moveMouseSmooth(xlocation, ylocation + 85);2578 scv.mouseClick();2579 tick(getRandomInt(700, 800));2580 scv.moveMouse(getRandomInt(429 - 4, 429 + 4), getRandomInt(163 - 3, 163 + 3));2581 scv.mouseClick();2582 // a12583 closeBank1();2584 tick(getRandomInt(700, 800));2585 var temp = getRandomInt(0, 13);2586 scv.moveMouseSmooth(X_firstHalf[temp], Y_firstHalf[temp]);2587 scv.mouseClick('right');2588 tick(getRandomInt(700, 800));2589 scv.moveMouseSmooth(2590 X_firstHalf[temp],2591 Y_firstHalf[temp] + getRandomInt(42, 43)2592 );2593 scv.mouseClick();2594 tick(getRandomInt(700, 800));2595 var temp2 = getRandomInt(0, 13);2596 scv.moveMouseSmooth(X_secondHalf[temp2], Y_secondHalf[temp2]);2597 scv.mouseClick();2598 tick(getRandomInt(700, 800));2599 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480));2600 scv.mouseClick();2601 // random mousemovement2602 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332) + 534);2603 // b12604 var xlocation = getRandomInt(381 - x, 381 + x);2605 var ylocation = getRandomInt(198 - y, 198 + y) + 534;2606 scv.moveMouseSmooth(xlocation, ylocation);2607 scv.mouseClick('right');2608 tick(getRandomInt(700, 800));2609 scv.moveMouseSmooth(xlocation, ylocation + 85);2610 scv.mouseClick();2611 tick(getRandomInt(700, 800));2612 scv.moveMouse(2613 getRandomInt(429 - 4, 429 + 4),2614 getRandomInt(198 - 3, 198 + 3) + 5342615 );2616 scv.mouseClick();2617 closeBank2();2618 tick(getRandomInt(700, 800));2619 var temp3 = getRandomInt(0, 13);2620 scv.moveMouseSmooth(X1_firstHalf[temp3], Y1_firstHalf[temp3]);2621 scv.mouseClick();2622 tick(getRandomInt(700, 800));2623 var temp4 = getRandomInt(0, 13);2624 scv.moveMouseSmooth(X1_secondHalf[temp4], Y1_secondHalf[temp4]);2625 scv.mouseClick();2626 tick(getRandomInt(700, 800));2627 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480) + 534);2628 scv.mouseClick();2629 sleep(getRandomInt(9400, 10700));2630 scv.moveMouseSmooth(getRandomInt(256, 256 + 97), getRandomInt(190, 190 + 53));2631 scv.mouseClick();2632 sleep(getRandomInt(634, 780));2633 advancedDeposit1();2634 sleep(getRandomInt(1200, 2000));2635 scv.moveMouseSmooth(2636 getRandomInt(256, 256 + 97),2637 getRandomInt(190, 190 + 53) + 5342638 );2639 scv.mouseClick();2640 sleep(getRandomInt(634, 780));2641 advancedDeposit2();2642}2643function // finite loop that performs fletch2644Algorithm1() {2645 var count = 0;2646 while (count < 10000) {2647 var temp = getRandomInt(1, 256);2648 if (temp > 252) {2649 DuoMake1stRow1tick();2650 count++;2651 } else if (temp > 236) {2652 DuoMake2ndRow2tick();2653 count++;2654 } else {2655 DuoMake3rdRow3tick();2656 count++;2657 }2658 console.log(count + ' cycles.');2659 }2660}2661function // finite loop that performs unf pot2662Algorithm2() {2663 var count = 0;2664 while (true) {2665 var temp = getRandomInt(1, 256);2666 if (temp > 250) {2667 DuoMake1stRow3tick();2668 count++;2669 } else if (temp > 236) {2670 DuoMake2ndRow2tick();2671 count++;2672 } else {2673 DuoMake3rdRow1tick(); // which is 1ticking mainly, for unf potion run2674 count++;2675 }2676 console.log(count + ' cycles.');2677 }2678}2679function // Completely insane Arbitrary Random Unpredictable Algorithmn2680AlgorithmX() {2681 var count = 0;2682 while (true) {2683 var temp = getRandomInt(1, 256);2684 if (temp > getRandomInt(getRandomInt(1, 126), getRandomInt(127, 256))) {2685 DuoMake3rdRow3tick();2686 count++;2687 } else if (2688 temp > getRandomInt(getRandomInt(1, 126), getRandomInt(127, 256))2689 ) {2690 DuoMake2ndRow2tick();2691 count++;2692 } else {2693 DuoMake1stRow1tick();2694 count++;2695 }2696 console.log(count + ' cycles.');2697 }2698}2699function // infinite loop that performs creats supplys2700Algorithm3() {2701 2702 while (true) {2703 login1();2704 login2();2705 sleep(getRandomInt(4000, 5000));2706 reposition1();2707 reposition2();2708 sleep(getRandomInt(4000, 5000));2709 openBank1();2710 openBank2();2711 sleep(getRandomInt(4000, 5000));2712 // approxiate 3 hour-5 hours2713 var count = 0;2714 var tempHour = getRandomInt(300, 450);2715 while (count < tempHour) {2716 var temp = getRandomInt(1, 256);2717 if (temp > 250) {2718 DuoMake3rdRow3tick();2719 count++;2720 } else if (temp > 236) {2721 DuoMake1stRow1tick(); // which is 1ticking mainly, for unf potion run2722 count++;2723 } else {2724 DuoMake2ndRow2tick();2725 count++;2726 }2727 console.log(tempHour - count + ' cycles left before reset.');2728 }2729 var chance = getRandomInt(1, 20); //10% chance to collect resources2730 if (chance == 10) {2731 closeBank1();2732 closeBank2();2733 collectResources1();2734 collectResources2();2735 }2736 closeBank1();2737 closeBank2();2738 sleep(getRandomInt(4000, 5000));2739 logOut1();2740 logOut2();2741 //sleep(getRandomInt(40000, 50000));2742 sleep(getRandomInt(4000, 5000));2743 }2744}2745function // finite loop that performs cooking/fletching arbitrary2746Algorithm4() {2747 var count = 0;2748 while (true) {2749 var temp = getRandomInt(1, 256);2750 if (temp < 126) {2751 DuoMakeSupply();2752 count++;2753 } else {2754 DuoMakeSupplyReverse();2755 count++;2756 }2757 console.log(count + ' cycles.');2758 }2759}2760function // infinite loop that performs unf pot2761Algorithm5() {2762 while (true) {2763 login1();2764 login2();2765 sleep(getRandomInt(4000, 5000));2766 reposition1();2767 reposition2();2768 sleep(getRandomInt(4000, 5000));2769 openBank1();2770 openBank2();2771 sleep(getRandomInt(4000, 5000));2772 // approxiate 3 hour-5 hours2773 var count = 0;2774 var tempHour = getRandomInt(450, 600);2775 while (count < tempHour) {2776 var temp = getRandomInt(1, 256);2777 if (temp > 250) {2778 DuoMake2ndRow2tick();2779 count++;2780 } else if (temp > 236) {2781 DuoMake1stRow3tick();2782 count++;2783 } else {2784 DuoMake3rdRow1tick(); // which is 1ticking mainly, for unf potion run2785 count++;2786 }2787 console.log(tempHour - count + ' cycles left before reset.');2788 }2789 var chance = getRandomInt(1, 20); //10% chance to collect resources2790 if (chance == 10) {2791 closeBank1();2792 closeBank2();2793 collectResources1();2794 collectResources2();2795 }2796 closeBank1();2797 closeBank2();2798 sleep(getRandomInt(4000, 5000));2799 logOut1();2800 logOut2();2801 sleep(getRandomInt(40000, 50000));2802 }2803}2804function // infinite loop that performs fletch2805Algorithm6() {2806 2807 while (true) {2808 login1();2809 login2();2810 sleep(getRandomInt(4000, 5000));2811 reposition1();2812 reposition2();2813 sleep(getRandomInt(4000, 5000));2814 openBank1();2815 openBank2();2816 sleep(getRandomInt(4000, 5000));2817 // approxiate 3 hour-5 hours2818 var count = 0;2819 var tempHour = getRandomInt(300, 450);2820 while (count < tempHour) {2821 var temp = getRandomInt(1, 256);2822 if (temp > 250) {2823 DuoMake2ndRow2tick();2824 count++;2825 } else if (temp > 236) {2826 DuoMake1stRow1tick(); // which is 1ticking mainly, for unf potion run2827 count++;2828 } else {2829 DuoMake3rdRow3tick();2830 count++;2831 }2832 console.log(tempHour - count + ' cycles left before reset.');2833 }2834 var chance = getRandomInt(1, 20); //10% chance to collect resources2835 if (chance == 10) {2836 closeBank1();2837 closeBank2();2838 collectResources1();2839 collectResources2();2840 }2841 closeBank1();2842 closeBank2();2843 sleep(getRandomInt(4000, 5000));2844 logOut1();2845 logOut2();2846 //sleep(getRandomInt(40000, 50000));2847 sleep(getRandomInt(4000, 5000));2848 }2849}2850function // infinite loop that performs cleans grimmy herb and make it into unf potion for 1 SCV2851Algorithm7() {2852 while (true) {2853 login1();2854 sleep(getRandomInt(4000, 5000));2855 reposition1();2856 sleep(getRandomInt(4000, 5000));2857 openBank1();2858 sleep(getRandomInt(4000, 5000));2859 // approxiate 3 hour2860 SoloMix();2861 //2862 closeBank1();2863 sleep(getRandomInt(4000, 5000));2864 logOut1();2865 sleep(getRandomInt(4000, 5000));2866 login1();2867 sleep(getRandomInt(4000, 5000));2868 reposition1();2869 sleep(getRandomInt(4000, 5000));2870 openBank1();2871 sleep(getRandomInt(4000, 5000));2872 banktab1();2873 // approxiate 3 hour2874 SoloClean();2875 //2876 closeBank1();2877 sleep(getRandomInt(4000, 5000));2878 logOut1();2879 sleep(getRandomInt(4000, 5000));2880 }2881}2882function // infinite loop that performs cleans grimmy herb and make it into unf potion for 2 SCV2883Algorithm8() {2884 while (true) {2885 login1();2886 login2();2887 sleep(getRandomInt(4000, 5000));2888 reposition1();2889 reposition2();2890 sleep(getRandomInt(4000, 5000));2891 openBank1();2892 openBank2();2893 sleep(getRandomInt(4000, 5000));2894 // approxiate 3 hour2895 DuoMix();2896 //2897 closeBank1();2898 closeBank2();2899 sleep(getRandomInt(4000, 5000));2900 logOut1();2901 logOut2();2902 sleep(getRandomInt(4000, 5000));2903 login1();2904 login2();2905 sleep(getRandomInt(4000, 5000));2906 reposition1();2907 reposition2();2908 sleep(getRandomInt(4000, 5000));2909 openBank1();2910 openBank2();2911 sleep(getRandomInt(4000, 5000));2912 banktab1();2913 banktab2();2914 // approxiate 3 hour2915 DuoClean();2916 //2917 closeBank1();2918 closeBank2();2919 sleep(getRandomInt(4000, 5000));2920 logOut1();2921 logOut2();2922 sleep(getRandomInt(4000, 5000));2923 }2924}2925function login1() {2926 scv.moveMouseSmooth(getRandomInt(407, 520), getRandomInt(305, 326));2927 scv.mouseClick();2928 sleep(1000);2929 // type username2930 scv.typeString(accessToken.username1);2931 sleep(1000);2932 scv.keyTap('tab');2933 // type password2934 scv.typeString(accessToken.password1);2935 scv.keyTap('enter');2936 sleep(9000);2937 sleep(getRandomInt(4000, 5000));2938 sleep(getRandomInt(4000, 5000));2939 sleep(getRandomInt(4000, 5000));2940 // close the menu that pops up2941 scv.moveMouseSmooth(getRandomInt(298, 469), getRandomInt(335, 382));2942 scv.mouseClick();2943 sleep(getRandomInt(100, 110));2944 scv.mouseClick();2945}2946function fastlogin1() {2947 scv.moveMouseSmooth(getRandomInt(407, 520), getRandomInt(305, 326));2948 scv.mouseClick();2949 sleep(1000);2950 // type username2951 scv.typeString(accessToken.username1);2952 sleep(1000);2953 scv.keyTap('tab');2954 // type password2955 scv.typeString(accessToken.password1);2956 scv.keyTap('enter');2957}2958function login2() {2959 scv.moveMouseSmooth(getRandomInt(407, 520), getRandomInt(305, 326) + 534);2960 scv.mouseClick();2961 sleep(1000);2962 // type username2963 scv.typeString(accessToken.username2);2964 sleep(1000);2965 scv.keyTap('tab');2966 // type password2967 scv.typeString(accessToken.password2);2968 //2969 scv.keyTap('enter');2970 sleep(9000);2971 sleep(getRandomInt(4000, 5000));2972 sleep(getRandomInt(4000, 5000));2973 // close the menu that pops up2974 scv.moveMouseSmooth(getRandomInt(298, 469), getRandomInt(335, 382) + 534);2975 scv.mouseClick();2976 sleep(getRandomInt(100, 110));2977 scv.mouseClick();2978}2979function fastlogin2() {2980 scv.moveMouseSmooth(getRandomInt(407, 520), getRandomInt(305, 326) + 534);2981 scv.mouseClick();2982 sleep(1000);2983 // type username2984 scv.typeString(accessToken.username2);2985 sleep(1000);2986 scv.keyTap('tab');2987 // type password2988 scv.typeString(accessToken.password2);2989 //2990 scv.keyTap('enter');2991}2992function login3() {2993 scv.moveMouseSmooth(2994 getRandomInt(407, 520) + 779,2995 getRandomInt(305, 326) + 5342996 );2997 scv.mouseClick();2998 sleep(1000);2999 // type username3000 scv.typeString('');3001 sleep(1000);3002 scv.keyTap('tab');3003 // type password3004 scv.typeString('');3005 //3006 scv.keyTap('enter');3007 sleep(9000);3008 sleep(getRandomInt(4000, 5000));3009 sleep(getRandomInt(4000, 5000));3010 // close the menu that pops up3011 scv.moveMouseSmooth(3012 getRandomInt(298, 469) + 779,3013 getRandomInt(335, 382) + 5343014 );3015 scv.mouseClick();3016 sleep(getRandomInt(100, 110));3017 scv.mouseClick();3018}3019function logOut1() {3020 scv.moveMouseSmooth(getRandomInt(635, 655), getRandomInt(498, 519));3021 sleep(getRandomInt(600, 700));3022 scv.mouseClick();3023 scv.moveMouseSmooth(getRandomInt(595, 702), getRandomInt(452, 463));3024 sleep(getRandomInt(600, 700));3025 scv.mouseClick();3026}3027function logOut2() {3028 scv.moveMouseSmooth(getRandomInt(635, 655), getRandomInt(498, 519) + 534);3029 sleep(getRandomInt(600, 700));3030 scv.mouseClick();3031 scv.moveMouseSmooth(getRandomInt(595, 702), getRandomInt(452, 463) + 534);3032 sleep(getRandomInt(600, 700));3033 scv.mouseClick();3034}3035function logOut3() {3036 scv.moveMouseSmooth(3037 getRandomInt(635, 655) + 779,3038 getRandomInt(498, 519) + 5343039 );3040 sleep(getRandomInt(600, 700));3041 scv.mouseClick();3042 scv.moveMouseSmooth(3043 getRandomInt(595, 702) + 779,3044 getRandomInt(452, 463) + 5343045 );3046 sleep(getRandomInt(600, 700));3047 scv.mouseClick();3048}3049function reposition1() {3050 scv.setMouseDelay(0.5);3051 scv.moveMouseSmooth(58, 138);3052 scv.mouseToggle('down', 'right');3053 scv.moveMouseSmooth(246, 138);3054 scv.mouseToggle('up', 'right');3055}3056function reposition2() {3057 scv.setMouseDelay(0.5);3058 scv.moveMouseSmooth(58, 138 + 534);3059 scv.mouseToggle('down', 'right');3060 scv.moveMouseSmooth(246, 138 + 534);3061 scv.mouseToggle('up', 'right');3062}3063function reposition3() {3064 scv.setMouseDelay(0.5);3065 scv.moveMouseSmooth(58 + 779, 138 + 534);3066 scv.mouseToggle('down', 'right');3067 scv.moveMouseSmooth(246 + 779, 138 + 534);3068 scv.mouseToggle('up', 'right');3069}3070function openBank1() {3071 var x = getRandomInt(248, 267);3072 var y = getRandomInt(186, 193);3073 scv.moveMouseSmooth(x, y);3074 sleep(getRandomInt(600, 700));3075 scv.mouseClick('right');3076 sleep(getRandomInt(600, 700));3077 scv.moveMouseSmooth(x, y + 20);3078 sleep(getRandomInt(600, 700));3079 scv.mouseClick();3080 sleep(getRandomInt(100, 200));3081 scv.mouseClick();3082 sleep(getRandomInt(600, 700));3083}3084function banktab1() {3085 // currently 6th position3086 var x = getRandomInt(314, 328);3087 var y = getRandomInt(79, 91);3088 scv.moveMouseSmooth(x, y);3089 scv.mouseClick();3090 sleep(getRandomInt(100, 200));3091 scv.mouseClick();3092 sleep(getRandomInt(600, 700));3093 sleep(getRandomInt(600, 700));3094}3095function banktab2() {3096 // currently 6th position3097 var x = getRandomInt(314, 328);3098 var y = getRandomInt(79, 91) + 534;3099 scv.moveMouseSmooth(x, y);3100 scv.mouseClick();3101 sleep(getRandomInt(100, 200));3102 scv.mouseClick();3103 sleep(getRandomInt(600, 700));3104 sleep(getRandomInt(600, 700));3105}3106function banktab3() {3107 // currently 6th position3108 var x = getRandomInt(314, 344) + 779;3109 var y = getRandomInt(79, 91) + 534;3110 scv.moveMouseSmooth(x, y);3111 scv.mouseClick();3112 sleep(getRandomInt(100, 200));3113 scv.mouseClick();3114 sleep(getRandomInt(600, 700));3115 sleep(getRandomInt(600, 700));3116 sleep(getRandomInt(600, 700));3117}3118function openBank2() {3119 var x = getRandomInt(248, 267);3120 var y = getRandomInt(186, 193) + 534;3121 scv.moveMouseSmooth(x, y);3122 sleep(getRandomInt(600, 700));3123 scv.mouseClick('right');3124 sleep(getRandomInt(600, 700));3125 scv.moveMouseSmooth(x, y + 20);3126 sleep(getRandomInt(600, 700));3127 scv.mouseClick();3128 sleep(getRandomInt(100, 200));3129 scv.mouseClick();3130 sleep(getRandomInt(600, 700));3131}3132function openBank3() {3133 var x = getRandomInt(248, 267) + 779;3134 var y = getRandomInt(186, 193) + 534;3135 scv.moveMouseSmooth(x, y);3136 sleep(getRandomInt(600, 700));3137 scv.mouseClick('right');3138 sleep(getRandomInt(600, 700));3139 scv.moveMouseSmooth(x, y + 20);3140 sleep(getRandomInt(600, 700));3141 scv.mouseClick();3142 sleep(getRandomInt(100, 200));3143 scv.mouseClick();3144 sleep(getRandomInt(600, 700));3145}3146function collectResources1() {3147 var x = getRandomInt(248, 267);3148 var y = getRandomInt(186, 193);3149 scv.moveMouseSmooth(x, y);3150 sleep(getRandomInt(600, 700));3151 scv.mouseClick('right');3152 sleep(getRandomInt(600, 700));3153 scv.moveMouseSmooth(x, y + 43);3154 sleep(getRandomInt(600, 700));3155 scv.mouseClick();3156 sleep(getRandomInt(3500, 4000));3157 console.log('collecting');3158 var boxArrayX = [3159 getRandomInt(68, 85),3160 getRandomInt(68, 85),3161 getRandomInt(68, 85) + 111,3162 getRandomInt(68, 85) + 111,3163 getRandomInt(68, 85) + 222,3164 getRandomInt(68, 85) + 222,3165 getRandomInt(68, 85) + 333,3166 getRandomInt(68, 85) + 333,3167 ];3168 var boxArrayY = [3169 getRandomInt(155, 173),3170 getRandomInt(155, 173) + 82,3171 getRandomInt(155, 173),3172 getRandomInt(155, 173) + 82,3173 getRandomInt(155, 173),3174 getRandomInt(155, 173) + 82,3175 getRandomInt(155, 173),3176 getRandomInt(155, 173) + 82,3177 ];3178 var counter = 0;3179 while (counter < 8) {3180 var destiny = getRandomInt(0, 7);3181 if (boxArrayX[destiny] != 0 && boxArrayY[destiny] != 0) {3182 // time complexity applied, just coen 352, from data structures, from algorithm3183 scv.moveMouseSmooth(boxArrayX[destiny], boxArrayY[destiny]);3184 scv.mouseClick();3185 sleep(getRandomInt(150, 230));3186 boxArrayX[destiny] = 0;3187 boxArrayY[destiny] = 0;3188 counter++;3189 }3190 }3191 console.log('Closing collection log');3192 closeThing();3193}3194function collectResources2() {3195 var x = getRandomInt(248, 267);3196 var y = getRandomInt(186, 193) + 534;3197 scv.moveMouseSmooth(x, y);3198 sleep(getRandomInt(600, 700));3199 scv.mouseClick('right');3200 sleep(getRandomInt(600, 700));3201 scv.moveMouseSmooth(x, y + 43);3202 sleep(getRandomInt(600, 700));3203 scv.mouseClick();3204 sleep(getRandomInt(3500, 4000));3205 console.log('collecting');3206 var boxArrayX = [3207 getRandomInt(68, 85),3208 getRandomInt(68, 85),3209 getRandomInt(68, 85) + 111,3210 getRandomInt(68, 85) + 111,3211 getRandomInt(68, 85) + 222,3212 getRandomInt(68, 85) + 222,3213 getRandomInt(68, 85) + 333,3214 getRandomInt(68, 85) + 333,3215 ];3216 var boxArrayY = [3217 getRandomInt(155, 173) + 534,3218 getRandomInt(155, 173) + 82 + 534,3219 getRandomInt(155, 173) + 534,3220 getRandomInt(155, 173) + 82 + 534,3221 getRandomInt(155, 173) + 534,3222 getRandomInt(155, 173) + 82 + 534,3223 getRandomInt(155, 173) + 534,3224 getRandomInt(155, 173) + 82 + 534,3225 ];3226 var counter = 0;3227 while (counter < 8) {3228 var destiny = getRandomInt(0, 7);3229 if (boxArrayX[destiny] != 0 && boxArrayY[destiny] != 0) {3230 // time complexity applied, just coen 352, from data structures, from algorithm3231 scv.moveMouseSmooth(boxArrayX[destiny], boxArrayY[destiny]);3232 scv.mouseClick();3233 sleep(getRandomInt(150, 230));3234 boxArrayX[destiny] = 0;3235 boxArrayY[destiny] = 0;3236 counter++;3237 }3238 }3239 console.log('Closing collection log');3240 closeThing2();3241}3242function collectResources3() {3243 var x = getRandomInt(248, 267);3244 var y = getRandomInt(186, 193) + 534;3245 scv.moveMouseSmooth(x, y);3246 sleep(getRandomInt(600, 700));3247 scv.mouseClick('right');3248 sleep(getRandomInt(600, 700));3249 scv.moveMouseSmooth(x, y + 43);3250 sleep(getRandomInt(600, 700));3251 scv.mouseClick();3252 sleep(getRandomInt(3500, 4000));3253 console.log('collecting');3254 var boxArrayX = [3255 getRandomInt(68, 85) + 779,3256 getRandomInt(68, 85) + 779,3257 getRandomInt(68, 85) + 111 + 779,3258 getRandomInt(68, 85) + 111 + 779,3259 getRandomInt(68, 85) + 222 + 779,3260 getRandomInt(68, 85) + 222 + 779,3261 getRandomInt(68, 85) + 333 + 779,3262 getRandomInt(68, 85) + 333 + 779,3263 ];3264 var boxArrayY = [3265 getRandomInt(155, 173) + 534,3266 getRandomInt(155, 173) + 82 + 534,3267 getRandomInt(155, 173) + 534,3268 getRandomInt(155, 173) + 82 + 534,3269 getRandomInt(155, 173) + 534,3270 getRandomInt(155, 173) + 82 + 534,3271 getRandomInt(155, 173) + 534,3272 getRandomInt(155, 173) + 82 + 534,3273 ];3274 var counter = 0;3275 while (counter < 8) {3276 var destiny = getRandomInt(0, 7);3277 if (boxArrayX[destiny] != 0 && boxArrayY[destiny] != 0) {3278 // time complexity applied, just coen 352, from data structures, from algorithm3279 scv.moveMouseSmooth(boxArrayX[destiny], boxArrayY[destiny]);3280 scv.mouseClick();3281 sleep(getRandomInt(150, 230));3282 boxArrayX[destiny] = 0;3283 boxArrayY[destiny] = 0;3284 counter++;3285 }3286 }3287 console.log('Closing collection log');3288 closeThing3();3289}3290function // used in sycn with collecting resources3291closeThing() {3292 scv.moveMouseSmooth(getRandomInt(551, 556), getRandomInt(111, 125));3293 for (var i = 0; i < getRandomInt(1, 2); i++) {3294 scv.mouseClick();3295 sleep(231);3296 }3297}3298function closeThing2() {3299 scv.moveMouseSmooth(getRandomInt(551, 556), getRandomInt(111, 125) + 534);3300 for (var i = 0; i < getRandomInt(1, 2); i++) {3301 scv.mouseClick();3302 sleep(231);3303 }3304}3305function closeThing3() {3306 scv.moveMouseSmooth(3307 getRandomInt(551, 556) + 779,3308 getRandomInt(111, 125) + 7793309 );3310 for (var i = 0; i < getRandomInt(1, 2); i++) {3311 scv.mouseClick();3312 sleep(231);3313 }3314}3315function // pestle/knife/chisel/hammer3316simpleDeposit1() {3317 var X_herbArray = [3318 getRandomInt(576, 586),3319 getRandomInt(576, 586),3320 getRandomInt(576, 586),3321 getRandomInt(576, 586),3322 getRandomInt(576, 586),3323 getRandomInt(576, 586),3324 getRandomInt(576, 586),3325 getRandomInt(616, 630),3326 getRandomInt(616, 630),3327 getRandomInt(616, 630),3328 getRandomInt(616, 630),3329 getRandomInt(616, 630),3330 getRandomInt(616, 630),3331 getRandomInt(616, 630),3332 getRandomInt(656, 670),3333 getRandomInt(656, 670),3334 getRandomInt(656, 670),3335 getRandomInt(656, 670),3336 getRandomInt(656, 670),3337 getRandomInt(656, 670),3338 getRandomInt(656, 670),3339 getRandomInt(699, 716),3340 getRandomInt(699, 716),3341 getRandomInt(699, 716),3342 getRandomInt(699, 716),3343 getRandomInt(699, 716),3344 getRandomInt(699, 716),3345 getRandomInt(699, 716),3346 ];3347 var Y_herbArray = [3348 getRandomInt(247, 258),3349 getRandomInt(283, 296),3350 getRandomInt(321, 332),3351 getRandomInt(358, 371),3352 getRandomInt(389, 406),3353 getRandomInt(431, 444),3354 getRandomInt(463, 479),3355 getRandomInt(247, 258),3356 getRandomInt(283, 296),3357 getRandomInt(321, 332),3358 getRandomInt(358, 371),3359 getRandomInt(389, 406),3360 getRandomInt(431, 444),3361 getRandomInt(463, 479),3362 getRandomInt(247, 258),3363 getRandomInt(283, 296),3364 getRandomInt(321, 332),3365 getRandomInt(358, 371),3366 getRandomInt(389, 406),3367 getRandomInt(431, 444),3368 getRandomInt(463, 479),3369 getRandomInt(247, 258),3370 getRandomInt(283, 296),3371 getRandomInt(321, 332),3372 getRandomInt(358, 371),3373 getRandomInt(389, 406),3374 getRandomInt(431, 444),3375 getRandomInt(463, 479),3376 ];3377 scv.moveMouseSmooth(X_herbArray[0], Y_herbArray[0]);3378 sleep(getRandomInt(50, 150));3379 scv.mouseClick();3380 //a13381 var counter1 = 0;3382 while (counter1 < 2) {3383 var destiny = getRandomInt(1, 27);3384 if (X_herbArray[destiny] != 0 && Y_herbArray[destiny] != 0) {3385 // time complexity applied, just coen 352, from data structures, from algorithm3386 scv.moveMouse(X_herbArray[destiny], Y_herbArray[destiny]);3387 scv.mouseClick();3388 sleep(getRandomInt(50, 150));3389 X_herbArray[destiny] = 0;3390 Y_herbArray[destiny] = 0;3391 counter1++;3392 }3393 }3394}3395function // pestle/knife/chisel/hammer3396simpleDeposit2() {3397 sleep(getRandomInt(601, 1199));3398 var X_herbArray = [3399 getRandomInt(576, 586),3400 getRandomInt(576, 586),3401 getRandomInt(576, 586),3402 getRandomInt(576, 586),3403 getRandomInt(576, 586),3404 getRandomInt(576, 586),3405 getRandomInt(576, 586),3406 getRandomInt(616, 630),3407 getRandomInt(616, 630),3408 getRandomInt(616, 630),3409 getRandomInt(616, 630),3410 getRandomInt(616, 630),3411 getRandomInt(616, 630),3412 getRandomInt(616, 630),3413 getRandomInt(656, 670),3414 getRandomInt(656, 670),3415 getRandomInt(656, 670),3416 getRandomInt(656, 670),3417 getRandomInt(656, 670),3418 getRandomInt(656, 670),3419 getRandomInt(656, 670),3420 getRandomInt(699, 716),3421 getRandomInt(699, 716),3422 getRandomInt(699, 716),3423 getRandomInt(699, 716),3424 getRandomInt(699, 716),3425 getRandomInt(699, 716),3426 getRandomInt(699, 716),3427 ];3428 var Y_herbArray = [3429 getRandomInt(247, 258),3430 getRandomInt(283, 296),3431 getRandomInt(321, 332),3432 getRandomInt(358, 371),3433 getRandomInt(389, 406),3434 getRandomInt(431, 444),3435 getRandomInt(463, 479),3436 getRandomInt(247, 258),3437 getRandomInt(283, 296),3438 getRandomInt(321, 332),3439 getRandomInt(358, 371),3440 getRandomInt(389, 406),3441 getRandomInt(431, 444),3442 getRandomInt(463, 479),3443 getRandomInt(247, 258),3444 getRandomInt(283, 296),3445 getRandomInt(321, 332),3446 getRandomInt(358, 371),3447 getRandomInt(389, 406),3448 getRandomInt(431, 444),3449 getRandomInt(463, 479),3450 getRandomInt(247, 258),3451 getRandomInt(283, 296),3452 getRandomInt(321, 332),3453 getRandomInt(358, 371),3454 getRandomInt(389, 406),3455 getRandomInt(431, 444),3456 getRandomInt(463, 479),3457 ];3458 scv.moveMouseSmooth(X_herbArray[0], Y_herbArray[0] + 534);3459 sleep(getRandomInt(50, 150));3460 scv.mouseClick();3461 //a23462 var counter1 = 0;3463 while (counter1 < 2) {3464 var destiny = getRandomInt(1, 27);3465 if (X_herbArray[destiny] != 0 && Y_herbArray[destiny] != 0) {3466 // time complexity applied, just coen 352, from data structures, from algorithm3467 scv.moveMouse(X_herbArray[destiny], Y_herbArray[destiny] + 534);3468 scv.mouseClick();3469 sleep(getRandomInt(50, 150));3470 X_herbArray[destiny] = 0;3471 Y_herbArray[destiny] = 0;3472 counter1++;3473 }3474 }3475}3476function advancedDeposit1() {3477 var X_herbArray = [3478 getRandomInt(576, 586),3479 getRandomInt(576, 586),3480 getRandomInt(576, 586),3481 getRandomInt(576, 586),3482 getRandomInt(576, 586),3483 getRandomInt(576, 586),3484 getRandomInt(576, 586),3485 getRandomInt(616, 630),3486 getRandomInt(616, 630),3487 getRandomInt(616, 630),3488 getRandomInt(616, 630),3489 getRandomInt(616, 630),3490 getRandomInt(616, 630),3491 getRandomInt(616, 630),3492 getRandomInt(656, 670),3493 getRandomInt(656, 670),3494 getRandomInt(656, 670),3495 getRandomInt(656, 670),3496 getRandomInt(656, 670),3497 getRandomInt(656, 670),3498 getRandomInt(656, 670),3499 getRandomInt(699, 716),3500 getRandomInt(699, 716),3501 getRandomInt(699, 716),3502 getRandomInt(699, 716),3503 getRandomInt(699, 716),3504 getRandomInt(699, 716),3505 getRandomInt(699, 716),3506 ];3507 var Y_herbArray = [3508 getRandomInt(247, 258),3509 getRandomInt(283, 296),3510 getRandomInt(321, 332),3511 getRandomInt(358, 371),3512 getRandomInt(389, 406),3513 getRandomInt(431, 444),3514 getRandomInt(463, 479),3515 getRandomInt(247, 258),3516 getRandomInt(283, 296),3517 getRandomInt(321, 332),3518 getRandomInt(358, 371),3519 getRandomInt(389, 406),3520 getRandomInt(431, 444),3521 getRandomInt(463, 479),3522 getRandomInt(247, 258),3523 getRandomInt(283, 296),3524 getRandomInt(321, 332),3525 getRandomInt(358, 371),3526 getRandomInt(389, 406),3527 getRandomInt(431, 444),3528 getRandomInt(463, 479),3529 getRandomInt(247, 258),3530 getRandomInt(283, 296),3531 getRandomInt(321, 332),3532 getRandomInt(358, 371),3533 getRandomInt(389, 406),3534 getRandomInt(431, 444),3535 getRandomInt(463, 479),3536 ];3537 //a13538 var counter1 = 0;3539 while (counter1 < 7) {3540 var destiny = getRandomInt(0, 27);3541 if (X_herbArray[destiny] != 0 && Y_herbArray[destiny] != 0) {3542 // time complexity applied, just coen 352, from data structures, from algorithm3543 scv.moveMouse(X_herbArray[destiny], Y_herbArray[destiny]);3544 scv.mouseClick();3545 sleep(getRandomInt(50, 150));3546 X_herbArray[destiny] = 0;3547 Y_herbArray[destiny] = 0;3548 counter1++;3549 }3550 }3551 if (X_herbArray[0] != 0) {3552 scv.moveMouse(X_herbArray[0], Y_herbArray[0]);3553 scv.mouseClick();3554 }3555 sleep(getRandomInt(601, 799));3556 if (X_herbArray[17] != 0) {3557 scv.moveMouse(X_herbArray[10], Y_herbArray[10]);3558 scv.mouseClick();3559 }3560 sleep(getRandomInt(601, 799));3561 if (X_herbArray[27] != 0) {3562 scv.moveMouseSmooth(X_herbArray[27], Y_herbArray[27]);3563 sleep(getRandomInt(101, 199));3564 scv.mouseClick();3565 }3566}3567function advancedDeposit2() {3568 sleep(getRandomInt(601, 1199));3569 var X_herbArray = [3570 getRandomInt(576, 586),3571 getRandomInt(576, 586),3572 getRandomInt(576, 586),3573 getRandomInt(576, 586),3574 getRandomInt(576, 586),3575 getRandomInt(576, 586),3576 getRandomInt(576, 586),3577 getRandomInt(616, 630),3578 getRandomInt(616, 630),3579 getRandomInt(616, 630),3580 getRandomInt(616, 630),3581 getRandomInt(616, 630),3582 getRandomInt(616, 630),3583 getRandomInt(616, 630),3584 getRandomInt(656, 670),3585 getRandomInt(656, 670),3586 getRandomInt(656, 670),3587 getRandomInt(656, 670),3588 getRandomInt(656, 670),3589 getRandomInt(656, 670),3590 getRandomInt(656, 670),3591 getRandomInt(699, 716),3592 getRandomInt(699, 716),3593 getRandomInt(699, 716),3594 getRandomInt(699, 716),3595 getRandomInt(699, 716),3596 getRandomInt(699, 716),3597 getRandomInt(699, 716),3598 ];3599 var Y_herbArray = [3600 getRandomInt(247, 258),3601 getRandomInt(283, 296),3602 getRandomInt(321, 332),3603 getRandomInt(358, 371),3604 getRandomInt(389, 406),3605 getRandomInt(431, 444),3606 getRandomInt(463, 479),3607 getRandomInt(247, 258),3608 getRandomInt(283, 296),3609 getRandomInt(321, 332),3610 getRandomInt(358, 371),3611 getRandomInt(389, 406),3612 getRandomInt(431, 444),3613 getRandomInt(463, 479),3614 getRandomInt(247, 258),3615 getRandomInt(283, 296),3616 getRandomInt(321, 332),3617 getRandomInt(358, 371),3618 getRandomInt(389, 406),3619 getRandomInt(431, 444),3620 getRandomInt(463, 479),3621 getRandomInt(247, 258),3622 getRandomInt(283, 296),3623 getRandomInt(321, 332),3624 getRandomInt(358, 371),3625 getRandomInt(389, 406),3626 getRandomInt(431, 444),3627 getRandomInt(463, 479),3628 ];3629 //a23630 var counter1 = 0;3631 while (counter1 < 7) {3632 var destiny = getRandomInt(0, 27);3633 if (X_herbArray[destiny] != 0 && Y_herbArray[destiny] != 0) {3634 // time complexity applied, just coen 352, from data structures, from algorithm3635 scv.moveMouse(X_herbArray[destiny], Y_herbArray[destiny] + 534);3636 scv.mouseClick();3637 sleep(getRandomInt(50, 150));3638 X_herbArray[destiny] = 0;3639 Y_herbArray[destiny] = 0;3640 counter1++;3641 }3642 }3643 if (X_herbArray[0] != 0) {3644 scv.moveMouse(X_herbArray[0], Y_herbArray[0] + 534);3645 scv.mouseClick();3646 }3647 sleep(getRandomInt(601, 799));3648 if (X_herbArray[10] != 0) {3649 scv.moveMouse(X_herbArray[10], Y_herbArray[10] + 534);3650 scv.mouseClick();3651 }3652 sleep(getRandomInt(601, 799));3653 if (X_herbArray[27] != 0) {3654 scv.moveMouseSmooth(X_herbArray[27], Y_herbArray[27] + 534);3655 sleep(getRandomInt(101, 199));3656 scv.mouseClick();3657 }3658}3659//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3660//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3661//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3662//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3663//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3664//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3665// functions under developments //3666//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3667//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3668//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3669//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3670//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3671//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3672function moveHand(targetx, targety) {3673 // Speed up the mouse.3674 scv.setMouseDelay(2);3675 var yidaNumber = Math.PI * 1.4;3676 var height = targetx;3677 var width = targety;3678 for (var x = 0; x < width; x++) {3679 var y = height * Math.sin((yidaNumber * x) / width) + height;3680 scv.moveMouse(x, y);3681 }3682 scv.moveMouseSmooth(targetx, targety);3683}3684function // cut pineapple/tree logs3685DuoCut() {3686 var yida = 0;3687 var randomTimer = getRandomInt(500, 1000);3688 for (var i = 0; i < randomTimer; i++) {3689 // random mousemovement3690 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332));3691 // click the location of 3rd row, 8th position3692 var x = 3;3693 var y = 3;3694 // movemouse to the 3rd row,7th column 381, 1983695 var xlocation = getRandomInt(381 - x, 381 + x);3696 var ylocation = getRandomInt(198 - y, 198 + y);3697 scv.moveMouseSmooth(xlocation, ylocation);3698 sleep(getRandomInt(120, 230));3699 scv.mouseClick();3700 sleep(getRandomInt(700, 800));3701 scv.moveMouse(3702 getRandomInt(429 - 4, 429 + 4),3703 getRandomInt(198 - 3, 198 + 3)3704 );3705 scv.mouseClick();3706 closeBank1();3707 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332) + 534);3708 // b13709 scv.moveMouseSmooth(xlocation, ylocation + 534);3710 sleep(getRandomInt(120, 230));3711 scv.mouseClick();3712 sleep(getRandomInt(700, 800));3713 scv.moveMouse(3714 getRandomInt(429 - 4, 429 + 4),3715 getRandomInt(198 - 3, 198 + 3) + 5343716 );3717 scv.mouseClick();3718 closeBank2();3719 console.log(' harvesting vespian gas ');3720 var X_herbArray = [3721 getRandomInt(576, 586),3722 getRandomInt(576, 586),3723 getRandomInt(576, 586),3724 getRandomInt(576, 586),3725 getRandomInt(576, 586),3726 getRandomInt(576, 586),3727 getRandomInt(576, 586),3728 getRandomInt(616, 630),3729 getRandomInt(616, 630),3730 getRandomInt(616, 630),3731 getRandomInt(616, 630),3732 getRandomInt(616, 630),3733 getRandomInt(616, 630),3734 getRandomInt(616, 630),3735 getRandomInt(656, 670),3736 getRandomInt(656, 670),3737 getRandomInt(656, 670),3738 getRandomInt(656, 670),3739 getRandomInt(656, 670),3740 getRandomInt(656, 670),3741 getRandomInt(656, 670),3742 getRandomInt(699, 716),3743 getRandomInt(699, 716),3744 getRandomInt(699, 716),3745 getRandomInt(699, 716),3746 getRandomInt(699, 716),3747 getRandomInt(699, 716),3748 getRandomInt(699, 716),3749 ];3750 var Y_herbArray = [3751 getRandomInt(247, 258),3752 getRandomInt(283, 296),3753 getRandomInt(321, 332),3754 getRandomInt(358, 371),3755 getRandomInt(389, 406),3756 getRandomInt(431, 444),3757 getRandomInt(463, 479),3758 getRandomInt(247, 258),3759 getRandomInt(283, 296),3760 getRandomInt(321, 332),3761 getRandomInt(358, 371),3762 getRandomInt(389, 406),3763 getRandomInt(431, 444),3764 getRandomInt(463, 479),3765 getRandomInt(247, 258),3766 getRandomInt(283, 296),3767 getRandomInt(321, 332),3768 getRandomInt(358, 371),3769 getRandomInt(389, 406),3770 getRandomInt(431, 444),3771 getRandomInt(463, 479),3772 getRandomInt(247, 258),3773 getRandomInt(283, 296),3774 getRandomInt(321, 332),3775 getRandomInt(358, 371),3776 getRandomInt(389, 406),3777 getRandomInt(431, 444),3778 getRandomInt(463, 479),3779 ];3780 /*3781 Optional Arrays3782 var X_herbArray2 = [3783 getRandomInt(576, 586),3784 getRandomInt(576, 586),3785 getRandomInt(576, 586),3786 getRandomInt(576, 586),3787 getRandomInt(576, 586),3788 getRandomInt(576, 586),3789 getRandomInt(576, 586),3790 getRandomInt(616, 630),3791 getRandomInt(616, 630),3792 getRandomInt(616, 630),3793 getRandomInt(616, 630),3794 getRandomInt(616, 630),3795 getRandomInt(616, 630),3796 getRandomInt(616, 630),3797 getRandomInt(656, 670),3798 getRandomInt(656, 670),3799 getRandomInt(656, 670),3800 getRandomInt(656, 670),3801 getRandomInt(656, 670),3802 getRandomInt(656, 670),3803 getRandomInt(656, 670),3804 getRandomInt(699, 716),3805 getRandomInt(699, 716),3806 getRandomInt(699, 716),3807 getRandomInt(699, 716),3808 getRandomInt(699, 716),3809 getRandomInt(699, 716),3810 getRandomInt(699, 716),3811 ];*/3812 /*var Y_herbArray2 = [3813 getRandomInt(247, 258) + 534,3814 getRandomInt(283, 296) + 534,3815 getRandomInt(321, 332) + 534,3816 getRandomInt(358, 371) + 534,3817 getRandomInt(389, 406) + 534,3818 getRandomInt(431, 444) + 534,3819 getRandomInt(463, 479) + 534,3820 getRandomInt(247, 258) + 534,3821 getRandomInt(283, 296) + 534,3822 getRandomInt(321, 332) + 534,3823 getRandomInt(358, 371) + 534,3824 getRandomInt(389, 406) + 534,3825 getRandomInt(431, 444) + 534,3826 getRandomInt(463, 479) + 534,3827 getRandomInt(247, 258) + 534,3828 getRandomInt(283, 296) + 534,3829 getRandomInt(321, 332) + 534,3830 getRandomInt(358, 371) + 534,3831 getRandomInt(389, 406) + 534,3832 getRandomInt(431, 444) + 534,3833 getRandomInt(463, 479) + 534,3834 getRandomInt(247, 258) + 534,3835 getRandomInt(283, 296) + 534,3836 getRandomInt(321, 332) + 534,3837 getRandomInt(358, 371) + 534,3838 getRandomInt(389, 406) + 534,3839 getRandomInt(431, 444) + 534,3840 getRandomInt(463, 479) + 534,3841 ];3842*/3843 //a23844 scv.moveMouseSmooth(X_herbArray[0], Y_herbArray[0]);3845 sleep(getRandomInt(134, 280));3846 scv.mouseClick();3847 sleep(getRandomInt(634, 780));3848 var destiny = getRandomInt(1, 27);3849 scv.moveMouseSmooth(X_herbArray[destiny], Y_herbArray[destiny]);3850 sleep(getRandomInt(134, 280));3851 scv.mouseClick();3852 tick(getRandomInt(700, 800));3853 scv.moveMouseSmooth(getRandomInt(235, 290), getRandomInt(433, 460));3854 scv.mouseClick();3855 sleep(getRandomInt(134, 280));3856 scv.mouseClick();3857 scv.moveMouseSmooth(X_herbArray[0], Y_herbArray[0] + 534);3858 sleep(getRandomInt(134, 280));3859 scv.mouseClick();3860 sleep(getRandomInt(634, 780));3861 scv.moveMouseSmooth(X_herbArray[destiny], Y_herbArray[destiny] + 534);3862 sleep(getRandomInt(134, 280));3863 scv.mouseClick();3864 tick(getRandomInt(700, 800));3865 scv.moveMouseSmooth(getRandomInt(235, 290), getRandomInt(433, 460) + 534);3866 scv.mouseClick();3867 sleep(getRandomInt(134, 280));3868 scv.mouseClick();3869 // Sleep accordingly depending on the task performed : nest/gem/log/knife/hammer/pestle/...3870 //3871 sleep(getRandomInt(9300, 11130));3872 //3873 //3874 scv.moveMouseSmooth(3875 getRandomInt(256, 256 + 97),3876 getRandomInt(190, 190 + 53)3877 );3878 scv.mouseClick();3879 sleep(getRandomInt(634, 780));3880 simpleDeposit1();3881 sleep(getRandomInt(1200, 2000));3882 scv.moveMouseSmooth(3883 getRandomInt(256, 256 + 97),3884 getRandomInt(190, 190 + 53) + 5343885 );3886 scv.mouseClick();3887 sleep(getRandomInt(634, 780));3888 simpleDeposit2();3889 yida++;3890 console.log(yida + ' cycle sucessful');3891 }3892}3893function // used to make 2tick pizzas3894DuoMakePizza() {3895 // top left3896 scv.moveMouseSmooth(getRandomInt(600, 700), getRandomInt(1, 900));3897 var X_firstHalf = [3898 getRandomInt(576, 586),3899 getRandomInt(616, 630),3900 getRandomInt(656, 670),3901 getRandomInt(699, 716),3902 getRandomInt(576, 586),3903 getRandomInt(616, 630),3904 getRandomInt(656, 670),3905 getRandomInt(699, 716),3906 getRandomInt(576, 586),3907 getRandomInt(616, 630),3908 getRandomInt(656, 670),3909 getRandomInt(699, 716),3910 getRandomInt(576, 586),3911 getRandomInt(616, 630),3912 ];3913 var X_secondHalf = [3914 getRandomInt(656, 670),3915 getRandomInt(699, 716),3916 getRandomInt(576, 586),3917 getRandomInt(616, 630),3918 getRandomInt(656, 670),3919 getRandomInt(699, 716),3920 getRandomInt(576, 586),3921 getRandomInt(616, 630),3922 getRandomInt(656, 670),3923 getRandomInt(699, 716),3924 getRandomInt(576, 586),3925 getRandomInt(616, 630),3926 getRandomInt(656, 670),3927 getRandomInt(699, 716),3928 ];3929 var Y_firstHalf = [3930 getRandomInt(247, 258),3931 getRandomInt(247, 258),3932 getRandomInt(247, 258),3933 getRandomInt(247, 258),3934 getRandomInt(283, 296),3935 getRandomInt(283, 296),3936 getRandomInt(283, 296),3937 getRandomInt(283, 296),3938 getRandomInt(321, 332),3939 getRandomInt(321, 332),3940 getRandomInt(321, 332),3941 getRandomInt(321, 332),3942 getRandomInt(358, 371),3943 getRandomInt(358, 371),3944 ];3945 var Y_secondHalf = [3946 getRandomInt(358, 371),3947 getRandomInt(358, 371),3948 getRandomInt(389, 406),3949 getRandomInt(389, 406),3950 getRandomInt(389, 406),3951 getRandomInt(389, 406),3952 getRandomInt(431, 444),3953 getRandomInt(431, 444),3954 getRandomInt(431, 444),3955 getRandomInt(431, 444),3956 getRandomInt(463, 479),3957 getRandomInt(463, 479),3958 getRandomInt(463, 479),3959 getRandomInt(463, 479),3960 ];3961 //bottom left3962 var X1_firstHalf = [3963 getRandomInt(576, 586),3964 getRandomInt(616, 630),3965 getRandomInt(656, 670),3966 getRandomInt(699, 716),3967 getRandomInt(576, 586),3968 getRandomInt(616, 630),3969 getRandomInt(656, 670),3970 getRandomInt(699, 716),3971 getRandomInt(576, 586),3972 getRandomInt(616, 630),3973 getRandomInt(656, 670),3974 getRandomInt(699, 716),3975 getRandomInt(576, 586),3976 getRandomInt(616, 630),3977 ];3978 var X1_secondHalf = [3979 getRandomInt(656, 670),3980 getRandomInt(699, 716),3981 getRandomInt(576, 586),3982 getRandomInt(616, 630),3983 getRandomInt(656, 670),3984 getRandomInt(699, 716),3985 getRandomInt(576, 586),3986 getRandomInt(616, 630),3987 getRandomInt(656, 670),3988 getRandomInt(699, 716),3989 getRandomInt(576, 586),3990 getRandomInt(616, 630),3991 getRandomInt(656, 670),3992 getRandomInt(699, 716),3993 ];3994 var Y1_firstHalf = [3995 getRandomInt(247, 258) + 534,3996 getRandomInt(247, 258) + 534,3997 getRandomInt(247, 258) + 534,3998 getRandomInt(247, 258) + 534,3999 getRandomInt(283, 296) + 534,4000 getRandomInt(283, 296) + 534,4001 getRandomInt(283, 296) + 534,4002 getRandomInt(283, 296) + 534,4003 getRandomInt(321, 332) + 534,4004 getRandomInt(321, 332) + 534,4005 getRandomInt(321, 332) + 534,4006 getRandomInt(321, 332) + 534,4007 getRandomInt(358, 371) + 534,4008 getRandomInt(358, 371) + 534,4009 ];4010 var Y1_secondHalf = [4011 getRandomInt(358, 371) + 534,4012 getRandomInt(358, 371) + 534,4013 getRandomInt(389, 406) + 534,4014 getRandomInt(389, 406) + 534,4015 getRandomInt(389, 406) + 534,4016 getRandomInt(389, 406) + 534,4017 getRandomInt(431, 444) + 534,4018 getRandomInt(431, 444) + 534,4019 getRandomInt(431, 444) + 534,4020 getRandomInt(431, 444) + 534,4021 getRandomInt(463, 479) + 534,4022 getRandomInt(463, 479) + 534,4023 getRandomInt(463, 479) + 534,4024 getRandomInt(463, 479) + 534,4025 ];4026 // random mousemovement4027 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332));4028 var x = 3;4029 var y = 3;4030 // movemouse to the 3rd row,7th column 381, 1984031 var xlocation = getRandomInt(381 - x, 381 + x);4032 var ylocation = getRandomInt(198 - y, 198 + y);4033 scv.moveMouseSmooth(xlocation, ylocation);4034 scv.mouseClick('right');4035 tick(getRandomInt(700, 800));4036 scv.moveMouseSmooth(xlocation, ylocation + 85);4037 scv.mouseClick();4038 tick(getRandomInt(700, 800));4039 scv.moveMouse(getRandomInt(429 - 4, 429 + 4), getRandomInt(198 - 3, 198 + 3));4040 scv.mouseClick();4041 closeBank1();4042 tick(getRandomInt(700, 800));4043 var temp = getRandomInt(0, 13);4044 scv.moveMouseSmooth(X_firstHalf[temp], Y_firstHalf[temp]);4045 scv.mouseClick('right');4046 tick(getRandomInt(700, 800));4047 scv.moveMouseSmooth(4048 X_firstHalf[temp],4049 Y_firstHalf[temp] + getRandomInt(42, 43)4050 );4051 scv.mouseClick();4052 tick(getRandomInt(700, 800));4053 var temp2 = getRandomInt(0, 13);4054 scv.moveMouseSmooth(X_secondHalf[temp2], Y_secondHalf[temp2]);4055 scv.mouseClick();4056 tick(getRandomInt(700, 800));4057 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480));4058 scv.mouseClick();4059 // random mousemovement4060 scv.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332) + 534);4061 // b14062 var xlocation = getRandomInt(381 - x, 381 + x);4063 var ylocation = getRandomInt(163 - y, 163 + y) + 534;4064 scv.moveMouseSmooth(xlocation, ylocation);4065 scv.mouseClick('right');4066 tick(getRandomInt(700, 800));4067 scv.moveMouseSmooth(xlocation, ylocation + 85);4068 scv.mouseClick();4069 tick(getRandomInt(700, 800));4070 scv.moveMouse(4071 getRandomInt(429 - 4, 429 + 4),4072 getRandomInt(163 - 3, 163 + 3) + 5344073 );4074 scv.mouseClick();4075 closeBank2();4076 tick(getRandomInt(700, 800));4077 var temp3 = getRandomInt(0, 13);4078 scv.moveMouseSmooth(X1_firstHalf[temp3], Y1_firstHalf[temp3]);4079 scv.mouseClick('right');4080 tick(getRandomInt(700, 800));4081 scv.moveMouseSmooth(4082 X1_firstHalf[temp3],4083 Y1_firstHalf[temp3] + getRandomInt(42, 43)4084 );4085 scv.mouseClick('left');4086 var temp4 = getRandomInt(0, 13);4087 scv.moveMouseSmooth(X1_secondHalf[temp4], Y1_secondHalf[temp4]);4088 scv.mouseClick();4089 tick(getRandomInt(700, 800));4090 scv.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480) + 534);4091 scv.mouseClick();4092 sleep(getRandomInt(9400, 10700));4093 scv.moveMouseSmooth(getRandomInt(256, 256 + 97), getRandomInt(190, 190 + 53));4094 scv.mouseClick();4095 sleep(getRandomInt(634, 780));4096 advancedDeposit1();4097 sleep(getRandomInt(1200, 2000));4098 scv.moveMouseSmooth(4099 getRandomInt(256, 256 + 97),4100 getRandomInt(190, 190 + 53) + 5344101 );4102 scv.mouseClick();4103 sleep(getRandomInt(634, 780));4104 advancedDeposit2();4105}4106//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////4107//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////4108//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////4109//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////4110//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////4111//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////4112// Command Line Interface for terminal launchs //4113//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////4114//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////4115//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////4116//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////4117//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////...

Full Screen

Full Screen

20210909091308-seed_lap_fragments.js

Source:20210909091308-seed_lap_fragments.js Github

copy

Full Screen

...5 let data = [];6 for (let i = 1; i <= 13; i=i+2) {7 data = [...data, ...[{8 lap_id: i,9 velocity: UtilsHelper.getRandomInt(40, 90),10 rpm: UtilsHelper.getRandomInt(2000, 6000),11 tps: UtilsHelper.getRandomInt(40, 99),12 state_of_charge: 99,13 temp_for_motor: UtilsHelper.getRandomInt(30, 50),14 temp_for_controller: UtilsHelper.getRandomInt(40, 60),15 latitude: '43.2338491288195',16 longitude: '27.964899748340617',17 created_at: moment().add(i*i+1, 'second').format(),18 updated_at: moment().format()19 }, {20 // lap_id: i,21 // velocity: UtilsHelper.getRandomInt(40, 90),22 // rpm: UtilsHelper.getRandomInt(2000, 6000),23 // tps: UtilsHelper.getRandomInt(40, 99),24 // state_of_charge: 98,25 // temp_for_motor: UtilsHelper.getRandomInt(30, 50),26 // temp_for_controller: UtilsHelper.getRandomInt(40, 60),27 // latitude: '43.233327166204525',28 // longitude: '27.965208425478185',29 // created_at: moment().add(i*i+2, 'second').format(),30 // updated_at: moment().format()31 // }, {32 lap_id: i,33 velocity: UtilsHelper.getRandomInt(40, 90),34 rpm: UtilsHelper.getRandomInt(2000, 6000),35 tps: UtilsHelper.getRandomInt(40, 99),36 state_of_charge: 97,37 temp_for_motor: UtilsHelper.getRandomInt(30, 50),38 temp_for_controller: UtilsHelper.getRandomInt(40, 60),39 latitude: '43.2337084498348',40 longitude: '27.96532544046145',41 created_at: moment().add(i*i+3, 'second').format(),42 updated_at: moment().format()43 }, {44 lap_id: i,45 velocity: UtilsHelper.getRandomInt(40, 90),46 rpm: UtilsHelper.getRandomInt(2000, 6000),47 tps: UtilsHelper.getRandomInt(40, 99),48 state_of_charge: 96,49 temp_for_motor: UtilsHelper.getRandomInt(30, 50),50 temp_for_controller: UtilsHelper.getRandomInt(40, 60),51 latitude: '43.23425028036897',52 longitude: '27.965002470882247',53 created_at: moment().add(i*i+4, 'second').format(),54 updated_at: moment().format()55 }, {56 // lap_id: i,57 // velocity: UtilsHelper.getRandomInt(40, 90),58 // rpm: UtilsHelper.getRandomInt(2000, 6000),59 // tps: UtilsHelper.getRandomInt(40, 99),60 // state_of_charge: 95,61 // temp_for_motor: UtilsHelper.getRandomInt(30, 50),62 // temp_for_controller: UtilsHelper.getRandomInt(40, 60),63 // latitude: '43.23413696363596',64 // longitude: '27.965530016690767',65 // created_at: moment().add(i*i+5, 'second').format(),66 // updated_at: moment().format()67 // }, {68 lap_id: i,69 velocity: UtilsHelper.getRandomInt(40, 90),70 rpm: UtilsHelper.getRandomInt(2000, 6000),71 tps: UtilsHelper.getRandomInt(40, 99),72 state_of_charge: 94,73 temp_for_motor: UtilsHelper.getRandomInt(30, 50),74 temp_for_controller: UtilsHelper.getRandomInt(40, 60),75 latitude: '43.23358411812668',76 longitude: '27.965543424732243',77 created_at: moment().add(i*i+6, 'second').format(),78 updated_at: moment().format()79 }, {80 lap_id: i,81 velocity: UtilsHelper.getRandomInt(40, 90),82 rpm: UtilsHelper.getRandomInt(2000, 6000),83 tps: UtilsHelper.getRandomInt(40, 99),84 state_of_charge: 93,85 temp_for_motor: UtilsHelper.getRandomInt(30, 50),86 temp_for_controller: UtilsHelper.getRandomInt(40, 60),87 latitude: '43.23332331784405',88 longitude: '27.966248693333842',89 created_at: moment().add(i*i+7, 'second').format(),90 updated_at: moment().format()91 }, {92 // lap_id: i,93 // velocity: UtilsHelper.getRandomInt(40, 90),94 // rpm: UtilsHelper.getRandomInt(2000, 6000),95 // tps: UtilsHelper.getRandomInt(40, 99),96 // state_of_charge: 92,97 // temp_for_motor: UtilsHelper.getRandomInt(30, 50),98 // temp_for_controller: UtilsHelper.getRandomInt(40, 60),99 // latitude: '43.233791830620184',100 // longitude: '27.965771097097242',101 // created_at: moment().add(i*i+8, 'second').format(),102 // updated_at: moment().format()103 // }, {104 lap_id: i,105 velocity: UtilsHelper.getRandomInt(40, 90),106 rpm: UtilsHelper.getRandomInt(2000, 6000),107 tps: UtilsHelper.getRandomInt(40, 99),108 state_of_charge: 91,109 temp_for_motor: UtilsHelper.getRandomInt(30, 50),110 temp_for_controller: UtilsHelper.getRandomInt(40, 60),111 latitude: '43.23424691441105',112 longitude: '27.965627284161684',113 created_at: moment().add(i*i+9, 'second').format(),114 updated_at: moment().format()115 }, {116 lap_id: i,117 velocity: UtilsHelper.getRandomInt(40, 90),118 rpm: UtilsHelper.getRandomInt(2000, 6000),119 tps: UtilsHelper.getRandomInt(40, 99),120 state_of_charge: 90,121 temp_for_motor: UtilsHelper.getRandomInt(30, 50),122 temp_for_controller: UtilsHelper.getRandomInt(40, 60),123 latitude: '43.23423299853697',124 longitude: '27.966123712682016',125 created_at: moment().add(i*i+10, 'second').format(),126 updated_at: moment().format()127 }, {128 lap_id: i,129 velocity: UtilsHelper.getRandomInt(40, 90),130 rpm: UtilsHelper.getRandomInt(2000, 6000),131 tps: UtilsHelper.getRandomInt(40, 99),132 state_of_charge: 89,133 temp_for_motor: UtilsHelper.getRandomInt(30, 50),134 temp_for_controller: UtilsHelper.getRandomInt(40, 60),135 latitude: '43.23359793355423',136 longitude: '27.966195945394027',137 created_at: moment().add(i*i+11, 'second').format(),138 updated_at: moment().format()139 }, {140 // lap_id: i,141 // velocity: UtilsHelper.getRandomInt(40, 90),142 // rpm: UtilsHelper.getRandomInt(2000, 6000),143 // tps: UtilsHelper.getRandomInt(40, 99),144 // state_of_charge: 87,145 // temp_for_motor: UtilsHelper.getRandomInt(30, 50),146 // temp_for_controller: UtilsHelper.getRandomInt(40, 60),147 // latitude: '43.23419413739477',148 // longitude: '27.966469934752826',149 // created_at: moment().add(i*i+12, 'second').format(),150 // updated_at: moment().format()151 // }, {152 lap_id: i,153 velocity: UtilsHelper.getRandomInt(40, 90),154 rpm: UtilsHelper.getRandomInt(2000, 6000),155 tps: UtilsHelper.getRandomInt(40, 99),156 state_of_charge: 86,157 temp_for_motor: UtilsHelper.getRandomInt(30, 50),158 temp_for_controller: UtilsHelper.getRandomInt(40, 60),159 latitude: '43.234564855484294',160 longitude: '27.96572516513729',161 created_at: moment().add(i*i+13, 'second').format(),162 updated_at: moment().format()163 }, {164 lap_id: i,165 velocity: UtilsHelper.getRandomInt(40, 90),166 rpm: UtilsHelper.getRandomInt(2000, 6000),167 tps: UtilsHelper.getRandomInt(40, 99),168 state_of_charge: 84,169 temp_for_motor: UtilsHelper.getRandomInt(30, 50),170 temp_for_controller: UtilsHelper.getRandomInt(40, 60),171 latitude: '43.23419018360043',172 longitude: '27.96479389895747',173 created_at: moment().add(i*i+14, 'second').format(),174 updated_at: moment().format()175 }, {176 lap_id: i + 1,177 velocity: UtilsHelper.getRandomInt(40, 90),178 rpm: UtilsHelper.getRandomInt(2000, 6000),179 tps: UtilsHelper.getRandomInt(40, 99),180 state_of_charge: 78,181 temp_for_motor: UtilsHelper.getRandomInt(30, 50),182 temp_for_controller: UtilsHelper.getRandomInt(40, 60),183 latitude: '43.2338491288195',184 longitude: '27.964899748340617',185 created_at: moment().add(i*i+21, 'second').format(),186 updated_at: moment().format()187 }, {188 lap_id: i + 1,189 velocity: UtilsHelper.getRandomInt(40, 90),190 rpm: UtilsHelper.getRandomInt(2000, 6000),191 tps: UtilsHelper.getRandomInt(40, 99),192 state_of_charge: 77,193 temp_for_motor: UtilsHelper.getRandomInt(30, 50),194 temp_for_controller: UtilsHelper.getRandomInt(40, 60),195 latitude: '43.233835449689884',196 longitude: '27.96490377165414',197 created_at: moment().add(i*i+22, 'second').format(),198 updated_at: moment().format()199 }, {200 lap_id: i + 1,201 velocity: UtilsHelper.getRandomInt(40, 90),202 rpm: UtilsHelper.getRandomInt(2000, 6000),203 tps: UtilsHelper.getRandomInt(40, 99),204 state_of_charge: 76,205 temp_for_motor: UtilsHelper.getRandomInt(30, 50),206 temp_for_controller: UtilsHelper.getRandomInt(40, 60),207 latitude: '43.23381493098968',208 longitude: '27.964910477176677',209 created_at: moment().add(i*i+23, 'second').format(),210 updated_at: moment().format()211 }, {212 lap_id: i + 1,213 velocity: UtilsHelper.getRandomInt(40, 90),214 rpm: UtilsHelper.getRandomInt(2000, 6000),215 tps: UtilsHelper.getRandomInt(40, 99),216 state_of_charge: 75,217 temp_for_motor: UtilsHelper.getRandomInt(30, 50),218 temp_for_controller: UtilsHelper.getRandomInt(40, 60),219 latitude: '43.233799297689686',220 longitude: '27.964917182699214',221 created_at: moment().add(i*i+24, 'second').format(),222 updated_at: moment().format()223 }, {224 lap_id: i + 1,225 velocity: UtilsHelper.getRandomInt(40, 90),226 rpm: UtilsHelper.getRandomInt(2000, 6000),227 tps: UtilsHelper.getRandomInt(40, 99),228 state_of_charge: 74,229 temp_for_motor: UtilsHelper.getRandomInt(30, 50),230 temp_for_controller: UtilsHelper.getRandomInt(40, 60),231 latitude: '43.23377877897732',232 longitude: '27.964922547117244',233 created_at: moment().add(i*i+25, 'second').format(),234 updated_at: moment().format()235 }, {236 lap_id: i + 1,237 velocity: UtilsHelper.getRandomInt(40, 90),238 rpm: UtilsHelper.getRandomInt(2000, 6000),239 tps: UtilsHelper.getRandomInt(40, 99),240 state_of_charge: 73,241 temp_for_motor: UtilsHelper.getRandomInt(30, 50),242 temp_for_controller: UtilsHelper.getRandomInt(40, 60),243 latitude: '43.23376021442207',244 longitude: '27.964931934848796',245 created_at: moment().add(i*i+26, 'second').format(),246 updated_at: moment().format()247 }, {248 lap_id: i + 1,249 velocity: UtilsHelper.getRandomInt(40, 90),250 rpm: UtilsHelper.getRandomInt(2000, 6000),251 tps: UtilsHelper.getRandomInt(40, 99),252 state_of_charge: 72,253 temp_for_motor: UtilsHelper.getRandomInt(30, 50),254 temp_for_controller: UtilsHelper.getRandomInt(40, 60),255 latitude: '43.233749533367416',256 longitude: '27.96493662871457',257 created_at: moment().add(i*i+27, 'second').format(),258 updated_at: moment().format()259 }, {260 lap_id: i + 1,261 velocity: UtilsHelper.getRandomInt(40, 90),262 rpm: UtilsHelper.getRandomInt(2000, 6000),263 tps: UtilsHelper.getRandomInt(40, 99),264 state_of_charge: 71,265 temp_for_motor: UtilsHelper.getRandomInt(30, 50),266 temp_for_controller: UtilsHelper.getRandomInt(40, 60),267 latitude: '43.233731945885744',268 longitude: '27.964941322580348',269 created_at: moment().add(i*i+28, 'second').format(),270 updated_at: moment().format()271 }, {272 lap_id: i + 1,273 velocity: UtilsHelper.getRandomInt(40, 90),274 rpm: UtilsHelper.getRandomInt(2000, 6000),275 tps: UtilsHelper.getRandomInt(40, 99),276 state_of_charge: 70,277 temp_for_motor: UtilsHelper.getRandomInt(30, 50),278 temp_for_controller: UtilsHelper.getRandomInt(40, 60),279 latitude: '43.23371680110579',280 longitude: '27.964946686998378',281 created_at: moment().add(i*i+29, 'second').format(),282 updated_at: moment().format()283 }, {284 lap_id: i + 1,285 velocity: UtilsHelper.getRandomInt(40, 90),286 rpm: UtilsHelper.getRandomInt(2000, 6000),287 tps: UtilsHelper.getRandomInt(40, 99),288 state_of_charge: 69,289 temp_for_motor: UtilsHelper.getRandomInt(30, 50),290 temp_for_controller: UtilsHelper.getRandomInt(40, 60),291 latitude: '43.23369970215615',292 longitude: '27.96495607472993',293 created_at: moment().add(i*i+30, 'second').format(),294 updated_at: moment().format()295 }296 ]];297 }298 data.splice(-10);299 return queryInterface.bulkInsert('lap_fragments', [...data, ...require('./lap_data.json'), ...require('./lap_data_real.json')]);300 },301 down: (queryInterface) => {302 return queryInterface.bulkDelete('lap_fragments', null, {});303 }304};

Full Screen

Full Screen

nightmare.js

Source:nightmare.js Github

copy

Full Screen

...16 nightmare.mouseClick('right'); // 44 is 2nd opetion right click17 nightmare.moveMouseSmooth(583, 375);18 nightmare.mouseClick();19 sleep(602);20 nightmare.moveMouseSmooth(getRandomInt(800, 1300), getRandomInt(69, 169)); //200 iq21 nightmare.moveMouseSmooth(583, 331 + 534);22 nightmare.mouseClick('right'); // 44 is 2nd opetion right click23 nightmare.moveMouseSmooth(583, 375 + 534);24 nightmare.mouseClick();25 sleep(642);26 /*27 nightmare.moveMouseSmooth(583, 375+534);28 nightmare.mouseClick();29 nightmare.moveMouseSmooth(583+775, 331);30 nightmare.mouseClick('right'); // 44 is 2nd opetion right click31 nightmare.moveMouseSmooth(583, 375);32 nightmare.mouseClick();*/33}34/**35 *36 *37 *38 *39 *40 */41function openLootBox() {42 var X_herbArray = [43 getRandomInt(576, 586),44 getRandomInt(576, 586),45 getRandomInt(576, 586),46 getRandomInt(576, 586),47 getRandomInt(576, 586),48 getRandomInt(576, 586),49 getRandomInt(576, 586),50 getRandomInt(616, 630),51 getRandomInt(616, 630),52 getRandomInt(616, 630),53 getRandomInt(616, 630),54 getRandomInt(616, 630),55 getRandomInt(616, 630),56 getRandomInt(616, 630),57 getRandomInt(656, 670),58 getRandomInt(656, 670),59 getRandomInt(656, 670),60 getRandomInt(656, 670),61 getRandomInt(656, 670),62 getRandomInt(656, 670),63 getRandomInt(656, 670),64 getRandomInt(699, 716),65 getRandomInt(699, 716),66 getRandomInt(699, 716),67 getRandomInt(699, 716),68 getRandomInt(699, 716),69 getRandomInt(699, 716),70 getRandomInt(699, 716),71 ];72 var Y_herbArray = [73 getRandomInt(247, 258),74 getRandomInt(283, 296),75 getRandomInt(321, 332),76 getRandomInt(358, 371),77 getRandomInt(389, 406),78 getRandomInt(431, 444),79 getRandomInt(463, 479),80 getRandomInt(247, 258),81 getRandomInt(283, 296),82 getRandomInt(321, 332),83 getRandomInt(358, 371),84 getRandomInt(389, 406),85 getRandomInt(431, 444),86 getRandomInt(463, 479),87 getRandomInt(247, 258),88 getRandomInt(283, 296),89 getRandomInt(321, 332),90 getRandomInt(358, 371),91 getRandomInt(389, 406),92 getRandomInt(431, 444),93 getRandomInt(463, 479),94 getRandomInt(247, 258),95 getRandomInt(283, 296),96 getRandomInt(321, 332),97 getRandomInt(358, 371),98 getRandomInt(389, 406),99 getRandomInt(431, 444),100 getRandomInt(463, 479),101 ];102 var counter = 0;103 while (counter < 27) {104 var destiny = getRandomInt(0, 27);105 if (X_herbArray[destiny] != 0 && Y_herbArray[destiny] != 0) {106 // time complexity applied, just coen 352, from data structures, from algorithm107 nightmare.moveMouse(X_herbArray[destiny], Y_herbArray[destiny]);108 nightmare.mouseClick('right');109 nightmare.moveMouse(X_herbArray[destiny], Y_herbArray[destiny] + 40);110 nightmare.mouseClick();111 X_herbArray[destiny] = 0;112 Y_herbArray[destiny] = 0;113 counter++;114 }115 }116}117// function of sheer complexity118function farmingCourse() {119 var timesLeft=100;120 for (var i = 0; i < 4; i++) {121 var X_herbArray = [122 getRandomInt(576, 586),123 getRandomInt(576, 586),124 getRandomInt(576, 586),125 getRandomInt(576, 586),126 getRandomInt(576, 586),127 getRandomInt(576, 586),128 getRandomInt(576, 586),129 getRandomInt(616, 630),130 getRandomInt(616, 630),131 getRandomInt(616, 630),132 getRandomInt(616, 630),133 getRandomInt(616, 630),134 getRandomInt(616, 630),135 getRandomInt(616, 630),136 getRandomInt(656, 670),137 getRandomInt(656, 670),138 getRandomInt(656, 670),139 getRandomInt(656, 670),140 getRandomInt(656, 670),141 getRandomInt(656, 670),142 getRandomInt(656, 670),143 getRandomInt(699, 716),144 getRandomInt(699, 716),145 getRandomInt(699, 716),146 getRandomInt(699, 716),147 getRandomInt(699, 716),148 getRandomInt(699, 716),149 getRandomInt(699, 716),150 ];151 var Y_herbArray = [152 getRandomInt(247, 258),153 getRandomInt(283, 296),154 getRandomInt(321, 332),155 getRandomInt(358, 371),156 getRandomInt(389, 406),157 getRandomInt(431, 444),158 getRandomInt(463, 479),159 getRandomInt(247, 258),160 getRandomInt(283, 296),161 getRandomInt(321, 332),162 getRandomInt(358, 371),163 getRandomInt(389, 406),164 getRandomInt(431, 444),165 getRandomInt(463, 479),166 getRandomInt(247, 258),167 getRandomInt(283, 296),168 getRandomInt(321, 332),169 getRandomInt(358, 371),170 getRandomInt(389, 406),171 getRandomInt(431, 444),172 getRandomInt(463, 479),173 getRandomInt(247, 258),174 getRandomInt(283, 296),175 getRandomInt(321, 332),176 getRandomInt(358, 371),177 getRandomInt(389, 406),178 getRandomInt(431, 444),179 getRandomInt(463, 479),180 ];181 var counter = 0;182 while (counter < 26) {183 var destiny = getRandomInt(3, 27);184 if (X_herbArray[destiny] != 0 && Y_herbArray[destiny] != 0) {185 // time complexity applied, just coen 352, from data structures, from algorithm186 nightmare.moveMouse(X_herbArray[destiny], Y_herbArray[destiny]);187 nightmare.mouseClick();188 nightmare.moveMouse(X_herbArray[destiny], Y_herbArray[destiny] + 534);189 nightmare.mouseClick();190 console.log(timesLeft+' loops left.')191 biteCake();192 sleep(getRandomInt(15001, 29999));193 biteCake();194 sleep(getRandomInt(15001, 29999));195 randomeithzer();196 sleep(getRandomInt(15001, 29999));197 biteCake();198 sleep(getRandomInt(15001, 29999));199 battleaxe();200 X_herbArray[destiny] = 0;201 Y_herbArray[destiny] = 0;202 counter++;203 }204 }205 }206}207// randomlly choose to either battleaxe or toggle to reset hp208function randomeithzer() {209 var temp2 = getRandomInt(1, 2);210 if ((temp2 = 1)) {211 prayerToggle1();212 prayerToggle2();213 } else {214 biteCake();215 }216}217function findPowerUp() {218 var flag = false;219 // Default colour for object marker at bank counter is FFFF00220 var img = nightmare.screen.capture(0, 0, 1900, 1080);221 var targetNpc = ['1b1b7f'];222 for (var i = 0; i < 10011; i++) {223 var random_x = getRandomInt(0, 519);224 var random_y = getRandomInt(0, 365);225 var sample_color = img.colorAt(random_x, random_y);226 if (targetNpc.includes(sample_color)) {227 console.log('found action at : ' + random_x + ' ' + random_y);228 nightmare.moveMouseSmooth(random_x, random_y);229 nightmare.mouseClick();230 flag = true;231 return flag;232 }233 }234 return flag;235}236function findPowerUp2() {237 // Default colour for object marker at bank counter is FFFF00238 var flag = false;239 var img = nightmare.screen.capture(0, 0, 1900, 1080);240 var targetNpc = ['5c523f', '9d9625', '5c513e', '1b1b7f'];241 for (var i = 0; i < 1011; i++) {242 var random_x = getRandomInt(0, 519);243 var random_y = getRandomInt(0, 365);244 var sample_color = img.colorAt(random_x, random_y);245 if (targetNpc.includes(sample_color)) {246 console.log('found action at : ' + random_x + ' ' + random_y);247 nightmare.moveMouseSmooth(random_x, random_y);248 nightmare.mouseClick();249 flag = true;250 return flag;251 }252 }253 return flag;254}255function findPowerUp1() {256 // Default colour for object marker at bank counter is FFFF00257 var img = nightmare.screen.capture(0, 0, 1900, 1080);258 var targetNpc = ['1a1a7e', '0000cd', '5c513e'];259 for (var i = 0; i < 10011; i++) {260 var random_x = getRandomInt(0, 519);261 var random_y = getRandomInt(0, 365);262 var sample_color = img.colorAt(random_x, random_y);263 if (targetNpc.includes(sample_color)) {264 console.log('found action at : ' + random_x + ' ' + random_y);265 nightmare.moveMouseSmooth(random_x, random_y);266 nightmare.mouseClick();267 flag = true;268 return flag;269 }270 }271 return flag;272}273function findPowerUp() {274 flag = false;275 // Default colour for object marker at bank counter is FFFF00276 var img = nightmare.screen.capture(0, 0, 1900, 1080);277 var targetNpc = ['5c523f', '5c513e', '7e7c10'];278 for (var i = 0; i < 10011; i++) {279 var random_x = getRandomInt(0, 579);280 var random_y = getRandomInt(500, 897);281 var sample_color = img.colorAt(random_x, random_y);282 if (targetNpc.includes(sample_color)) {283 console.log('found action at : ' + random_x + ' ' + random_y);284 nightmare.moveMouseSmooth(random_x, random_y);285 nightmare.mouseClick();286 flag = true;287 return flag;288 }289 }290 return flag;291}292function guzzleLikeMad1() {293 for (var i = 0; i < getRandomInt(10, 12 ); i++) {294 nightmare.moveMouseSmooth(getRandomInt(581, 585), getRandomInt(329, 334));295 nightmare.mouseClick('right'); // 44 is 2nd opetion right click296 sleep(getRandomInt(50, 130));297 nightmare.moveMouseSmooth(583, 375);298 nightmare.mouseClick();299 }300}301function guzzleLikeMad3() {302 for (var i = 0; i < getRandomInt(1, 4); i++) {303 nightmare.moveMouseSmooth(304 getRandomInt(581, 585) + 774,305 getRandomInt(329, 334)306 );307 nightmare.mouseClick('right'); // 44 is 2nd opetion right click308 sleep(getRandomInt(50, 130));309 nightmare.moveMouseSmooth(583 + 774, 375);310 nightmare.mouseClick();311 }312}313function guzzleLikeMad2() {314 for (var i = 0; i < getRandomInt(30, 40); i++) {315 nightmare.moveMouseSmooth(getRandomInt(581, 585), getRandomInt(862, 867));316 nightmare.mouseClick('right');317 sleep(getRandomInt(50, 130));318 nightmare.moveMouseSmooth(583, 375 + 534);319 nightmare.mouseClick();320 }321}322// function that performs strength boost323function battleaxe() {324 nightmare.moveMouseSmooth(582, 293);325 nightmare.mouseClick();326 sleep(923);327 nightmare.moveMouseSmooth(559, 175);328 nightmare.mouseClick();329 sleep(523);330 nightmare.moveMouseSmooth(582, 293);331 nightmare.mouseClick();332 console.log('using my battleaxe spec ');333}334// function that resets health restore335function prayerToggle1() {336 nightmare.moveMouseSmooth(557, 121);337 nightmare.mouseClick();338 sleep(231);339 nightmare.mouseClick();340}341function prayerToggle2() {342 nightmare.moveMouseSmooth(557, 121 + 534);343 nightmare.mouseClick();344 sleep(231);345 nightmare.mouseClick();346}347function prayerToggle3() {348 nightmare.moveMouseSmooth(557 + 775, 121);349 nightmare.mouseClick();350 sleep(231);351 nightmare.mouseClick();352}353// function that displays game tick354function tick() {355 console.log('1tick');356 sleep(611);357}358function getRandomInt(min, max) {359 min = Math.ceil(min);360 max = Math.floor(max);361 return Math.floor(Math.random() * (max - min + 1)) + min;362}363//https://github.com/yida-li/Gaming-Bots364/*365openLootBox();366guzzleLikeMad2();367guzzleLikeMad2();368guzzleLikeMad2();369farmingCourse();370guzzleLikeMad1();371guzzleLikeMad1();372guzzleLikeMad1();...

Full Screen

Full Screen

probe.js

Source:probe.js Github

copy

Full Screen

...13 sleep(611);14}15// a subset of layers to differentiate time delay16function l1() {17 var random_x = getRandomInt(420, 699);18 sleep(random_x);19}20function la2() {21 var random_x = getRandomInt(4271, 10000);22 sleep(random_x);23}24function lay3() {25 var random_x = getRandomInt(0, 414);26 sleep(random_x);27}28function laye4() {29 var random_x = getRandomInt(14103, 31413);30 sleep(random_x);31}32// function that calls all layer33// sleeping for between 18.794 millisecond to 42.526 milliseconds34// used if necessary35function layer5() {36 l1();37 la2();38 lay3();39 laye4();40}41//function that returns random interger between floor and ceiling with42function getRandomInt(min, max) {43 min = Math.ceil(min);44 max = Math.floor(max);45 return Math.floor(Math.random() * (max - min + 1)) + min;46}47// The steps to syncronization48// camera set to verticle, log and facing north49// default zoom [ 0 ]50function // slowly combining the clean herb with vial of water in a designated location with 2 svcs with random intervals+ random combination elements51GatherResourcesFinalSpeed() {52 while (true) {53 var time = 0;54 var arbitrairy = getRandomInt(100, 200);55 // randomlly 100,200 cycle interval56 while (time < arbitrairy) {57 time++;58 // top left59 spc.moveMouseSmooth(getRandomInt(600, 700), getRandomInt(1, 900));60 var X_firstHalf = [61 getRandomInt(576, 586),62 getRandomInt(616, 630),63 getRandomInt(656, 670),64 getRandomInt(699, 716),65 getRandomInt(576, 586),66 getRandomInt(616, 630),67 getRandomInt(656, 670),68 getRandomInt(699, 716),69 getRandomInt(576, 586),70 getRandomInt(616, 630),71 getRandomInt(656, 670),72 getRandomInt(699, 716),73 getRandomInt(576, 586),74 getRandomInt(616, 630),75 ];76 var X_secondHalf = [77 getRandomInt(656, 670),78 getRandomInt(699, 716),79 getRandomInt(576, 586),80 getRandomInt(616, 630),81 getRandomInt(656, 670),82 getRandomInt(699, 716),83 getRandomInt(576, 586),84 getRandomInt(616, 630),85 getRandomInt(656, 670),86 getRandomInt(699, 716),87 getRandomInt(576, 586),88 getRandomInt(616, 630),89 getRandomInt(656, 670),90 getRandomInt(699, 716),91 ];92 var Y_firstHalf = [93 getRandomInt(247, 258),94 getRandomInt(247, 258),95 getRandomInt(247, 258),96 getRandomInt(247, 258),97 getRandomInt(283, 296),98 getRandomInt(283, 296),99 getRandomInt(283, 296),100 getRandomInt(283, 296),101 getRandomInt(321, 332),102 getRandomInt(321, 332),103 getRandomInt(321, 332),104 getRandomInt(321, 332),105 getRandomInt(358, 371),106 getRandomInt(358, 371),107 ];108 var Y_secondHalf = [109 getRandomInt(358, 371),110 getRandomInt(358, 371),111 getRandomInt(389, 406),112 getRandomInt(389, 406),113 getRandomInt(389, 406),114 getRandomInt(389, 406),115 getRandomInt(431, 444),116 getRandomInt(431, 444),117 getRandomInt(431, 444),118 getRandomInt(431, 444),119 getRandomInt(463, 479),120 getRandomInt(463, 479),121 getRandomInt(463, 479),122 getRandomInt(463, 479),123 ];124 //bottom left125 var X1_firstHalf = [126 getRandomInt(576, 586),127 getRandomInt(616, 630),128 getRandomInt(656, 670),129 getRandomInt(699, 716),130 getRandomInt(576, 586),131 getRandomInt(616, 630),132 getRandomInt(656, 670),133 getRandomInt(699, 716),134 getRandomInt(576, 586),135 getRandomInt(616, 630),136 getRandomInt(656, 670),137 getRandomInt(699, 716),138 getRandomInt(576, 586),139 getRandomInt(616, 630),140 ];141 var X1_secondHalf = [142 getRandomInt(656, 670),143 getRandomInt(699, 716),144 getRandomInt(576, 586),145 getRandomInt(616, 630),146 getRandomInt(656, 670),147 getRandomInt(699, 716),148 getRandomInt(576, 586),149 getRandomInt(616, 630),150 getRandomInt(656, 670),151 getRandomInt(699, 716),152 getRandomInt(576, 586),153 getRandomInt(616, 630),154 getRandomInt(656, 670),155 getRandomInt(699, 716),156 ];157 var Y1_firstHalf = [158 getRandomInt(247, 258) + 534,159 getRandomInt(247, 258) + 534,160 getRandomInt(247, 258) + 534,161 getRandomInt(247, 258) + 534,162 getRandomInt(283, 296) + 534,163 getRandomInt(283, 296) + 534,164 getRandomInt(283, 296) + 534,165 getRandomInt(283, 296) + 534,166 getRandomInt(321, 332) + 534,167 getRandomInt(321, 332) + 534,168 getRandomInt(321, 332) + 534,169 getRandomInt(321, 332) + 534,170 getRandomInt(358, 371) + 534,171 getRandomInt(358, 371) + 534,172 ];173 var Y1_secondHalf = [174 getRandomInt(358, 371) + 534,175 getRandomInt(358, 371) + 534,176 getRandomInt(389, 406) + 534,177 getRandomInt(389, 406) + 534,178 getRandomInt(389, 406) + 534,179 getRandomInt(389, 406) + 534,180 getRandomInt(431, 444) + 534,181 getRandomInt(431, 444) + 534,182 getRandomInt(431, 444) + 534,183 getRandomInt(431, 444) + 534,184 getRandomInt(463, 479) + 534,185 getRandomInt(463, 479) + 534,186 getRandomInt(463, 479) + 534,187 getRandomInt(463, 479) + 534,188 ];189 // random mousemovement190 spc.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332));191 // a1192 spc.moveMouseSmooth(getRandomInt(227, 243), getRandomInt(120, 129));193 spc.mouseClick('right');194 tick(getRandomInt(700, 800));195 spc.moveMouseSmooth(getRandomInt(227, 243), getRandomInt(213, 214));196 spc.mouseClick();197 tick(getRandomInt(700, 800));198 spc.moveMouse(getRandomInt(282, 289), getRandomInt(120, 129));199 spc.mouseClick();200 // a1201 prayerToggle1();202 tick(getRandomInt(700, 800));203 var temp = getRandomInt(0, 13);204 spc.moveMouseSmooth(X_firstHalf[temp], Y_firstHalf[temp]);205 spc.mouseClick();206 tick(getRandomInt(700, 800));207 var temp2 = getRandomInt(0, 13);208 spc.moveMouseSmooth(X_secondHalf[temp2], Y_secondHalf[temp2]);209 spc.mouseClick();210 tick(getRandomInt(700, 800));211 spc.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480));212 spc.mouseClick();213 // random mousemovement214 spc.moveMouseSmooth(getRandomInt(0, 560), getRandomInt(0, 332) + 534);215 // b1216 spc.moveMouseSmooth(getRandomInt(227, 243), getRandomInt(120, 129) + 534);217 spc.mouseClick('right');218 tick(getRandomInt(700, 800));219 spc.moveMouseSmooth(getRandomInt(232, 239), getRandomInt(213, 214) + 534);220 spc.mouseClick();221 tick(getRandomInt(700, 800));222 spc.moveMouseSmooth(getRandomInt(282, 289), getRandomInt(120, 129) + 534);223 spc.mouseClick();224 prayerToggle2();225 tick(getRandomInt(700, 800));226 var temp3 = getRandomInt(0, 13);227 spc.moveMouseSmooth(X1_firstHalf[temp3], Y1_firstHalf[temp3]);228 spc.mouseClick();229 var temp4 = getRandomInt(0, 13);230 spc.moveMouseSmooth(X1_secondHalf[temp4], Y1_secondHalf[temp4]);231 spc.mouseClick();232 tick(getRandomInt(700, 800));233 spc.moveMouseSmooth(getRandomInt(227, 290), getRandomInt(433, 480) + 534);234 spc.mouseClick();235 sleep(getRandomInt(4300, 4700));236 spc.moveMouseSmooth(237 getRandomInt(234, 234 + 107),238 getRandomInt(190, 190 + 53)239 );240 spc.mouseClick();241 sleep(getRandomInt(634, 780));242 spc.moveMouseSmooth(getRandomInt(432, 454), getRandomInt(327, 342));243 spc.mouseClick();244 sleep(getRandomInt(1200, 2000));245 spc.moveMouseSmooth(246 getRandomInt(234, 234 + 107),247 getRandomInt(190, 190 + 53) + 534248 );249 spc.mouseClick();250 sleep(getRandomInt(634, 780));251 //bankcccc252 spc.moveMouseSmooth(getRandomInt(432, 454), getRandomInt(327, 342) + 534);253 spc.mouseClick();254 //255 console.log(time + 'gas harvested');256 }257 }258 layer5(); // rest up to 42.526 milliseconds259}260function findLocation() {261 var img = spc.screen.capture(0, 0, 1900, 1080);262 var targetNpc = [];263 for (var i = 0; i < 10011; i++) {264 var random_x = getRandomInt(0, 519);265 var random_y = getRandomInt(0, 365);266 var sample_color = img.colorAt(random_x, random_y);267 if (targetNpc.includes(sample_color)) {268 console.log('found action at : ' + random_x + ' ' + random_y);269 spc.moveMouseSmooth(random_x, random_y);270 spc.mouseClick();271 return { random_x, random_y };272 }273 }274 return false;275}276function findLocation2() {277 var img = spc.screen.capture(0, 0, 1900, 1080);278 var targetNpc = [];279 for (var i = 0; i < 10011; i++) {280 var random_x = getRandomInt(0, 579);281 var random_y = getRandomInt(500, 897);282 var sample_color = img.colorAt(random_x, random_y);283 if (targetNpc.includes(sample_color)) {284 console.log('found action at : ' + random_x + ' ' + random_y);285 spc.moveMouseSmooth(random_x, random_y);286 spc.mouseClick();287 return true;288 }289 }290 return false;291}292function findLocation3() {293 var img = spc.screen.capture(0, 0, 1900, 1080);294 var targetNpc = [];295 for (var i = 0; i < 10011; i++) {296 var random_x = getRandomInt(775, 579 + 775);297 var random_y = getRandomInt(500, 897);298 var sample_color = img.colorAt(random_x, random_y);299 if (targetNpc.includes(sample_color)) {300 console.log('found action at : ' + random_x + ' ' + random_y);301 spc.moveMouseSmooth(random_x, random_y);302 spc.mouseClick();303 return { random_x, random_y };304 }305 }306 return false;307}308function prayerToggle1() {309 spc.moveMouseSmooth(getRandomInt(551, 556), getRandomInt(111, 125));310 for (var i = 0; i < getRandomInt(1, 2); i++) {311 spc.mouseClick();312 sleep(231);313 }314}315function prayerToggle2() {316 spc.moveMouseSmooth(getRandomInt(551, 556), getRandomInt(111, 125) + 534);317 for (var i = 0; i < getRandomInt(1, 2); i++) {318 spc.mouseClick();319 sleep(231);320 }321}322//323//https://github.com/yida-li/Gaming-Bots324//325//Cmds...

Full Screen

Full Screen

neon-charts.js

Source:neon-charts.js Github

copy

Full Screen

...92 Morris.Bar({93 element: 'chart3',94 axes: true,95 data: [96 {x: '2013 Q1', y: getRandomInt(1,10), z: getRandomInt(1,10), a: getRandomInt(1,10)},97 {x: '2013 Q2', y: getRandomInt(1,10), z: getRandomInt(1,10), a: getRandomInt(1,10)},98 {x: '2013 Q3', y: getRandomInt(1,10), z: getRandomInt(1,10), a: getRandomInt(1,10)},99 {x: '2013 Q4', y: getRandomInt(1,10), z: getRandomInt(1,10), a: getRandomInt(1,10)}100 ],101 xkey: 'x',102 ykeys: ['y', 'z', 'a'],103 labels: ['Facebook', 'LinkedIn', 'Google+'],104 barColors: ['#707f9b', '#455064', '#242d3c']105 });106 107 // Stacked Bar Charts108 Morris.Bar({109 element: 'chart4',110 data: [111 {x: '2013 Q1', y: getRandomInt(1,10), z: getRandomInt(1,20), a: getRandomInt(1,20)},112 {x: '2013 Q2', y: getRandomInt(1,11), z: getRandomInt(1,10), a: getRandomInt(1,14)},113 {x: '2013 Q3', y: getRandomInt(1,20), z: getRandomInt(1,20), a: getRandomInt(1,19)},114 {x: '2013 Q4', y: getRandomInt(1,15), z: getRandomInt(1,15), a: getRandomInt(1,11)}115 ],116 xkey: 'x',117 ykeys: ['y', 'z', 'a'],118 labels: ['Facebook', 'LinkedIn', 'Google+'],119 stacked: true,120 barColors: ['#ffaaab', '#ff6264', '#d13c3e']121 });122 123 // Donut124 Morris.Donut({125 element: 'chart5',126 data: [127 {label: "Download Sales", value: getRandomInt(10,50)},128 {label: "In-Store Sales", value: getRandomInt(10,50)},129 {label: "Mail-Order Sales", value: getRandomInt(10,50)}130 ],131 colors: ['#707f9b', '#455064', '#242d3c']132 });133 134 // Donut Colors135 Morris.Donut({136 element: 'chart6',137 data: [138 {label: "Games", value: getRandomInt(10,50)},139 {label: "Photos", value: getRandomInt(10,50)},140 {label: "Apps", value: getRandomInt(10,50)},141 {label: "Other", value: getRandomInt(10,50)},142 ],143 labelColor: '#303641',144 colors: ['#f26c4f', '#00a651', '#00bff3', '#0072bc']145 });146 147 // Donut Formatting148 Morris.Donut({149 element: 'chart7',150 data: [151 {value: 70, label: 'foo', formatted: 'at least 70%' },152 {value: 15, label: 'bar', formatted: 'approx. 15%' },153 {value: 10, label: 'baz', formatted: 'approx. 10%' },154 {value: 5, label: 'A really really long label', formatted: 'at most 5%' }155 ],156 formatter: function (x, data) { return data.formatted; },157 colors: ['#b92527', '#d13c3e', '#ff6264', '#ffaaab']158 });159 160 161 // Line Chart162 var day_data = [163 {"elapsed": "I", "value": 34},164 {"elapsed": "II", "value": 24},165 {"elapsed": "III", "value": 3},166 {"elapsed": "IV", "value": 12},167 {"elapsed": "V", "value": 13},168 {"elapsed": "VI", "value": 22},169 {"elapsed": "VII", "value": 5},170 {"elapsed": "VIII", "value": 26},171 {"elapsed": "IX", "value": 12},172 {"elapsed": "X", "value": 19}173 ];174 175 Morris.Line({176 element: 'chart8',177 data: day_data,178 xkey: 'elapsed',179 ykeys: ['value'],180 labels: ['value'],181 parseTime: false,182 lineColors: ['#242d3c']183 });184 185 186 187 // Goals188 var decimal_data = [];189 190 for (var x = 0; x <= 360; x += 10) {191 decimal_data.push({192 x: x,193 y: Math.sin(Math.PI * x / 180).toFixed(4)194 });195 }196 197 Morris.Line({198 element: 'chart9',199 data: decimal_data,200 xkey: 'x',201 ykeys: ['y'],202 labels: ['sin(x)'],203 parseTime: false,204 goals: [-1, 0, 1],205 lineColors: ['#d13c3e']206 });207 208 209 // Area Chart210 Morris.Area({211 element: 'chart10',212 data: [213 { y: '2006', a: getRandomInt(10,100), b: getRandomInt(10,100) },214 { y: '2007', a: getRandomInt(10,100), b: getRandomInt(10,100) },215 { y: '2008', a: getRandomInt(10,100), b: getRandomInt(10,100) },216 { y: '2009', a: getRandomInt(10,100), b: getRandomInt(10,100) },217 { y: '2010', a: getRandomInt(10,100), b: getRandomInt(10,100) },218 { y: '2011', a: getRandomInt(10,100), b: getRandomInt(10,100) },219 { y: '2012', a: getRandomInt(10,100), b: getRandomInt(10,100) }220 ],221 xkey: 'y',222 ykeys: ['a', 'b'],223 labels: ['Series A', 'Series B']224 });225 }226 227 228 // Peity Graphs229 if($.isFunction($.fn.peity))230 {231 $("span.pie").peity("pie", {colours: ['#0e8bcb', '#57b400'], width: 150, height: 25});232 $(".panel span.line").peity("line", {width: 150});233 $("span.bar").peity("bar", {width: 150});234 235 var updatingChart = $(".updating-chart").peity("line", { width: 150 })236 setInterval(function() 237 {238 var random = Math.round(Math.random() * 10);239 var values = updatingChart.text().split(",");240 241 values.shift()242 values.push(random);243 244 updatingChart.text(values.join(",")).change();245 $("#peity-right-now").text(random + ' user' + (random != 1 ? 's' : ''));246 247 }, 1000)248 }249 250 251 });252 253})(jQuery, window);254 255function data(offset) {256 var ret = [];257 for (var x = 0; x <= 360; x += 10) {258 var v = (offset + x) % 360;259 ret.push({260 x: x,261 y: Math.sin(Math.PI * v / 180).toFixed(4),262 z: Math.cos(Math.PI * v / 180).toFixed(4),263 });264 }265 return ret;266}267 268 269function getRandomInt(min, max) 270{271 return Math.floor(Math.random() * (max - min + 1)) + min;...

Full Screen

Full Screen

Character.js

Source:Character.js Github

copy

Full Screen

...16 name: 'Goblin'17 , description: 'Often mistaken for an ugly Hobbit, loves to make spookey noises.'18 , health: { min: 30, max: 80 }19 , skills: {20 strength: getRandomInt(3, 6)21 , constitution: getRandomInt(3, 6)22 , dexterity: getRandomInt(3, 6)23 , intelligence: getRandomInt(3, 6)24 , wisdom: getRandomInt(3, 6)25 , charisma: getRandomInt(3, 6)26 }27 , abilities: [28 new Bash()29 , new Bite()30 ]31 , experience: 2532 , environments: [ 33 GameMap.environments.forest34 , GameMap.environments.hill35 , GameMap.environments.grass36 ]37 },38 {39 name: 'Slime'40 , description: 'Experiment of the wizards of Niqlodean, attacks by falling from the sky.'41 , health: { min: 20, max: 60 }42 , skills: {43 strength: getRandomInt(3, 6)44 , constitution: getRandomInt(3, 6)45 , dexterity: getRandomInt(3, 6)46 , intelligence: getRandomInt(3, 6)47 , wisdom: getRandomInt(3, 6)48 , charisma: getRandomInt(3, 6)49 }50 , abilities: [51 new Bash()52 ]53 , experience: 2054 , environments: [ 55 GameMap.environments.marsh56 ]57 },58 {59 name: 'Idiot'60 , description: 'Frequently dizzy and stupid, wanders in violent confusion.'61 , health: { min: 40, max: 60 }62 , skills: {63 strength: getRandomInt(3, 6)64 , constitution: getRandomInt(3, 6)65 , dexterity: getRandomInt(3, 6)66 , intelligence: getRandomInt(3, 6)67 , wisdom: getRandomInt(3, 6)68 , charisma: getRandomInt(3, 6)69 }70 , abilities: [71 new Bash()72 ]73 , experience: 2074 , environments: [ 75 GameMap.environments.forest76 , GameMap.environments.hill77 , GameMap.environments.marsh 78 ]79 },80 {81 name: 'Wolf'82 , description: 'A grotesquely mishapen rabbit, coincedentally identical to a wolf.'83 , health: { min: 30, max: 60 }84 , skills: {85 strength: getRandomInt(3, 6)86 , constitution: getRandomInt(3, 6)87 , dexterity: getRandomInt(3, 6)88 , intelligence: getRandomInt(3, 6)89 , wisdom: getRandomInt(3, 6)90 , charisma: getRandomInt(3, 6)91 }92 , abilities: [93 new Bite()94 ]95 , experience: 3096 , environments: [ 97 GameMap.environments.forest98 , GameMap.environments.hill99 , GameMap.environments.grass 100 ]101 },102 {103 name: 'Violent Fish'104 , description: 'A salmon with nothing to lose, fiercely determined to slap.'105 , health: { min: 50, max: 90 }106 , skills: {107 strength: getRandomInt(3, 6)108 , constitution: getRandomInt(3, 6)109 , dexterity: getRandomInt(3, 6)110 , intelligence: getRandomInt(3, 6)111 , wisdom: getRandomInt(3, 6)112 , charisma: getRandomInt(3, 6)113 }114 , abilities: [115 new Slap()116 ]117 , experience: 30118 , environments: [ 119 GameMap.environments.water120 ]121 },122 {123 name: 'Witch'124 , description: 'Crazy broom wielding salesperson.'125 , health: { min: 60, max: 100 }126 , skills: {127 strength: getRandomInt(3, 6)128 , constitution: getRandomInt(3, 6)129 , dexterity: getRandomInt(3, 6)130 , intelligence: getRandomInt(3, 6)131 , wisdom: getRandomInt(3, 6)132 , charisma: getRandomInt(3, 6)133 }134 , abilities: [135 new Slap()136 , new Heal()137 ]138 , experience: 100139 , environments: [ 140 GameMap.environments.marsh141 , GameMap.environments.forest142 ]143 }144 ]145 }146 static createPlayer()147 {148 store.dispatch(newCharacter(149 'player', 150 'Inigio', 151 100, 152 true,153 {154 strength: getRandomInt(3, 6)155 , constitution: getRandomInt(3, 6)156 , dexterity: getRandomInt(3, 6)157 , intelligence: getRandomInt(3, 6)158 , wisdom: getRandomInt(3, 6)159 , charisma: getRandomInt(3, 6)160 })); 161 store.dispatch(receiveAbility('player', new Bash()));162 store.dispatch(receiveAbility('player', new Bite()));163 store.dispatch(receiveAbility('player', new Slash()));164 store.dispatch(receiveAbility('player', new DoubleSlash()));165 store.dispatch(receiveAbility('player', new Heal()));166 // starting equipment167 for (let i = 0; i < 4; i++) {168 let item = Item.createRandomItem();169 store.dispatch(receiveItem('player', item));170 store.dispatch(equipItem('player', item));171 }172 }173 /*174 Create a random character175 */176 static createRandomEnemy(params)177 {178 const { environ, level } = params;179 let enemyList = Character.enemyList;180 if (environ) {181 enemyList = enemyList.filter(enemy => enemy.environments.includes(environ));182 }183 if (enemyList.length === 0) {184 return;185 }186 const enemy = getRandomChoice(enemyList);187 store.dispatch(newCharacter(188 'enemy'189 , enemy.name190 , getRandomInt(enemy.health.min, enemy.health.max)191 , false192 , enemy.skills193 ));194 enemy.abilities.forEach(a => {195 store.dispatch(receiveAbility('enemy', a));196 });197 store.dispatch(receiveExperience('enemy', enemy.experience));198 return enemy;199 }...

Full Screen

Full Screen

master.js

Source:master.js Github

copy

Full Screen

...16colors[2][1] = 'rgba(74,49,89,';17colors[2][2] = 'rgba(130,91,109,';18colors[2][3] = 'rgba(185,136,131,';19colors[2][4] = 'rgba(249,241,204,';20var colorTheme = 2, //getRandomInt(0,colors.length-1);21 mainSpeed = 1;22function getRandomInt(min, max, exept) {23 var i = Math.floor(Math.random() * (max - min + 1)) + min;24 if (typeof exept == "undefined") return i;25 else if (typeof exept == 'number' && i == exept) return getRandomInt(min, max, exept);26 else if (typeof exept == "object" && (i >= exept[0] && i <= exept[1])) return getRandomInt(min, max, exept);27 else return i;28}29function isEven(n) {30 return n == parseFloat(n) ? !(n % 2) : void 0;31}32function degToRad(deg) {33 return deg * (Math.PI / 180);34}35function Firefly(id) {36 this.id = id;37 this.width = getRandomInt(3, 6);38 this.height = this.width;39 this.x = getRandomInt(0, (canvas.width - this.width));40 this.y = getRandomInt(0, (canvas.height - this.height));41 this.speed = (this.width <= 10) ? 2 : 1;42 this.alpha = 1;43 this.alphaReduction = getRandomInt(1, 3) / 1000;44 this.color = colors[colorTheme][getRandomInt(1, colors[colorTheme].length - 1)];45 this.direction = getRandomInt(0, 360);46 this.turner = getRandomInt(0, 1) == 0 ? -1 : 1;47 this.turnerAmp = getRandomInt(1, 2);48 this.isHit = false;49 this.stepCounter = 0;50 this.changeDirectionFrequency = getRandomInt(1, 200);51 this.shape = 2; //getRandomInt(2,3);52 this.shadowBlur = getRandomInt(5, 25);53}54Firefly.prototype.stop = function() {55 this.update();56}57Firefly.prototype.walk = function() {58 var next_x = this.x + Math.cos(degToRad(this.direction)) * this.speed,59 next_y = this.y + Math.sin(degToRad(this.direction)) * this.speed;60 // Canvas limits61 if (next_x >= (canvas.width - this.width) && (this.direction < 90 || this.direction > 270)) {62 next_x = canvas.width - this.width;63 this.direction = getRandomInt(90, 270, this.direction);64 }65 if (next_x <= 0 && (this.direction > 90 && this.direction < 270)) {66 next_x = 0;67 var exept = [90, 270];68 this.direction = getRandomInt(0, 360, exept);69 }70 if (next_y >= (canvas.height - this.height) && (this.direction > 0 && this.direction < 180)) {71 next_y = canvas.height - this.height;72 this.direction = getRandomInt(180, 360, this.direction);73 }74 if (next_y <= 0 && (this.direction > 180 && this.direction < 360)) {75 next_y = 0;76 this.direction = getRandomInt(0, 180, this.direction);77 }78 this.x = next_x;79 this.y = next_y;80 this.stepCounter++;81 if (this.changeDirectionFrequency && this.stepCounter == this.changeDirectionFrequency) {82 this.turner = this.turner == -1 ? 1 : -1;83 this.turnerAmp = getRandomInt(1, 2);84 this.stepCounter = 0;85 this.changeDirectionFrequency = getRandomInt(1, 200);86 }87 this.direction += this.turner * this.turnerAmp;88 this.update();89}90Firefly.prototype.takeOppositeDirection = function() {91 // Right -> Left92 if ((this.direction >= 0 && this.direction < 90) || (this.direction > 270 && this.direction <= 360)) {93 this.direction = getRandomInt(90, 270);94 return;95 }96 // Left -> Right97 if (this.direction > 90 && this.direction < 270) {98 var exept = [90, 270];99 this.direction = getRandomInt(0, 360, exept);100 return;101 }102 // Down -> Up103 if (this.direction > 0 && this.direction < 180) {104 this.direction = getRandomInt(180, 360);105 return;106 }107 // Up -> Down108 if (this.direction > 180) {109 this.direction = getRandomInt(0, 180);110 }111}112Firefly.prototype.update = function() {113 context.beginPath();114 context.fillStyle = this.color + this.alpha + ")";115 context.arc(this.x + (this.width / 2), this.y + (this.height / 2), this.width / 2, 0, 2 * Math.PI, false);116 context.shadowColor = this.color + this.alpha + ")";117 context.shadowBlur = this.shadowBlur;118 context.shadowOffsetX = 0;119 context.shadowOffsetY = 0;120 context.fill();121 if (this.id > 15) {122 this.alpha -= this.alphaReduction;123 if (this.alpha <= 0) this.die();...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1describe('My First Test', function() {2 it('Does not do much!', function() {3 cy.contains('type').click()4 cy.url().should('include', '/commands/actions')5 cy.get('.action-email')6 .type('

Full Screen

Using AI Code Generation

copy

Full Screen

1describe('My First Test', function() {2 it('Does not do much!', function() {3 expect(true).to.equal(true)4 })5 it('generate random number', function() {6 cy.log(Cypress._.random(0, 100))7 })8})9import _ from 'lodash';10Cypress._ = _;11import _ from 'lodash';12Cypress._ = _;13import _ from 'lodash';14Cypress._ = _;15import _ from 'lodash';16Cypress._ = _;17import _ from 'lodash';18Cypress._ = _;19import _ from 'lodash';20Cypress._ = _;21import _ from

Full Screen

Using AI Code Generation

copy

Full Screen

1var getRandomInt = require('cypress-random').getRandomInt2var getRandomFloat = require('cypress-random').getRandomFloat3var getRandomString = require('cypress-random').getRandomString4var getRandomBoolean = require('cypress-random').getRandomBoolean5var getRandomArray = require('cypress-random').getRandomArray6var getRandomDate = require('cypress-random').getRandomDate7var getRandomEmail = require('cypress-random').getRandomEmail8var getRandomHex = require('cypress-random').getRandomHex9var getRandomColor = require('cypress-random').getRandomColor10getRandomInt(0, 100)11getRandomFloat(0, 100)12getRandomString(10)13getRandomBoolean()14getRandomArray(["a", "b", "c", "d", "e"])15getRandomDate(new Date(2012, 0, 1), new Date())16getRandomEmail()17getRandomHex()18getRandomColor()

Full Screen

Using AI Code Generation

copy

Full Screen

1cy.getRandomInt(1, 100).then((randomInt) => {2 cy.log(randomInt);3});4Cypress.Commands.add('getRandomInt', (min, max) => {5 min = Math.ceil(min);6 max = Math.floor(max);7 return Math.floor(Math.random() * (max - min + 1)) + min;8});

Full Screen

Using AI Code Generation

copy

Full Screen

1cy.log("Random number is: " + Cypress._.random(0, 100));2cy.log("Random number is: " + Cypress._.random(0, 100));3cy.log("Random number is: " + Cypress._.random(0, 100));4cy.log("Random number is: " + Cypress._.random(0, 100));5cy.log("Random number is: " + Cypress._.random(0, 100));6cy.log("Random number is: " + Cypress._.random(0, 100));7cy.log("Random number is: " + Cypress._.random(0, 100));8cy.log("Random number is: " + Cypress._.random(0, 100));9cy.log("Random number is: " + Cypress._.random(0, 100));10cy.log("Random number is: " + Cypress._.random(0, 100));11cy.log("Random number is: " + Cypress._.random(0, 100));12cy.log("Random number is: " + Cypress._.random(0, 100));13cy.log("Random number is: " + Cypress._.random(0, 100));14cy.log("Random number is: " + Cypress._.random(0, 100));15cy.log("Random number is: " +

Full Screen

Using AI Code Generation

copy

Full Screen

1cy.getRandomInt(1, 10).then(number => {2 cy.log(number)3})4cy.getRandomInt(1, 10).then(number => {5 cy.log(number)6})7cy.getRandomInt(100).then(number => {8 cy.log(number)9})10cy.getRandomInt(1000).then(number => {11 cy.log(number)12})13cy.getRandomInt(10000).then(number => {14 cy.log(number)15})16cy.getRandomInt(100000).then(number => {17 cy.log(number)18})19cy.getRandomInt(1000000).then(number => {20 cy.log(number)21})22cy.getRandomInt(10000000).then(number => {23 cy.log(number)24})25cy.getRandomInt(100000000).then(number => {26 cy.log(number)27})28cy.getRandomInt(1000000000).then(number => {29 cy.log(number)30})

Full Screen

Using AI Code Generation

copy

Full Screen

1cy.getRandomInt(0, 10).then((randomInt) => {2})3Cypress.Commands.add('getRandomInt', (min, max) => {4 return Math.floor(Math.random() * (max - min + 1) + min)5})6cy.getRandomInt(0, 10).then((randomInt) => {7 cy.log(randomInt)8})9Cypress.Commands.add('getRandomInt', (min, max) => {10 return Math.floor(Math.random() * (max - min + 1) + min)11})

Full Screen

Cypress Tutorial

Cypress is a renowned Javascript-based open-source, easy-to-use end-to-end testing framework primarily used for testing web applications. Cypress is a relatively new player in the automation testing space and has been gaining much traction lately, as evidenced by the number of Forks (2.7K) and Stars (42.1K) for the project. LambdaTest’s Cypress Tutorial covers step-by-step guides that will help you learn from the basics till you run automation tests on LambdaTest.

Chapters:

  1. What is Cypress? -
  2. Why Cypress? - Learn why Cypress might be a good choice for testing your web applications.
  3. Features of Cypress Testing - Learn about features that make Cypress a powerful and flexible tool for testing web applications.
  4. Cypress Drawbacks - Although Cypress has many strengths, it has a few limitations that you should be aware of.
  5. Cypress Architecture - Learn more about Cypress architecture and how it is designed to be run directly in the browser, i.e., it does not have any additional servers.
  6. Browsers Supported by Cypress - Cypress is built on top of the Electron browser, supporting all modern web browsers. Learn browsers that support Cypress.
  7. Selenium vs Cypress: A Detailed Comparison - Compare and explore some key differences in terms of their design and features.
  8. Cypress Learning: Best Practices - Take a deep dive into some of the best practices you should use to avoid anti-patterns in your automation tests.
  9. How To Run Cypress Tests on LambdaTest? - Set up a LambdaTest account, and now you are all set to learn how to run Cypress tests.

Certification

You can elevate your expertise with end-to-end testing using the Cypress automation framework and stay one step ahead in your career by earning a Cypress certification. Check out our Cypress 101 Certification.

YouTube

Watch this 3 hours of complete tutorial to learn the basics of Cypress and various Cypress commands with the Cypress testing at LambdaTest.

Run Cypress automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful