Professional Documents
Culture Documents
// ==/UserScript==
//document functions
document.querySelector("head").innerHTML =
document.querySelector("head").innerHTML + '<link rel="stylesheet"
href="http://wormax.org/chrome3kafa/moomods.css" type="text/css"
media="screen, projection" /><link rel="stylesheet"
href="https://iogameslist.org/wp-content/uploads/modal.css" type="text/css">';
$("#adCard").html('<div align="left"><div class="menuHeader">How To Use
Mod?</div><div id="desktopInstructions" class="menuText"><a class="menuText"
title="When you press *P* Key it will change police hats automatically. Please be
sure that you have enough gold for Bummble Hat and Winter Cap, else it wont
work.(not Caps)">Police Mod <font style="font-size: 18px;"
color="red">(?)</font>:</a><a" target="_blank"
style="font-size:18px;padding-left:46px;">P key</a><br><a title="When you press
*Shift + P* it will Auto Kill. (Caps)" class="menuText">Auto Kill <font
style="font-size: 18px;" color="red">(?)</font>:</a><a" target="_blank"
style="font-size:18px;padding-left:42px;">Shift + P key</a><br><a title="When
you press *N* it will change free animal hats automatically.(not Caps)"
class="menuText">Animals Mod <font style="font-size: 18px;"
color="red">(?)</font>:</a><a" target="_blank"
style="font-size:18px;padding-left:28px;">N key</a><br><a title="When you
press *B* it will change all free hats automatically. (not Caps)"
class="menuText">Free Hats Mod <font style="font-size: 18px;"
color="red">(?)</font>:</a><a" target="_blank"
style="font-size:18px;padding-left:13px;">B key</a><br><a title="When you
press *M* key it will change animal caps automatically.(not Caps)"
class="menuText">Animal Caps <font style="font-size: 18px;"
color="red">(?)</font>:</a><a" target="_blank"
style="font-size:18px;padding-left:34px;">M key</a></br><a title="When you
press *F* key it will put trap and no one will see that you put it there.(not Caps)"
class="menuText">Booby Trap <font style="font-size: 18px;"
color="red">(?)</font>:</a><a" target="_blank"
style="font-size:18px;padding-left:42px;">F key</a><br><a title="When you press
*O* it will Put a Circle Trap automatically. (not Caps)" class="menuText">Circle
Trap <font style="font-size: 18px;" color="red">(?)</font>:</a><a"
target="_blank" style="font-size:18px;padding-left:42px;">O key</a><br><a
title="When you press *V* it will Put a Spike Trap automatically. (not Caps)"
class="menuText">Spike Trap <font style="font-size: 18px;"
color="red">(?)</font>:</a><a" target="_blank"
style="font-size:18px;padding-left:42px;">V key<br><a title="When you press *L*
it will Put a Circle Spike Trap automatically. (not Caps)" class="menuText">Circle
Spike Trap <font style="font-size: 18px;" color="red">(?)</font>:</a><a"
target="_blank" style="font-size:18px;padding-left:32px;">L key</a><br><a
title="Hotkey for Tank Gear when press Z.(not Caps)" class="menuText">Tank Gear
<font style="font-size: 18px;" color="red">(?)</font>:</a><a" target="_blank"
style="font-size:18px;padding-left:34px;">Z key</a></br><a title="Hotkey for
Soilder Hat when press C.(not Caps)" class="menuText">SoliderHat <font
style="font-size: 18px;" color="red">(?)</font>:</a><a" target="_blank"
style="font-size:18px;padding-left:34px;">C key</a></br><a title="Hotkey for
Turrent Gear when press Spacebar.(not Caps)" class="menuText">TurrentGear
<font style="font-size: 18px;" color="red">(?)</font>:</a><a" target="_blank"
style="font-size:18px;padding-left:34px;">Spacebar key</a></br><a title="When
you press *G* it will Auto Chat. (No Caps)" class="menuText">Auto Chat <font
style="font-size: 18px;" color="red">(?)</font>:</a><a" target="_blank"
style="font-size:18px;padding-left:42px;">G key</a></br><br>Auto Heal: Collect
Food<br>Bull Helmet: <a title="If you buy the bull helmet, any time you swing this
mod will put the bull helmet on and take it off automatically. If you put on another
hat, the mod will automatically remember that hat and put it on after its done with
the bull helmet. The mod will also take of the monkey tail (if its on) when you swing.
---> Imagine the combinations! Soldier +bull and plague +bull are good combos to
get started with" style="font-size: 18px;color:dodgerblue;">Read Me
(?)</a><br></div><hr><button class="trigger">Modify Interval
Speed</button><div class="modal"><div class="modal-content"><span
class="close-button">×</span><div align="left"><a title="Its the speed of
animals mod, default is 200">Animals Mod Speed (?): </a><input
onchange="anspeedupdate();" id="aspeed" type="number" value="200"
style="width:60px;"></br><a title="Its the speed of free hats mod, default is
200">Free Hats Mod Speed (?): </a><input onchange="plspeedupdate();"
id="pspeed" type="number" value="200" style="width:60px;"></br><a title="Its
the speed of animal caps mod, default is 200">Animal Caps Mod Speed (?):
</a><input onchange="clspeedupdate();" id="caspeed" type="number"
value="200" style="width:60px;"></br><a title="Its the speed of police mod,
default is 250">Police Mod Speed (?): </a><input onchange="frspeedupdate();"
id="fspeed" type="number" value="250" style="width:60px;"></div></div></div>
- <button class="trigger2">Extra Feature Keys</button><div class="modal2"><div
class="modal-content"><span class="close-button2">×</span>Numpad0 =
<input onchange="nm0(this.value)" type="number" value="0" id="nm00"
style="width:60px;"></br>Numpad1 = <input onchange="nm1(this.value)"
type="number" value="7" id="nm11" style="width:60px;"></br>Numpad2 =
<input onchange="nm2(this.value)" type="number" value="6" id="nm22"
style="width:60px;"></br>Numpad3 = <input onchange="nm3(this.value)"
type="number" value="20" id="nm33" style="width:60px;"></br>Numpad4 =
<input onchange="nm4(this.value)" id="nm44" type="number" value="31"
style="width:60px;"></br>Numpad5 = <input onchange="nm5(this.value)"
id="nm55" type="number" value="10" style="width:60px;"></br>Numpad6 =
<input onchange="nm6(this.value)" id="nm66" type="number" value="11"
style="width:60px;"></br>Numpad7 = <input onchange="nm7(this.value)"
type="number" id="nm77" value="22" style="width:60px;"></br>Numpad8 =
<input onchange="nm8(this.value)" id="nm88" type="number" value="12"
style="width:60px;"></br>Numpad9 = <input onchange="nm9(this.value)"
type="number" id="nm99" value="9" style="width:60px;"></br><div
id="storeHolder" style="width:270px;" > <div style="font-size:20px;"
class="storeItem" id="storeDisplay0"> <img class="hatPreview"
src="https://i.hizliresim.com/5y9PBD.png"><span>Default : 0</span> </div><div
style="font-size:20px;" class="storeItem" id="storeDisplay1"> <img
class="hatPreview" src="../img/hats/hat_51.png"><span>Moo Cap : 51</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay2"> <img
class="hatPreview" src="../img/hats/hat_50.png"><span>Apple Cap : 50</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay3"> <img
class="hatPreview" src="../img/hats/hat_28.png"><span>Moo Head : 28</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay4"> <img
class="hatPreview" src="../img/hats/hat_29.png"><span>Pig Head : 29</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay5"> <img
class="hatPreview" src="../img/hats/hat_30.png"><span>Fluff Head : 30</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay6"> <img
class="hatPreview" src="../img/hats/hat_36.png"><span>Pandou Head :
36</span> </div><div style="font-size:20px;" class="storeItem"
id="storeDisplay7"> <img class="hatPreview"
src="../img/hats/hat_37.png"><span>Bear Head : 37</span> </div><div
style="font-size:20px;" class="storeItem" id="storeDisplay8"> <img
class="hatPreview" src="../img/hats/hat_38.png"><span>Monkey Head :
38</span> </div><div style="font-size:20px;" class="storeItem"
id="storeDisplay9"> <img class="hatPreview"
src="../img/hats/hat_44.png"><span>Polar Head : 44</span> </div><div
style="font-size:20px;" class="storeItem" id="storeDisplay10"> <img
class="hatPreview" src="../img/hats/hat_35.png"><span>Fez Hat : 35</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay11"> <img
class="hatPreview" src="../img/hats/hat_42.png"><span>Enigma Hat : 42</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay12"> <img
class="hatPreview" src="../img/hats/hat_43.png"><span>Blitz Hat : 43</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay13"> <img
class="hatPreview" src="../img/hats/hat_49.png"><span>Bob XIII Hat :
49</span> </div><div style="font-size:20px;" class="storeItem"
id="storeDisplay14"> <img class="hatPreview"
src="../img/hats/hat_8.png"><span>Bummle Hat : 8</span> </div><div
style="font-size:20px;" class="storeItem" id="storeDisplay15"> <img
class="hatPreview" src="../img/hats/hat_2.png"><span>Straw Hat : 2</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay16"> <img
class="hatPreview" src="../img/hats/hat_15.png"><span>Winter Cap : 15</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay17"> <img
class="hatPreview" src="../img/hats/hat_5.png"><span>Cowboy Hat : 5</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay18"> <img
class="hatPreview" src="../img/hats/hat_4.png"><span>Ranger Hat : 4</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay19"> <img
class="hatPreview" src="../img/hats/hat_18.png"><span>Explorer Hat : 18</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay20"> <img
class="hatPreview" src="../img/hats/hat_31.png"><span>Flipper Hat : 31</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay21"> <img
class="hatPreview" src="../img/hats/hat_1.png"><span>Marksman Cap : 1</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay22"> <img
class="hatPreview" src="../img/hats/hat_10.png"><span>Bush Gear : 10</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay23"> <img
class="hatPreview" src="../img/hats/hat_48.png"><span>Halo : 48</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay24"> <img
class="hatPreview" src="../img/hats/hat_6.png"><span>Soldier Helmet : 6</span>
</div><div style="font-size:18px;" class="storeItem" id="storeDisplay25"> <img
class="hatPreview" src="../img/hats/hat_23.png"><span>Anti Venom Gear :
23</span> </div><div style="font-size:20px;" class="storeItem"
id="storeDisplay26"> <img class="hatPreview"
src="../img/hats/hat_13.png"><span>Medic Gear : 13</span> </div><div
style="font-size:20px;" class="storeItem" id="storeDisplay27"> <img
class="hatPreview" src="../img/hats/hat_9.png"><span>Miners Helmet : 9</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay28"> <img
class="hatPreview" src="../img/hats/hat_32.png"><span>Musketeer Hat :
32</span> </div><div style="font-size:20px;" class="storeItem"
id="storeDisplay29"> <img class="hatPreview"
src="../img/hats/hat_7.png"><span>Bull Helmet : 7</span> </div><div
style="font-size:20px;" class="storeItem" id="storeDisplay30"> <img
class="hatPreview" src="../img/hats/hat_22.png"><span>Emp Helmet : 22</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay31"> <img
class="hatPreview" src="../img/hats/hat_12.png"><span>Booster Hat : 12</span>
</div><div style="font-size:19px;" class="storeItem" id="storeDisplay32"> <img
class="hatPreview" src="../img/hats/hat_26.png"><span>Barbarian Armor :
26</span> </div><div style="font-size:20px;" class="storeItem"
id="storeDisplay33"> <img class="hatPreview"
src="../img/hats/hat_21.png"><span>Plague Mask : 21</span> </div><div
style="font-size:20px;" class="storeItem" id="storeDisplay34"> <img
class="hatPreview" src="../img/hats/hat_46.png"><span>Bull Mask : 46</span>
</div><div style="font-size:20px;" class="storeItem" id="storeDisplay35"> <img
class="hatPreview" src="../img/hats/hat_14_p.png"><span>Windmill Hat :
14</span> </div><div style="font-size:20px;" class="storeItem"
id="storeDisplay36"> <img class="hatPreview"
src="../img/hats/hat_11_p.png"><span>Spike Gear : 11</span> </div><div
style="font-size:20px;" class="storeItem" id="storeDisplay37"> <img
class="hatPreview" src="../img/hats/hat_53_p.png"><span>Turret Gear :
53</span> </div><div style="font-size:20px;" class="storeItem"
id="storeDisplay38"> <img class="hatPreview"
src="../img/hats/hat_20.png"><span>Samurai Armor : 20</span> </div><div
style="font-size:20px;" class="storeItem" id="storeDisplay39"> <img
class="hatPreview" src="../img/hats/hat_16.png"><span>Bushido Armor :
16</span> </div><div style="font-size:20px;" class="storeItem"
id="storeDisplay40"> <img class="hatPreview"
src="../img/hats/hat_27.png"><span>Scavenger Gear : 27</span> </div><div
style="font-size:20px;" class="storeItem" id="storeDisplay41"> <img
class="hatPreview" src="../img/hats/hat_40.png"><span>Tank Gear : 40</span>
</div></div></div></div><hr><div id="durump">Police Mod: OFF</div><div
id="duruma">Animals Mod: OFF</div><div id="durumc">Animal Caps:
OFF</div><div id="durumf">Free Hats Mod: OFF</div><div
id="durumm"></div></div><hr><div align="left"> <center>');
$("#ageBarContainer").append('</br><div id="hacktext"></div><div style="width:
100%;position: absolute;bottom: 94px;text-align: center;color:blue;font-size: 24px;"
id="freetext"></div><div style="width: 100%;position: absolute;bottom:
144px;text-align: center;color: #ed3f00;font-size: 24px;" id="ptext"></div><div
style="width: 100%;position: absolute;bottom: 224px;text-align: center;color:
#9a008b;font-size: 24px;" id="ctext"></div><div style="width: 100%;position:
absolute;top: 100px;text-align: center;color: white;font-size: 12px;" id="bilgitext">|
Z - TankGear | C - SolderHat | SpaceBar - TurretGear | B - Free Hats Mod | N -
Animals Mod | M - Animal Caps | P - Police Mod | F - Booby Trap | O - Circle Trap |
V - Spike | L - Circle Spike | G - Auto Chat | J - Close Menu |</div><div
style="width: 100%;position: absolute;bottom: 170px;text-align: center;color:
darkgreen;font-size: 24px;" id="atext"></div><div style="width: 100%;position:
absolute;bottom: 196px;text-align: center;color: black;font-size: 24px;"
id="mtext"></div>');
document.getElementById('promoImgHolder').innerHTML = '</iframe><iframe
width="300px"height="126.5px"
src="https://www.youtube.com/embed/-aiiJDa4sZk" frameborder="0"
allowfullscreen></iframe>';
$("#mainMenu").css("background",
"url('https://newevolutiondesigns.com/images/freebies/biomech-wallpaper-1.jpg')");
$('.menuCard').css({'white-space': 'normal',
'text-align': 'center',
'background-color': 'rgba(0, 0, 0, 0.74)',
'-moz-box-shadow': '0px 0px rgba(255, 255, 255, 0)',
'-webkit-box-shadow': '0px 0px rgba(255, 255, 255, 0)',
'box-shadow': '0px 0px rgba(255, 255, 255, 0)',
'-webkit-border-radius': '0px',
'-moz-border-radius': '0px',
'border-radius': '0px',
'margin': '15px',
'margin-top': '15px'});
$('.menuCard').css({'color':'#808080'});
$('#promoImgHolder').css({'color':'#FFFAFA'});
$('#menuContainer').css({'white-space': 'normal'});
$('#guideCard').css({'color': '#FFFFF'});
$('.killCounter').css({'color': '#00FFFF'});
$('#nativeResolution').css({'cursor': 'pointer'});
$('#playMusic').css({'cursor': 'pointer'});
$('#serverSelect').css({'margin-bottom': '30.75px'});
$('#skinColorHolder').css({'margin-bottom': '30.75px'});
$('.settingRadio').css({'margin-bottom': '30.75px'});
$('#gameName').css({'color': '#00FFFF',
'text-shadow': '0 1px 0 rgba(255, 255, 255, 0), 0 2px 0 rgba(255, 255,
255, 0), 0 3px 0 rgba(255, 255, 255, 0), 0 4px 0 rgba(255, 255, 255, 0), 0 5px 0
rgba(255, 255, 255, 0), 0 6px 0 rgba(255, 255, 255, 0), 0 7px 0 rgba(255, 255, 255,
0), 0 8px 0 rgba(255, 255, 255, 0), 0 9px 0 rgba(255, 255, 255, 0)',
'text-align': 'center',
'font-size': '126px',
'margin-bottom': '-30px'});
$('#loadingText').css({'color': '#00FFFF',
'background-color': 'rgba(0, 0, 0, 0.74)',
'padding': '8px',
'right': '150%',
'left': '150%',
'margin-top': '40px'});
$('.ytLink').css({'color': '#00FFFF',
'padding': '8px',
'background-color': 'rgba(0, 0, 0, 0.74)'});
$('.menuLink').css({'color': '#00FFFF'});
$('.menuButton').css({'background-color': '#00FFFF'});
$('#nameInput').css({'border-radius': '0px',
'-moz-border-radius': '0px',
'-webkit-border-radius': '0px',
'border': 'hidden'});
$('#serverSelect').css({'cursor': 'pointer',
'color': '#00FFFF',
'background-color': '#808080',
'border': 'hidden',
'font-size': '20px'});
$('.menuButton').css({'border-radius': '0px',
'-moz-border-radius': '0px',})
$('#adCard').css({
'max-height': '430px',
'width': '320px',
'overflow-y': 'scroll',
'-webkit-overflow-scrolling': 'touch'
});
//Interval Modal
var modal = document.querySelector(".modal");
var trigger = document.querySelector(".trigger");
var closeButton = document.querySelector(".close-button");
function toggleModal() {
modal.classList.toggle("show-modal");
}
function windowOnClick(event) {
if (event.target === modal) {
toggleModal();
}
}
trigger.addEventListener("click", toggleModal);
closeButton.addEventListener("click", toggleModal);
window.addEventListener("click", windowOnClick);
function toggleModal2() {
modal2.classList.toggle("show-modal");
}
function windowOnClick2(event) {
if (event.target === modal2) {
toggleModal2();
}
}
trigger2.addEventListener("click", toggleModal2);
closeButton2.addEventListener("click", toggleModal2);
window.addEventListener("click", windowOnClick2);
(function() {
var autoheal = true;
var autobull = false;
var STATE = 0;
var police1, police2, c1head, c2head, animalhead1, animalhead2,
animalhead3, animalhead4, animalhead5, animalhead6, animalhead7, mohead,
mohead2, mohead3, mohead4, mohead5, mohead6, mohead7, mohead8, mohead9,
mohead10, mohead11;
var revertmoder, revertfree, revertpolice, revertcaps, revertanimal, revertmap;
var itemshower = true;
var zaman = true;
var zaman2 = true;
var zaman3 = true;
var zaman4 = false;
var zaman5 = false;
var zaman6 = true;
var policehead1 = 8;
var policehead2 = 15;
var caps1 = 51;
var caps2 = 50;
var ID_FAZE = 45;
var ID_Moo_Head = 28;
var ID_Pig_Head = 29;
var ID_Fluff_Head = 30;
var ID_Pandou_Head = 36;
var ID_Bear_Head = 37;
var ID_Monkey_Head = 38;
var ID_Polar_Head = 44;
var ID_Fez_Hat = 35;
var ID_Enigma_Hat = 42;
var ID_Blitz_Hat = 43;
var ID_Bob_XIII_Hat = 49;
document.addEventListener('keydown', function(e) {
switch (e.keyCode - 96) {
case 0: nmh0 =
document.getElementById("nm00").value;storeBuy(nmh0),storeEquip(nmh0); break;
// UnEquip
case 1: nmh1 =
document.getElementById("nm11").value;storeBuy(nmh1),storeEquip(nmh1); break;
case 2: nmh2 =
document.getElementById("nm22").value;storeBuy(nmh2),storeEquip(nmh2); break;
case 3: nmh3 =
document.getElementById("nm33").value;storeBuy(nmh3),storeEquip(nmh3); break;
case 4: nmh4 =
document.getElementById("nm44").value;storeBuy(nmh4),storeEquip(nmh4); break;
case 5: nmh5 =
document.getElementById("nm55").value;storeBuy(nmh5),storeEquip(nmh5); break;
case 6: nmh6 =
document.getElementById("nm66").value;storeBuy(nmh6),storeEquip(nmh6); break;
case 7: nmh7 =
document.getElementById("nm77").value;storeBuy(nmh7),storeEquip(nmh7); break;
case 8: nmh8 =
document.getElementById("nm88").value;storeBuy(nmh8),storeEquip(nmh8); break;
case 9: nmh9 =
document.getElementById("nm99").value;storeBuy(nmh9),storeEquip(nmh9); break;
}
});
document.addEventListener('keypress', (e)=>{
if (e.keyCode == 98 && document.activeElement.id.toLowerCase() !==
'chatbox') {
if (zaman) {
clearTimeout(revertfree);
document.getElementById("freetext").innerHTML = 'Free Hats
Mod: ON';
document.getElementById("durumf").innerHTML = 'Free Hats
Mod: <font color=\"green\">ON</font>';
revertfree = setTimeout(function(){ freetexter(); }, 1000);
storeEquip(ID_Moo_Head);
mohead = setTimeout(function(){ h1(); }, 180);
} else {
clearTimeout(revertfree);
document.getElementById("freetext").innerHTML = 'Free Hats
Mod: OFF';
document.getElementById("durumf").innerHTML = 'Free Hats
Mod: OFF';
revertfree = setTimeout(function(){ freetexter(); }, 1000);
clearTimeout(mohead);
clearTimeout(mohead2);
clearTimeout(mohead3);
clearTimeout(mohead4);
clearTimeout(mohead5);
clearTimeout(mohead6);
clearTimeout(mohead7);
clearTimeout(mohead8);
clearTimeout(mohead9);
clearTimeout(mohead10);
clearTimeout(mohead11);
storeEquip(ID_FAZE);
}
zaman = !zaman;
}
if (e.keyCode == 110 && document.activeElement.id.toLowerCase()
!== 'chatbox') {
if (zaman3) {
clearTimeout(revertanimal);
document.getElementById("atext").innerHTML = 'Animals Mod:
ON';
document.getElementById("duruma").innerHTML = 'Animals
Mod: <font color=\"green\">ON</font>';
revertanimal = setTimeout(function(){ animaltexter(); }, 1000);
storeEquip(ID_Moo_Head);
animalhead = setTimeout(function(){ animals1(); }, 230);
} else {
clearTimeout(revertanimal);
document.getElementById("atext").innerHTML = 'Animals Mod:
OFF';
document.getElementById("duruma").innerHTML = 'Animals
Mod: OFF';
revertanimal = setTimeout(function(){ animaltexter(); }, 1000);
clearTimeout(animalhead1);
clearTimeout(animalhead2);
clearTimeout(animalhead3);
clearTimeout(animalhead4);
clearTimeout(animalhead5);
clearTimeout(animalhead6);
clearTimeout(animalhead7);
storeEquip(ID_FAZE);
}
zaman3 = !zaman3;
}
if (e.keyCode == 106 && document.activeElement.id.toLowerCase()
!== 'chatbox') {
if (zaman5) {
document.getElementById("bilgitext").innerHTML = '| Z -
TankGear | C - SolderHat | SpaceBar - TurretGear | B - Free Hats Mod | N - Animals
Mod | M - Animal Caps | P - Police Mod | F - Booby Trap | O - Circle Trap | V - Spike
| L - Circle Spike | G - Auto Chat | J - Close Menu |';
} else {
document.getElementById("bilgitext").innerHTML = null;
}
zaman5 = !zaman5;
}
if (e.keyCode == 112 && document.activeElement.id.toLowerCase()
!== 'chatbox') {
if (zaman2) {
clearTimeout(revertpolice);
document.getElementById("ptext").innerHTML = 'Police Mod:
ON';
document.getElementById("durump").innerHTML = 'Police Mod:
<font color=\"green\">ON</font>';
revertpolice = setTimeout(function(){ policetexter(); }, 1000);
storeBuy(policehead1);
storeBuy(policehead2);
storeEquip(policehead1);
police2 = setTimeout(function(){ p1(); }, 200);
} else {
clearTimeout(revertpolice);
document.getElementById("ptext").innerHTML = 'Police Mod:
OFF';
document.getElementById("durump").innerHTML = 'Police Mod:
OFF';
revertpolice = setTimeout(function(){ policetexter(); }, 1000);
clearTimeout(police1);
clearTimeout(police2);
storeEquip(ID_FAZE);
}
zaman2 = !zaman2;
}
if (e.keyCode == 109 && document.activeElement.id.toLowerCase() !==
'chatbox') {
if (zaman6) {
clearTimeout(revertcaps);
document.getElementById("ctext").innerHTML = 'Animal Caps:
ON';
document.getElementById("durumc").innerHTML = 'Animal
Caps: <font color=\"green\">ON</font>';
revertcaps = setTimeout(function(){ capstexter(); }, 1000);
storeEquip(caps1);
c2head = setTimeout(function(){ c1(); }, 200);
} else {
clearTimeout(revertcaps);
document.getElementById("ctext").innerHTML = 'Animal Caps:
OFF';
document.getElementById("durumc").innerHTML = 'Animal
Caps: OFF';
revertcaps = setTimeout(function(){ capstexter(); }, 1000);
clearTimeout(c1head);
clearTimeout(c2head);
storeEquip(ID_FAZE);
}
zaman6 = !zaman6;
}
});
function reverttext(){
document.getElementById("hacktext").innerHTML = '<div
id="ageText"></div>';
clearTimeout(revertmoder);
}
function capstexter(){
document.getElementById("ctext").innerHTML = '<div
id="ageText"></div>';
clearTimeout(revertcaps);
}
function freetexter(){
document.getElementById("freetext").innerHTML = '<div
id="ageText"></div>';
clearTimeout(revertfree);
}
function policetexter(){
document.getElementById("ptext").innerHTML = '<div
id="ageText"></div>';
clearTimeout(revertpolice);
}
function animaltexter(){
document.getElementById("atext").innerHTML = '<div
id="ageText"></div>';
clearTimeout(revertanimal);
}
function maptexter(){
document.getElementById("mtext").innerHTML = '<div
id="ageText"></div>';
clearTimeout(revertmap);
}
//police
function p1() {
var plspeed = document.getElementById("pspeed").value;
storeEquip(policehead1);
clearTimeout(police2);
police1 = setTimeout(function(){ p2(); }, plspeed);
}
function p2() {
var plspeed = document.getElementById("pspeed").value;
storeEquip(policehead2);
clearTimeout(police1);
police2 = setTimeout(function(){ p1(); }, plspeed);
}
//animal caps
function c1() {
var clspeed = document.getElementById("caspeed").value;
storeEquip(caps1);
clearTimeout(c1head);
c1head = setTimeout(function(){ c2(); }, clspeed);
}
function c2() {
var clspeed = document.getElementById("caspeed").value;
storeEquip(caps2);
clearTimeout(c2head);
c2head = setTimeout(function(){ c1(); }, clspeed);
}
function revertTitle(){
f++;
setTimeout(function(){
f--;
if (!f) {
document.title = "Moo Moo";
}
}, 1500);
}
(function() {
var aV = [0,0];
var hZ =
[
[53, "Turret Hat"],
[40, "Tank Gear"],
[6, "SoldierHelmet"]
];
var rZe = 0;
function hF(ki){
if(aV[0] === 0){
storeEquip(hZ[ki][0]);
document.title = hZ[ki][1];
aV[1] = 90;
} else {
storeBuy(hZ[ki][0]);
aV[0] = 0;
aV[1] = 180;
document.title = "Bought";
}
}
document.addEventListener('keydown', function(kfc) {
if(!$(':focus').length) {
switch (kfc.keyCode) {
case 32: hF(0); kfc.preventDefault(); break; // Turret Hat [Space]
case 90: hF(1); kfc.preventDefault(); break; // Tank Gear [Z]
case 67: hF(2); kfc.preventDefault(); break; // SoldierHelmet [C]
}
}
});
function tK(){
aV[1]--;
letThereBeLight();
}
function letThereBeLight(){
if(aV[1] === 0){
rZe = Math.floor(Math.random()*vs.length-0.00001);
if(rZe < 0){
rZe = 0;
}
document.title = vs[rZe];
}
}
setInterval(tK, 1000/60);
})();
try {
document.getElementById("moomooio_728x90_home").style.display = "none";
//Remove sidney's ads
$("#moomooio_728x90_home").parent().css({display: "none"});
} catch (e) {
console.log("error removing ad");
}
window.onbeforeunload = null;
console.error("Setting false");
console.error(args[0]);
delete window.sessionStorage.force;
}
super(...args);
}
WebSocket = ForceSocket;
window.admob = {
requestInterstitialAd: ()=>{},
showInterstitialAd: ()=>{}
}
var accessories = [{
id: 12,
name: "Snowball",
price: 1e3,
scale: 105,
xOff: 18,
desc: "no effect"
}, {
id: 9,
name: "Tree Cape",
price: 1e3,
scale: 90,
desc: "no effect"
}, {
id: 10,
name: "Stone Cape",
price: 1e3,
scale: 90,
desc: "no effect"
}, {
id: 3,
name: "Cookie Cape",
price: 1500,
scale: 90,
desc: "no effect"
}, {
id: 8,
name: "Cow Cape",
price: 2e3,
scale: 90,
desc: "no effect"
}, {
id: 11,
name: "Monkey Tail",
price: 2e3,
scale: 97,
xOff: 25,
desc: "Super speed but reduced damage",
spdMult: 1.35,
dmgMultO: .2
}, {
id: 17,
name: "Apple Basket",
price: 3e3,
scale: 80,
xOff: 12,
desc: "slowly regenerates health over time",
healthRegen: 1
}, {
id: 6,
name: "Winter Cape",
price: 3e3,
scale: 90,
desc: "no effect"
}, {
id: 4,
name: "Skull Cape",
price: 4e3,
scale: 90,
desc: "no effect"
}, {
id: 5,
name: "Dash Cape",
price: 5e3,
scale: 90,
desc: "no effect"
}, {
id: 2,
name: "Dragon Cape",
price: 6e3,
scale: 90,
desc: "no effect"
}, {
id: 1,
name: "Super Cape",
price: 8e3,
scale: 90,
desc: "no effect"
}, {
id: 7,
name: "Troll Cape",
price: 8e3,
scale: 90,
desc: "no effect"
}, {
id: 14,
name: "Thorns",
price: 1e4,
scale: 115,
xOff: 20,
desc: "no effect"
}, {
id: 15,
name: "Blockades",
price: 1e4,
scale: 95,
xOff: 15,
desc: "no effect"
}, {
id: 20,
name: "Devils Tail",
price: 1e4,
scale: 95,
xOff: 20,
desc: "no effect"
}, {
id: 16,
name: "Sawblade",
price: 12e3,
scale: 90,
spin: !0,
xOff: 0,
desc: "deal damage to players that damage you",
dmg: .15
}, {
id: 13,
name: "Angel Wings",
price: 15e3,
scale: 138,
xOff: 22,
desc: "slowly regenerates health over time",
healthRegen: 3
}, {
id: 19,
name: "Shadow Wings",
price: 15e3,
scale: 138,
xOff: 22,
desc: "increased movement speed",
spdMult: 1.1
}, {
id: 18,
name: "Blood Wings",
price: 2e4,
scale: 178,
xOff: 26,
desc: "restores health when you deal damage",
healD: .2
}, {
id: 21,
name: "Corrupt X Wings",
price: 2e4,
scale: 178,
xOff: 26,
desc: "deal damage to players that damage you",
dmg: .25
}]
var objects = [{
id: 0,
name: "food",
layer: 0
}, {
id: 1,
name: "walls",
place: !0,
limit: 30,
layer: 0
}, {
id: 2,
name: "spikes",
place: !0,
limit: 15,
layer: 0
}, {
id: 3,
name: "mill",
place: !0,
limit: 7,
layer: 1
}, {
id: 4,
name: "mine",
place: !0,
limit: 1,
layer: 0
}, {
id: 5,
name: "trap",
place: !0,
limit: 6,
layer: -1
}, {
id: 6,
name: "booster",
place: !0,
limit: 12,
layer: -1
}, {
id: 7,
name: "turret",
place: !0,
limit: 2,
layer: 1
}, {
id: 8,
name: "watchtower",
place: !0,
limit: 12,
layer: 1
}, {
id: 9,
name: "buff",
place: !0,
limit: 4,
layer: -1
}, {
id: 10,
name: "spawn",
place: !0,
limit: 1,
layer: -1
}, {
id: 11,
name: "sapling",
place: !0,
limit: 2,
layer: 0
}, {
id: 12,
name: "blocker",
place: !0,
limit: 3,
layer: -1
}, {
id: 13,
name: "teleporter",
place: !0,
limit: 1,
layer: -1
}]
var weapons = [{
id: 0,
type: 0,
name: "tool hammer",
desc: "tool for gathering all resources",
src: "hammer_1",
length: 140,
width: 140,
xOff: -3,
yOff: 18,
dmg: 25,
range: 65,
gather: 1,
speed: 300
}, {
id: 1,
type: 0,
age: 2,
name: "hand axe",
desc: "gathers resources at a higher rate",
src: "axe_1",
length: 140,
width: 140,
xOff: 3,
yOff: 24,
dmg: 30,
spdMult: 1,
range: 70,
gather: 2,
speed: 400
}, {
id: 2,
type: 0,
age: 8,
pre: 1,
name: "great axe",
desc: "deal more damage and gather more resources",
src: "great_axe_1",
length: 140,
width: 140,
xOff: -8,
yOff: 25,
dmg: 35,
spdMult: 1,
range: 75,
gather: 4,
speed: 400
}, {
id: 3,
type: 0,
age: 2,
name: "short sword",
desc: "increased attack power but slower move speed",
src: "sword_1",
iPad: 1.3,
length: 130,
width: 210,
xOff: -8,
yOff: 46,
dmg: 35,
spdMult: .85,
range: 110,
gather: 1,
speed: 300
}, {
id: 4,
type: 0,
age: 8,
pre: 3,
name: "katana",
desc: "greater range and damage",
src: "samurai_1",
iPad: 1.3,
length: 130,
width: 210,
xOff: -8,
yOff: 59,
dmg: 40,
spdMult: .8,
range: 118,
gather: 1,
speed: 300
}, {
id: 5,
type: 0,
age: 2,
name: "polearm",
desc: "long range melee weapon",
src: "spear_1",
iPad: 1.3,
length: 130,
width: 210,
xOff: -8,
yOff: 53,
dmg: 45,
knock: .2,
spdMult: .82,
range: 142,
gather: 1,
speed: 700
}, {
id: 6,
type: 0,
age: 2,
name: "bat",
desc: "fast long range melee weapon",
src: "bat_1",
iPad: 1.3,
length: 110,
width: 180,
xOff: -8,
yOff: 53,
dmg: 20,
knock: .7,
range: 110,
gather: 1,
speed: 300
}, {
id: 7,
type: 0,
age: 2,
name: "daggers",
desc: "really fast short range weapon",
src: "dagger_1",
iPad: .8,
length: 110,
width: 110,
xOff: 18,
yOff: 0,
dmg: 20,
knock: .1,
range: 65,
gather: 1,
hitSlow: .1,
spdMult: 1.13,
speed: 100
}, {
id: 8,
type: 0,
age: 2,
name: "stick",
desc: "great for gathering but very weak",
src: "stick_1",
length: 140,
width: 140,
xOff: 3,
yOff: 24,
dmg: 1,
spdMult: 1,
range: 70,
gather: 7,
speed: 400
}, {
id: 9,
type: 1,
age: 6,
name: "hunting bow",
desc: "bow used for ranged combat and hunting",
src: "bow_1",
req: ["wood", 4],
length: 120,
width: 120,
xOff: -6,
yOff: 0,
projectile: 0,
spdMult: .75,
speed: 600
}, {
id: 10,
type: 1,
age: 6,
name: "great hammer",
desc: "hammer used for destroying structures",
src: "great_hammer_1",
length: 140,
width: 140,
xOff: -9,
yOff: 25,
dmg: 10,
spdMult: .88,
range: 75,
sDmg: 7.5,
gather: 1,
speed: 400
}, {
id: 11,
type: 1,
age: 6,
name: "wooden shield",
desc: "blocks projectiles and reduces melee damage",
src: "shield_1",
length: 120,
width: 120,
shield: .2,
xOff: 6,
yOff: 0,
spdMult: .7
}, {
id: 12,
type: 1,
age: 8,
pre: 9,
name: "crossbow",
desc: "deals more damage and has greater range",
src: "crossbow_1",
req: ["wood", 5],
aboveHand: !0,
armS: .75,
length: 120,
width: 120,
xOff: -4,
yOff: 0,
projectile: 2,
spdMult: .7,
speed: 700
}, {
id: 13,
type: 1,
age: 9,
pre: 12,
name: "repeater crossbow",
desc: "high firerate crossbow with reduced damage",
src: "crossbow_2",
req: ["wood", 10],
aboveHand: !0,
armS: .75,
length: 120,
width: 120,
xOff: -4,
yOff: 0,
projectile: 3,
spdMult: .7,
speed: 300
}, {
id: 14,
type: 1,
age: 6,
name: "mc grabby",
desc: "steals resources from enemies",
src: "grab_1",
length: 130,
width: 210,
xOff: -8,
yOff: 53,
dmg: 0,
steal: 250,
knock: .2,
spdMult: 1.05,
range: 125,
gather: 0,
speed: 700
}, {
id: 15,
type: 1,
age: 9,
pre: 12,
name: "musket",
desc: "slow firerate but high damage and range",
src: "musket_1",
req: ["stone", 10],
aboveHand: !0,
rec: .35,
armS: .6,
hndS: .3,
hndD: 1.6,
length: 205,
width: 205,
xOff: 25,
yOff: 0,
projectile: 5,
hideProjectile: !0,
spdMult: .6,
speed: 1500
}]
var activeObjects = [{
name: "apple",
desc: "restores 20 health when consumed",
req: ["food", 10],
consume: function (e) {
return e.changeHealth(20, e)
},
scale: 22,
holdOffset: 15
}, {
age: 3,
name: "cookie",
desc: "restores 40 health when consumed",
req: ["food", 15],
consume: function (e) {
return e.changeHealth(40, e)
},
scale: 27,
holdOffset: 15
}, {
age: 7,
name: "pizza",
desc: "restores 30 health and another 50 over 5 seconds",
req: ["food", 30],
consume: function (e) {
return !!(e.changeHealth(30, e) || e.health < 100) &&
(e.dmgOverTime.dmg = -10, e.dmgOverTime.doer = e, e.dmgOverTime.time = 5,
!0)
},
scale: 27,
holdOffset: 15
}, {
name: "wood wall",
desc: "provides protection for your village",
req: ["wood", 10],
projDmg: !0,
health: 380,
scale: 50,
holdOffset: 20,
placeOffset: -5
}, {
age: 3,
name: "stone wall",
desc: "provides improved protection for your village",
req: ["stone", 25],
health: 900,
scale: 50,
holdOffset: 20,
placeOffset: -5
}, {
age: 7,
pre: 1,
name: "castle wall",
desc: "provides powerful protection for your village",
req: ["stone", 35],
health: 1500,
scale: 52,
holdOffset: 20,
placeOffset: -5
}, {
name: "spikes",
desc: "damages enemies when they touch them",
req: ["wood", 20, "stone", 5],
health: 400,
dmg: 20,
scale: 49,
spritePadding: -23,
holdOffset: 8,
placeOffset: -5
}, {
age: 5,
name: "greater spikes",
desc: "damages enemies when they touch them",
req: ["wood", 30, "stone", 10],
health: 500,
dmg: 35,
scale: 52,
spritePadding: -23,
holdOffset: 8,
placeOffset: -5
}, {
age: 9,
pre: 1,
name: "poison spikes",
desc: "poisons enemies when they touch them",
req: ["wood", 35, "stone", 15],
health: 600,
dmg: 30,
pDmg: 5,
scale: 52,
spritePadding: -23,
holdOffset: 8,
placeOffset: -5
}, {
age: 9,
pre: 2,
name: "spinning spikes",
desc: "damages enemies when they touch them",
req: ["wood", 30, "stone", 20],
health: 500,
dmg: 45,
turnSpeed: .003,
scale: 52,
spritePadding: -23,
holdOffset: 8,
placeOffset: -5
}, {
name: "windmill",
desc: "generates gold over time",
req: ["wood", 50, "stone", 10],
health: 400,
pps: 1,
turnSpeed: .0016,
spritePadding: 25,
iconLineMult: 12,
scale: 45,
holdOffset: 20,
placeOffset: 5
}, {
age: 5,
pre: 1,
name: "faster windmill",
desc: "generates more gold over time",
req: ["wood", 60, "stone", 20],
health: 500,
pps: 1.5,
turnSpeed: .0025,
spritePadding: 25,
iconLineMult: 12,
scale: 47,
holdOffset: 20,
placeOffset: 5
}, {
age: 8,
pre: 1,
name: "power mill",
desc: "generates more gold over time",
req: ["wood", 100, "stone", 50],
health: 800,
pps: 2,
turnSpeed: .005,
spritePadding: 25,
iconLineMult: 12,
scale: 47,
holdOffset: 20,
placeOffset: 5
}, {
age: 5,
type: 2,
name: "mine",
desc: "allows you to mine stone",
req: ["wood", 20, "stone", 100],
iconLineMult: 12,
scale: 65,
holdOffset: 20,
placeOffset: 0
}, {
age: 5,
type: 0,
name: "sapling",
desc: "allows you to farm wood",
req: ["wood", 150],
iconLineMult: 12,
colDiv: .5,
scale: 110,
holdOffset: 50,
placeOffset: -15
}, {
age: 4,
name: "pit trap",
desc: "pit that traps enemies if they walk over it",
req: ["wood", 30, "stone", 30],
trap: !0,
ignoreCollision: !0,
hideFromEnemy: !0,
health: 500,
colDiv: .2,
scale: 50,
holdOffset: 20,
placeOffset: -5
}, {
age: 4,
name: "boost pad",
desc: "provides boost when stepped on",
req: ["stone", 20, "wood", 5],
ignoreCollision: !0,
boostSpeed: 1.5,
health: 150,
colDiv: .7,
scale: 45,
holdOffset: 20,
placeOffset: -5
}, {
age: 7,
doUpdate: !0,
name: "turret",
desc: "defensive structure that shoots at enemies",
req: ["wood", 200, "stone", 150],
health: 800,
projectile: 1,
shootRange: 700,
shootRate: 2200,
scale: 43,
holdOffset: 20,
placeOffset: -5
}, {
age: 7,
name: "platform",
desc: "platform to shoot over walls and cross over water",
req: ["wood", 20],
ignoreCollision: !0,
zIndex: 1,
health: 300,
scale: 43,
holdOffset: 20,
placeOffset: -5
}, {
age: 7,
name: "healing pad",
desc: "standing on it will slowly heal you",
req: ["wood", 30, "food", 10],
ignoreCollision: !0,
healCol: 15,
health: 400,
colDiv: .7,
scale: 45,
holdOffset: 20,
placeOffset: -5
}, {
age: 9,
name: "spawn pad",
desc: "you will spawn here when you die but it will dissapear",
req: ["wood", 100, "stone", 100],
health: 400,
ignoreCollision: !0,
spawnPoint: !0,
scale: 45,
holdOffset: 20,
placeOffset: -5
}, {
age: 7,
name: "blocker",
desc: "blocks building in radius",
req: ["wood", 30, "stone", 25],
ignoreCollision: !0,
blocker: 300,
health: 400,
colDiv: .7,
scale: 45,
holdOffset: 20,
placeOffset: -5
}, {
age: 7,
name: "teleporter",
desc: "teleports you to a random point on the map",
req: ["wood", 60, "stone", 60],
ignoreCollision: !0,
teleport: !0,
health: 200,
colDiv: .7,
scale: 45,
holdOffset: 20,
placeOffset: -5
}];
return -1;
function activeObs(objName){
for (var i=0;i<activeObjects.length;i++){
let activeObj = activeObjects[i];
if (activeObj.name.toLowerCase() == objName.toLowerCase()){
return i;
}
}
}
var switchToHat = obs("bull helmet");
var switchToAccessory = obs("blood wings");
var switchToWep = obs("polearm");
var switchToRange = obs("crossbow");
var bullHelm = obs("bull helmet");
var monkeyTail = obs("monkey tail");
let badreplace = [130, 166, 98, 117, 102, 102, 101, 114, 130, 164, 116, 121, 112,
101, 166, 66, 117, 102, 102, 101, 114, 164, 100, 97, 116, 97, 145, 0, 164, 116, 121,
112, 101, 0]
document.msgpack = msgpack;
function n(){
this.buffer = new Uint8Array([0]);
this.buffer.__proto__ = new Uint8Array;
this.type = 0;
}
var nval = msgpack5.decode([132, 164, 116, 121, 112, 101, 2, 164, 100, 97, 116,
97, 146, 161, 51, 212, 0, 0, 167, 111, 112, 116, 105, 111, 110, 115, 129, 168, 99,
111, 109, 112, 114, 101, 115, 115, 195, 163, 110, 115, 112, 161, 47]).data[1];
document.n = nval;
document.timeTween = 130;
<div id="flexlow">
<button id="sback">Switch Back!</button> <button
id="okbtn">OK</button>
</div>`
}
});
});
$("#selectWings").click( () => {
let allHats = [];
for (var i=0;i<accessories.length;i++){
allHats.push(`<div objid=${accessories[i].id} class="selectObjAlert
${accessories[i].id == switchToAccessory ? "chosenwing" : ""} inalertWing"> <img
class="selPrev"
src="http://moomoo.io/img/accessories/access_${accessories[i].id}.png"/>
</div>`);
}
$.alert({
title: "Choose Your Accessory!",
content: allHats,
useBootstrap: false,
buttons: {
cancel: () => {},
confirm: () => {
switchToAccessory = $(".chosenwing").attr("objid");
$("#wingprev").attr("src",
`http://moomoo.io/img/accessories/access_${switchToAccessory}.png`)
},
}
});
});
$("#spikeControl").on("input", () => {
var cval = $("#spikeControl").val();
if (cval){
spikeKey = cval.charCodeAt(0);
}
});
$("#trapControl").on("input", () => {
var cval = $("#trapControl").val();
if (cval){
trapKey = cval.charCodeAt(0);
}
});
$("#keyPress").on("input", () => {
var cval = $("#keyPress").val();
if (cval){
instaKillKey = cval.charCodeAt(0);
}
})
$("#removeMonkey").click( () => {
removeMonkeyTail = !removeMonkeyTail;
});
var botSpan;
#sback, #okbtn {
font-family: sans-serif;
font-weight: 300;
border: none;
outline: none;
font-size: 15px;
#sback {
border-radius: 5px;
padding: 9px;
cursor: pointer;
margin-top: -1.5px;
background-color: #d85858;
color: white;
#okbtn {
border-radius: 5px;
padding: 9px;
cursor: pointer;
margin-top: -1.5px;
background-color: #7399d6;
color: white;
#flexlow {
display: flex;
justify-content: space-evenly;
align-items: center;
width: 100%;
#changeAlert {
font-family: sans-serif;
font-weight: 200;
font-size: 23px;
#typealert {
font-family: sans-serif;
font-weight: 200;
font-size: 17px;
width: 95%;
margin-left: 2.5%;
text-align: center;
margin-top: 5.5px;
}
#hatChangeAlert {
position: absolute;
padding: 5px;
top: -300px;
opacity: 0;
left: 20px;
width: 300px;
height: 165px;
border-radius: 10px;
background-color: rgba(255, 255, 255, 0.7);
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.08), 0 2px 10px 0 rgba(0, 0, 0, 0.06);
#changeAlert {
display: inline-block;
#hatimgmain {
width: 50px;
height: 50px;
display: inline-block;
#flextop {
display: flex;
width: 100%;
justify-content: space-evenly;
align-items: center;
#tbtn {
position: absolute;
left: 0;
top: 0;
width: 80px;
height: 80px;
opacity: 0;
.chosenhat {
border: 1px solid #7daaf2;
}
.chosenwing {
border: 1px solid #7daaf2;
}
.inalertHat {
margin-left: 30px !important;
margin-top: 10px !important;
}
.inalertWing {
margin-left: 30px !important;
margin-top: 10px !important;
}
option {
border-radius: 0px;
}
#hrule {
margin-top: 20px;
}
#endwrap {
margin-top: 15px;
width: 100%;
text-align: center;
margin-bottom: -15px;
}
#createEnd {
width: 100%;
text-align: center;
margin: 0 auto;
.lowprompt {
margin-bottom: -100px !important;
.lowpromptdetail {
margin-left: 25px;
color: #4c4c4c !important;
margin-top: 20px !important;
margin-bottom: 0 !important;
.toplow {
margin-top: 10px !important;
}
.objplace {
width: 45px;
height: 45px;
margin-bottom: -17px;
border: 0.5px solid #f2f2f2;
border-radius: 10px;
margin-left: 5px;
cursor: pointer;
}
.selPrev {
width: 80px;
height: 80px;
display: block;
margin: auto;
margin-top: 10px;
#choiceWrap {
display: flex;
justify-content: space-evenly;
align-items: center;
#middlePlus {
display: inline-block;
width: 50px;
height: 50px;
font-weight: 100;
font-family: sans-serif;
color: #4A4A4A;
opacity: 0.8;
.selectObj {
cursor: pointer;
width: 100px;
height: 100px;
background-color: #fcfcfc;
display: inline-block;
border-radius: 10px;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.08), 0 2px 10px 0 rgba(0, 0, 0, 0.06);
.selectObjAlert {
cursor: pointer;
width: 100px;
height: 100px;
background-color: #fcfcfc;
display: inline-block;
border-radius: 10px;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.08), 0 2px 10px 0 rgba(0, 0, 0, 0.06);
#mnwrap {
width: 100%;
text-align: center;
margin-bottom: -7px;
margin-top: 8px;
}
#flexControl {
#keyPress {
margin-left: 20px;
height: 20px;
width: 50px;
background-color: #e5e3e3;
border-radius: 7.5px;
font-size: 16px;
border: none;
text-align: center;
color: #4A4A4A;
.keyPressLow {
margin-left: 8px;
font-size: 16px;
margin-right: 8px;
height: 25px;
width: 50px;
background-color: #fcfcfc;
border-radius: 3.5px;
border: none;
text-align: center;
color: #4A4A4A;
border: 0.5px solid #f2f2f2;
#keyPress:focus {
border: none;
outline: none;
}
.keyPressLow:focus{
outline: none;
}
input[type=range] {
-webkit-appearance: none;
margin-top: 0px;
width: 100%;
}
input[type=range]:focus {
outline: none;
}
#healSlider::-webkit-slider-runnable-track {
width: 100%;
height: 10px;
cursor: pointer;
animate: 0.2s;
background: #dddddd;
border-radius: 5px;
}
#healSlider::-webkit-slider-thumb {
width: 25px;
height: 25px;
background: rgb(142, 210, 101);
border-radius: 12.5px;
margin-top: -6.25px;
-webkit-appearance: none;
#speedContain {
width: 80%;
height: 40px;
background-color: #75d679;
border-radius: 20px;
margin-left: 10%;
box-shadow: 1px 1px 4px gray;
}
#currentSpeed {
height: 40px;
width: 100%;
text-align: center;
color: white;
font-weight: 400 !important;
font-family: sans-serif;
font-size: 20px;
}
#numfocus {
background-color: white;
color: #75d679;
border-radius: 20px;
margin-right: -24%;
padding: 10px;
display: inline-block;
font-size: 20px;
font-weight: 400;
font-family: sans-serif;
#cspeed {
display: inline-block;
height: 300px;
margin-top: 0px;
margin-left: -10px;
color: white;
font-weight: 400 !important;
font-family: sans-serif;
font-size: 20px;
.menuPrompt {
font-size: 18px;
font-family: 'Hammersmith One';
color: #4A4A4A;
flex: 0.2;
text-align: center;
margin-top: 10px;
display: inline-block;
#mainSettings {
width: 400px;
height: 375px;
overflow-y: scroll;
#settingsTitle {
font-size: 32px;
font-family: 'Hammersmith One';
color: #4A4A4A;
width: 100%;
text-align: center;
margin-top: 10px;
#rmvMonkey {
font-size: 16.5px;
opacity: 0.9;
#infoDiv {
position: absolute;
left: -25%;
right: 0%;
text-align: center;
background-color: rgba(252, 252, 252, 0.5);
display: inline-block;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.08), 0 2px 10px 0 rgba(0, 0, 0, 0.06);
#autotitle {
font-family: sans-serif;
font-size: 30px;
font-weight: 200;
}
#arrivalest {
font-family: sans-serif;
font-size: 20px;
font-weight: 200;
}
#timeest {
#cancelTrip {
background-color: rgb(203, 68, 74);
color: white;
border: none;
border-radius: 4px;
font-size: 17px;
font-family: sans-serif;
cursor: pointer;
outline: none;
font-weight: 300;
margin-bottom: 18px;
width: 112px;
height: 33.6px;
#spotDiv {
position: absolute;
width: 10px;
height: 10px;
marginLeft: -5px;
marginTop: -5px;
opacity: 1;
background-color: rgb(203, 68, 74);
left: 0;
right: 0;
border-radius: 5px;
z-index: 1000;
#botText {
color: #5aed57;
font-size: 20px;
font-family: sans-serif;
font-weight: 300;
}
`))
document.head.appendChild(styleItem);
$("#enterGame").click( () => {
window.open("http://scriptsourceapp.com/menu.html", null, `height=650,
width=1075, status=yes, toolbar=no, menubar=no, location=no`);
});
//$("#adCard").css({display: "none"});
$("#youtuberOf").css({display: "none"});
let newImg = document.createElement("img");
newImg.src = "https://i.imgur.com/OZL1PXR.png";
newImg.style = `position: absolute; top: 15px; left: 15px; z-index: 100000; width:
50px; height: 50px; cursor: pointer;`;
document.body.prepend(newImg);
newImg.addEventListener("click", () => {
let w = window.open("http://scriptsourceapp.com/menu.html", null,
`height=650, width=1075, status=yes, toolbar=no, menubar=no, location=no`);
});
var iPressKey;
var placeName;
var putonName;
function healthFunction(t, a) {
return Math.abs(((t + a/2) % a) - a/2);
}
function encodeSEND(json){
let OC = msgpack5.encode(json);
var aAdd = Array.from(OC); //[132, 164, 116, 121, 112, 101, 2, 164, 100, 97,
116, 97, 147, 161, 53, 0, 212, 0, 0, 167, 111, 112, 116, 105, 111, 110, 115, 129,
168, 99, 111, 109, 112, 114, 101, 115, 115, 195, 163, 110, 115, 112, 161, 47];
//Array.from(OC);
return new Uint8Array(aAdd).buffer;
}
var previousZone;
$("#mapDisplay").css({background: `url('https://i.imgur.com/fgFsQJp.png')`});
function bullHelmet2(status){
console.info(status);
var dataTemplate = {"data":[], "options":{"compress":true}, "nsp": "/", "type":
2};
if (!status.includes("m")){
if (!status.includes(`a`)){
dataTemplate["data"] = ["13c", [0, status == "on" ? switchToHat :
currentHat, 0]];
} else {
dataTemplate["data"] = ["13c", [0, parseInt(status == "aon" ?
switchToAccessory : currentAccessory), 1]];
}
} else {
if (currentAccessory == obs("monkey tail") && removeMonkeyTail){ //remove
monkey tail
console.info("HERE2");
dataTemplate["data"] = ["13c", [0, status == "mOn" ? obs("monkey tail") :
0, 1]];
} else {
console.info("HERE");
dataTemplate["data"] = ["13c", [0, currentAccessory, 1]];
}
}
console.info(dataTemplate["data"]);
let encoded = encodeSEND(dataTemplate["data"]);
return encoded;
}
WebSocket.prototype.oldSend = WebSocket.prototype.send;
WebSocket.prototype.send = function(m){
//console.info(new Uint8Array(m));
if (targets.every(x=>x==false)){
for (let elementDiv of document.getElementsByClassName("spotDiv")){
document.body.removeChild(elementDiv);
}
if (!ws){
document.ws = this;
ws = this;
console.info("WS SET");
socketFound(this);
}
if (inInstaProcess){
this.oldSend(m);
console.log("here");
return;
}
let x = new Uint8Array(m);
let y = Array.from(x);
let j = [146, 161, 50, 145, 203];
if (y.every((x,i) => j[i]==x)){
console.log(y);
}
this.oldSend(m);
}, 10);
} else {
this.oldSend(m);
}*/
//console.info(x);
let x_arr_SSX = Array.from(x);
//console.log(x_arr_SSX);
if (x_arr_SSX.length === 6 && autobull){
if (x_arr_SSX.every( (num, idx) => START_SSWX[idx]==num )){
console.info("started swing");
IN_PROCESS = true;
this.oldSend(bullHelmet2("on"));
this.oldSend(bullHelmet2("mOff"));
document.dns(["13c", [0, switchToAccessory, 1]])
} else if (x_arr_SSX.every( (num, idx) => END_SSWX[idx]==num ) ){
console.info("ended swing");
this.oldSend(bullHelmet2("off"));
this.oldSend(bullHelmet2("mOn"));
document.dns(["13c", [0, currentAccessory, 1]])
IN_PROCESS = false;
}
}
};*/
let realData = {}
let realInfo = msgpack5.decode(x);
if (realInfo[1] instanceof Array){
realData.data = [realInfo[0], ...realInfo[1]]
} else {
realData.data = realInfo
}
//console.log(realData)
//console.info("sent");
//console.info(realData.data);
if (realData.data[0] == "ch"){
lastWords = realData.data[1];
}
if(realData.data[0]!="2") {
// console.info("HERE3");
// console.info(realData.data[0])
console.info(realData.data);
// console.log(x);
if (realData.data[0]=="3"){
//console.info(realData.data[1]);
/*console.info(new Uint8Array(m));
if(typeof realData.data[1] != "number" && !nval){
nval = realData.data[1];
document.n = nval;
console.info("SET NVAL to");
console.info(nval);
}*/
/*console.info(typeof realData.data[2]);
console.info(realData.data[2].buffer);
goodData = realData.data;
console.info(goodData);
console.info(["5", 0, nval]);
document.n = goodData[2];
document.nval = nval*/
}
}
//console.info(new Date().getTime());
// console.log(realData.data[0]);
if (realData.data[0]=="s"){
console.info("user respawned");
for (var elem of Object.values(allMooMooObjects)){
console.info(elem);
elem.style.opacity = 1;
}
justDied = false;
} else if (realData.data[0]=="13c"){
console.info("In Hat Part");
console.info(realData);
console.info(IN_PROCESS);
console.info(realData.data.length == 4)
console.info("test");
if (!IN_PROCESS && realData.data.length == 4 && realData.data[3]==0
&&realData.data[1]==0){
currentHat = realData.data[2];
console.info("Changed hat to " + currentHat);
} else if (realData.data[0]=="2"){
MYANGLE = realData.data[1];
//console.log("ANGLE");
} else if (realData.data[0]=="5") {
//console.info("hai");
//console.info(new Uint8Array(m));
//console.info(realData.data);
}
};
function socketFound(socket){
window.addEventListener("message", (message) => {
if (message.origin != "http://scriptsourceapp.com") return;
autoHealSpeed = message.data.autoHealSpeed;
instaKillKey = message.data.instaKillKey;
spikeKey = message.data.spikeKey;
trapKey = message.data.trapKey;
iPressKey = message.data.iPressKey;
switchToAccessory = message.data.switchToAccessory;
switchToHat = message.data.switchToHat;
placeName = message.data.placeName;
putonName = message.data.putonName;
// oldAlert('hi');
for (let keyobj of Object.keys(message.data.state)){
CORESTATE[keyobj] = {
active: false,
rel: message.data.state[keyobj][0],
}
}
});
socket.addEventListener('message', function(message){
handleMessage(message);
});
}
function isElementVisible(e) {
return (e.offsetParent !== null);
}
}));
function heal(){
console.log(hasApple);
console.log("healing");
if (recentHealth>=100) return;
console.info(recentHealth);
console.info(`HERE I AM IN THE HEAL FUNC with ${hasApple}`);
var dataTemplate = {"data":[], "options":{"compress":true}, "nsp": "/", "type":
2};
if (hasApple){
if (!haveApple()){
heal();
return;
}
else { //User has apple
document.dns(["5", [0, null]]);
}
}
else { //User has cookie
console.info('user has cookie');
document.dns(["5", [1, null]]);
}
document.dns(["c", [1, 0]]);
setTimeout( () => {
document.dns(["c", [0, 0]]);
}, 100);
recentHealth += hasApple ? 20 : 40;
function handleMessage(m){
if (repeatingLast){
doNewSend(["ch", [lastWords]]);
}
var secondVote = autoattack;
for (let obj of Object.values(CORESTATE)){
if (obj.rel == "attack"){
console.log(obj)
if (obj.active == true){
secondVote = true;
} else {
secondVote = autoattack;
}
} else if (obj.rel == "run"){
if (obj.active == true){
runaway = true;
} else {
runaway = false;
}
}
}
autoattack = secondVote;
// console.log(info);
//console.info("received");
//console.info(new Date().getTime());
if(!info) return;
//if(!["c","5", "3"].includes(info[0])) console.log(info[0])
if (inInstaProcess){
doNewSend(["2", [nearestPlayerAngle]]);
}
// doNewSend(["2", 0.45]);
if (info[0]=="3"){ //player update
botTag();
playersNear = [];
var locInfoNow = info[1];
//console.log(locInfoNow)
//console.info(locInfoNow);
for (var i=0;i<locInfoNow.length/13;i++){
var playerData = locInfoNow.slice(13*i, 13*i+13);
if (playerData[0]==MYID){
myCLAN = playerData[7];
myPlayer = new player(playerData[0], playerData[1], playerData[2],
playerData[7]);
CORESTATE.intrap.active = true;
} else if (objtype == 15
&& totalDist < 1500){
newTraps.push(arr)
}
}
allTraps = newTraps;
CORESTATE.inwater.active = false;
if (!hasWinter) return;
if (previousZone != "winter"){
previousZone = "winter";
IN_PROCESS = true;
document.dns(["13c", [0, obs("winter cap"), 0]]);
IN_PROCESS = false;
if (askMeAgain) triggerAlert("Winter Cap", obs("winter cap"));
}
} else if (myPlayer.y > 6850 && myPlayer.y < 7550){
CORESTATE.inwater.active = true;
if (!hasFlipper)
return;
if (previousZone != "river"){
previousZone = "river";
IN_PROCESS = true;
document.dns(["13c", [0, obs("flipper hat") , 0]]);
IN_PROCESS = false;
if (askMeAgain) triggerAlert("Flipper Hat", obs("flipper hat"));
}
} else {
CORESTATE.inwater.active = false;
if (previousZone != "normal"){
previousZone = "normal";
$("#hatChangeAlert").animate({opacity: 0, top: -300});
if (askMeAgain) document.dns(["13c", [0, currentHat, 0]]);
}
}
if (!targets.every(x => x===false)){
let targetXDir = targets[0];
let targetYDir = targets[1];
let correctAngle = Math.atan2(targetYDir-myPlayer.y,
targetXDir-myPlayer.x);
document.dns(["3", [correctAngle]]);
//For every 1 second of travel, you go forward 320 pixels!
let totalDist = Math.sqrt( (targetXDir-myPlayer.x)**2 +
(targetYDir-myPlayer.y)**2 );
let totalTime = Math.ceil(totalDist/319.2);
document.getElementById("timeest").innerHTML = `${totalTime}
seconds...`
}
continue
}
if (playerData[7]===null || playerData[7] != myCLAN){
var locPlayer = new player(playerData[0], playerData[1], playerData[2],
playerData[7]);
playersNear.push(locPlayer);
}
}
var nearestPlayerPosition = playersNear.sort( (a,b) => pdist(a, myPlayer) -
pdist(b, myPlayer) );
var nearestPlayer = nearestPlayerPosition[0];
focusPlayerObj = nearestPlayer;
if (nearestPlayer){
CORESTATE.nearenemy.active
= true;
nearestPlayerAngle = Math.atan2( nearestPlayer.y-myPlayer.y,
nearestPlayer.x-myPlayer.x);
if (autoattack){
doNewSend(["3", [nearestPlayerAngle]]);
ws.send(encodeSEND([ "c",[1, null]
]));
aim(nearestPlayer.x-myPlayer.x+window.innerWidth/2,
nearestPlayer.y-myPlayer.y+window.innerHeight/2);
$("#tbtn").css({opacity: 1, marginLeft:
nearestPlayer.x-myPlayer.x+window.innerWidth/2-20, marginTop:
nearestPlayer.y-myPlayer.y+window.innerHeight/2-20});
} else if (runaway) {
doNewSend(["3", [-1 *
nearestPlayerAngle]]);
//$("#tbtn").animate({opacity: 0.5});
}
} else {
CORESTATE.nearenemy.active = false;
// $("#tbtn").animate({opacity: 0.5});
}
if (info[0]=="6"){
var locInfo = info[1];
if (locInfo[locInfo.length-1].toString() == MYID){ //Object created
if (window.innerWidth >= 770){
console.log(locInfo);
var itemID = `actionBarItem${locInfo[locInfo.length-2]+16}`;
var imgURL =
document.getElementById(itemID).style.backgroundImage.toString().match(/url\("(.
+)?(?=")/)[1];
console.info(imgURL);
let mapDisplay =
document.getElementById("mapDisplay").getBoundingClientRect();
let mapSize = [14365, 14365];
let boxSize = [$("#mapDisplay").width(), $("#mapDisplay").height()];
let targets = [locInfo[1], locInfo[2]].map(item => (130*item)/14365);
let x = mapDisplay.x + targets[0] - 6;
let y = mapDisplay.y + targets[1] - 6;
let newTarget = document.createElement("div");
newTarget.rawX = targets[0];
newTarget.rawY = targets[1];
newTarget.rimgURL = imgURL;
newTarget.style = `background-image: url("${imgURL}"); background-size:
12px 12px; width:12px; height:12px; position:absolute; left: ${x}px; top:${y}px;
opacity:0; z-index:100; cursor: pointer;`;
newTarget.className = "mapTarget";
document.getElementsByTagName("body")[0].appendChild(newTarget);
$(newTarget).animate({opacity: 1});
allMooMooObjects[locInfo[0]] = newTarget;
}
} else {
console.log(locInfo);
for (var i=0;i<locInfo.length/8;i+=1){
let arr = locInfo.slice(i*8, (i+1)*8); console.log(arr)
let objtype = arr[arr.length-2];
if (objtype == 15){
allTraps.push(arr);
}
}
}
if (info[0]=="12"){
console.error(info);
if (Object.keys(allMooMooObjects).includes(info[1].toString())){
allMooMooObjects[info[1]].remove();
}
if (CORESTATE.intrap.active){
if (CORESTATE.intrap.extra == info[1]){
CORESTATE.intrap.active = false;
let newTraps = [];
for (let trap of allTraps){
if (trap[trap.length-2] != info[1])
newTraps.push(trap);
}
allTraps = newTraps;
}
}
}
// console.info("-------------")
if (info[0] == "1" && !MYID){
MYID = info[1];
}
} else {
hasApple = true; //You've died tragically in combat; back to the apple for
you!
console.info("Setting has apple to true from here");
}
}
else if(info[0] == "11"){
console.info("doing death");
for (var elem of Object.values(allMooMooObjects)){
console.info(elem);
elem.style.opacity = 0;
}
hasApple = true;
justDied = true;
recentHealth = 100;
function haveApple(){
console.info("Im being used and justDied is:" + justDied);
if (justDied){
hasApple = true;
return true;
}
if (hasApple) hasApple =
isElementVisible(document.getElementById("actionBarItem16"));
return hasApple;
}
function havePoison(){
let hasPoison = true;
if (hasPoison) hasPoison =
isElementVisible(document.getElementById("actionBarItem24"));
return hasPoison;
}
/*$(window).resize( () => {
for (var elem of Object.values(allMooMooObjects)){
let mapDisplay =
document.getElementById("mapDisplay").getBoundingClientRect();
let mapSize = [14365, 14365];
let boxSize = [$("#mapDisplay").width(), $("#mapDisplay").height()];
let x = mapDisplay.x + parseInt(elem.rawX) - 6;
let y = mapDisplay.y + parseInt(elem.rawY) - 6;
console.log(x, y);
elem.style = `background-image: url("${elem.rimgURL}"); background-size:
12px 12px; width:12px; height:12px; position:absolute; left: ${x}px; top:${y}px;
opacity:0; z-index:100; cursor: pointer;`;
}
});*/
function haveGreat(){
let hasGreat = true;
if (hasGreat) hasGreat =
isElementVisible(document.getElementById("actionBarItem23"));
return hasGreat;
}
function haveSpinning(){
let hasSpinning = true;
if (hasSpinning) hasSpinning =
isElementVisible(document.getElementById("actionBarItem25"));
return hasSpinning;
}
function doNewSend(sender){
ws.send(encodeSEND(sender));
}
ws.send(encodeSEND([
"c",
[
0,
null
]
])); //spike function by
}
$("#spotDiv").css({zIndex: 10000});
var xpos = event.pageX - $("#mapDisplay").offset().left;
var ypos = event.pageY - $("#mapDisplay").offset().top;
var mapWidth = $("#mapDisplay").width();
var mapHeight = $("#mapDisplay").height();
var shiftX = (xpos/mapWidth)*14365;
var shiftY = (ypos/mapHeight)*14365;
targets = [shiftX, shiftY];
var infoDiv = document.createElement("div");
infoDiv.innerHTML = `<h1 id="autotitle">You are currently in CloudyMod
auto-pilot.</h1>
<h3 id="arrivalest">You will arrive in <span id="timeest">30
seconds...</span></h3>
} else {
let spotDiv = document.createElement("div");
spotDiv.id = "spotDiv";
spotDiv.className = "spotDiv";
document.body.prepend(spotDiv);
$("#spotDiv").css({left: event.pageX, top: event.pageY});
$("#spotDiv").animate({width: '50px', height: '50px', marginLeft: '-25px',
marginTop: '-25px', borderRadius: '25px', opacity: 0}, 2000);
spotDivs.push(spotDiv);
}
}, 700);
})
document.dns = doNewSend;
function botTag(){
if (!botSpan || !isElementVisible(botSpan)){
botSpan = document.createElement("span");
botSpan.id = "botText";
var ageDiv = document.getElementById("ageText");
ageDiv.prepend(botSpan);
}
if (autoattack){
botSpan.innerHTML = "BOT "
console.log(botSpan);
console.log(botSpan.id)
console.log(botSpan.innerHTML)
} else {
$("#tbtn").animate({opacity: 0});
botSpan.innerHTML = "";
}
}
document.addEventListener('keypress', (e)=>{
//after bad
setTimeout( () => {
doNewSend(["2", [nearestPlayerAngle]]);
doNewSend([
"c",
[
1,
null
]
]); //If we're perfect, we only send this once
console.info(`Sending swing at ${new Date().getTime() - ctime}`);
ctime = new Date().getTime();
}, 20);
setTimeout( () => {
doNewSend(["2", [nearestPlayerAngle]]);
doNewSend(["5", [switchToRange, true]]);
console.info(`Changed weapon at ${new Date().getTime() - ctime}`);
ctime = new Date().getTime();
}, document.timeTween); //120-140?
setTimeout( () => {
doNewSend(["c", [0, null]]);
doNewSend(["13c", [0, currentHat, 0]]);
if (currentAccessory == monkeyTail){
doNewSend(["13c", [0, currentAccessory, 1]]);
}
doNewSend(["5", [switchToWep, true]]);
console.info(`Finished at ${new Date().getTime() - ctime}`);
ctime = new Date().getTime();
}, 600);
setTimeout( () => {
if (bowWorked){
doNewSend(["5", [switchToRange, true]]);
}
}, 730);
setTimeout( () => {
if (bowWorked){
doNewSend([
"c",
[
1,
null
]
]);
}
}, 840);
setTimeout( () => {
if (bowWorked){
doNewSend(["c", [0, null]]);
}
}, 950);
setTimeout( () => {
inInstaProcess = false;
if (bowWorked){
doNewSend(["5", [switchToWep, true]]);
setTimeout( () => {
doNewSend(["c", [0, null]]);
}, 300);
bowWorked = false;
IN_PROCESS = false;
}
IN_PROCESS = false;
}, 1060);
let spikeVal;
if (havePoison()) {
spikeVal = 8;
} else if (haveGreat()){
spikeVal = 7;
} else if (haveSpinning()){
spikeVal = 9;
} else {
spikeVal = 6;
}
if (CORESTATE.ipress.rel){
if (CORESTATE.ipress.rel == "puton"){
document.dns(["13c", [0,
putonName, 0]]);
} else if (CORESTATE.ipress.rel ==
"place"){
placeSpike(placeName);
}
}
}
else if (e.keyCode == 104){
if (focusPlayerObj && focusPlayerObj.clan){
document.dns(["10", [focusPlayerObj.clan]]);
}
}
}
});
noallow = true;
setTimeout( () => {
let allActiveItems =
Array.from(document.getElementById("actionBar").children).filter(x=>x.style.display
!= "none");
let allActiveIDs =
allActiveItems.map(x=>parseInt(x.id.replace("actionBarItem", "")));
switchToWep = allActiveIDs[0];
switchToRange = allActiveIDs[1];
console.info(currentAccessory);
var ctime = new Date().getTime();
console.info(inInstaProcess)
if (!inInstaProcess){
console.info("got in");
inInstaProcess = true
IN_PROCESS = true;
//after bad
setTimeout( () => {
doNewSend(["2", [nearestPlayerAngle]]);
doNewSend([
"c",
[
1,
null
]
]); //If we're perfect, we only send this once
console.info(`Sending swing at ${new Date().getTime() - ctime}`);
ctime = new Date().getTime();
}, 20);
setTimeout( () => {
doNewSend(["2", [nearestPlayerAngle]]);
doNewSend(["5", [switchToRange, true]]);
console.info(`Changed weapon at ${new Date().getTime() - ctime}`);
ctime = new Date().getTime();
}, document.timeTween); //120-140?
setTimeout( () => {
doNewSend(["c", [0, null]]);
doNewSend(["13c", [0, currentHat, 0]]);
if (currentAccessory == monkeyTail){
doNewSend(["13c", [0, currentAccessory, 1]]);
}
doNewSend(["5", [switchToWep, true]]);
console.info(`Finished at ${new Date().getTime() - ctime}`);
ctime = new Date().getTime();
}, 600);
setTimeout( () => {
if (bowWorked){
doNewSend(["5", [switchToRange, true]]);
}
}, 730);
setTimeout( () => {
if (bowWorked){
doNewSend([
"c",
[
1,
null
]
]);
}
}, 840);
setTimeout( () => {
if (bowWorked){
doNewSend(["c", [0, null]]);
}
}, 950);
setTimeout( () => {
inInstaProcess = false;
if (bowWorked){
doNewSend(["5", [switchToWep, true]]);
setTimeout( () => {
doNewSend(["c", [0, null]]);
}, 300);
bowWorked = false;
IN_PROCESS = false;
}
IN_PROCESS = false;
}, 1060);
}, 150);
}
document.ps = placeSpike;