Combined Code
frame 1 {
function checkLoad(mcTarget) {
var v2 = mcTarget.getBytesLoaded();
var v1 = mcTarget.getBytesTotal();
var v3 = (v2 / v1) * 100;
mcLoader.mcBar._xscale = v3;
var v5 = (Math.floor(v3)).toString();
var v7 = (Math.floor(v1 / 1024)).toString();
var v6 = 'Loading Case Simulator: ' + v5 + '%';
mcLoader.tPercent.text = v6;
if (v2 >= v1 && v1 > 0) {
if (nCount >= 5) {
clearInterval(nProgress);
mcTarget.gotoAndStop('Preloading');
} else {
++nCount;
}
}
updateAfterEvent();
}
System.security.allowDomain('*');
Security.loadPolicyFile('crossdomain.xml');
loadVariables('Test.php?load=true', '');
stop();
var nCount = 0;
var nProgress = setInterval(checkLoad, 100, this);
var ImgLoaded = 0;
var ImgTotal = 284;
}
movieClip 2 {
frame 1 {
stop();
}
frame 21 {
stop();
}
}
movieClip 4 {
}
movieClip 6 {
}
// unknown tag 88 length 81
movieClip 10 {
}
frame 2 {
function onLoaded() {
button2.onRelease = function () {
gotoAndStop('Case');
};
SetIMGandIMGD();
Preloader.onLoadStart = function () {
ImgLoaded += 1;
SetIMGandIMGD();
};
Preloader.onLoadComplete = function () {
mcLoader.nameWeap.text = 'Loading Image: ' + Img + ' | ' + Img_D;
if (ImgLoaded == ImgTotal) {
CaseStart();
} else {
LoadImg();
}
};
LoadImg();
}
function HideLoaders() {
Image.Image1.Loader._visible = false;
Image.Image2.Loader._visible = false;
Image.Image3.Loader._visible = false;
Image.Image4.Loader._visible = false;
Image.Image5.Loader._visible = false;
Image.Image6.Loader._visible = false;
Image.Image7.Loader._visible = false;
}
function LoadImg() {
if (NumberVar == 1) {
HideLoaders();
Preloader.loadClip(ImgLoad, Image.Image1.Image);
Image.Image1.Loader._visible = true;
} else {
if (NumberVar == 2) {
HideLoaders();
Preloader.loadClip(ImgLoad, Image.Image2.Image);
Image.Image2.Loader._visible = true;
} else {
if (NumberVar == 3) {
HideLoaders();
Preloader.loadClip(ImgLoad, Image.Image3.Image);
Image.Image3.Loader._visible = true;
} else {
if (NumberVar == 4) {
HideLoaders();
Preloader.loadClip(ImgLoad, Image.Image4.Image);
Image.Image4.Loader._visible = true;
} else {
if (NumberVar == 5) {
HideLoaders();
Preloader.loadClip(ImgLoad, Image.Image5.Image);
Image.Image5.Loader._visible = true;
} else {
if (NumberVar == 6) {
HideLoaders();
Preloader.loadClip(ImgLoad, Image.Image6.Image);
Image.Image6.Loader._visible = true;
} else {
if (NumberVar == 7) {
HideLoaders();
Preloader.loadClip(ImgLoad, Image.Image7.Image);
Image.Image7.Loader._visible = true;
}
}
}
}
}
}
}
NumberVar += 1;
if (NumberVar == 8) {
NumberVar = 1;
}
}
function SetIMGandIMGD() {
if (ImgLoaded == 0) {
Img = 'Item';
Img_D = 'Community Sticker Capsule 1';
} else {
if (ImgLoaded == 1) {
Img = 'Item';
Img_D = 'EMS Katowice 2014 Challengers';
} else {
if (ImgLoaded == 2) {
Img = 'Item';
Img_D = 'EMS Katowice 2014 Legends';
} else {
if (ImgLoaded == 3) {
Img = 'Item';
Img_D = 'eSports Case';
} else {
if (ImgLoaded == 4) {
Img = 'Item';
Img_D = 'eSports Winter Case';
} else {
if (ImgLoaded == 5) {
Img = 'Item';
Img_D = 'Operation Bravo Weapon Case';
} else {
if (ImgLoaded == 6) {
Img = 'Item';
Img_D = 'Huntsman Weapon Case';
} else {
if (ImgLoaded == 7) {
Img = 'Item';
Img_D = 'Operation Phoenix Weapon Case';
} else {
if (ImgLoaded == 8) {
Img = 'Item';
Img_D = 'Sticker Capsule 2';
} else {
if (ImgLoaded == 9) {
Img = 'Item';
Img_D = 'Sticker Capsule';
} else {
if (ImgLoaded == 10) {
Img = 'Item';
Img_D = 'Weapon Case';
} else {
if (ImgLoaded == 11) {
Img = 'Item';
Img_D = 'Weapon Case 2';
} else {
if (ImgLoaded == 12) {
Img = 'Item';
Img_D = 'Weapon Case 3';
} else {
if (ImgLoaded == 13) {
Img = 'Item';
Img_D = 'Winter Offensive Weapon Case';
} else {
if (ImgLoaded == 14) {
Img = 'Sticker';
Img_D = '3DMAX (Holo)';
} else {
if (ImgLoaded == 15) {
Img = 'Sticker';
Img_D = '3DMAX';
} else {
if (ImgLoaded == 16) {
Img = 'Sticker';
Img_D = 'Aces High';
} else {
if (ImgLoaded == 17) {
Img = 'Sticker';
Img_D = 'Aces High (Holo)';
} else {
if (ImgLoaded == 18) {
Img = 'Sticker';
Img_D = 'Backstab';
} else {
if (ImgLoaded == 19) {
Img = 'Sticker';
Img_D = 'Banana';
} else {
if (ImgLoaded == 20) {
Img = 'Sticker';
Img_D = 'Bash (Holo)';
} else {
if (ImgLoaded == 21) {
Img = 'Sticker';
Img_D = 'Bish (Holo)';
} else {
if (ImgLoaded == 22) {
Img = 'Sticker';
Img_D = 'Bosh (Holo)';
} else {
if (ImgLoaded == 23) {
Img = 'Sticker';
Img_D = 'Black Dog';
} else {
if (ImgLoaded == 24) {
Img = 'Sticker';
Img_D = 'Bomb Code';
} else {
if (ImgLoaded == 25) {
Img = 'Sticker';
Img_D = 'Bomb Doge';
} else {
if (ImgLoaded == 26) {
Img = 'Sticker';
Img_D = 'Burn Them All';
} else {
if (ImgLoaded == 27) {
Img = 'Sticker';
Img_D = 'Cerberus';
} else {
if (ImgLoaded == 28) {
Img = 'Sticker';
Img_D = 'Clan-Mystik (Holo)';
} else {
if (ImgLoaded == 29) {
Img = 'Sticker';
Img_D = 'Clan-Mystik';
} else {
if (ImgLoaded == 30) {
Img = 'Sticker';
Img_D = 'Chicken Lover';
} else {
if (ImgLoaded == 31) {
Img = 'Sticker';
Img_D = 'compLexity Gaming (H)';
} else {
if (ImgLoaded == 32) {
Img = 'Sticker';
Img_D = 'compLexity Gaming';
} else {
if (ImgLoaded == 33) {
Img = 'Sticker';
Img_D = 'Crown (Foil)';
} else {
if (ImgLoaded == 34) {
Img = 'Sticker';
Img_D = 'Easy Peasy';
} else {
if (ImgLoaded == 35) {
Img = 'Sticker';
Img_D = 'ESL Skull (Foil)';
} else {
if (ImgLoaded == 36) {
Img = 'Sticker';
Img_D = 'ESL Wolf (Foil)';
} else {
if (ImgLoaded == 37) {
Img = 'Sticker';
Img_D = 'Fearsome (Holo)';
} else {
if (ImgLoaded == 38) {
Img = 'Sticker';
Img_D = 'Fearsome';
} else {
if (ImgLoaded == 39) {
Img = 'Sticker';
Img_D = 'Flammable (Foil)';
} else {
if (ImgLoaded == 40) {
Img = 'Sticker';
Img_D = 'Fnatic';
} else {
if (ImgLoaded == 41) {
Img = 'Sticker';
Img_D = 'Fnatic (Holo)';
} else {
if (ImgLoaded == 42) {
Img = 'Sticker';
Img_D = 'Good Game';
} else {
if (ImgLoaded == 43) {
Img = 'Sticker';
Img_D = 'Good Luck';
} else {
if (ImgLoaded == 44) {
Img = 'Sticker';
Img_D = 'Have Fun';
} else {
if (ImgLoaded == 45) {
Img = 'Sticker';
Img_D = 'Harp of War (Holo)';
} else {
if (ImgLoaded == 46) {
Img = 'Sticker';
Img_D = 'Headhunter (Foil)';
} else {
if (ImgLoaded == 47) {
Img = 'Sticker';
Img_D = 'HellRaisers';
} else {
if (ImgLoaded == 48) {
Img = 'Sticker';
Img_D = 'HellRaisers (Holo)';
} else {
if (ImgLoaded == 49) {
Img = 'Sticker';
Img_D = 'Howling Dawn';
} else {
if (ImgLoaded == 50) {
Img = 'Sticker';
Img_D = 'I Conquered';
} else {
if (ImgLoaded == 51) {
Img = 'Sticker';
Img_D = 'iBUYPOWER (Holo)';
} else {
if (ImgLoaded == 52) {
Img = 'Sticker';
Img_D = 'iBUYPOWER';
} else {
if (ImgLoaded == 53) {
Img = 'Sticker';
Img_D = 'King on the Field';
} else {
if (ImgLoaded == 54) {
Img = 'Sticker';
Img_D = 'Let\'s Roll-oll (Holo)';
} else {
if (ImgLoaded == 55) {
Img = 'Sticker';
Img_D = 'Let\'s Roll-oll';
} else {
if (ImgLoaded == 56) {
Img = 'Sticker';
Img_D = 'LGB eSports (Holo)';
} else {
if (ImgLoaded == 57) {
Img = 'Sticker';
Img_D = 'LGB eSports';
} else {
if (ImgLoaded == 58) {
Img = 'Sticker';
Img_D = 'Llama Cannon';
} else {
if (ImgLoaded == 59) {
Img = 'Sticker';
Img_D = 'Luck Skill (Foil)';
} else {
if (ImgLoaded == 60) {
Img = 'Sticker';
Img_D = 'Luck Skill';
} else {
if (ImgLoaded == 61) {
Img = 'Sticker';
Img_D = 'Lucky 13 (Foil)';
} else {
if (ImgLoaded == 62) {
Img = 'Sticker';
Img_D = 'Lucky 13';
} else {
if (ImgLoaded == 63) {
Img = 'Sticker';
Img_D = 'Metal';
} else {
if (ImgLoaded == 64) {
Img = 'Sticker';
Img_D = 'mousesports (Holo)';
} else {
if (ImgLoaded == 65) {
Img = 'Sticker';
Img_D = 'mousesports';
} else {
if (ImgLoaded == 66) {
Img = 'Sticker';
Img_D = 'My Other Awp';
} else {
if (ImgLoaded == 67) {
Img = 'Sticker';
Img_D = 'Natus Vincere (Holo)';
} else {
if (ImgLoaded == 68) {
Img = 'Sticker';
Img_D = 'Natus Vincere';
} else {
if (ImgLoaded == 69) {
Img = 'Sticker';
Img_D = 'New Sheriff (Foil)';
} else {
if (ImgLoaded == 70) {
Img = 'Sticker';
Img_D = 'Nice Shot';
} else {
if (ImgLoaded == 71) {
Img = 'Sticker';
Img_D = 'Ninjas in Pyjamas (H)';
} else {
if (ImgLoaded == 72) {
Img = 'Sticker';
Img_D = 'Ninjas in Pyjamas';
} else {
if (ImgLoaded == 73) {
Img = 'Sticker';
Img_D = 'Reason Gaming (Holo)';
} else {
if (ImgLoaded == 74) {
Img = 'Sticker';
Img_D = 'Reason Gaming';
} else {
if (ImgLoaded == 75) {
Img = 'Sticker';
Img_D = 'Rising Skull';
} else {
if (ImgLoaded == 76) {
Img = 'Sticker';
Img_D = 'Seek & Destroy';
} else {
if (ImgLoaded == 77) {
Img = 'Sticker';
Img_D = 'Shave Master';
} else {
if (ImgLoaded == 78) {
Img = 'Sticker';
Img_D = 'Stupid Banana (Foil)';
} else {
if (ImgLoaded == 79) {
Img = 'Sticker';
Img_D = 'Swag (Foil)';
} else {
if (ImgLoaded == 80) {
Img = 'Sticker';
Img_D = 'Team Dignitas (Holo)';
} else {
if (ImgLoaded == 81) {
Img = 'Sticker';
Img_D = 'Team Dignitas';
} else {
if (ImgLoaded == 82) {
Img = 'Sticker';
Img_D = 'Team LDLC.com (H)';
} else {
if (ImgLoaded == 83) {
Img = 'Sticker';
Img_D = 'Team LDLC.com';
} else {
if (ImgLoaded == 84) {
Img = 'Sticker';
Img_D = 'Teamwork (Holo)';
} else {
if (ImgLoaded == 85) {
Img = 'Sticker';
Img_D = 'Titan (Holo)';
} else {
if (ImgLoaded == 86) {
Img = 'Sticker';
Img_D = 'Titan';
} else {
if (ImgLoaded == 87) {
Img = 'Sticker';
Img_D = 'To B or not to B';
} else {
if (ImgLoaded == 88) {
Img = 'Sticker';
Img_D = 'Vigilance (Holo)';
} else {
if (ImgLoaded == 89) {
Img = 'Sticker';
Img_D = 'Vigilance';
} else {
if (ImgLoaded == 90) {
Img = 'Sticker';
Img_D = 'Virtus.Pro (Holo)';
} else {
if (ImgLoaded == 91) {
Img = 'Sticker';
Img_D = 'Virtus.Pro';
} else {
if (ImgLoaded == 92) {
Img = 'Sticker';
Img_D = 'Vox Eminor (Holo)';
} else {
if (ImgLoaded == 93) {
Img = 'Sticker';
Img_D = 'Vox Eminor';
} else {
if (ImgLoaded == 94) {
Img = 'Sticker';
Img_D = 'Welcome to the Clutch';
} else {
if (ImgLoaded == 95) {
Img = 'Sticker';
Img_D = 'Winged Defuser';
} else {
if (ImgLoaded == 96) {
Img = 'AK-47';
Img_D = 'Blue Laminate';
} else {
if (ImgLoaded == 97) {
Img = 'AK-47';
Img_D = 'Case Hardened';
} else {
if (ImgLoaded == 98) {
Img = 'AK-47';
Img_D = 'Fire Serpent';
} else {
if (ImgLoaded == 99) {
Img = 'AK-47';
Img_D = 'Red Laminate';
} else {
if (ImgLoaded == 100) {
Img = 'AK-47';
Img_D = 'Redline';
} else {
if (ImgLoaded == 101) {
Img = 'AK-47';
Img_D = 'Vulcan';
} else {
if (ImgLoaded == 102) {
Img = 'AUG';
Img_D = 'Chameleon';
} else {
if (ImgLoaded == 103) {
Img = 'AUG';
Img_D = 'Torque';
} else {
if (ImgLoaded == 104) {
Img = 'AUG';
Img_D = 'Wings';
} else {
if (ImgLoaded == 105) {
Img = 'AWP';
Img_D = 'Lightning Strike';
} else {
if (ImgLoaded == 106) {
Img = 'AWP';
Img_D = 'BOOM';
} else {
if (ImgLoaded == 107) {
Img = 'AWP';
Img_D = 'Graphite';
} else {
if (ImgLoaded == 108) {
Img = 'AWP';
Img_D = 'Electric Hive';
} else {
if (ImgLoaded == 109) {
Img = 'AWP';
Img_D = 'Redline';
} else {
if (ImgLoaded == 110) {
Img = 'AWP';
Img_D = 'Asiimov';
} else {
if (ImgLoaded == 111) {
Img = 'CZ75-Auto';
Img_D = 'Crimson Web';
} else {
if (ImgLoaded == 112) {
Img = 'CZ75-Auto';
Img_D = 'Tread Plate';
} else {
if (ImgLoaded == 113) {
Img = 'CZ75-Auto';
Img_D = 'The Fuschia Is Now';
} else {
if (ImgLoaded == 114) {
Img = 'CZ75-Auto';
Img_D = 'Victoria';
} else {
if (ImgLoaded == 115) {
Img = 'CZ75-Auto';
Img_D = 'Poison Dart';
} else {
if (ImgLoaded == 116) {
Img = 'Desert Eagle';
Img_D = 'Hypnotic';
} else {
if (ImgLoaded == 117) {
Img = 'Desert Eagle';
Img_D = 'Golden Koi';
} else {
if (ImgLoaded == 118) {
Img = 'Desert Eagle';
Img_D = 'Cobalt Disruption';
} else {
if (ImgLoaded == 119) {
Img = 'Desert Eagle';
Img_D = 'Heirloom';
} else {
if (ImgLoaded == 120) {
Img = 'Dual Berettas';
Img_D = 'Black Limba';
} else {
if (ImgLoaded == 121) {
Img = 'Dual Berettas';
Img_D = 'Hemoglobin';
} else {
if (ImgLoaded == 122) {
Img = 'Dual Berettas';
Img_D = 'Marina';
} else {
if (ImgLoaded == 123) {
Img = 'Dual Berettas';
Img_D = 'Panther';
} else {
if (ImgLoaded == 124) {
Img = 'Dual Berettas';
Img_D = 'Retribution';
} else {
if (ImgLoaded == 125) {
Img = 'FAMAS';
Img_D = 'Doomkitty';
} else {
if (ImgLoaded == 126) {
Img = 'FAMAS';
Img_D = 'Hexane';
} else {
if (ImgLoaded == 127) {
Img = 'FAMAS';
Img_D = 'Afterimage';
} else {
if (ImgLoaded == 128) {
Img = 'FAMAS';
Img_D = 'Pulse';
} else {
if (ImgLoaded == 129) {
Img = 'FAMAS';
Img_D = 'Sergeant';
} else {
if (ImgLoaded == 130) {
Img = 'Five-SeveN';
Img_D = 'Case Hardened';
} else {
if (ImgLoaded == 131) {
Img = 'Five-SeveN';
Img_D = 'Nightshade';
} else {
if (ImgLoaded == 132) {
Img = 'Five-SeveN';
Img_D = 'Kami';
} else {
if (ImgLoaded == 133) {
Img = 'Five-SeveN';
Img_D = 'Copper Galaxy';
} else {
if (ImgLoaded == 134) {
Img = 'G3SG1';
Img_D = 'Demeter';
} else {
if (ImgLoaded == 135) {
Img = 'G3SG1';
Img_D = 'Azure Zebra';
} else {
if (ImgLoaded == 136) {
Img = 'Galil AR';
Img_D = 'Orange DDPAT';
} else {
if (ImgLoaded == 137) {
Img = 'Galil AR';
Img_D = 'Shattered';
} else {
if (ImgLoaded == 138) {
Img = 'Galil AR';
Img_D = 'Blue Titanium';
} else {
if (ImgLoaded == 139) {
Img = 'Galil AR';
Img_D = 'Sandstorm';
} else {
if (ImgLoaded == 140) {
Img = 'Galil AR';
Img_D = 'Kami';
} else {
if (ImgLoaded == 141) {
Img = 'Glock-18';
Img_D = 'Dragon Tattoo';
} else {
if (ImgLoaded == 142) {
Img = 'Glock-18';
Img_D = 'Blue Fissure';
} else {
if (ImgLoaded == 143) {
Img = 'M249';
Img_D = 'Magma';
} else {
if (ImgLoaded == 144) {
Img = 'M4A1-S';
Img_D = 'Dark Water';
} else {
if (ImgLoaded == 145) {
Img = 'M4A1-S';
Img_D = 'Bright Water';
} else {
if (ImgLoaded == 146) {
Img = 'M4A1-S';
Img_D = 'Blood Tiger';
} else {
if (ImgLoaded == 147) {
Img = 'M4A1-S';
Img_D = 'Guardian';
} else {
if (ImgLoaded == 148) {
Img = 'M4A1-S';
Img_D = 'Atomic Alloy';
} else {
if (ImgLoaded == 149) {
Img = 'M4A4';
Img_D = 'Faded Zebra';
} else {
if (ImgLoaded == 150) {
Img = 'M4A4';
Img_D = 'Zirka';
} else {
if (ImgLoaded == 151) {
Img = 'M4A4';
Img_D = 'X-Ray';
} else {
if (ImgLoaded == 152) {
Img = 'M4A4';
Img_D = 'Asiimov';
} else {
if (ImgLoaded == 153) {
Img = 'M4A4';
Img_D = 'Howl';
} else {
if (ImgLoaded == 154) {
Img = 'MAC-10';
Img_D = 'Graven';
} else {
if (ImgLoaded == 155) {
Img = 'MAC-10';
Img_D = 'Heat';
} else {
if (ImgLoaded == 156) {
Img = 'MAC-10';
Img_D = 'Curse';
} else {
if (ImgLoaded == 157) {
Img = 'MAG-7';
Img_D = 'Memento';
} else {
if (ImgLoaded == 158) {
Img = 'MAG-7';
Img_D = 'Heaven Guard';
} else {
if (ImgLoaded == 159) {
Img = 'MP7';
Img_D = 'Skulls';
} else {
if (ImgLoaded == 160) {
Img = 'MP9';
Img_D = 'Hypnotic';
} else {
if (ImgLoaded == 161) {
Img = 'MP9';
Img_D = 'Rose Iron';
} else {
if (ImgLoaded == 162) {
Img = 'Negev';
Img_D = 'Terrain';
} else {
if (ImgLoaded == 163) {
Img = 'Nova';
Img_D = 'Tempest';
} else {
if (ImgLoaded == 164) {
Img = 'Nova';
Img_D = 'Graphite';
} else {
if (ImgLoaded == 165) {
Img = 'Nova';
Img_D = 'Ghost Camo';
} else {
if (ImgLoaded == 166) {
Img = 'Nova';
Img_D = 'Rising Skull';
} else {
if (ImgLoaded == 167) {
Img = 'Nova';
Img_D = 'Antique';
} else {
if (ImgLoaded == 168) {
Img = 'P2000';
Img_D = 'Ocean Foam';
} else {
if (ImgLoaded == 169) {
Img = 'P250';
Img_D = 'Splash';
} else {
if (ImgLoaded == 170) {
Img = 'P250';
Img_D = 'Hive';
} else {
if (ImgLoaded == 171) {
Img = 'P250';
Img_D = 'Steel Disruption';
} else {
if (ImgLoaded == 172) {
Img = 'P250';
Img_D = 'Mehndi';
} else {
if (ImgLoaded == 173) {
Img = 'P250';
Img_D = 'Undertow';
} else {
if (ImgLoaded == 174) {
Img = 'P90';
Img_D = 'Death by Kitty';
} else {
if (ImgLoaded == 175) {
Img = 'P90';
Img_D = 'Emerald Dragon';
} else {
if (ImgLoaded == 176) {
Img = 'P90';
Img_D = 'Cold Blooded';
} else {
if (ImgLoaded == 177) {
Img = 'P90';
Img_D = 'Blind Spot';
} else {
if (ImgLoaded == 178) {
Img = 'P90';
Img_D = 'Trigon';
} else {
if (ImgLoaded == 179) {
Img = 'P90';
Img_D = 'Desert Warfare';
} else {
if (ImgLoaded == 180) {
Img = 'PP-Bizon';
Img_D = 'Water Sigil';
} else {
if (ImgLoaded == 181) {
Img = 'PP-Bizon';
Img_D = 'Cobalt Halftone';
} else {
if (ImgLoaded == 182) {
Img = 'PP-Bizon';
Img_D = 'Antique';
} else {
if (ImgLoaded == 183) {
Img = 'Sawed-Off';
Img_D = 'Orange DDPAT';
} else {
if (ImgLoaded == 184) {
Img = 'Sawed-Off';
Img_D = 'The Kraken';
} else {
if (ImgLoaded == 185) {
Img = 'SCAR-20';
Img_D = 'Crimson Web';
} else {
if (ImgLoaded == 186) {
Img = 'SG 553';
Img_D = 'Ultraviolet';
} else {
if (ImgLoaded == 187) {
Img = 'SG 553';
Img_D = 'Wave Spray';
} else {
if (ImgLoaded == 188) {
Img = 'SG 553';
Img_D = 'Pulse';
} else {
if (ImgLoaded == 189) {
Img = 'SSG 08';
Img_D = 'Blood in the Water';
} else {
if (ImgLoaded == 190) {
Img = 'SSG 08';
Img_D = 'Slashed';
} else {
if (ImgLoaded == 191) {
Img = 'Tec-9';
Img_D = 'Blue Titanium';
} else {
if (ImgLoaded == 192) {
Img = 'Tec-9';
Img_D = 'Titanium Bit';
} else {
if (ImgLoaded == 193) {
Img = 'Tec-9';
Img_D = 'Sandstorm';
} else {
if (ImgLoaded == 194) {
Img = 'Tec-9';
Img_D = 'Isaac';
} else {
if (ImgLoaded == 195) {
Img = 'UMP-45';
Img_D = 'Bone Pile';
} else {
if (ImgLoaded == 196) {
Img = 'UMP-45';
Img_D = 'Corporal';
} else {
if (ImgLoaded == 197) {
Img = 'USP-S';
Img_D = 'Dark Water';
} else {
if (ImgLoaded == 198) {
Img = 'USP-S';
Img_D = 'Overgrowth';
} else {
if (ImgLoaded == 199) {
Img = 'USP-S';
Img_D = 'Serum';
} else {
if (ImgLoaded == 200) {
Img = 'USP-S';
Img_D = 'Stainless';
} else {
if (ImgLoaded == 201) {
Img = 'USP-S';
Img_D = 'Guardian';
} else {
if (ImgLoaded == 202) {
Img = 'USP-S';
Img_D = 'Orion';
} else {
if (ImgLoaded == 203) {
Img = 'XM1014';
Img_D = 'Heaven Guard';
} else {
if (ImgLoaded == 204) {
Img = 'P2000';
Img_D = 'Red FragCam';
} else {
if (ImgLoaded == 205) {
Img = 'SCAR-20';
Img_D = 'Cyrex';
} else {
if (ImgLoaded == 206) {
Img = 'Bayonet';
Img_D = 'Vanilla';
} else {
if (ImgLoaded == 207) {
Img = 'Bayonet';
Img_D = 'Case Hardened';
} else {
if (ImgLoaded == 208) {
Img = 'Bayonet';
Img_D = 'Stained';
} else {
if (ImgLoaded == 209) {
Img = 'Bayonet';
Img_D = 'Slaughter';
} else {
if (ImgLoaded == 210) {
Img = 'Bayonet';
Img_D = 'Fade';
} else {
if (ImgLoaded == 211) {
Img = 'Bayonet';
Img_D = 'Blue Steel';
} else {
if (ImgLoaded == 212) {
Img = 'Bayonet';
Img_D = 'Boreal Forest';
} else {
if (ImgLoaded == 213) {
Img = 'Bayonet';
Img_D = 'Crimson Web';
} else {
if (ImgLoaded == 214) {
Img = 'Bayonet';
Img_D = 'Urban Masked';
} else {
if (ImgLoaded == 215) {
Img = 'Bayonet';
Img_D = 'Scorched';
} else {
if (ImgLoaded == 216) {
Img = 'Bayonet';
Img_D = 'Safari Mesh';
} else {
if (ImgLoaded == 217) {
Img = 'Bayonet';
Img_D = 'Night';
} else {
if (ImgLoaded == 218) {
Img = 'Bayonet';
Img_D = 'Forest DDPAT';
} else {
if (ImgLoaded == 219) {
Img = 'M9 Bayonet';
Img_D = 'Vanilla';
} else {
if (ImgLoaded == 220) {
Img = 'M9 Bayonet';
Img_D = 'Case Hardened';
} else {
if (ImgLoaded == 221) {
Img = 'M9 Bayonet';
Img_D = 'Stained';
} else {
if (ImgLoaded == 222) {
Img = 'M9 Bayonet';
Img_D = 'Slaughter';
} else {
if (ImgLoaded == 223) {
Img = 'M9 Bayonet';
Img_D = 'Fade';
} else {
if (ImgLoaded == 224) {
Img = 'M9 Bayonet';
Img_D = 'Blue Steel';
} else {
if (ImgLoaded == 225) {
Img = 'M9 Bayonet';
Img_D = 'Boreal Forest';
} else {
if (ImgLoaded == 226) {
Img = 'M9 Bayonet';
Img_D = 'Crimson Web';
} else {
if (ImgLoaded == 227) {
Img = 'M9 Bayonet';
Img_D = 'Urban Masked';
} else {
if (ImgLoaded == 228) {
Img = 'M9 Bayonet';
Img_D = 'Scorched';
} else {
if (ImgLoaded == 229) {
Img = 'M9 Bayonet';
Img_D = 'Safari Mesh';
} else {
if (ImgLoaded == 230) {
Img = 'M9 Bayonet';
Img_D = 'Night';
} else {
if (ImgLoaded == 231) {
Img = 'M9 Bayonet';
Img_D = 'Forest DDPAT';
} else {
if (ImgLoaded == 232) {
Img = 'Gut Knife';
Img_D = 'Vanilla';
} else {
if (ImgLoaded == 233) {
Img = 'Gut Knife';
Img_D = 'Case Hardened';
} else {
if (ImgLoaded == 234) {
Img = 'Gut Knife';
Img_D = 'Stained';
} else {
if (ImgLoaded == 235) {
Img = 'Gut Knife';
Img_D = 'Slaughter';
} else {
if (ImgLoaded == 236) {
Img = 'Gut Knife';
Img_D = 'Fade';
} else {
if (ImgLoaded == 237) {
Img = 'Gut Knife';
Img_D = 'Blue Steel';
} else {
if (ImgLoaded == 238) {
Img = 'Gut Knife';
Img_D = 'Boreal Forest';
} else {
if (ImgLoaded == 239) {
Img = 'Gut Knife';
Img_D = 'Crimson Web';
} else {
if (ImgLoaded == 240) {
Img = 'Gut Knife';
Img_D = 'Urban Masked';
} else {
if (ImgLoaded == 241) {
Img = 'Gut Knife';
Img_D = 'Scorched';
} else {
if (ImgLoaded == 242) {
Img = 'Gut Knife';
Img_D = 'Safari Mesh';
} else {
if (ImgLoaded == 243) {
Img = 'Gut Knife';
Img_D = 'Night';
} else {
if (ImgLoaded == 244) {
Img = 'Gut Knife';
Img_D = 'Forest DDPAT';
} else {
if (ImgLoaded == 245) {
Img = 'Flip Knife';
Img_D = 'Vanilla';
} else {
if (ImgLoaded == 246) {
Img = 'Flip Knife';
Img_D = 'Case Hardened';
} else {
if (ImgLoaded == 247) {
Img = 'Flip Knife';
Img_D = 'Stained';
} else {
if (ImgLoaded == 248) {
Img = 'Flip Knife';
Img_D = 'Slaughter';
} else {
if (ImgLoaded == 249) {
Img = 'Flip Knife';
Img_D = 'Fade';
} else {
if (ImgLoaded == 250) {
Img = 'Flip Knife';
Img_D = 'Blue Steel';
} else {
if (ImgLoaded == 251) {
Img = 'Flip Knife';
Img_D = 'Boreal Forest';
} else {
if (ImgLoaded == 252) {
Img = 'Flip Knife';
Img_D = 'Crimson Web';
} else {
if (ImgLoaded == 253) {
Img = 'Flip Knife';
Img_D = 'Urban Masked';
} else {
if (ImgLoaded == 254) {
Img = 'Flip Knife';
Img_D = 'Scorched';
} else {
if (ImgLoaded == 255) {
Img = 'Flip Knife';
Img_D = 'Safari Mesh';
} else {
if (ImgLoaded == 256) {
Img = 'Flip Knife';
Img_D = 'Night';
} else {
if (ImgLoaded == 257) {
Img = 'Flip Knife';
Img_D = 'Forest DDPAT';
} else {
if (ImgLoaded == 258) {
Img = 'Karambit';
Img_D = 'Vanilla';
} else {
if (ImgLoaded == 259) {
Img = 'Karambit';
Img_D = 'Case Hardened';
} else {
if (ImgLoaded == 260) {
Img = 'Karambit';
Img_D = 'Stained';
} else {
if (ImgLoaded == 261) {
Img = 'Karambit';
Img_D = 'Slaughter';
} else {
if (ImgLoaded == 262) {
Img = 'Karambit';
Img_D = 'Fade';
} else {
if (ImgLoaded == 263) {
Img = 'Karambit';
Img_D = 'Blue Steel';
} else {
if (ImgLoaded == 264) {
Img = 'Karambit';
Img_D = 'Boreal Forest';
} else {
if (ImgLoaded == 265) {
Img = 'Karambit';
Img_D = 'Crimson Web';
} else {
if (ImgLoaded == 266) {
Img = 'Karambit';
Img_D = 'Urban Masked';
} else {
if (ImgLoaded == 267) {
Img = 'Karambit';
Img_D = 'Scorched';
} else {
if (ImgLoaded == 268) {
Img = 'Karambit';
Img_D = 'Safari Mesh';
} else {
if (ImgLoaded == 269) {
Img = 'Karambit';
Img_D = 'Night';
} else {
if (ImgLoaded == 270) {
Img = 'Karambit';
Img_D = 'Forest DDPAT';
} else {
if (ImgLoaded == 271) {
Img = 'Huntsman Knife';
Img_D = 'Vanilla';
} else {
if (ImgLoaded == 272) {
Img = 'Huntsman Knife';
Img_D = 'Case Hardened';
} else {
if (ImgLoaded == 273) {
Img = 'Huntsman Knife';
Img_D = 'Stained';
} else {
if (ImgLoaded == 274) {
Img = 'Huntsman Knife';
Img_D = 'Slaughter';
} else {
if (ImgLoaded == 275) {
Img = 'Huntsman Knife';
Img_D = 'Fade';
} else {
if (ImgLoaded == 276) {
Img = 'Huntsman Knife';
Img_D = 'Blue Steel';
} else {
if (ImgLoaded == 277) {
Img = 'Huntsman Knife';
Img_D = 'Boreal Forest';
} else {
if (ImgLoaded == 278) {
Img = 'Huntsman Knife';
Img_D = 'Crimson Web';
} else {
if (ImgLoaded == 279) {
Img = 'Huntsman Knife';
Img_D = 'Urban Masked';
} else {
if (ImgLoaded == 280) {
Img = 'Huntsman Knife';
Img_D = 'Scorched';
} else {
if (ImgLoaded == 281) {
Img = 'Huntsman Knife';
Img_D = 'Safari Mesh';
} else {
if (ImgLoaded == 282) {
Img = 'Huntsman Knife';
Img_D = 'Night';
} else {
if (ImgLoaded == 283) {
Img = 'Huntsman Knife';
Img_D = 'Forest DDPAT';
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
mcLoader.tPercent.text = 'Preloading Images: ' + ImgLoaded + ' / ' + ImgTotal;
ImgLoad = 'images/' + (((Img.split('\r')).join('')).split('\n')).join('') + '/' + (((Img_D.split('\r')).join('')).split('\n')).join('') + '.png';
}
function CaseStart() {
HideLoaders();
DoStart.ButtonText.Text.text = 'Press to Start';
mcLoader.tPercent.text = '';
DoStart._visible = true;
DoStart.onRelease = function () {
gotoAndStop('Case');
};
mcLoader.nameWeap.text = 'Images loaded';
button2.onRelease = function () {};
Text.text = '';
}
stop();
DoStart._visible = false;
var Img;
var Img_D;
var ImgLoad = 'images/' + (((Img.split('\r')).join('')).split('\n')).join('') + '/' + (((Img_D.split('\r')).join('')).split('\n')).join('') + '.png';
var Preloader = new MovieClipLoader();
mcLoader.nameWeap.text = Img + ' | ' + Img_D;
mcLoader.tPercent.text = 'Preloading Images: ' + ImgLoaded + ' / ' + ImgTotal;
mcLoader.mcBar._visible = false;
mcLoader.bg._visible = false;
var NumberVar = 1;
onLoaded();
}
movieClip 15 {
}
movieClip 17 {
frame 1 {
Lib.Controls.SFText.InitAsSFText(this);
}
}
movieClip 18 {
frame 1 {
Lib.Controls.SFButton.InitAsStandardSFButton(this);
Lib.TintManager.StaticRegisterForTint(HighLight.HighLight, Lib.TintManager.TintRegister_All);
Lib.TintManager.StaticRegisterForTint(ButtonBracketLeft.ButtonBracketLeft, Lib.TintManager.TintRegister_All);
this.stop();
}
frame 5 {
this.stop();
}
frame 9 {
this.stop();
}
frame 10 {
this.stop();
}
frame 11 {
stop();
}
frame 16 {
stop();
}
}
movieClip 20 {
}
movieClip 22 {
}
movieClip 23 {
}
movieClip 24 {
}
movieClip 27 {
}
frame 3 {
function OnLoaded() {
back.onRelease = function () {
UnSetCase();
credits.gotoAndPlay('StartAnim');
back.onRelease = function () {};
creditsS();
};
loadSocial();
OrelRoll.Panel2.Panel.Update.Updating.gotoAndPlay('StartAnim');
SetBG();
IMGmcload();
OrelRoll.Panel.ending._visible = false;
OrelRoll.Panel.DoShow.ButtonText.Text.text = ButtonText;
OrelRoll.Panel.DoRoll.ButtonText.Text.text = 'Start this';
OrelRoll.Panel.DoShow.onRelease = function () {
DoShow();
};
OrelRoll.Panel2.Panel.sndtxt.text = 'Sound ON';
OrelRoll.Panel2.Panel.snd.onRelease = function () {
SoundOFF();
OrelRoll.Panel2.Panel.sndtxt.text = 'Sound OFF';
SetSNDon();
};
OrelRoll.Panel.DoShow.gotoAndStop('def');
OrelRoll.Panel.DoRoll.gotoAndStop('disabled');
musicMsel = new Sound();
musicMsel.loadSound('sounds/MultiSelect.mp3', true);
musicMsel.stop();
musicMst = new Sound();
musicMst.loadSound('sounds/MultiStart.mp3', true);
musicMst.stop();
musicMr = new Sound();
musicMr.loadSound('sounds/RollMulti.mp3', true);
musicMr.stop();
music = new Sound();
music.loadSound('sounds/Roll.mp3', true);
music.stop();
music1 = new Sound();
music1.loadSound('sounds/open.mp3', true);
music1.stop();
music2 = new Sound();
music2.loadSound('sounds/Roll.mp3', true);
music2.stop();
music1drop = new Sound();
music1drop.loadSound('sounds/drop1.mp3', true);
music1drop.stop();
music2drop = new Sound();
music2drop.loadSound('sounds/drop2.mp3', true);
music2drop.stop();
music3drop = new Sound();
music3drop.loadSound('sounds/drop3.mp3', true);
music3drop.stop();
music4drop = new Sound();
music4drop.loadSound('sounds/drop4.mp3', true);
music4drop.stop();
music5drop = new Sound();
music5drop.loadSound('sounds/drop5.mp3', true);
music5drop.stop();
music6drop = new Sound();
music6drop.loadSound('sounds/drop6.mp3', true);
music6drop.stop();
OrelRoll.Panel.Header.gotoAndStop('StartHide');
OrelRoll.Panel.Header.Texter.Text.text = 'Hey. I\'m random string! Welcome to CS:GO Case Simulator!';
FirstLoadTxtVars();
SoundON();
loaderback.gotoAndPlay('Hide');
CountStatsLoad();
UpdateGPHP();
}
function loadSocial() {
loadMovie('images/32-facebook.png', OrelRoll.Panel2.Panel.but1.Image);
loadMovie('images/32-twitter.png', OrelRoll.Panel2.Panel.but2.Image);
loadMovie('images/32-vk.png', OrelRoll.Panel2.Panel.but3.Image);
OrelRoll.Panel2.Panel.but1.onRelease = function () {
getURL('http://www.facebook.com/sharer.php?s=100&p[title]=CS:GO Case Simulator&p[summary]=CS:GO Case Simulator&p[url]=http://convars.com/case/', '_blank');
};
OrelRoll.Panel2.Panel.but2.onRelease = function () {
getURL('http://twitter.com/share?text=@_righTTeam made awesome CS:GO Test Simulator&url=http://convars.com/case', '_blank');
};
OrelRoll.Panel2.Panel.but3.onRelease = function () {
getURL('https://vk.com/share.php?url=http://convars.com/case/&title=CS:GO%20Case%20Simulator&description=СимулÑтор Ð¾Ñ‚ÐºÑ€Ñ‹Ð²Ð°Ð½Ð¸Ñ Ñщиков от vk.com/OrelStealth', '_blank');
};
}
function backS() {
back.onRelease = function () {
UnSetCase();
credits.gotoAndPlay('StartAnim');
back.onRelease = function () {};
creditsS();
};
}
function creditsS() {
credits.onRelease = function () {
SetCase();
credits.gotoAndPlay('StartHide');
credits.onRelease = function () {};
backS();
};
}
function SetBG() {
back1._visible = false;
back2._visible = false;
back3._visible = false;
back4._visible = false;
back5._visible = false;
back6._visible = false;
back7._visible = false;
back8._visible = false;
back9._visible = false;
var v1 = Math.floor(Math.random() * 9);
if (v1 == 1) {
back1._visible = true;
} else {
if (v1 == 2) {
back2._visible = true;
} else {
if (v1 == 3) {
back3._visible = true;
} else {
if (v1 == 4) {
back4._visible = true;
} else {
if (v1 == 5) {
back5._visible = true;
} else {
if (v1 == 6) {
back6._visible = true;
} else {
if (v1 == 7) {
back7._visible = true;
} else {
if (v1 == 8) {
back8._visible = true;
} else {
if (v1 == 0) {
back9._visible = true;
}
}
}
}
}
}
}
}
}
}
function SetSNDon() {
OrelRoll.Panel2.Panel.snd.onRelease = function () {
SoundON();
OrelRoll.Panel2.Panel.sndtxt.text = 'Sound ON';
SetSNDoff();
};
}
function SetSNDoff() {
OrelRoll.Panel2.Panel.snd.onRelease = function () {
SoundOFF();
OrelRoll.Panel2.Panel.sndtxt.text = 'Sound OFF';
SetSNDon();
};
}
function SoundON() {
musicMsel.setVolume(15);
musicMst.setVolume(15);
musicMr.setVolume(15);
music.setVolume(15);
music1.setVolume(15);
music2.setVolume(15);
music1drop.setVolume(15);
music2drop.setVolume(15);
music3drop.setVolume(15);
music4drop.setVolume(15);
music5drop.setVolume(15);
music6drop.setVolume(15);
}
function SoundOFF() {
musicMsel.setVolume(0);
musicMst.setVolume(0);
musicMr.setVolume(0);
music.setVolume(0);
music1.setVolume(0);
music2.setVolume(0);
music1drop.setVolume(0);
music2drop.setVolume(0);
music3drop.setVolume(0);
music4drop.setVolume(0);
music5drop.setVolume(0);
music6drop.setVolume(0);
}
function IMGmcload() {
Case1img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Case1.pre._visible = true;
};
Case1img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Case1.pre._visible = false;
};
Case2img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Case2.pre._visible = true;
};
Case2img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Case2.pre._visible = false;
};
Case3img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Case3.pre._visible = true;
};
Case3img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Case3.pre._visible = false;
};
Case4img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Case4.pre._visible = true;
};
Case4img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Case4.pre._visible = false;
};
Case5img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Case5.pre._visible = true;
};
Case5img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Case5.pre._visible = false;
};
Case6img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Case6.pre._visible = true;
};
Case6img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Case6.pre._visible = false;
};
Case7img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Case7.pre._visible = true;
};
Case7img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Case7.pre._visible = false;
};
Case8img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Case8.pre._visible = true;
};
Case8img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Case8.pre._visible = false;
};
Case9img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Case9.pre._visible = true;
};
Case9img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Case9.pre._visible = false;
};
Case10img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Case10.pre._visible = true;
};
Case10img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Case10.pre._visible = false;
};
Case11img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Case11.pre._visible = true;
};
Case11img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Case11.pre._visible = false;
};
Case12img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Case12.pre._visible = true;
};
Case12img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Case12.pre._visible = false;
};
Cap1img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Cap1.pre._visible = true;
};
Cap1img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Cap1.pre._visible = false;
};
Cap2img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Cap2.pre._visible = true;
};
Cap2img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Cap2.pre._visible = false;
};
Cap3img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Cap3.pre._visible = true;
};
Cap3img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Cap3.pre._visible = false;
};
Cap4img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Cap4.pre._visible = true;
};
Cap4img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Cap4.pre._visible = false;
};
Cap5img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Cap5.pre._visible = true;
};
Cap5img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Cap5.pre._visible = false;
};
Cap6img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Cap6.pre._visible = true;
};
Cap6img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Cap6.pre._visible = false;
};
Cap7img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Cap7.pre._visible = true;
};
Cap7img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Cap7.pre._visible = false;
};
Cap8img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Cap8.pre._visible = true;
};
Cap8img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Cap8.pre._visible = false;
};
Cap9img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Cap9.pre._visible = true;
};
Cap9img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Cap9.pre._visible = false;
};
Cap10img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Cap10.pre._visible = true;
};
Cap10img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Cap10.pre._visible = false;
};
Cap11img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Cap11.pre._visible = true;
};
Cap11img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Cap11.pre._visible = false;
};
Cap12img.onLoadStart = function () {
OrelRoll.Panel3.Panel.Cap12.pre._visible = true;
};
Cap12img.onLoadComplete = function () {
OrelRoll.Panel3.Panel.Cap12.pre._visible = false;
};
Tile1img.onLoadStart = function () {
OrelRoll.Panel.Weapons.Item1.pre._visible = true;
};
Tile1img.onLoadComplete = function () {
OrelRoll.Panel.Weapons.Item1.pre._visible = false;
};
Tile2img.onLoadStart = function () {
OrelRoll.Panel.Weapons.Item2.pre._visible = true;
};
Tile2img.onLoadComplete = function () {
OrelRoll.Panel.Weapons.Item2.pre._visible = false;
};
Tile3img.onLoadStart = function () {
OrelRoll.Panel.Weapons.Item3.pre._visible = true;
};
Tile3img.onLoadComplete = function () {
OrelRoll.Panel.Weapons.Item3.pre._visible = false;
};
Tile4img.onLoadStart = function () {
OrelRoll.Panel.Weapons.Item4.pre._visible = true;
};
Tile4img.onLoadComplete = function () {
OrelRoll.Panel.Weapons.Item4.pre._visible = false;
};
Tile5img.onLoadStart = function () {
OrelRoll.Panel.Weapons.Item5.pre._visible = true;
};
Tile5img.onLoadComplete = function () {
OrelRoll.Panel.Weapons.Item5.pre._visible = false;
};
Tile6img.onLoadStart = function () {
OrelRoll.Panel.Weapons.Item6.pre._visible = true;
};
Tile6img.onLoadComplete = function () {
OrelRoll.Panel.Weapons.Item6.pre._visible = false;
};
Tile7img.onLoadStart = function () {
OrelRoll.Panel.Weapons.Item7.pre._visible = true;
};
Tile7img.onLoadComplete = function () {
OrelRoll.Panel.Weapons.Item7.pre._visible = false;
};
Tile8img.onLoadStart = function () {
OrelRoll.Panel.Weapons.Item8.pre._visible = true;
};
Tile8img.onLoadComplete = function () {
OrelRoll.Panel.Weapons.Item8.pre._visible = false;
};
Tile9img.onLoadStart = function () {
OrelRoll.Panel.Weapons.Item9.pre._visible = true;
};
Tile9img.onLoadComplete = function () {
OrelRoll.Panel.Weapons.Item9.pre._visible = false;
};
Tile10img.onLoadStart = function () {
OrelRoll.Panel.Weapons.Item10.pre._visible = true;
};
Tile10img.onLoadComplete = function () {
OrelRoll.Panel.Weapons.Item10.pre._visible = false;
};
Tile11img.onLoadStart = function () {
OrelRoll.Panel.Weapons.Item11.pre._visible = true;
};
Tile11img.onLoadComplete = function () {
OrelRoll.Panel.Weapons.Item11.pre._visible = false;
};
Tile12img.onLoadStart = function () {
OrelRoll.Panel.Weapons.Item12.pre._visible = true;
};
Tile12img.onLoadComplete = function () {
OrelRoll.Panel.Weapons.Item12.pre._visible = false;
};
Tile13img.onLoadStart = function () {
OrelRoll.Panel.Weapons.Item13.pre._visible = true;
};
Tile13img.onLoadComplete = function () {
OrelRoll.Panel.Weapons.Item13.pre._visible = false;
};
Tile14img.onLoadStart = function () {
OrelRoll.Panel.Weapons.Item14.pre._visible = true;
};
Tile14img.onLoadComplete = function () {
OrelRoll.Panel.Weapons.Item14.pre._visible = false;
};
Tile15img.onLoadStart = function () {
OrelRoll.Panel.Weapons.Item15.pre._visible = true;
};
Tile15img.onLoadComplete = function () {
OrelRoll.Panel.Weapons.Item15.pre._visible = false;
};
Tile16img.onLoadStart = function () {
OrelRoll.Panel.Weapons.Item16.pre._visible = true;
};
Tile16img.onLoadComplete = function () {
OrelRoll.Panel.Weapons.Item16.pre._visible = false;
};
Tile17img.onLoadStart = function () {
OrelRoll.Panel.Weapons.Item17.pre._visible = true;
};
Tile17img.onLoadComplete = function () {
OrelRoll.Panel.Weapons.Item17.pre._visible = false;
};
Tile0img.onLoadStart = function () {
OrelRoll.Panel.Weapons.Item0.pre._visible = true;
};
Tile0img.onLoadComplete = function () {
OrelRoll.Panel.Weapons.Item0.pre._visible = false;
};
}
function LoadImages() {
Case1 = 'images/Item/' + (((CaseName01.split('\r')).join('')).split('\n')).join('') + '.png';
Case2 = 'images/Item/' + (((CaseName02.split('\r')).join('')).split('\n')).join('') + '.png';
Case3 = 'images/Item/' + (((CaseName03.split('\r')).join('')).split('\n')).join('') + '.png';
Case4 = 'images/Item/' + (((CaseName04.split('\r')).join('')).split('\n')).join('') + '.png';
Case5 = 'images/Item/' + (((CaseName05.split('\r')).join('')).split('\n')).join('') + '.png';
Case6 = 'images/Item/' + (((CaseName06.split('\r')).join('')).split('\n')).join('') + '.png';
Case7 = 'images/Item/' + (((CaseName07.split('\r')).join('')).split('\n')).join('') + '.png';
Case8 = 'images/Item/' + (((CaseName08.split('\r')).join('')).split('\n')).join('') + '.png';
Case9 = 'images/Item/' + (((CaseName09.split('\r')).join('')).split('\n')).join('') + '.png';
Case10 = 'images/Item/' + (((CaseName10.split('\r')).join('')).split('\n')).join('') + '.png';
Case11 = 'images/Item/' + (((CaseName11.split('\r')).join('')).split('\n')).join('') + '.png';
Case12 = 'images/Item/' + (((CaseName12.split('\r')).join('')).split('\n')).join('') + '.png';
Case1img.loadClip(Case1, OrelRoll.Panel3.Panel.Case1.ImageSym);
Case2img.loadClip(Case2, OrelRoll.Panel3.Panel.Case2.ImageSym);
Case3img.loadClip(Case3, OrelRoll.Panel3.Panel.Case3.ImageSym);
Case4img.loadClip(Case4, OrelRoll.Panel3.Panel.Case4.ImageSym);
Case5img.loadClip(Case5, OrelRoll.Panel3.Panel.Case5.ImageSym);
Case6img.loadClip(Case6, OrelRoll.Panel3.Panel.Case6.ImageSym);
Case7img.loadClip(Case7, OrelRoll.Panel3.Panel.Case7.ImageSym);
Case8img.loadClip(Case8, OrelRoll.Panel3.Panel.Case8.ImageSym);
Case9img.loadClip(Case9, OrelRoll.Panel3.Panel.Case9.ImageSym);
Case10img.loadClip(Case10, OrelRoll.Panel3.Panel.Case10.ImageSym);
Case11img.loadClip(Case11, OrelRoll.Panel3.Panel.Case11.ImageSym);
Case12img.loadClip(Case12, OrelRoll.Panel3.Panel.Case12.ImageSym);
Cap1 = 'images/Item/' + (((CapName01.split('\r')).join('')).split('\n')).join('') + '.png';
Cap2 = 'images/Item/' + (((CapName02.split('\r')).join('')).split('\n')).join('') + '.png';
Cap3 = 'images/Item/' + (((CapName03.split('\r')).join('')).split('\n')).join('') + '.png';
Cap4 = 'images/Item/' + (((CapName04.split('\r')).join('')).split('\n')).join('') + '.png';
Cap5 = 'images/Item/' + (((CapName05.split('\r')).join('')).split('\n')).join('') + '.png';
Cap6 = 'images/Item/' + (((CapName06.split('\r')).join('')).split('\n')).join('') + '.png';
Cap7 = 'images/Item/' + (((CapName07.split('\r')).join('')).split('\n')).join('') + '.png';
Cap8 = 'images/Item/' + (((CapName08.split('\r')).join('')).split('\n')).join('') + '.png';
Cap9 = 'images/Item/' + (((CapName09.split('\r')).join('')).split('\n')).join('') + '.png';
Cap10 = 'images/Item/' + (((CapName10.split('\r')).join('')).split('\n')).join('') + '.png';
Cap11 = 'images/Item/' + (((CapName11.split('\r')).join('')).split('\n')).join('') + '.png';
Cap12 = 'images/Item/' + (((CapName12.split('\r')).join('')).split('\n')).join('') + '.png';
Cap1img.loadClip(Cap1, OrelRoll.Panel3.Panel.Cap1.ImageSym);
Cap2img.loadClip(Cap2, OrelRoll.Panel3.Panel.Cap2.ImageSym);
Cap3img.loadClip(Cap3, OrelRoll.Panel3.Panel.Cap3.ImageSym);
Cap4img.loadClip(Cap4, OrelRoll.Panel3.Panel.Cap4.ImageSym);
Cap5img.loadClip(Cap5, OrelRoll.Panel3.Panel.Cap5.ImageSym);
Cap6img.loadClip(Cap6, OrelRoll.Panel3.Panel.Cap6.ImageSym);
Cap7img.loadClip(Cap7, OrelRoll.Panel3.Panel.Cap7.ImageSym);
Cap8img.loadClip(Cap8, OrelRoll.Panel3.Panel.Cap8.ImageSym);
Cap9img.loadClip(Cap9, OrelRoll.Panel3.Panel.Cap9.ImageSym);
Cap10img.loadClip(Cap10, OrelRoll.Panel3.Panel.Cap10.ImageSym);
Cap11img.loadClip(Cap11, OrelRoll.Panel3.Panel.Cap11.ImageSym);
Cap12img.loadClip(Cap12, OrelRoll.Panel3.Panel.Cap12.ImageSym);
SetCase();
}
function SetCase() {
OrelRoll.Panel3.Panel.Case1.gotoAndStop('Idle');
OrelRoll.Panel3.Panel.Case2.gotoAndStop('Idle');
OrelRoll.Panel3.Panel.Case3.gotoAndStop('Idle');
OrelRoll.Panel3.Panel.Case4.gotoAndStop('Idle');
OrelRoll.Panel3.Panel.Case5.gotoAndStop('Idle');
OrelRoll.Panel3.Panel.Case6.gotoAndStop('Idle');
OrelRoll.Panel3.Panel.Case7.gotoAndStop('Idle');
OrelRoll.Panel3.Panel.Case8.gotoAndStop('Idle');
OrelRoll.Panel3.Panel.Case9.gotoAndStop('Idle');
OrelRoll.Panel3.Panel.Cap1.gotoAndStop('Idle');
OrelRoll.Panel3.Panel.Cap2.gotoAndStop('Idle');
OrelRoll.Panel3.Panel.Cap3.gotoAndStop('Idle');
OrelRoll.Panel3.Panel.Cap4.gotoAndStop('Idle');
OrelRoll.Panel3.Panel.Cap5.gotoAndStop('Idle');
OrelRoll.Panel3.Panel.Case1.onRelease = function () {
OrelRoll.Panel3.Panel.Case1.gotoAndPlay('StartAnim');
SetWeapons1();
DoShow();
loadMovie(Case1, OrelRoll.Panel.Item.ItemImage.DynamicItemImage.Image);
};
OrelRoll.Panel3.Panel.Case2.onRelease = function () {
OrelRoll.Panel3.Panel.Case2.gotoAndPlay('StartAnim');
SetWeapons2();
DoShow();
loadMovie(Case2, OrelRoll.Panel.Item.ItemImage.DynamicItemImage.Image);
};
OrelRoll.Panel3.Panel.Case3.onRelease = function () {
OrelRoll.Panel3.Panel.Case3.gotoAndPlay('StartAnim');
SetWeapons3();
DoShow();
loadMovie(Case3, OrelRoll.Panel.Item.ItemImage.DynamicItemImage.Image);
};
OrelRoll.Panel3.Panel.Case4.onRelease = function () {
OrelRoll.Panel3.Panel.Case4.gotoAndPlay('StartAnim');
SetWeapons4();
DoShow();
loadMovie(Case4, OrelRoll.Panel.Item.ItemImage.DynamicItemImage.Image);
};
OrelRoll.Panel3.Panel.Case5.onRelease = function () {
OrelRoll.Panel3.Panel.Case5.gotoAndPlay('StartAnim');
SetWeapons5();
DoShow();
loadMovie(Case5, OrelRoll.Panel.Item.ItemImage.DynamicItemImage.Image);
};
OrelRoll.Panel3.Panel.Case6.onRelease = function () {
OrelRoll.Panel3.Panel.Case6.gotoAndPlay('StartAnim');
SetWeapons6();
DoShow();
loadMovie(Case6, OrelRoll.Panel.Item.ItemImage.DynamicItemImage.Image);
};
OrelRoll.Panel3.Panel.Case7.onRelease = function () {
OrelRoll.Panel3.Panel.Case7.gotoAndPlay('StartAnim');
SetWeapons7();
DoShow();
loadMovie(Case7, OrelRoll.Panel.Item.ItemImage.DynamicItemImage.Image);
};
OrelRoll.Panel3.Panel.Case8.onRelease = function () {
OrelRoll.Panel3.Panel.Case8.gotoAndPlay('StartAnim');
SetWeapons8();
DoShow();
loadMovie(Case8, OrelRoll.Panel.Item.ItemImage.DynamicItemImage.Image);
};
OrelRoll.Panel3.Panel.Case9.onRelease = function () {
OrelRoll.Panel3.Panel.Case9.gotoAndPlay('StartAnim');
SetWeapons9();
DoShow();
loadMovie(Case9, OrelRoll.Panel.Item.ItemImage.DynamicItemImage.Image);
};
OrelRoll.Panel3.Panel.Cap1.onRelease = function () {
OrelRoll.Panel3.Panel.Cap1.gotoAndPlay('StartAnim');
SetStickers1();
DoShow();
loadMovie(Cap1, OrelRoll.Panel.Item.ItemImage.DynamicItemImage.Image);
};
OrelRoll.Panel3.Panel.Cap2.onRelease = function () {
OrelRoll.Panel3.Panel.Cap2.gotoAndPlay('StartAnim');
SetStickers2();
DoShow();
loadMovie(Cap2, OrelRoll.Panel.Item.ItemImage.DynamicItemImage.Image);
};
OrelRoll.Panel3.Panel.Cap3.onRelease = function () {
OrelRoll.Panel3.Panel.Cap3.gotoAndPlay('StartAnim');
SetStickers3();
DoShow();
loadMovie(Cap3, OrelRoll.Panel.Item.ItemImage.DynamicItemImage.Image);
};
OrelRoll.Panel3.Panel.Cap4.onRelease = function () {
OrelRoll.Panel3.Panel.Cap4.gotoAndPlay('StartAnim');
SetStickers4();
DoShow();
loadMovie(Cap4, OrelRoll.Panel.Item.ItemImage.DynamicItemImage.Image);
};
OrelRoll.Panel3.Panel.Cap5.onRelease = function () {
OrelRoll.Panel3.Panel.Cap5.gotoAndPlay('StartAnim');
SetStickers5();
DoShow();
loadMovie(Cap5, OrelRoll.Panel.Item.ItemImage.DynamicItemImage.Image);
};
}
function UnSetCase() {
OrelRoll.Panel3.Panel.Case1.gotoAndStop('Disabled');
OrelRoll.Panel3.Panel.Case2.gotoAndStop('Disabled');
OrelRoll.Panel3.Panel.Case3.gotoAndStop('Disabled');
OrelRoll.Panel3.Panel.Case4.gotoAndStop('Disabled');
OrelRoll.Panel3.Panel.Case5.gotoAndStop('Disabled');
OrelRoll.Panel3.Panel.Case6.gotoAndStop('Disabled');
OrelRoll.Panel3.Panel.Case7.gotoAndStop('Disabled');
OrelRoll.Panel3.Panel.Case8.gotoAndStop('Disabled');
OrelRoll.Panel3.Panel.Case9.gotoAndStop('Disabled');
OrelRoll.Panel3.Panel.Cap1.gotoAndStop('Disabled');
OrelRoll.Panel3.Panel.Cap2.gotoAndStop('Disabled');
OrelRoll.Panel3.Panel.Cap3.gotoAndStop('Disabled');
OrelRoll.Panel3.Panel.Cap4.gotoAndStop('Disabled');
OrelRoll.Panel3.Panel.Cap5.gotoAndStop('Disabled');
OrelRoll.Panel3.Panel.Case1.onRelease = function () {};
OrelRoll.Panel3.Panel.Case2.onRelease = function () {};
OrelRoll.Panel3.Panel.Case3.onRelease = function () {};
OrelRoll.Panel3.Panel.Case4.onRelease = function () {};
OrelRoll.Panel3.Panel.Case5.onRelease = function () {};
OrelRoll.Panel3.Panel.Case6.onRelease = function () {};
OrelRoll.Panel3.Panel.Case7.onRelease = function () {};
OrelRoll.Panel3.Panel.Case8.onRelease = function () {};
OrelRoll.Panel3.Panel.Case9.onRelease = function () {};
OrelRoll.Panel3.Panel.Cap1.onRelease = function () {};
OrelRoll.Panel3.Panel.Cap2.onRelease = function () {};
OrelRoll.Panel3.Panel.Cap3.onRelease = function () {};
OrelRoll.Panel3.Panel.Cap4.onRelease = function () {};
OrelRoll.Panel3.Panel.Cap5.onRelease = function () {};
}
function SetWeapons1() {
Price = 2.49;
Sticker = 0;
TotalWeapons = 10;
Item01 = 'MP7';
Item02 = 'AUG';
Item03 = 'SG 553';
Item04 = 'Glock-18';
Item05 = 'USP-S';
Item06 = 'M4A1-S';
Item07 = 'AK-47';
Item08 = 'Desert Eagle';
Item09 = 'AWP';
Item10 = 'Exceedingly Rare';
Item11 = undefined;
Item12 = undefined;
Item13 = undefined;
Item14 = undefined;
Item15 = undefined;
Item16 = undefined;
Item17 = undefined;
Item18 = undefined;
Item01_desc = 'Skulls';
Item02_desc = 'Wings';
Item03_desc = 'Ultraviolet';
Item04_desc = 'Dragon Tattoo';
Item05_desc = 'Dark Water';
Item06_desc = 'Dark Water';
Item07_desc = 'Case Hardened';
Item08_desc = 'Hypnotic';
Item09_desc = 'Lightning Strike';
Item10_desc = 'Special Item';
Item11_desc = undefined;
Item12_desc = undefined;
Item13_desc = undefined;
Item14_desc = undefined;
Item15_desc = undefined;
Item16_desc = undefined;
Item17_desc = undefined;
Item18_desc = undefined;
Item01_lvl = 'Level2';
Item02_lvl = 'Level2';
Item03_lvl = 'Level2';
Item04_lvl = 'Level3';
Item05_lvl = 'Level3';
Item06_lvl = 'Level3';
Item07_lvl = 'Level4';
Item08_lvl = 'Level4';
Item09_lvl = 'Level5';
Item10_lvl = 'Level6';
Item11_lvl = undefined;
Item12_lvl = undefined;
Item13_lvl = undefined;
Item14_lvl = undefined;
Item15_lvl = undefined;
Item16_lvl = undefined;
Item17_lvl = undefined;
Item18_lvl = undefined;
Huntsman = 0;
OrelRoll.Panel.Item.PlayerName.text = 'Weapon Case';
}
function SetWeapons2() {
Price = 2.49;
Sticker = 0;
TotalWeapons = 10;
Item01 = 'M4A4';
Item02 = 'MAG-7';
Item03 = 'FAMAS';
Item04 = 'Galil AR';
Item05 = 'Sawed-Off';
Item06 = 'P250';
Item07 = 'AK-47';
Item08 = 'AWP';
Item09 = 'P90';
Item10 = 'Exceedingly Rare';
Item11 = undefined;
Item12 = undefined;
Item13 = undefined;
Item14 = undefined;
Item15 = undefined;
Item16 = undefined;
Item17 = undefined;
Item18 = undefined;
Item01_desc = 'Faded Zebra';
Item02_desc = 'Memento';
Item03_desc = 'Doomkitty';
Item04_desc = 'Orange DDPAT';
Item05_desc = 'Orange DDPAT';
Item06_desc = 'Splash';
Item07_desc = 'Red Laminate';
Item08_desc = 'BOOM';
Item09_desc = 'Death by Kitty';
Item10_desc = 'Special Item';
Item11_desc = undefined;
Item12_desc = undefined;
Item13_desc = undefined;
Item14_desc = undefined;
Item15_desc = undefined;
Item16_desc = undefined;
Item17_desc = undefined;
Item18_desc = undefined;
Item01_lvl = 'Level2';
Item02_lvl = 'Level2';
Item03_lvl = 'Level2';
Item04_lvl = 'Level3';
Item05_lvl = 'Level3';
Item06_lvl = 'Level3';
Item07_lvl = 'Level4';
Item08_lvl = 'Level4';
Item09_lvl = 'Level5';
Item10_lvl = 'Level6';
Item11_lvl = undefined;
Item12_lvl = undefined;
Item13_lvl = undefined;
Item14_lvl = undefined;
Item15_lvl = undefined;
Item16_lvl = undefined;
Item17_lvl = undefined;
Item18_lvl = undefined;
Huntsman = 0;
OrelRoll.Panel.Item.PlayerName.text = 'eSports Case';
}
function SetWeapons3() {
Price = 2.49;
Sticker = 0;
TotalWeapons = 13;
Item01 = 'Tec-9';
Item02 = 'M4A1-S';
Item03 = 'FAMAS';
Item04 = 'P250';
Item05 = 'SCAR-20';
Item06 = 'Five-SeveN';
Item07 = 'MP9';
Item08 = 'Nova';
Item09 = 'Dual Berettas';
Item10 = 'P90';
Item11 = 'USP-S';
Item12 = 'SSG 08';
Item13 = 'Exceedingly Rare';
Item14 = undefined;
Item15 = undefined;
Item16 = undefined;
Item17 = undefined;
Item18 = undefined;
Item01_desc = 'Blue Titanium';
Item02_desc = 'Blood Tiger';
Item03_desc = 'Hexane';
Item04_desc = 'Hive';
Item05_desc = 'Crimson Web';
Item06_desc = 'Case Hardened';
Item07_desc = 'Hypnotic';
Item08_desc = 'Graphite';
Item09_desc = 'Hemoglobin';
Item10_desc = 'Cold Blooded';
Item11_desc = 'Serum';
Item12_desc = 'Blood in the Water';
Item13_desc = 'Special Item';
Item14_desc = undefined;
Item15_desc = undefined;
Item16_desc = undefined;
Item17_desc = undefined;
Item18_desc = undefined;
Item01_lvl = 'Level2';
Item02_lvl = 'Level2';
Item03_lvl = 'Level2';
Item04_lvl = 'Level2';
Item05_lvl = 'Level2';
Item06_lvl = 'Level3';
Item07_lvl = 'Level3';
Item08_lvl = 'Level3';
Item09_lvl = 'Level3';
Item10_lvl = 'Level4';
Item11_lvl = 'Level4';
Item12_lvl = 'Level5';
Item13_lvl = 'Level6';
Item14_lvl = undefined;
Item15_lvl = undefined;
Item16_lvl = undefined;
Item17_lvl = undefined;
Item18_lvl = undefined;
Huntsman = 0;
OrelRoll.Panel.Item.PlayerName.text = 'Weapon Case 2';
}
function SetWeapons4() {
Price = 2.49;
Sticker = 0;
TotalWeapons = 16;
Item01 = 'SG 553';
Item02 = 'Dual Berettas';
Item03 = 'Nova';
Item04 = 'Galil AR';
Item05 = 'UMP-45';
Item06 = 'G3SG1';
Item07 = 'USP-S';
Item08 = 'M4A4';
Item09 = 'MAC-10';
Item10 = 'M4A1-S';
Item11 = 'P90';
Item12 = 'P2000';
Item13 = 'AWP';
Item14 = 'AK-47';
Item15 = 'Desert Eagle';
Item16 = 'Exceedingly Rare';
Item17 = undefined;
Item18 = undefined;
Item01_desc = 'Wave Spray';
Item02_desc = 'Black Limba';
Item03_desc = 'Tempest';
Item04_desc = 'Shattered';
Item05_desc = 'Bone Pile';
Item06_desc = 'Demeter';
Item07_desc = 'Overgrowth';
Item08_desc = 'Zirka';
Item09_desc = 'Graven';
Item10_desc = 'Bright Water';
Item11_desc = 'Emerald Dragon';
Item12_desc = 'Ocean Foam';
Item13_desc = 'Graphite';
Item14_desc = 'Fire Serpent';
Item15_desc = 'Golden Koi';
Item16_desc = 'Special Item';
Item17_desc = undefined;
Item18_desc = undefined;
Item01_lvl = 'Level2';
Item02_lvl = 'Level2';
Item03_lvl = 'Level2';
Item04_lvl = 'Level2';
Item05_lvl = 'Level2';
Item06_lvl = 'Level2';
Item07_lvl = 'Level3';
Item08_lvl = 'Level3';
Item09_lvl = 'Level3';
Item10_lvl = 'Level3';
Item11_lvl = 'Level4';
Item12_lvl = 'Level4';
Item13_lvl = 'Level4';
Item14_lvl = 'Level5';
Item15_lvl = 'Level5';
Item16_lvl = 'Level6';
Item17_lvl = undefined;
Item18_lvl = undefined;
Huntsman = 0;
OrelRoll.Panel.Item.PlayerName.text = 'Operation Bravo case';
}
function SetWeapons5() {
Price = 2.49;
Sticker = 0;
TotalWeapons = 14;
Item01 = 'Galil AR';
Item02 = 'Five-SeveN';
Item03 = 'M249';
Item04 = 'PP-Bizon';
Item05 = 'FAMAS';
Item06 = 'Dual Berettas';
Item07 = 'MP9';
Item08 = 'Nova';
Item09 = 'M4A1-S';
Item10 = 'P250';
Item11 = 'AWP';
Item12 = 'M4A4';
Item13 = 'Sawed-Off';
Item14 = 'Exceedingly Rare';
Item15 = undefined;
Item16 = undefined;
Item17 = undefined;
Item18 = undefined;
Item01_desc = 'Sandstorm';
Item02_desc = 'Kami';
Item03_desc = 'Magma';
Item04_desc = 'Cobalt Halftone';
Item05_desc = 'Pulse';
Item06_desc = 'Marina';
Item07_desc = 'Rose Iron';
Item08_desc = 'Rising Skull';
Item09_desc = 'Guardian';
Item10_desc = 'Mehndi';
Item11_desc = 'Redline';
Item12_desc = 'Asiimov';
Item13_desc = 'The Kraken';
Item14_desc = 'Special Item';
Item15_desc = undefined;
Item16_desc = undefined;
Item17_desc = undefined;
Item18_desc = undefined;
Item01_lvl = 'Level2';
Item02_lvl = 'Level2';
Item03_lvl = 'Level2';
Item04_lvl = 'Level2';
Item05_lvl = 'Level3';
Item06_lvl = 'Level3';
Item07_lvl = 'Level3';
Item08_lvl = 'Level3';
Item09_lvl = 'Level4';
Item10_lvl = 'Level4';
Item11_lvl = 'Level4';
Item12_lvl = 'Level5';
Item13_lvl = 'Level5';
Item14_lvl = 'Level6';
Item15_lvl = undefined;
Item16_lvl = undefined;
Item17_lvl = undefined;
Item18_lvl = undefined;
Huntsman = 0;
OrelRoll.Panel.Item.PlayerName.text = 'Winter Weapon Case';
}
function SetWeapons6() {
Price = 2.49;
Sticker = 0;
TotalWeapons = 13;
Item01 = 'Galil AR';
Item02 = 'Five-SeveN';
Item03 = 'PP-Bizon';
Item04 = 'Nova';
Item05 = 'G3SG1';
Item06 = 'P250';
Item07 = 'AK-47';
Item08 = 'P90';
Item09 = 'FAMAS';
Item10 = 'AWP';
Item11 = 'Desert Eagle';
Item12 = 'M4A4';
Item13 = 'Exceedingly Rare';
Item14 = undefined;
Item15 = undefined;
Item16 = undefined;
Item17 = undefined;
Item18 = undefined;
Item01_desc = 'Blue Titanium';
Item02_desc = 'Nightshade';
Item03_desc = 'Water Sigil';
Item04_desc = 'Ghost Camo';
Item05_desc = 'Azure Zebra';
Item06_desc = 'Steel Disruption';
Item07_desc = 'Blue Laminate';
Item08_desc = 'Blind Spot';
Item09_desc = 'Afterimage';
Item10_desc = 'Electric Hive';
Item11_desc = 'Cobalt Disruption';
Item12_desc = 'X-Ray';
Item13_desc = 'Special Item';
Item14_desc = undefined;
Item15_desc = undefined;
Item16_desc = undefined;
Item17_desc = undefined;
Item18_desc = undefined;
Item01_lvl = 'Level2';
Item02_lvl = 'Level2';
Item03_lvl = 'Level2';
Item04_lvl = 'Level2';
Item05_lvl = 'Level2';
Item06_lvl = 'Level2';
Item07_lvl = 'Level3';
Item08_lvl = 'Level3';
Item09_lvl = 'Level4';
Item10_lvl = 'Level4';
Item11_lvl = 'Level4';
Item12_lvl = 'Level5';
Item13_lvl = 'Level6';
Item14_lvl = undefined;
Item15_lvl = undefined;
Item16_lvl = undefined;
Item17_lvl = undefined;
Item18_lvl = undefined;
Huntsman = 0;
OrelRoll.Panel.Item.PlayerName.text = 'eSports Winter Case';
}
function SetWeapons7() {
Price = 2.49;
Sticker = 0;
TotalWeapons = 13;
Item01 = 'CZ75-Auto';
Item02 = 'P2000';
Item03 = 'Dual Berettas';
Item04 = 'USP-S';
Item05 = 'Glock-18';
Item06 = 'CZ75-Auto';
Item07 = 'Tec-9';
Item08 = 'Desert Eagle';
Item09 = 'Five-SeveN';
Item10 = 'CZ75-Auto';
Item11 = 'P250';
Item12 = 'CZ75-Auto';
Item13 = 'Exceedingly Rare';
Item14 = undefined;
Item15 = undefined;
Item16 = undefined;
Item17 = undefined;
Item18 = undefined;
Item01_desc = 'Crimson Web';
Item02_desc = 'Red FragCam';
Item03_desc = 'Panther';
Item04_desc = 'Stainless';
Item05_desc = 'Blue Fissure';
Item06_desc = 'Tread Plate';
Item07_desc = 'Titanium Bit';
Item08_desc = 'Heirloom';
Item09_desc = 'Copper Galaxy';
Item10_desc = 'The Fuschia Is Now';
Item11_desc = 'Undertow';
Item12_desc = 'Victoria';
Item13_desc = 'Special Item';
Item14_desc = undefined;
Item15_desc = undefined;
Item16_desc = undefined;
Item17_desc = undefined;
Item18_desc = undefined;
Item01_lvl = 'Level2';
Item02_lvl = 'Level2';
Item03_lvl = 'Level2';
Item04_lvl = 'Level2';
Item05_lvl = 'Level2';
Item06_lvl = 'Level3';
Item07_lvl = 'Level3';
Item08_lvl = 'Level3';
Item09_lvl = 'Level3';
Item10_lvl = 'Level4';
Item11_lvl = 'Level4';
Item12_lvl = 'Level5';
Item13_lvl = 'Level6';
Item14_lvl = undefined;
Item15_lvl = undefined;
Item16_lvl = undefined;
Item17_lvl = undefined;
Item18_lvl = undefined;
Huntsman = 0;
OrelRoll.Panel.Item.PlayerName.text = 'Weapon Case 3';
}
function SetWeapons8() {
Price = 2.49;
Sticker = 0;
TotalWeapons = 14;
Item01 = 'UMP-45';
Item02 = 'Negev';
Item03 = 'Tec-9';
Item04 = 'MAG-7';
Item05 = 'MAC-10';
Item06 = 'SG 553';
Item07 = 'FAMAS';
Item08 = 'USP-S';
Item09 = 'AK-47';
Item10 = 'P90';
Item11 = 'Nova';
Item12 = 'AWP';
Item13 = 'AUG';
Item14 = 'Exceedingly Rare';
Item15 = undefined;
Item16 = undefined;
Item17 = undefined;
Item18 = undefined;
Item01_desc = 'Corporal';
Item02_desc = 'Terrain';
Item03_desc = 'Sandstorm';
Item04_desc = 'Heaven Guard';
Item05_desc = 'Heat';
Item06_desc = 'Pulse';
Item07_desc = 'Sergeant';
Item08_desc = 'Guardian';
Item09_desc = 'Redline';
Item10_desc = 'Trigon';
Item11_desc = 'Antique';
Item12_desc = 'Asiimov';
Item13_desc = 'Chameleon';
Item14_desc = 'Special Item';
Item15_desc = undefined;
Item16_desc = undefined;
Item17_desc = undefined;
Item18_desc = undefined;
Item01_lvl = 'Level2';
Item02_lvl = 'Level2';
Item03_lvl = 'Level2';
Item04_lvl = 'Level2';
Item05_lvl = 'Level3';
Item06_lvl = 'Level3';
Item07_lvl = 'Level3';
Item08_lvl = 'Level3';
Item09_lvl = 'Level4';
Item10_lvl = 'Level4';
Item11_lvl = 'Level4';
Item12_lvl = 'Level5';
Item13_lvl = 'Level5';
Item14_lvl = 'Level6';
Item15_lvl = undefined;
Item16_lvl = undefined;
Item17_lvl = undefined;
Item18_lvl = undefined;
Huntsman = 0;
OrelRoll.Panel.Item.PlayerName.text = 'Operation Phoenix Case';
}
function SetWeapons9() {
Price = 2.49;
Sticker = 0;
TotalWeapons = 16;
Item01 = 'Tec-9';
Item02 = 'SSG 08';
Item03 = 'Dual Berettas';
Item04 = 'Galil AR';
Item05 = 'P90';
Item06 = 'CZ75-Auto';
Item07 = 'AUG';
Item08 = 'PP-Bizon';
Item09 = 'MAC-10';
Item10 = 'XM1014';
Item11 = 'M4A1-S';
Item12 = 'SCAR-20';
Item13 = 'USP-S';
Item14 = 'AK-47';
Item15 = 'M4A4';
Item16 = 'Huntsman Knife';
Item17 = undefined;
Item18 = undefined;
Item01_desc = 'Isaac';
Item02_desc = 'Slashed';
Item03_desc = 'Retribution';
Item04_desc = 'Kami';
Item05_desc = 'Desert Warfare';
Item06_desc = 'Poison Dart';
Item07_desc = 'Torque';
Item08_desc = 'Antique';
Item09_desc = 'Curse';
Item10_desc = 'Heaven Guard';
Item11_desc = 'Atomic Alloy';
Item12_desc = 'Cyrex';
Item13_desc = 'Orion';
Item14_desc = 'Vulcan';
Item15_desc = 'Howl';
Item16_desc = '';
Item17_desc = undefined;
Item18_desc = undefined;
Item01_lvl = 'Level2';
Item02_lvl = 'Level2';
Item03_lvl = 'Level2';
Item04_lvl = 'Level2';
Item05_lvl = 'Level2';
Item06_lvl = 'Level2';
Item07_lvl = 'Level3';
Item08_lvl = 'Level3';
Item09_lvl = 'Level3';
Item10_lvl = 'Level3';
Item11_lvl = 'Level4';
Item12_lvl = 'Level4';
Item13_lvl = 'Level4';
Item14_lvl = 'Level5';
Item15_lvl = 'Level5';
Item16_lvl = 'Level6';
Item17_lvl = undefined;
Item18_lvl = undefined;
Huntsman = 1;
OrelRoll.Panel.Item.PlayerName.text = 'Huntsman Weapon Case';
}
function SetStickers1() {
Price = 0.99;
Sticker = 1;
TotalWeapons = 15;
Item01 = 'Sticker';
Item02 = 'Sticker';
Item03 = 'Sticker';
Item04 = 'Sticker';
Item05 = 'Sticker';
Item06 = 'Sticker';
Item07 = 'Sticker';
Item08 = 'Sticker';
Item09 = 'Sticker';
Item10 = 'Sticker';
Item11 = 'Sticker';
Item12 = 'Sticker';
Item13 = 'Sticker';
Item14 = 'Sticker';
Item15 = 'Sticker';
Item16 = undefined;
Item17 = undefined;
Item18 = undefined;
Item01_desc = 'Lucky 13';
Item02_desc = 'Aces High';
Item03_desc = 'I Conquered';
Item04_desc = 'Seek & Destroy';
Item05_desc = 'Black Dog';
Item06_desc = 'Fearsome';
Item07_desc = 'Cerberus';
Item08_desc = 'Easy Peasy';
Item09_desc = 'Luck Skill';
Item10_desc = 'Vigilance';
Item11_desc = 'Aces High (Holo)';
Item12_desc = 'Fearsome (Holo)';
Item13_desc = 'Vigilance (Holo)';
Item14_desc = 'Lucky 13 (Foil)';
Item15_desc = 'Luck Skill (Foil)';
Item16_desc = undefined;
Item17_desc = undefined;
Item18_desc = undefined;
Item01_lvl = 'Level2';
Item02_lvl = 'Level2';
Item03_lvl = 'Level2';
Item04_lvl = 'Level2';
Item05_lvl = 'Level2';
Item06_lvl = 'Level2';
Item07_lvl = 'Level2';
Item08_lvl = 'Level2';
Item09_lvl = 'Level2';
Item10_lvl = 'Level2';
Item11_lvl = 'Level3';
Item12_lvl = 'Level3';
Item13_lvl = 'Level3';
Item14_lvl = 'Level4';
Item15_lvl = 'Level4';
Item16_lvl = undefined;
Item17_lvl = undefined;
Item18_lvl = undefined;
Huntsman = 0;
OrelRoll.Panel.Item.PlayerName.text = 'Sticker Capsule';
}
function SetStickers2() {
Price = 0.99;
Sticker = 1;
TotalWeapons = 16;
Item01 = 'Sticker';
Item02 = 'Sticker';
Item03 = 'Sticker';
Item04 = 'Sticker';
Item05 = 'Sticker';
Item06 = 'Sticker';
Item07 = 'Sticker';
Item08 = 'Sticker';
Item09 = 'Sticker';
Item10 = 'Sticker';
Item11 = 'Sticker';
Item12 = 'Sticker';
Item13 = 'Sticker';
Item14 = 'Sticker';
Item15 = 'Sticker';
Item16 = 'Sticker';
Item17 = undefined;
Item18 = undefined;
Item01_desc = 'Banana';
Item02_desc = 'Bomb Code';
Item03_desc = 'Chicken Lover';
Item04_desc = 'Good Game';
Item05_desc = 'Good Luck';
Item06_desc = 'Have Fun';
Item07_desc = 'Let\'s Roll-oll';
Item08_desc = 'Metal';
Item09_desc = 'Nice Shot';
Item10_desc = 'Welcome to the Clutch';
Item11_desc = 'Bish (Holo)';
Item12_desc = 'Bash (Holo)';
Item13_desc = 'Bosh (Holo)';
Item14_desc = 'Let\'s Roll-oll (Holo)';
Item15_desc = 'Crown (Foil)';
Item16_desc = 'Stupid Banana (Foil)';
Item17_desc = undefined;
Item18_desc = undefined;
Item01_lvl = 'Level2';
Item02_lvl = 'Level2';
Item03_lvl = 'Level2';
Item04_lvl = 'Level2';
Item05_lvl = 'Level2';
Item06_lvl = 'Level2';
Item07_lvl = 'Level2';
Item08_lvl = 'Level2';
Item09_lvl = 'Level2';
Item10_lvl = 'Level2';
Item11_lvl = 'Level3';
Item12_lvl = 'Level3';
Item13_lvl = 'Level3';
Item14_lvl = 'Level3';
Item15_lvl = 'Level4';
Item16_lvl = 'Level4';
Item17_lvl = undefined;
Item18_lvl = undefined;
Huntsman = 0;
OrelRoll.Panel.Item.PlayerName.text = 'Sticker Capsule 2';
}
function SetStickers3() {
Price = 0;
Sticker = 1;
TotalWeapons = 17;
Item01 = 'Sticker';
Item02 = 'Sticker';
Item03 = 'Sticker';
Item04 = 'Sticker';
Item05 = 'Sticker';
Item06 = 'Sticker';
Item07 = 'Sticker';
Item08 = 'Sticker';
Item09 = 'Sticker';
Item10 = 'Sticker';
Item11 = 'Sticker';
Item12 = 'Sticker';
Item13 = 'Sticker';
Item14 = 'Sticker';
Item15 = 'Sticker';
Item16 = 'Sticker';
Item17 = 'Sticker';
Item18 = undefined;
Item01_desc = '3DMAX';
Item02_desc = 'iBUYPOWER';
Item03_desc = 'mousesports';
Item04_desc = 'Clan-Mystik';
Item05_desc = 'Natus Vincere';
Item06_desc = 'Reason Gaming';
Item07_desc = 'Virtus.Pro';
Item08_desc = 'Vox Eminor';
Item09_desc = '3DMAX (Holo)';
Item10_desc = 'iBUYPOWER (Holo)';
Item11_desc = 'mousesports (Holo)';
Item12_desc = 'Clan-Mystik (Holo)';
Item13_desc = 'Natus Vincere (Holo)';
Item14_desc = 'Reason Gaming (Holo)';
Item15_desc = 'Virtus.Pro (Holo)';
Item16_desc = 'Vox Eminor (Holo)';
Item17_desc = 'ESL Wolf (Foil)';
Item18_desc = undefined;
Item01_lvl = 'Level2';
Item02_lvl = 'Level2';
Item03_lvl = 'Level2';
Item04_lvl = 'Level2';
Item05_lvl = 'Level2';
Item06_lvl = 'Level2';
Item07_lvl = 'Level2';
Item08_lvl = 'Level2';
Item09_lvl = 'Level3';
Item10_lvl = 'Level3';
Item11_lvl = 'Level3';
Item12_lvl = 'Level3';
Item13_lvl = 'Level3';
Item14_lvl = 'Level3';
Item15_lvl = 'Level3';
Item16_lvl = 'Level3';
Item17_lvl = 'Level4';
Item18_lvl = undefined;
Huntsman = 0;
OrelRoll.Panel.Item.PlayerName.text = 'EMS Katowice 2014 Chal.';
}
function SetStickers4() {
Price = 0;
Sticker = 1;
TotalWeapons = 17;
Item01 = 'Sticker';
Item02 = 'Sticker';
Item03 = 'Sticker';
Item04 = 'Sticker';
Item05 = 'Sticker';
Item06 = 'Sticker';
Item07 = 'Sticker';
Item08 = 'Sticker';
Item09 = 'Sticker';
Item10 = 'Sticker';
Item11 = 'Sticker';
Item12 = 'Sticker';
Item13 = 'Sticker';
Item14 = 'Sticker';
Item15 = 'Sticker';
Item16 = 'Sticker';
Item17 = 'Sticker';
Item18 = undefined;
Item01_desc = 'compLexity Gaming';
Item02_desc = 'Team Dignitas';
Item03_desc = 'Fnatic';
Item04_desc = 'HellRaisers';
Item05_desc = 'Team LDLC.com';
Item06_desc = 'LGB eSports';
Item07_desc = 'Ninjas in Pyjamas';
Item08_desc = 'Titan';
Item09_desc = 'compLexity Gaming (H)';
Item10_desc = 'Team Dignitas (Holo)';
Item11_desc = 'Fnatic (Holo)';
Item12_desc = 'HellRaisers (Holo)';
Item13_desc = 'Team LDLC.com (H)';
Item14_desc = 'LGB eSports (Holo)';
Item15_desc = 'Ninjas in Pyjamas (H)';
Item16_desc = 'Titan (Holo)';
Item17_desc = 'ESL Skull (Foil)';
Item18_desc = undefined;
Item01_lvl = 'Level2';
Item02_lvl = 'Level2';
Item03_lvl = 'Level2';
Item04_lvl = 'Level2';
Item05_lvl = 'Level2';
Item06_lvl = 'Level2';
Item07_lvl = 'Level2';
Item08_lvl = 'Level2';
Item09_lvl = 'Level3';
Item10_lvl = 'Level3';
Item11_lvl = 'Level3';
Item12_lvl = 'Level3';
Item13_lvl = 'Level3';
Item14_lvl = 'Level3';
Item15_lvl = 'Level3';
Item16_lvl = 'Level3';
Item17_lvl = 'Level4';
Item18_lvl = undefined;
Huntsman = 0;
OrelRoll.Panel.Item.PlayerName.text = 'EMS Katowice 2014 Leg.';
}
function SetStickers5() {
Price = 0.99;
Sticker = 1;
TotalWeapons = 18;
Item01 = 'Sticker';
Item02 = 'Sticker';
Item03 = 'Sticker';
Item04 = 'Sticker';
Item05 = 'Sticker';
Item06 = 'Sticker';
Item07 = 'Sticker';
Item08 = 'Sticker';
Item09 = 'Sticker';
Item10 = 'Sticker';
Item11 = 'Sticker';
Item12 = 'Sticker';
Item13 = 'Sticker';
Item14 = 'Sticker';
Item15 = 'Sticker';
Item16 = 'Sticker';
Item17 = 'Sticker';
Item18 = 'Sticker';
Item01_desc = 'Backstab';
Item02_desc = 'King on the Field';
Item03_desc = 'Bomb Doge';
Item04_desc = 'Burn Them All';
Item05_desc = 'Llama Cannon';
Item06_desc = 'My Other Awp';
Item07_desc = 'Shave Master';
Item08_desc = 'Rising Skull';
Item09_desc = 'Sneaky Beaky Like';
Item10_desc = 'To B or not to B';
Item11_desc = 'Winged Defuser';
Item12_desc = 'Howling Dawn';
Item13_desc = 'Teamwork (Holo)';
Item14_desc = 'Harp of War (Holo)';
Item15_desc = 'Headhunter (Foil)';
Item16_desc = 'Flammable (Foil)';
Item17_desc = 'New Sheriff (Foil)';
Item18_desc = 'Swag (Foil)';
Item01_lvl = 'Level2';
Item02_lvl = 'Level2';
Item03_lvl = 'Level2';
Item04_lvl = 'Level2';
Item05_lvl = 'Level2';
Item06_lvl = 'Level2';
Item07_lvl = 'Level2';
Item08_lvl = 'Level2';
Item09_lvl = 'Level2';
Item10_lvl = 'Level2';
Item11_lvl = 'Level2';
Item12_lvl = 'Level2';
Item13_lvl = 'Level3';
Item14_lvl = 'Level3';
Item15_lvl = 'Level4';
Item16_lvl = 'Level4';
Item17_lvl = 'Level4';
Item18_lvl = 'Level4';
Huntsman = 0;
OrelRoll.Panel.Item.PlayerName.text = 'Community Sticker Cap. 1';
}
function UpdateGPHP() {
loadVariables('Test.php?load=true', '');
UpdateGStats();
}
function UpdateGStats() {
if (GKeys == undefined || GKeys == 0) {
OrelRoll.Panel2.Panel.unav._visible = true;
OrelRoll.Panel2.Panel.GMoney.text = '';
OrelRoll.Panel2.Panel.GKeys.text = '';
OrelRoll.Panel2.Panel.GLevel2c.text = '';
OrelRoll.Panel2.Panel.GLevel3c.text = '';
OrelRoll.Panel2.Panel.GLevel4c.text = '';
OrelRoll.Panel2.Panel.GLevel5c.text = '';
OrelRoll.Panel2.Panel.GLevel6c.text = '';
OrelRoll.Panel2.Panel.GLevel2sc.text = '';
OrelRoll.Panel2.Panel.GLevel3sc.text = '';
OrelRoll.Panel2.Panel.GLevel4sc.text = '';
} else {
OrelRoll.Panel2.Panel.unav._visible = false;
OrelRoll.Panel2.Panel.GMoney.text = 'Money spent: ' + Math.floor(GMoney) + '$';
OrelRoll.Panel2.Panel.GKeys.text = 'Containers opened: ' + GKeys;
OrelRoll.Panel2.Panel.GLevel2c.text = Number(GL2got) + Number(GL2gotS) + ' / ' + Number(GL2gotS);
OrelRoll.Panel2.Panel.GLevel3c.text = Number(GL3got) + Number(GL3gotS) + ' / ' + Number(GL3gotS);
OrelRoll.Panel2.Panel.GLevel4c.text = Number(GL4got) + Number(GL4gotS) + ' / ' + Number(GL4gotS);
OrelRoll.Panel2.Panel.GLevel5c.text = Number(GL5got) + Number(GL5gotS) + ' / ' + Number(GL5gotS);
OrelRoll.Panel2.Panel.GLevel6c.text = Number(GL6got) + Number(GL6gotS) + ' / ' + Number(GL6gotS);
OrelRoll.Panel2.Panel.GLevel2sc.text = GL2Sgot;
OrelRoll.Panel2.Panel.GLevel3sc.text = GL3Sgot;
OrelRoll.Panel2.Panel.GLevel4sc.text = GL4Sgot;
if (OrelRoll.Panel2.Panel.GKeys.text == 'Containers opened: $GKeys') {
OrelRoll.Panel2.Panel.unav._visible = true;
OrelRoll.Panel2.Panel.GMoney.text = '';
OrelRoll.Panel2.Panel.GKeys.text = '';
OrelRoll.Panel2.Panel.GLevel2c.text = '';
OrelRoll.Panel2.Panel.GLevel3c.text = '';
OrelRoll.Panel2.Panel.GLevel4c.text = '';
OrelRoll.Panel2.Panel.GLevel5c.text = '';
OrelRoll.Panel2.Panel.GLevel6c.text = '';
OrelRoll.Panel2.Panel.GLevel2sc.text = '';
OrelRoll.Panel2.Panel.GLevel3sc.text = '';
OrelRoll.Panel2.Panel.GLevel4sc.text = '';
}
}
}
function UpdateGStatsFailed() {
OrelRoll.Panel2.Panel.GLevel2c.text = '';
OrelRoll.Panel2.Panel.GLevel3c.text = '';
OrelRoll.Panel2.Panel.GLevel4c.text = '';
OrelRoll.Panel2.Panel.GLevel5c.text = '';
OrelRoll.Panel2.Panel.GLevel6c.text = '';
OrelRoll.Panel2.Panel.GLevel2sc.text = '';
OrelRoll.Panel2.Panel.GLevel3sc.text = '';
OrelRoll.Panel2.Panel.GLevel4sc.text = '';
}
function CountStats() {
OrelRoll.Panel2.Panel.Money.text = 'Money spent: ' + Money + '$';
OrelRoll.Panel2.Panel.Keys.text = 'Containers opened: ' + Keys;
var v1 = allowVote;
}
function CountStatsWeap() {
OrelRoll.Panel2.Panel.Level2c.text = L2got + L2gotS + ' / ' + L2gotS;
OrelRoll.Panel2.Panel.Level3c.text = L3got + L3gotS + ' / ' + L3gotS;
OrelRoll.Panel2.Panel.Level4c.text = L4got + L4gotS + ' / ' + L4gotS;
OrelRoll.Panel2.Panel.Level5c.text = L5got + L5gotS + ' / ' + L5gotS;
OrelRoll.Panel2.Panel.Level6c.text = L6got + L6gotS + ' / ' + L6gotS;
OrelRoll.Panel2.Panel.Level2sc.text = L2Sgot;
OrelRoll.Panel2.Panel.Level3sc.text = L3Sgot;
OrelRoll.Panel2.Panel.Level4sc.text = L4Sgot;
loadVariablesNum('Test2.php?load2=true', , 'POST');
}
function CountStatsLoad() {
OrelRoll.Panel2.Panel.Money.text = 'Money spent: ' + Money + '$';
OrelRoll.Panel2.Panel.Keys.text = 'Containers opened: ' + Keys;
OrelRoll.Panel2.Panel.Level2.text = 'Mil-Spec: ';
OrelRoll.Panel2.Panel.Level3.text = 'Restricted: ';
OrelRoll.Panel2.Panel.Level4.text = 'Classified: ';
OrelRoll.Panel2.Panel.Level5.text = 'Covert: ';
OrelRoll.Panel2.Panel.Level6.text = 'Covert Knife: ';
OrelRoll.Panel2.Panel.Level2c.text = L2got + L2gotS + ' / ' + L2gotS;
OrelRoll.Panel2.Panel.Level3c.text = L3got + L3gotS + ' / ' + L3gotS;
OrelRoll.Panel2.Panel.Level4c.text = L4got + L4gotS + ' / ' + L4gotS;
OrelRoll.Panel2.Panel.Level5c.text = L5got + L5gotS + ' / ' + L5gotS;
OrelRoll.Panel2.Panel.Level6c.text = L6got + L6gotS + ' / ' + L6gotS;
OrelRoll.Panel2.Panel.Level2s.text = 'High Grade Tool:';
OrelRoll.Panel2.Panel.Level3s.text = 'Remarkable Tool:';
OrelRoll.Panel2.Panel.Level4s.text = 'Exotic Tool:';
OrelRoll.Panel2.Panel.Level2sc.text = L2Sgot;
OrelRoll.Panel2.Panel.Level3sc.text = L3Sgot;
OrelRoll.Panel2.Panel.Level4sc.text = L4Sgot;
OrelRoll.Panel2.Panel.GMoney.text = 'Money spent: updating...';
OrelRoll.Panel2.Panel.GKeys.text = 'Containers opened: updating...';
OrelRoll.Panel2.Panel.GLevel2c.text = 'updating...';
OrelRoll.Panel2.Panel.GLevel3c.text = 'updating...';
OrelRoll.Panel2.Panel.GLevel4c.text = 'updating...';
OrelRoll.Panel2.Panel.GLevel5c.text = 'updating...';
OrelRoll.Panel2.Panel.GLevel6c.text = 'updating...';
OrelRoll.Panel2.Panel.GLevel2sc.text = 'updating...';
OrelRoll.Panel2.Panel.GLevel3sc.text = 'updating...';
OrelRoll.Panel2.Panel.GLevel4sc.text = 'updating...';
OrelRoll.Panel2.Panel.GLevel2.text = 'Mil-Spec: ';
OrelRoll.Panel2.Panel.GLevel3.text = 'Restricted: ';
OrelRoll.Panel2.Panel.GLevel4.text = 'Classified: ';
OrelRoll.Panel2.Panel.GLevel5.text = 'Covert: ';
OrelRoll.Panel2.Panel.GLevel6.text = 'Covert Knife: ';
OrelRoll.Panel2.Panel.GLevel2s.text = 'High Grade Tool:';
OrelRoll.Panel2.Panel.GLevel3s.text = 'Remarkable Tool:';
OrelRoll.Panel2.Panel.GLevel4s.text = 'Exotic Tool:';
}
function FirstLoadTxtVars() {
CaseName01 = 'Weapon Case';
CaseName02 = 'eSports Case';
CaseName03 = 'Weapon Case 2';
CaseName04 = 'Operation Bravo Weapon Case';
CaseName05 = 'Winter Offensive Weapon Case';
CaseName06 = 'eSports Winter Case';
CaseName07 = 'Weapon Case 3';
CaseName08 = 'Operation Phoenix Weapon Case';
CaseName09 = 'Huntsman Weapon Case';
CaseName10 = 'empty';
CaseName11 = 'empty';
CaseName12 = 'empty';
CapName01 = 'Sticker Capsule';
CapName02 = 'Sticker Capsule 2';
CapName03 = 'EMS Katowice 2014 Challengers';
CapName04 = 'EMS Katowice 2014 Legends';
CapName05 = 'Community Sticker Capsule 1';
CapName06 = 'empty';
CapName07 = 'empty';
CapName08 = 'empty';
CapName09 = 'empty';
CapName10 = 'empty';
CapName11 = 'empty';
CapName12 = 'empty';
LoadImages();
}
function SetMusic0() {
music_win0 = 1;
music_win1 = 0;
music_win2 = 0;
music_win3 = 0;
music_win4 = 0;
music_win5 = 0;
music_win6 = 0;
}
function SetMusic1() {
music_win0 = 0;
music_win1 = 1;
music_win2 = 0;
music_win3 = 0;
music_win4 = 0;
music_win5 = 0;
music_win6 = 0;
}
function SetMusic2() {
music_win0 = 0;
music_win1 = 0;
music_win2 = 1;
music_win3 = 0;
music_win4 = 0;
music_win5 = 0;
music_win6 = 0;
}
function SetMusic3() {
music_win0 = 0;
music_win1 = 0;
music_win2 = 0;
music_win3 = 1;
music_win4 = 0;
music_win5 = 0;
music_win6 = 0;
}
function SetMusic4() {
music_win0 = 0;
music_win1 = 0;
music_win2 = 0;
music_win3 = 0;
music_win4 = 1;
music_win5 = 0;
music_win6 = 0;
}
function SetMusic5() {
music_win0 = 0;
music_win1 = 0;
music_win2 = 0;
music_win3 = 0;
music_win4 = 0;
music_win5 = 1;
music_win6 = 0;
}
function SetMusic6() {
music_win0 = 0;
music_win1 = 0;
music_win2 = 0;
music_win3 = 0;
music_win4 = 0;
music_win5 = 0;
music_win6 = 1;
}
function RandomTextBUT() {
var v1 = Math.floor(Math.random() * 12);
if (v1 == 0) {
RTextBUT = 'GO GO GO';
} else {
if (v1 == 1) {
RTextBUT = 'Press to WIN';
} else {
if (v1 == 2) {
RTextBUT = 'Let\'s Roll-oll';
} else {
if (v1 == 3) {
RTextBUT = 'Push it';
} else {
if (v1 == 4) {
RTextBUT = 'Here we go';
} else {
if (v1 == 5) {
RTextBUT = 'Green button';
} else {
if (v1 == 6) {
RTextBUT = 'Let\'s GO';
} else {
if (v1 == 7) {
RTextBUT = 'Rolling out';
} else {
if (v1 == 8) {
RTextBUT = 'Lock\'n\'load';
} else {
if (v1 == 9) {
RTextBUT = 'Autobuy';
} else {
if (v1 == 10) {
RTextBUT = 'Defuse it';
} else {
if (v1 == 11) {
RTextBUT = 'GL HF';
} else {
RandomTextBUT();
}
}
}
}
}
}
}
}
}
}
}
}
}
function RandomTextWIN() {
RTextNumberWIN = Math.floor(Math.random() * 25);
if (RTextNumberWIN == 0) {
RTextWIN = 'CONGRATULATIONS';
} else {
if (RTextNumberWIN == 1) {
RTextWIN = 'HOLY COW';
} else {
if (RTextNumberWIN == 2) {
RTextWIN = 'AMAZING';
} else {
if (RTextNumberWIN == 3) {
RTextWIN = 'AWESOME';
} else {
if (RTextNumberWIN == 4) {
RTextWIN = 'RADICAL';
} else {
if (RTextNumberWIN == 5) {
RTextWIN = 'BRILLIANT';
} else {
if (RTextNumberWIN == 6) {
RTextWIN = 'OH BOY';
} else {
if (RTextNumberWIN == 7) {
RTextWIN = 'EXCELLENT';
} else {
if (RTextNumberWIN == 8) {
RTextWIN = 'SUPERIOR';
} else {
if (RTextNumberWIN == 9) {
RTextWIN = 'THIS IS GREAT';
} else {
if (RTextNumberWIN == 10) {
RTextWIN = 'MOTHER OF SICK';
} else {
if (RTextNumberWIN == 11) {
RTextWIN = 'WELL, AT LEAST SOMETHING';
} else {
if (RTextNumberWIN == 12) {
RTextWIN = 'REALLY?';
} else {
if (RTextNumberWIN == 13) {
RTextWIN = 'GG WP';
} else {
if (RTextNumberWIN == 14) {
RTextWIN = 'SORRY, BUT';
} else {
if (RTextNumberWIN == 15) {
RTextWIN = 'GROOVY';
} else {
if (RTextNumberWIN == 16) {
RTextWIN = 'SPECTACULAR';
} else {
if (RTextNumberWIN == 17) {
RTextWIN = 'YOU SAVED MONEY AND';
} else {
if (RTextNumberWIN == 18) {
RTextWIN = 'SWEET';
} else {
if (RTextNumberWIN == 19) {
RTextWIN = 'WICKED SICK';
} else {
if (RTextNumberWIN == 20) {
RTextWIN = 'GODLIKE';
} else {
if (RTextNumberWIN == 21) {
RTextWIN = 'SERIOUSLY?';
} else {
if (RTextNumberWIN == 22) {
RTextWIN = 'MUCH DROP, VERY RANDOM';
} else {
if (RTextNumberWIN == 23) {
RTextWIN = 'I ENVY YOU SO MUCH';
} else {
if (RTextNumberWIN == 24) {
RTextWIN = 'OUTSTANDING';
} else {
RandomTextWIN();
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
function RandomText() {
var v1 = Math.floor(Math.random() * 16);
if (v1 == 0) {
RText = 'This is seriously messed up';
} else {
if (v1 == 1) {
RText = 'steamcommunity.com/id/OrelSakh';
} else {
if (v1 == 2) {
RText = 'Invite your friends... NOW!';
} else {
if (v1 == 3) {
RText = 'Get out of button, it\'s gonna blow!';
} else {
if (v1 == 4) {
RText = 'Easy Peasy Lemon Squezzy';
} else {
if (v1 == 5) {
RText = 'Bish Bash Bosh';
} else {
if (v1 == 6) {
RText = 'Nobody reads me :( I\'m so cool random string, life is too cruel...';
} else {
if (v1 == 7) {
RText = 'Your ad could be here... nah, just kidding';
} else {
if (v1 == 8) {
RText = 'Seriously? You are still here?';
} else {
if (v1 == 9) {
RText = 'I feel... something big coming';
} else {
if (v1 == 10) {
RText = 'Thumbs up if you want Custom HUDs back';
} else {
if (v1 == 11) {
RText = 'Stop looking at me, look at the spinny thing';
} else {
if (v1 == 12) {
RText = 'You really hope for something awesome?';
} else {
if (v1 == 13) {
if (GMoney == undefined) {
RText = 'You spent ' + Money + '$. Now Valve can\'t hire person to voice Gordon Freeman. Nice man :/';
} else {
if (GMoney == 0) {
RText = 'You spent ' + Money + '$. Now Valve can\'t hire person to voice Gordon Freeman. Nice man :/';
} else {
RText = 'So much money spent... in other words, Valve lost ' + GMoney + '$... no money for Half-Life 3. Nice guys :/';
}
}
} else {
if (v1 == 14) {
if (Money <= 10) {
RText = 'You spent not so much money... There is still way to go better';
} else {
if (Money <= 100) {
RText = 'You spent ' + Money + '$. Now Valve won\'t make updates for CS:GO. Perfect :/';
} else {
RText = 'You spent ' + Money + '$... What was last time when you saw sunlight?';
}
}
} else {
if (v1 == 15) {
RText = 'Sneaky-peaky like';
} else {
RandomText();
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
function DoShow() {
SetTiles();
OrelRoll.Panel.Weapons.gotoAndPlay('StartAnim');
OrelRoll.Panel.DoRoll.onRelease = function () {
DoRoll();
};
OrelRoll.Panel.DoRoll.gotoAndStop('def');
}
function DoShowNotLoad() {
OrelRoll.Panel.Weapons.gotoAndPlay('StartAnim');
OrelRoll.Panel.DoRoll.onRelease = function () {
DoRoll();
};
OrelRoll.Panel.DoRoll.gotoAndStop('def');
}
function DoRoll() {
if (Price == 2.49) {
var v1 = '111';
} else {
if (Price == 1) {
var v1 = '11';
} else {
if (Price == 0) {
var v1 = '1';
}
}
}
Money += Price;
Keys += 1;
CountStats();
RandomText();
UnSetCase();
RandomTextWIN();
RandomNumber = Math.floor(Math.random() * 5 + 1);
OrelRoll.Panel.Header.gotoAndPlay('StartAnim');
OrelRoll.Panel.gotoAndStop('Rolling' + RandomNumber);
SetScroll();
OrelRoll.Panel.DoRoll.ButtonText.Text.text = 'Try again';
OrelRoll.Panel.DoRoll.onRelease = function () {};
OrelRoll.Panel.DoRoll.gotoAndStop('disabled');
SetRandomness();
OrelRoll.Panel.Header.gotoAndPlay('StartHide');
OrelRoll.Panel.Warning.gotoAndPlay('StartAnim');
OrelRoll.Panel.Weapons.gotoAndStop('End');
}
function DoRollFast() {
UnSetCase();
RandomTextWIN();
RandomNumber = Math.floor(Math.random() * 5 + 1);
OrelRoll.Panel.gotoAndStop('Rolling' + RandomNumber);
SetScroll();
OrelRoll.Panel.DoRoll.ButtonText.Text.text = 'Try again';
OrelRoll.Panel.DoRoll.onRelease = function () {};
OrelRoll.Panel.DoRoll.gotoAndStop('disabled');
SetRandomness();
OrelRoll.Panel.Header.gotoAndPlay('StartHide');
OrelRoll.Panel.Warning.gotoAndPlay('StartAnim');
OrelRoll.Panel.Weapons.gotoAndStop('End');
}
function DoPrepare() {
SetCase();
RandomTextBUT();
DoShow();
OrelRoll.Panel.gotoAndStop('Preparing');
OrelRoll.Panel.DoRoll.ButtonText.Text.text = RTextBUT;
OrelRoll.Panel.DoRoll.onRelease = function () {
DoRoll();
};
OrelRoll.Panel.WinnerLabel.gotoAndPlay('StartHide');
}
function DoPrepareNotLoad() {
SetCase();
RandomTextBUT();
DoShowNotLoad();
OrelRoll.Panel.gotoAndStop('Preparing');
OrelRoll.Panel.DoRoll.ButtonText.Text.text = RTextBUT;
OrelRoll.Panel.DoRoll.onRelease = function () {
DoRoll();
};
OrelRoll.Panel.WinnerLabel.gotoAndPlay('StartHide');
}
function SetScroll() {
if (RandomNumber == 1) {
OrelRoll.Panel.Scroll1.gotoAndPlay('StartRoll');
OrelRoll.Panel.Scroll2.gotoAndStop('def');
OrelRoll.Panel.Scroll3.gotoAndStop('def');
OrelRoll.Panel.Scroll4.gotoAndStop('def');
OrelRoll.Panel.Scroll5.gotoAndStop('def');
} else {
if (RandomNumber == 2) {
OrelRoll.Panel.Scroll1.gotoAndStop('def');
OrelRoll.Panel.Scroll2.gotoAndPlay('StartRoll');
OrelRoll.Panel.Scroll3.gotoAndStop('def');
OrelRoll.Panel.Scroll4.gotoAndStop('def');
OrelRoll.Panel.Scroll5.gotoAndStop('def');
} else {
if (RandomNumber == 3) {
OrelRoll.Panel.Scroll1.gotoAndStop('def');
OrelRoll.Panel.Scroll2.gotoAndStop('def');
OrelRoll.Panel.Scroll3.gotoAndPlay('StartRoll');
OrelRoll.Panel.Scroll4.gotoAndStop('def');
OrelRoll.Panel.Scroll5.gotoAndStop('def');
} else {
if (RandomNumber == 4) {
OrelRoll.Panel.Scroll1.gotoAndStop('def');
OrelRoll.Panel.Scroll2.gotoAndStop('def');
OrelRoll.Panel.Scroll3.gotoAndStop('def');
OrelRoll.Panel.Scroll4.gotoAndPlay('StartRoll');
OrelRoll.Panel.Scroll5.gotoAndStop('def');
} else {
if (RandomNumber == 5) {
OrelRoll.Panel.Scroll1.gotoAndStop('def');
OrelRoll.Panel.Scroll2.gotoAndStop('def');
OrelRoll.Panel.Scroll3.gotoAndStop('def');
OrelRoll.Panel.Scroll4.gotoAndStop('def');
OrelRoll.Panel.Scroll5.gotoAndPlay('StartRoll');
}
}
}
}
}
}
function HideInv() {
OrelRoll.Panel.Weapons.gotoAndStop('default');
}
function SetWinner() {
_sc.Test.Test.Item20.RarityColor.SetMusic();
OrelRoll.Panel.WinnerLabel.gotoAndPlay('StartAnim');
if (music_win0 == 1) {
music1drop.start();
} else {
if (music_win1 == 1) {
music1drop.start();
} else {
if (music_win2 == 1) {
music2drop.start();
} else {
if (music_win3 == 1) {
music3drop.start();
} else {
if (music_win4 == 1) {
music4drop.start();
} else {
if (music_win5 == 1) {
music5drop.start();
} else {
if (music_win6 == 1) {
music6drop.start();
}
}
}
}
}
}
}
}
function tempWeap() {
tempWeaponName = randomweap;
tempWeaponDesc = randomweap_desc;
}
function SetStatTrak() {
itS = Math.floor(Math.random() * 10);
if (itS == 7 && Sticker == 0) {
StatTrak = 'StatTrakâ„¢ ';
} else {
StatTrak = '';
}
}
function SetRandomness() {
if (RandomNumber == 1) {
_sc = OrelRoll.Panel.Scroll1;
} else {
if (RandomNumber == 2) {
_sc = OrelRoll.Panel.Scroll2;
} else {
if (RandomNumber == 3) {
_sc = OrelRoll.Panel.Scroll3;
} else {
if (RandomNumber == 4) {
_sc = OrelRoll.Panel.Scroll4;
} else {
if (RandomNumber == 5) {
_sc = OrelRoll.Panel.Scroll5;
}
}
}
}
}
weapon1 = Item01_lvl;
weapon2 = Item02_lvl;
weapon3 = Item03_lvl;
weapon4 = Item04_lvl;
weapon5 = Item05_lvl;
weapon6 = Item06_lvl;
weapon7 = Item07_lvl;
weapon8 = Item08_lvl;
weapon9 = Item09_lvl;
weapon10 = Item10_lvl;
weapon11 = Item11_lvl;
weapon12 = Item12_lvl;
weapon13 = Item13_lvl;
weapon14 = Item14_lvl;
weapon15 = Item15_lvl;
weapon16 = Item16_lvl;
weapon17 = Item17_lvl;
weapon18 = Item18_lvl;
SetWinner0();
SetWinner1();
SetWinner2();
SetWinner3();
SetWinner4();
SetWinner5();
SetWinner6();
SetWinner7();
SetWinner8();
SetWinner9();
SetWinner10();
SetWinner11();
SetWinner12();
SetWinner13();
SetWinner14();
SetWinner15();
SetWinner16();
SetWinner17();
SetWinner18();
SetWinner19();
SetWinner21();
SetWinner22();
SetWinner20();
}
function SetKnife() {
var v2 = Math.floor(Math.random() * 5);
var v1 = Math.floor(Math.random() * 13);
if (Huntsman == 0) {
if (v2 == 0) {
test_1 = 'M9 Bayonet';
} else {
if (v2 == 1) {
test_1 = 'Bayonet';
} else {
if (v2 == 2) {
test_1 = 'Flip Knife';
} else {
if (v2 == 3) {
test_1 = 'Gut Knife';
} else {
if (v2 == 4) {
test_1 = 'Karambit';
}
}
}
}
}
} else {
if (Huntsman == 1) {
test_1 = 'Huntsman Knife';
}
}
if (v1 == 0) {
test_2 = 'Blue Steel';
} else {
if (v1 == 1) {
test_2 = 'Boreal Forest';
} else {
if (v1 == 2) {
test_2 = 'Case Hardened';
} else {
if (v1 == 3) {
test_2 = 'Crimson Web';
} else {
if (v1 == 4) {
test_2 = 'Fade';
} else {
if (v1 == 5) {
test_2 = 'Forest DDPAT';
} else {
if (v1 == 6) {
test_2 = 'Night';
} else {
if (v1 == 7) {
test_2 = 'Safari Mesh';
} else {
if (v1 == 8) {
test_2 = 'Scorched';
} else {
if (v1 == 9) {
test_2 = 'Slaughter';
} else {
if (v1 == 10) {
test_2 = 'Stained';
} else {
if (v1 == 11) {
test_2 = 'Urban Masked';
} else {
if (v1 == 12) {
test_2 = 'Vanilla';
}
}
}
}
}
}
}
}
}
}
}
}
}
test = 'images/' + test_1 + '/' + test_2 + '.png';
loadMovie(test, OrelRoll.Panel.WinnerLabel.Image.DinImage);
randomwinnerweap = StatTrak + test_1 + ' | ' + test_2;
}
function SetWinner20() {
SetStatTrak();
itR20 = Math.floor(Math.random() * 10000);
if (itR20 >= 9995 && Sticker == 0) {
realwin = 'Level6';
} else {
if (itR20 >= 9895 && Sticker == 0) {
realwin = 'Level5';
} else {
if (itR20 >= 9395) {
realwin = 'Level4';
} else {
if (itR20 >= 7195) {
realwin = 'Level3';
} else {
realwin = 'Level2';
}
}
}
}
SetWinner20Count();
}
function SetWinner20Count() {
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
if (realwin == 'Level6') {
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item20.ItemName.text = WeapName0;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item20.ItemName.text = WeapName1;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item20.ItemName.text = WeapName2;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item20.ItemName.text = WeapName3;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item20.ItemName.text = WeapName4;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item20.ItemName.text = WeapName5;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item20.ItemName.text = WeapName6;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item20.ItemName.text = WeapName7;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item20.ItemName.text = WeapName8;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item20.ItemName.text = WeapName9;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item20.ItemName.text = WeapName10;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item20.ItemName.text = WeapName11;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item20.ItemName.text = WeapName12;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item20.ItemName.text = WeapName13;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item20.ItemName.text = WeapName14;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item20.ItemName.text = WeapName15;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item20.ItemName.text = WeapName16;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item20.ItemName.text = WeapName17;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
} else {
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item20.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item20.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item20.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item20.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item20.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item20.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item20.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item20.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item20.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item20.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item20.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item20.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item20.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item20.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item20.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item20.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item20.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item20.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item20.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item20.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item20.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item20.PlayerName.text;
randomwinnerweap = NameOfWeapon + ' | ' + DescOfWeapon;
if (weaponstarcolor != realwin) {
SetWinner20Count();
} else {
if (weaponstarcolor == 'Level6') {
loadMovie('', _sc.Test.Test.Item20.ItemImage.DynamicItemImage.Image);
SetKnife();
} else {
loadMovie(test, _sc.Test.Test.Item20.ItemImage.DynamicItemImage.Image);
loadMovie(test, OrelRoll.Panel.WinnerLabel.Image.DinImage);
}
OrelRoll.Panel.WinnerLabel.Image.star.gotoAndStop(weaponstarcolor);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item20.RareItemKnife._visible = true;
_sc.Test.Test.Item20.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item20.RareItemKnife._visible = false;
_sc.Test.Test.Item20.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item20.RareItemKnife._visible = false;
_sc.Test.Test.Item20.RareItemHuntsman._visible = false;
}
}
if (weaponstarcolor == 'Level4' && Sticker == 1) {
L4Sgot += 1;
GLgot = 13;
} else {
if (weaponstarcolor == 'Level3' && Sticker == 1) {
L3Sgot += 1;
GLgot = 12;
} else {
if (weaponstarcolor == 'Level2' && Sticker == 1) {
L2Sgot += 1;
GLgot = 11;
} else {
if (weaponstarcolor == 'Level6' && StatTrak == '') {
L6got += 1;
GLgot = 5;
} else {
if (weaponstarcolor == 'Level5' && StatTrak == '') {
L5got += 1;
GLgot = 4;
} else {
if (weaponstarcolor == 'Level4' && StatTrak == '') {
L4got += 1;
GLgot = 3;
} else {
if (weaponstarcolor == 'Level3' && StatTrak == '') {
L3got += 1;
GLgot = 2;
} else {
if (weaponstarcolor == 'Level2' && StatTrak == '') {
L2got += 1;
GLgot = 1;
} else {
if (weaponstarcolor == 'Level6' && StatTrak != '') {
L6gotS += 1;
GLgot = 10;
} else {
if (weaponstarcolor == 'Level5' && StatTrak != '') {
L5gotS += 1;
GLgot = 9;
} else {
if (weaponstarcolor == 'Level4' && StatTrak != '') {
L4gotS += 1;
GLgot = 8;
} else {
if (weaponstarcolor == 'Level3' && StatTrak != '') {
L3gotS += 1;
GLgot = 7;
} else {
if (weaponstarcolor == 'Level2' && StatTrak != '') {
L2gotS += 1;
GLgot = 6;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
function SetWinner0() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item0.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item0.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item0.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item0.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item0.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item0.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item0.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item0.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item0.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item0.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item0.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item0.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item0.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item0.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item0.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item0.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item0.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item0.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item0.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item0.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item0.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item0.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item0.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item0.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item0.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item0.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item0.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item0.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item0.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item0.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item0.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item0.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item0.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item0.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item0.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item0.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item0.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item0.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item0.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item0.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item0.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item0.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item0.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item0.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item0.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item0.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item0.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item0.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item0.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item0.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item0.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item0.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item0.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item0.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item0.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item0.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner0();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner0();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner0();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner0();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item0.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item0.RareItemKnife._visible = true;
_sc.Test.Test.Item0.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item0.RareItemKnife._visible = false;
_sc.Test.Test.Item0.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item0.RareItemKnife._visible = false;
_sc.Test.Test.Item0.RareItemHuntsman._visible = false;
}
}
}
function SetWinner1() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item1.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item1.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item1.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item1.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item1.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item1.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item1.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item1.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item1.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item1.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item1.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item1.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item1.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item1.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item1.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item1.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item1.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item1.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item1.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item1.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item1.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item1.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item1.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item1.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item1.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item1.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item1.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item1.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item1.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item1.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item1.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item1.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item1.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item1.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item1.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item1.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item1.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item1.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item1.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item1.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item1.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item1.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item1.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item1.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item1.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item1.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item1.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item1.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item1.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item1.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item1.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item1.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item1.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item1.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item1.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item1.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner1();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner1();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner1();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner1();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item1.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item1.RareItemKnife._visible = true;
_sc.Test.Test.Item1.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item1.RareItemKnife._visible = false;
_sc.Test.Test.Item1.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item1.RareItemKnife._visible = false;
_sc.Test.Test.Item1.RareItemHuntsman._visible = false;
}
}
}
function SetWinner2() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item2.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item2.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item2.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item2.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item2.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item2.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item2.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item2.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item2.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item2.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item2.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item2.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item2.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item2.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item2.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item2.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item2.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item2.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item2.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item2.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item2.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item2.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item2.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item2.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item2.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item2.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item2.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item2.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item2.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item2.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item2.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item2.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item2.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item2.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item2.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item2.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item2.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item2.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item2.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item2.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item2.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item2.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item2.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item2.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item2.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item2.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item2.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item2.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item2.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item2.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item2.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item2.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item2.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item2.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item2.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item2.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner2();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner2();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner2();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner2();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item2.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item2.RareItemKnife._visible = true;
_sc.Test.Test.Item2.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item2.RareItemKnife._visible = false;
_sc.Test.Test.Item2.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item2.RareItemKnife._visible = false;
_sc.Test.Test.Item2.RareItemHuntsman._visible = false;
}
}
}
function SetWinner3() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item3.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item3.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item3.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item3.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item3.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item3.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item3.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item3.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item3.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item3.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item3.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item3.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item3.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item3.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item3.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item3.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item3.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item3.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item3.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item3.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item3.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item3.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item3.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item3.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item3.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item3.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item3.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item3.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item3.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item3.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item3.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item3.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item3.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item3.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item3.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item3.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item3.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item3.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item3.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item3.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item3.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item3.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item3.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item3.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item3.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item3.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item3.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item3.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item3.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item3.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item3.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item3.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item3.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item3.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item3.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item3.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner3();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner3();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner3();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner3();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item3.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item3.RareItemKnife._visible = true;
_sc.Test.Test.Item3.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item3.RareItemKnife._visible = false;
_sc.Test.Test.Item3.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item3.RareItemKnife._visible = false;
_sc.Test.Test.Item3.RareItemHuntsman._visible = false;
}
}
}
function SetWinner4() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item4.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item4.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item4.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item4.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item4.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item4.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item4.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item4.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item4.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item4.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item4.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item4.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item4.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item4.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item4.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item4.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item4.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item4.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item4.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item4.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item4.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item4.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item4.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item4.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item4.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item4.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item4.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item4.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item4.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item4.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item4.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item4.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item4.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item4.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item4.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item4.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item4.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item4.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item4.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item4.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item4.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item4.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item4.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item4.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item4.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item4.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item4.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item4.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item4.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item4.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item4.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item4.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item4.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item4.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item4.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item4.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner4();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner4();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner4();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner4();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item4.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item4.RareItemKnife._visible = true;
_sc.Test.Test.Item4.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item4.RareItemKnife._visible = false;
_sc.Test.Test.Item4.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item4.RareItemKnife._visible = false;
_sc.Test.Test.Item4.RareItemHuntsman._visible = false;
}
}
}
function SetWinner5() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item5.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item5.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item5.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item5.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item5.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item5.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item5.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item5.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item5.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item5.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item5.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item5.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item5.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item5.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item5.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item5.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item5.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item5.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item5.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item5.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item5.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item5.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item5.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item5.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item5.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item5.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item5.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item5.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item5.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item5.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item5.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item5.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item5.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item5.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item5.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item5.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item5.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item5.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item5.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item5.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item5.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item5.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item5.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item5.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item5.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item5.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item5.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item5.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item5.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item5.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item5.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item5.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item5.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item5.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item5.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item5.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner5();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner5();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner5();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner5();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item5.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item5.RareItemKnife._visible = true;
_sc.Test.Test.Item5.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item5.RareItemKnife._visible = false;
_sc.Test.Test.Item5.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item5.RareItemKnife._visible = false;
_sc.Test.Test.Item5.RareItemHuntsman._visible = false;
}
}
}
function SetWinner6() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item6.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item6.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item6.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item6.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item6.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item6.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item6.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item6.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item6.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item6.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item6.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item6.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item6.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item6.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item6.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item6.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item6.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item6.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item6.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item6.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item6.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item6.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item6.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item6.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item6.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item6.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item6.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item6.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item6.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item6.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item6.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item6.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item6.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item6.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item6.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item6.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item6.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item6.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item6.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item6.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item6.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item6.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item6.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item6.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item6.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item6.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item6.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item6.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item6.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item6.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item6.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item6.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item6.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item6.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item6.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item6.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner6();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner6();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner6();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner6();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item6.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item6.RareItemKnife._visible = true;
_sc.Test.Test.Item6.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item6.RareItemKnife._visible = false;
_sc.Test.Test.Item6.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item6.RareItemKnife._visible = false;
_sc.Test.Test.Item6.RareItemHuntsman._visible = false;
}
}
}
function SetWinner7() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item7.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item7.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item7.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item7.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item7.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item7.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item7.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item7.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item7.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item7.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item7.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item7.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item7.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item7.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item7.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item7.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item7.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item7.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item7.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item7.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item7.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item7.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item7.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item7.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item7.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item7.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item7.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item7.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item7.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item7.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item7.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item7.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item7.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item7.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item7.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item7.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item7.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item7.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item7.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item7.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item7.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item7.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item7.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item7.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item7.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item7.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item7.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item7.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item7.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item7.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item7.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item7.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item7.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item7.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item7.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item7.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner7();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner7();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner7();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner7();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item7.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item7.RareItemKnife._visible = true;
_sc.Test.Test.Item7.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item7.RareItemKnife._visible = false;
_sc.Test.Test.Item7.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item7.RareItemKnife._visible = false;
_sc.Test.Test.Item7.RareItemHuntsman._visible = false;
}
}
}
function SetWinner8() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item8.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item8.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item8.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item8.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item8.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item8.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item8.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item8.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item8.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item8.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item8.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item8.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item8.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item8.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item8.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item8.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item8.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item8.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item8.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item8.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item8.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item8.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item8.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item8.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item8.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item8.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item8.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item8.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item8.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item8.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item8.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item8.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item8.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item8.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item8.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item8.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item8.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item8.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item8.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item8.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item8.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item8.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item8.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item8.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item8.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item8.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item8.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item8.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item8.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item8.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item8.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item8.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item8.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item8.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item8.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item8.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner8();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner8();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner8();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner8();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item8.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item8.RareItemKnife._visible = true;
_sc.Test.Test.Item8.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item8.RareItemKnife._visible = false;
_sc.Test.Test.Item8.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item8.RareItemKnife._visible = false;
_sc.Test.Test.Item8.RareItemHuntsman._visible = false;
}
}
}
function SetWinner9() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item9.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item9.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item9.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item9.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item9.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item9.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item9.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item9.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item9.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item9.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item9.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item9.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item9.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item9.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item9.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item9.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item9.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item9.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item9.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item9.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item9.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item9.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item9.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item9.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item9.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item9.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item9.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item9.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item9.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item9.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item9.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item9.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item9.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item9.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item9.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item9.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item9.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item9.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item9.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item9.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item9.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item9.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item9.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item9.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item9.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item9.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item9.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item9.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item9.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item9.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item9.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item9.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item9.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item9.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item9.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item9.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner9();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner9();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner9();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner9();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item9.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item9.RareItemKnife._visible = true;
_sc.Test.Test.Item9.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item9.RareItemKnife._visible = false;
_sc.Test.Test.Item9.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item9.RareItemKnife._visible = false;
_sc.Test.Test.Item9.RareItemHuntsman._visible = false;
}
}
}
function SetWinner10() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item10.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item10.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item10.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item10.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item10.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item10.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item10.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item10.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item10.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item10.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item10.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item10.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item10.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item10.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item10.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item10.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item10.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item10.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item10.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item10.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item10.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item10.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item10.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item10.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item10.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item10.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item10.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item10.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item10.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item10.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item10.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item10.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item10.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item10.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item10.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item10.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item10.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item10.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item10.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item10.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item10.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item10.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item10.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item10.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item10.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item10.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item10.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item10.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item10.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item10.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item10.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item10.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item10.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item10.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item10.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item10.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner10();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner10();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner10();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner10();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item10.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item10.RareItemKnife._visible = true;
_sc.Test.Test.Item10.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item10.RareItemKnife._visible = false;
_sc.Test.Test.Item10.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item10.RareItemKnife._visible = false;
_sc.Test.Test.Item10.RareItemHuntsman._visible = false;
}
}
}
function SetWinner11() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item11.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item11.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item11.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item11.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item11.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item11.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item11.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item11.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item11.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item11.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item11.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item11.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item11.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item11.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item11.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item11.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item11.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item11.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item11.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item11.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item11.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item11.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item11.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item11.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item11.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item11.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item11.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item11.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item11.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item11.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item11.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item11.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item11.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item11.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item11.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item11.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item11.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item11.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item11.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item11.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item11.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item11.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item11.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item11.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item11.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item11.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item11.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item11.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item11.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item11.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item11.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item11.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item11.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item11.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item11.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item11.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner11();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner11();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner11();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner11();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item11.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item11.RareItemKnife._visible = true;
_sc.Test.Test.Item11.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item11.RareItemKnife._visible = false;
_sc.Test.Test.Item11.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item11.RareItemKnife._visible = false;
_sc.Test.Test.Item11.RareItemHuntsman._visible = false;
}
}
}
function SetWinner12() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item12.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item12.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item12.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item12.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item12.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item12.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item12.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item12.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item12.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item12.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item12.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item12.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item12.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item12.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item12.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item12.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item12.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item12.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item12.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item12.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item12.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item12.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item12.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item12.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item12.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item12.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item12.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item12.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item12.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item12.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item12.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item12.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item12.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item12.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item12.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item12.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item12.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item12.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item12.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item12.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item12.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item12.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item12.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item12.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item12.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item12.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item12.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item12.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item12.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item12.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item12.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item12.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item12.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item12.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item12.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item12.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner12();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner12();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner12();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner12();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item12.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item12.RareItemKnife._visible = true;
_sc.Test.Test.Item12.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item12.RareItemKnife._visible = false;
_sc.Test.Test.Item12.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item12.RareItemKnife._visible = false;
_sc.Test.Test.Item12.RareItemHuntsman._visible = false;
}
}
}
function SetWinner13() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item13.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item13.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item13.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item13.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item13.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item13.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item13.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item13.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item13.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item13.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item13.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item13.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item13.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item13.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item13.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item13.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item13.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item13.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item13.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item13.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item13.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item13.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item13.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item13.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item13.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item13.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item13.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item13.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item13.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item13.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item13.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item13.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item13.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item13.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item13.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item13.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item13.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item13.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item13.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item13.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item13.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item13.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item13.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item13.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item13.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item13.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item13.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item13.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item13.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item13.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item13.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item13.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item13.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item13.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item13.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item13.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner13();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner13();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner13();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner13();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item13.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item13.RareItemKnife._visible = true;
_sc.Test.Test.Item13.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item13.RareItemKnife._visible = false;
_sc.Test.Test.Item13.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item13.RareItemKnife._visible = false;
_sc.Test.Test.Item13.RareItemHuntsman._visible = false;
}
}
}
function SetWinner14() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item14.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item14.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item14.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item14.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item14.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item14.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item14.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item14.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item14.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item14.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item14.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item14.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item14.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item14.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item14.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item14.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item14.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item14.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item14.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item14.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item14.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item14.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item14.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item14.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item14.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item14.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item14.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item14.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item14.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item14.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item14.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item14.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item14.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item14.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item14.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item14.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item14.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item14.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item14.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item14.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item14.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item14.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item14.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item14.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item14.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item14.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item14.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item14.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item14.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item14.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item14.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item14.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item14.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item14.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item14.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item14.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner14();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner14();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner14();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner14();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item14.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item14.RareItemKnife._visible = true;
_sc.Test.Test.Item14.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item14.RareItemKnife._visible = false;
_sc.Test.Test.Item14.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item14.RareItemKnife._visible = false;
_sc.Test.Test.Item14.RareItemHuntsman._visible = false;
}
}
}
function SetWinner15() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item15.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item15.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item15.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item15.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item15.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item15.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item15.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item15.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item15.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item15.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item15.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item15.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item15.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item15.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item15.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item15.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item15.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item15.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item15.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item15.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item15.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item15.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item15.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item15.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item15.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item15.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item15.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item15.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item15.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item15.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item15.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item15.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item15.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item15.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item15.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item15.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item15.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item15.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item15.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item15.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item15.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item15.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item15.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item15.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item15.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item15.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item15.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item15.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item15.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item15.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item15.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item15.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item15.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item15.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item15.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item15.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner15();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner15();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner15();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner15();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item15.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item15.RareItemKnife._visible = true;
_sc.Test.Test.Item15.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item15.RareItemKnife._visible = false;
_sc.Test.Test.Item15.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item15.RareItemKnife._visible = false;
_sc.Test.Test.Item15.RareItemHuntsman._visible = false;
}
}
}
function SetWinner16() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item16.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item16.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item16.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item16.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item16.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item16.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item16.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item16.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item16.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item16.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item16.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item16.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item16.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item16.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item16.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item16.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item16.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item16.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item16.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item16.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item16.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item16.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item16.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item16.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item16.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item16.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item16.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item16.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item16.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item16.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item16.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item16.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item16.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item16.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item16.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item16.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item16.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item16.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item16.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item16.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item16.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item16.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item16.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item16.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item16.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item16.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item16.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item16.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item16.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item16.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item16.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item16.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item16.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item16.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item16.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item16.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner16();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner16();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner16();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner16();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item16.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item16.RareItemKnife._visible = true;
_sc.Test.Test.Item16.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item16.RareItemKnife._visible = false;
_sc.Test.Test.Item16.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item16.RareItemKnife._visible = false;
_sc.Test.Test.Item16.RareItemHuntsman._visible = false;
}
}
}
function SetWinner17() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item17.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item17.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item17.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item17.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item17.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item17.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item17.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item17.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item17.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item17.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item17.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item17.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item17.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item17.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item17.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item17.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item17.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item17.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item17.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item17.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item17.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item17.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item17.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item17.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item17.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item17.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item17.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item17.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item17.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item17.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item17.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item17.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item17.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item17.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item17.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item17.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item17.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item17.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item17.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item17.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item17.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item17.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item17.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item17.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item17.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item17.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item17.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item17.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item17.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item17.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item17.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item17.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item17.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item17.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item17.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item17.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner17();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner17();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner17();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner17();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item17.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item17.RareItemKnife._visible = true;
_sc.Test.Test.Item17.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item17.RareItemKnife._visible = false;
_sc.Test.Test.Item17.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item17.RareItemKnife._visible = false;
_sc.Test.Test.Item17.RareItemHuntsman._visible = false;
}
}
}
function SetWinner18() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item18.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item18.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item18.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item18.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item18.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item18.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item18.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item18.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item18.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item18.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item18.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item18.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item18.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item18.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item18.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item18.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item18.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item18.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item18.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item18.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item18.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item18.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item18.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item18.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item18.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item18.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item18.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item18.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item18.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item18.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item18.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item18.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item18.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item18.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item18.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item18.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item18.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item18.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item18.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item18.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item18.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item18.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item18.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item18.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item18.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item18.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item18.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item18.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item18.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item18.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item18.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item18.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item18.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item18.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item18.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item18.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner18();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner18();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner18();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner18();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item18.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item18.RareItemKnife._visible = true;
_sc.Test.Test.Item18.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item18.RareItemKnife._visible = false;
_sc.Test.Test.Item18.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item18.RareItemKnife._visible = false;
_sc.Test.Test.Item18.RareItemHuntsman._visible = false;
}
}
}
function SetWinner19() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item19.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item19.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item19.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item19.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item19.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item19.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item19.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item19.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item19.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item19.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item19.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item19.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item19.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item19.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item19.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item19.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item19.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item19.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item19.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item19.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item19.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item19.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item19.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item19.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item19.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item19.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item19.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item19.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item19.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item19.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item19.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item19.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item19.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item19.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item19.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item19.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item19.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item19.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item19.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item19.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item19.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item19.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item19.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item19.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item19.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item19.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item19.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item19.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item19.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item19.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item19.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item19.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item19.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item19.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item19.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item19.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner19();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner19();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner19();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner19();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item19.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item19.RareItemKnife._visible = true;
_sc.Test.Test.Item19.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item19.RareItemKnife._visible = false;
_sc.Test.Test.Item19.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item19.RareItemKnife._visible = false;
_sc.Test.Test.Item19.RareItemHuntsman._visible = false;
}
}
}
function SetWinner21() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item21.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item21.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item21.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item21.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item21.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item21.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item21.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item21.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item21.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item21.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item21.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item21.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item21.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item21.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item21.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item21.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item21.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item21.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item21.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item21.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item21.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item21.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item21.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item21.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item21.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item21.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item21.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item21.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item21.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item21.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item21.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item21.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item21.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item21.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item21.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item21.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item21.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item21.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item21.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item21.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item21.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item21.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item21.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item21.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item21.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item21.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item21.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item21.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item21.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item21.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item21.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item21.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item21.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item21.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item21.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item21.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner21();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner21();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner21();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner21();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item21.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item21.RareItemKnife._visible = true;
_sc.Test.Test.Item21.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item21.RareItemKnife._visible = false;
_sc.Test.Test.Item21.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item21.RareItemKnife._visible = false;
_sc.Test.Test.Item21.RareItemHuntsman._visible = false;
}
}
}
function SetWinner22() {
SetStatTrak();
var v1 = Math.floor(Math.random() * TotalWeapons + 1);
var v2 = Math.floor(Math.random() * 10000 + 1);
if (v1 == 1) {
test = ImageName1;
_sc.Test.Test.Item22.ItemName.text = StatTrak + WeapName0;
_sc.Test.Test.Item22.PlayerName.text = WeapDesc0;
_sc.Test.Test.Item22.RarityColor.gotoAndStop(weapon1);
weaponstarcolor = weapon1;
} else {
if (v1 == 2) {
test = ImageName2;
_sc.Test.Test.Item22.ItemName.text = StatTrak + WeapName1;
_sc.Test.Test.Item22.PlayerName.text = WeapDesc1;
_sc.Test.Test.Item22.RarityColor.gotoAndStop(weapon2);
weaponstarcolor = weapon2;
} else {
if (v1 == 3) {
test = ImageName3;
_sc.Test.Test.Item22.ItemName.text = StatTrak + WeapName2;
_sc.Test.Test.Item22.PlayerName.text = WeapDesc2;
_sc.Test.Test.Item22.RarityColor.gotoAndStop(weapon3);
weaponstarcolor = weapon3;
} else {
if (v1 == 4) {
test = ImageName4;
_sc.Test.Test.Item22.ItemName.text = StatTrak + WeapName3;
_sc.Test.Test.Item22.PlayerName.text = WeapDesc3;
_sc.Test.Test.Item22.RarityColor.gotoAndStop(weapon4);
weaponstarcolor = weapon4;
} else {
if (v1 == 5) {
test = ImageName5;
_sc.Test.Test.Item22.ItemName.text = StatTrak + WeapName4;
_sc.Test.Test.Item22.PlayerName.text = WeapDesc4;
_sc.Test.Test.Item22.RarityColor.gotoAndStop(weapon5);
weaponstarcolor = weapon5;
} else {
if (v1 == 6) {
test = ImageName6;
_sc.Test.Test.Item22.ItemName.text = StatTrak + WeapName5;
_sc.Test.Test.Item22.PlayerName.text = WeapDesc5;
_sc.Test.Test.Item22.RarityColor.gotoAndStop(weapon6);
weaponstarcolor = weapon6;
} else {
if (v1 == 7) {
test = ImageName7;
_sc.Test.Test.Item22.ItemName.text = StatTrak + WeapName6;
_sc.Test.Test.Item22.PlayerName.text = WeapDesc6;
_sc.Test.Test.Item22.RarityColor.gotoAndStop(weapon7);
weaponstarcolor = weapon7;
} else {
if (v1 == 8) {
test = ImageName8;
_sc.Test.Test.Item22.ItemName.text = StatTrak + WeapName7;
_sc.Test.Test.Item22.PlayerName.text = WeapDesc7;
_sc.Test.Test.Item22.RarityColor.gotoAndStop(weapon8);
weaponstarcolor = weapon8;
} else {
if (v1 == 9) {
test = ImageName9;
_sc.Test.Test.Item22.ItemName.text = StatTrak + WeapName8;
_sc.Test.Test.Item22.PlayerName.text = WeapDesc8;
_sc.Test.Test.Item22.RarityColor.gotoAndStop(weapon9);
weaponstarcolor = weapon9;
} else {
if (v1 == 10) {
test = ImageName10;
_sc.Test.Test.Item22.ItemName.text = StatTrak + WeapName9;
_sc.Test.Test.Item22.PlayerName.text = WeapDesc9;
_sc.Test.Test.Item22.RarityColor.gotoAndStop(weapon10);
weaponstarcolor = weapon10;
} else {
if (v1 == 11) {
test = ImageName11;
_sc.Test.Test.Item22.ItemName.text = StatTrak + WeapName10;
_sc.Test.Test.Item22.PlayerName.text = WeapDesc10;
_sc.Test.Test.Item22.RarityColor.gotoAndStop(weapon11);
weaponstarcolor = weapon11;
} else {
if (v1 == 12) {
test = ImageName12;
_sc.Test.Test.Item22.ItemName.text = StatTrak + WeapName11;
_sc.Test.Test.Item22.PlayerName.text = WeapDesc11;
_sc.Test.Test.Item22.RarityColor.gotoAndStop(weapon12);
weaponstarcolor = weapon12;
} else {
if (v1 == 13) {
test = ImageName13;
_sc.Test.Test.Item22.ItemName.text = StatTrak + WeapName12;
_sc.Test.Test.Item22.PlayerName.text = WeapDesc12;
_sc.Test.Test.Item22.RarityColor.gotoAndStop(weapon13);
weaponstarcolor = weapon13;
} else {
if (v1 == 14) {
test = ImageName14;
_sc.Test.Test.Item22.ItemName.text = StatTrak + WeapName13;
_sc.Test.Test.Item22.PlayerName.text = WeapDesc13;
_sc.Test.Test.Item22.RarityColor.gotoAndStop(weapon14);
weaponstarcolor = weapon14;
} else {
if (v1 == 15) {
test = ImageName15;
_sc.Test.Test.Item22.ItemName.text = StatTrak + WeapName14;
_sc.Test.Test.Item22.PlayerName.text = WeapDesc14;
_sc.Test.Test.Item22.RarityColor.gotoAndStop(weapon15);
weaponstarcolor = weapon15;
} else {
if (v1 == 16) {
test = ImageName16;
_sc.Test.Test.Item22.ItemName.text = StatTrak + WeapName15;
_sc.Test.Test.Item22.PlayerName.text = WeapDesc15;
_sc.Test.Test.Item22.RarityColor.gotoAndStop(weapon16);
weaponstarcolor = weapon16;
} else {
if (v1 == 17) {
test = ImageName17;
_sc.Test.Test.Item22.ItemName.text = StatTrak + WeapName16;
_sc.Test.Test.Item22.PlayerName.text = WeapDesc16;
_sc.Test.Test.Item22.RarityColor.gotoAndStop(weapon17);
weaponstarcolor = weapon17;
} else {
if (v1 == 18) {
test = ImageName18;
_sc.Test.Test.Item22.ItemName.text = StatTrak + WeapName17;
_sc.Test.Test.Item22.PlayerName.text = WeapDesc17;
_sc.Test.Test.Item22.RarityColor.gotoAndStop(weapon18);
weaponstarcolor = weapon18;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
NameOfWeapon = _sc.Test.Test.Item22.ItemName.text;
DescOfWeapon = _sc.Test.Test.Item22.PlayerName.text;
if (weaponstarcolor == 'Level6' && v2 <= 9900) {
SetWinner22();
} else {
if (weaponstarcolor == 'Level5' && v2 <= 9550) {
SetWinner22();
} else {
if (weaponstarcolor == 'Level4' && v2 <= 9100) {
SetWinner22();
} else {
if (weaponstarcolor == 'Level3' && v2 <= 7195) {
SetWinner22();
}
}
}
}
loadMovie(test, _sc.Test.Test.Item22.ItemImage.DynamicItemImage.Image);
if (weaponstarcolor == 'Level6' && Huntsman == 0) {
_sc.Test.Test.Item22.RareItemKnife._visible = true;
_sc.Test.Test.Item22.RareItemHuntsman._visible = false;
} else {
if (weaponstarcolor == 'Level6' && Huntsman == 1) {
_sc.Test.Test.Item22.RareItemKnife._visible = false;
_sc.Test.Test.Item22.RareItemHuntsman._visible = true;
} else {
_sc.Test.Test.Item22.RareItemKnife._visible = false;
_sc.Test.Test.Item22.RareItemHuntsman._visible = false;
}
}
}
function SetTiles() {
if (Item01 != undefined) {
_wp.Item0._visible = true;
_wp.Item0.RarityColor.gotoAndStop(Item01_lvl);
_wp.Item0.ItemName.text = Item01;
_wp.Item0.PlayerName.text = Item01_desc;
ImageName1 = 'images/' + Item01 + '/' + Item01_desc + '.png';
Tile0img.loadClip(ImageName1, _wp.Item0.ItemImage.DynamicItemImage.Image);
} else {
_wp.Item0._visible = false;
}
if (Item02 != undefined) {
_wp.Item1._visible = true;
_wp.Item1.RarityColor.gotoAndStop(Item02_lvl);
_wp.Item1.ItemName.text = Item02;
_wp.Item1.PlayerName.text = Item02_desc;
ImageName2 = 'images/' + Item02 + '/' + Item02_desc + '.png';
Tile1img.loadClip(ImageName2, _wp.Item1.ItemImage.DynamicItemImage.Image);
} else {
_wp.Item1._visible = false;
}
if (Item03 != undefined) {
_wp.Item2._visible = true;
_wp.Item2.RarityColor.gotoAndStop(Item03_lvl);
_wp.Item2.ItemName.text = Item03;
_wp.Item2.PlayerName.text = Item03_desc;
ImageName3 = 'images/' + Item03 + '/' + Item03_desc + '.png';
Tile2img.loadClip(ImageName3, _wp.Item2.ItemImage.DynamicItemImage.Image);
} else {
_wp.Item2._visible = false;
}
if (Item04 != undefined) {
_wp.Item3._visible = true;
_wp.Item3.RarityColor.gotoAndStop(Item04_lvl);
_wp.Item3.ItemName.text = Item04;
_wp.Item3.PlayerName.text = Item04_desc;
ImageName4 = 'images/' + Item04 + '/' + Item04_desc + '.png';
Tile3img.loadClip(ImageName4, _wp.Item3.ItemImage.DynamicItemImage.Image);
} else {
_wp.Item3._visible = false;
}
if (Item05 != undefined) {
_wp.Item4._visible = true;
_wp.Item4.RarityColor.gotoAndStop(Item05_lvl);
_wp.Item4.ItemName.text = Item05;
_wp.Item4.PlayerName.text = Item05_desc;
ImageName5 = 'images/' + Item05 + '/' + Item05_desc + '.png';
Tile4img.loadClip(ImageName5, _wp.Item4.ItemImage.DynamicItemImage.Image);
} else {
_wp.Item4._visible = false;
}
if (Item06 != undefined) {
_wp.Item5._visible = true;
_wp.Item5.RarityColor.gotoAndStop(Item06_lvl);
_wp.Item5.ItemName.text = Item06;
_wp.Item5.PlayerName.text = Item06_desc;
ImageName6 = 'images/' + Item06 + '/' + Item06_desc + '.png';
Tile5img.loadClip(ImageName6, _wp.Item5.ItemImage.DynamicItemImage.Image);
} else {
_wp.Item5._visible = false;
}
if (Item07 != undefined) {
_wp.Item6._visible = true;
_wp.Item6.RarityColor.gotoAndStop(Item07_lvl);
_wp.Item6.ItemName.text = Item07;
_wp.Item6.PlayerName.text = Item07_desc;
ImageName7 = 'images/' + Item07 + '/' + Item07_desc + '.png';
Tile6img.loadClip(ImageName7, _wp.Item6.ItemImage.DynamicItemImage.Image);
} else {
_wp.Item6._visible = false;
}
if (Item08 != undefined) {
_wp.Item7._visible = true;
_wp.Item7.RarityColor.gotoAndStop(Item08_lvl);
_wp.Item7.ItemName.text = Item08;
_wp.Item7.PlayerName.text = Item08_desc;
ImageName8 = 'images/' + Item08 + '/' + Item08_desc + '.png';
Tile7img.loadClip(ImageName8, _wp.Item7.ItemImage.DynamicItemImage.Image);
} else {
_wp.Item7._visible = false;
}
if (Item09 != undefined) {
_wp.Item8._visible = true;
_wp.Item8.RarityColor.gotoAndStop(Item09_lvl);
_wp.Item8.ItemName.text = Item09;
_wp.Item8.PlayerName.text = Item09_desc;
ImageName9 = 'images/' + Item09 + '/' + Item09_desc + '.png';
Tile8img.loadClip(ImageName9, _wp.Item8.ItemImage.DynamicItemImage.Image);
} else {
_wp.Item8._visible = false;
}
if (Item10 != undefined) {
_wp.Item9._visible = true;
_wp.Item9.RarityColor.gotoAndStop(Item10_lvl);
_wp.Item9.ItemName.text = Item10;
_wp.Item9.PlayerName.text = Item10_desc;
ImageName10 = 'images/' + Item10 + '/' + Item10_desc + '.png';
Tile9img.loadClip(ImageName10, _wp.Item9.ItemImage.DynamicItemImage.Image);
} else {
_wp.Item9._visible = false;
}
if (Item11 != undefined) {
_wp.Item10._visible = true;
_wp.Item10.RarityColor.gotoAndStop(Item11_lvl);
_wp.Item10.ItemName.text = Item11;
_wp.Item10.PlayerName.text = Item11_desc;
ImageName11 = 'images/' + Item11 + '/' + Item11_desc + '.png';
Tile10img.loadClip(ImageName11, _wp.Item10.ItemImage.DynamicItemImage.Image);
} else {
_wp.Item10._visible = false;
}
if (Item12 != undefined) {
_wp.Item11._visible = true;
_wp.Item11.RarityColor.gotoAndStop(Item12_lvl);
_wp.Item11.ItemName.text = Item12;
_wp.Item11.PlayerName.text = Item12_desc;
ImageName12 = 'images/' + Item12 + '/' + Item12_desc + '.png';
Tile11img.loadClip(ImageName12, _wp.Item11.ItemImage.DynamicItemImage.Image);
} else {
_wp.Item11._visible = false;
}
if (Item13 != undefined) {
_wp.Item12._visible = true;
_wp.Item12.RarityColor.gotoAndStop(Item13_lvl);
_wp.Item12.ItemName.text = Item13;
_wp.Item12.PlayerName.text = Item13_desc;
ImageName13 = 'images/' + Item13 + '/' + Item13_desc + '.png';
Tile12img.loadClip(ImageName13, _wp.Item12.ItemImage.DynamicItemImage.Image);
} else {
_wp.Item12._visible = false;
}
if (Item14 != undefined) {
_wp.Item13._visible = true;
_wp.Item13.RarityColor.gotoAndStop(Item14_lvl);
_wp.Item13.ItemName.text = Item14;
_wp.Item13.PlayerName.text = Item14_desc;
ImageName14 = 'images/' + Item14 + '/' + Item14_desc + '.png';
Tile13img.loadClip(ImageName14, _wp.Item13.ItemImage.DynamicItemImage.Image);
} else {
_wp.Item13._visible = false;
}
if (Item15 != undefined) {
_wp.Item14._visible = true;
_wp.Item14.RarityColor.gotoAndStop(Item15_lvl);
_wp.Item14.ItemName.text = Item15;
_wp.Item14.PlayerName.text = Item15_desc;
ImageName15 = 'images/' + Item15 + '/' + Item15_desc + '.png';
Tile14img.loadClip(ImageName15, _wp.Item14.ItemImage.DynamicItemImage.Image);
} else {
_wp.Item14._visible = false;
}
if (Item16 != undefined) {
_wp.Item15._visible = true;
_wp.Item15.RarityColor.gotoAndStop(Item16_lvl);
_wp.Item15.ItemName.text = Item16;
_wp.Item15.PlayerName.text = Item16_desc;
ImageName16 = 'images/' + Item16 + '/' + Item16_desc + '.png';
Tile15img.loadClip(ImageName16, _wp.Item15.ItemImage.DynamicItemImage.Image);
} else {
_wp.Item15._visible = false;
}
if (Item17 != undefined) {
_wp.Item16._visible = true;
_wp.Item16.RarityColor.gotoAndStop(Item17_lvl);
_wp.Item16.ItemName.text = Item17;
_wp.Item16.PlayerName.text = Item17_desc;
ImageName17 = 'images/' + Item17 + '/' + Item17_desc + '.png';
Tile16img.loadClip(ImageName17, _wp.Item16.ItemImage.DynamicItemImage.Image);
} else {
_wp.Item16._visible = false;
}
if (Item18 != undefined) {
_wp.Item17._visible = true;
_wp.Item17.RarityColor.gotoAndStop(Item18_lvl);
_wp.Item17.ItemName.text = Item18;
_wp.Item17.PlayerName.text = Item18_desc;
ImageName18 = 'images/' + Item18 + '/' + Item18_desc + '.png';
Tile17img.loadClip(ImageName18, _wp.Item17.ItemImage.DynamicItemImage.Image);
} else {
_wp.Item17._visible = false;
}
WeapName17 = _wp.Item17.ItemName.text;
WeapName16 = _wp.Item16.ItemName.text;
WeapName15 = _wp.Item15.ItemName.text;
WeapName14 = _wp.Item14.ItemName.text;
WeapName13 = _wp.Item13.ItemName.text;
WeapName12 = _wp.Item12.ItemName.text;
WeapName11 = _wp.Item11.ItemName.text;
WeapName10 = _wp.Item10.ItemName.text;
WeapName9 = _wp.Item9.ItemName.text;
WeapName8 = _wp.Item8.ItemName.text;
WeapName7 = _wp.Item7.ItemName.text;
WeapName6 = _wp.Item6.ItemName.text;
WeapName5 = _wp.Item5.ItemName.text;
WeapName4 = _wp.Item4.ItemName.text;
WeapName3 = _wp.Item3.ItemName.text;
WeapName2 = _wp.Item2.ItemName.text;
WeapName1 = _wp.Item1.ItemName.text;
WeapName0 = _wp.Item0.ItemName.text;
WeapDesc17 = _wp.Item17.PlayerName.text;
WeapDesc16 = _wp.Item16.PlayerName.text;
WeapDesc15 = _wp.Item15.PlayerName.text;
WeapDesc14 = _wp.Item14.PlayerName.text;
WeapDesc13 = _wp.Item13.PlayerName.text;
WeapDesc12 = _wp.Item12.PlayerName.text;
WeapDesc11 = _wp.Item11.PlayerName.text;
WeapDesc10 = _wp.Item10.PlayerName.text;
WeapDesc9 = _wp.Item9.PlayerName.text;
WeapDesc8 = _wp.Item8.PlayerName.text;
WeapDesc7 = _wp.Item7.PlayerName.text;
WeapDesc6 = _wp.Item6.PlayerName.text;
WeapDesc5 = _wp.Item5.PlayerName.text;
WeapDesc4 = _wp.Item4.PlayerName.text;
WeapDesc3 = _wp.Item3.PlayerName.text;
WeapDesc2 = _wp.Item2.PlayerName.text;
WeapDesc1 = _wp.Item1.PlayerName.text;
WeapDesc0 = _wp.Item0.PlayerName.text;
if (Item01_lvl == 'Level6' && Huntsman == 0) {
_wp.Item0.RareItemKnife._visible = true;
_wp.Item0.RareItemHuntsman._visible = false;
} else {
if (Item01_lvl == 'Level6' && Huntsman == 1) {
_wp.Item0.RareItemKnife._visible = false;
_wp.Item0.RareItemHuntsman._visible = true;
} else {
_wp.Item0.RareItemKnife._visible = false;
_wp.Item0.RareItemHuntsman._visible = false;
}
}
if (Item02_lvl == 'Level6' && Huntsman == 0) {
_wp.Item1.RareItemKnife._visible = true;
_wp.Item1.RareItemHuntsman._visible = false;
} else {
if (Item02_lvl == 'Level6' && Huntsman == 1) {
_wp.Item1.RareItemKnife._visible = false;
_wp.Item1.RareItemHuntsman._visible = true;
} else {
_wp.Item1.RareItemKnife._visible = false;
_wp.Item1.RareItemHuntsman._visible = false;
}
}
if (Item03_lvl == 'Level6' && Huntsman == 0) {
_wp.Item2.RareItemKnife._visible = true;
_wp.Item2.RareItemHuntsman._visible = false;
} else {
if (Item03_lvl == 'Level6' && Huntsman == 1) {
_wp.Item2.RareItemKnife._visible = false;
_wp.Item2.RareItemHuntsman._visible = true;
} else {
_wp.Item2.RareItemKnife._visible = false;
_wp.Item2.RareItemHuntsman._visible = false;
}
}
if (Item04_lvl == 'Level6' && Huntsman == 0) {
_wp.Item3.RareItemKnife._visible = true;
_wp.Item3.RareItemHuntsman._visible = false;
} else {
if (Item04_lvl == 'Level6' && Huntsman == 1) {
_wp.Item3.RareItemKnife._visible = false;
_wp.Item3.RareItemHuntsman._visible = true;
} else {
_wp.Item3.RareItemKnife._visible = false;
_wp.Item3.RareItemHuntsman._visible = false;
}
}
if (Item05_lvl == 'Level6' && Huntsman == 0) {
_wp.Item4.RareItemKnife._visible = true;
_wp.Item4.RareItemHuntsman._visible = false;
} else {
if (Item05_lvl == 'Level6' && Huntsman == 1) {
_wp.Item4.RareItemKnife._visible = false;
_wp.Item4.RareItemHuntsman._visible = true;
} else {
_wp.Item4.RareItemKnife._visible = false;
_wp.Item4.RareItemHuntsman._visible = false;
}
}
if (Item06_lvl == 'Level6' && Huntsman == 0) {
_wp.Item5.RareItemKnife._visible = true;
_wp.Item5.RareItemHuntsman._visible = false;
} else {
if (Item06_lvl == 'Level6' && Huntsman == 1) {
_wp.Item5.RareItemKnife._visible = false;
_wp.Item5.RareItemHuntsman._visible = true;
} else {
_wp.Item5.RareItemKnife._visible = false;
_wp.Item5.RareItemHuntsman._visible = false;
}
}
if (Item07_lvl == 'Level6' && Huntsman == 0) {
_wp.Item6.RareItemKnife._visible = true;
_wp.Item6.RareItemHuntsman._visible = false;
} else {
if (Item07_lvl == 'Level6' && Huntsman == 1) {
_wp.Item6.RareItemKnife._visible = false;
_wp.Item6.RareItemHuntsman._visible = true;
} else {
_wp.Item6.RareItemKnife._visible = false;
_wp.Item6.RareItemHuntsman._visible = false;
}
}
if (Item08_lvl == 'Level6' && Huntsman == 0) {
_wp.Item7.RareItemKnife._visible = true;
_wp.Item7.RareItemHuntsman._visible = false;
} else {
if (Item08_lvl == 'Level6' && Huntsman == 1) {
_wp.Item7.RareItemKnife._visible = false;
_wp.Item7.RareItemHuntsman._visible = true;
} else {
_wp.Item7.RareItemKnife._visible = false;
_wp.Item7.RareItemHuntsman._visible = false;
}
}
if (Item09_lvl == 'Level6' && Huntsman == 0) {
_wp.Item8.RareItemKnife._visible = true;
_wp.Item8.RareItemHuntsman._visible = false;
} else {
if (Item09_lvl == 'Level6' && Huntsman == 1) {
_wp.Item8.RareItemKnife._visible = false;
_wp.Item8.RareItemHuntsman._visible = true;
} else {
_wp.Item8.RareItemKnife._visible = false;
_wp.Item8.RareItemHuntsman._visible = false;
}
}
if (Item10_lvl == 'Level6' && Huntsman == 0) {
_wp.Item9.RareItemKnife._visible = true;
_wp.Item9.RareItemHuntsman._visible = false;
} else {
if (Item10_lvl == 'Level6' && Huntsman == 1) {
_wp.Item9.RareItemKnife._visible = false;
_wp.Item9.RareItemHuntsman._visible = true;
} else {
_wp.Item9.RareItemKnife._visible = false;
_wp.Item9.RareItemHuntsman._visible = false;
}
}
if (Item11_lvl == 'Level6' && Huntsman == 0) {
_wp.Item10.RareItemKnife._visible = true;
_wp.Item10.RareItemHuntsman._visible = false;
} else {
if (Item11_lvl == 'Level6' && Huntsman == 1) {
_wp.Item10.RareItemKnife._visible = false;
_wp.Item10.RareItemHuntsman._visible = true;
} else {
_wp.Item10.RareItemKnife._visible = false;
_wp.Item10.RareItemHuntsman._visible = false;
}
}
if (Item12_lvl == 'Level6' && Huntsman == 0) {
_wp.Item11.RareItemKnife._visible = true;
_wp.Item11.RareItemHuntsman._visible = false;
} else {
if (Item12_lvl == 'Level6' && Huntsman == 1) {
_wp.Item11.RareItemKnife._visible = false;
_wp.Item11.RareItemHuntsman._visible = true;
} else {
_wp.Item11.RareItemKnife._visible = false;
_wp.Item11.RareItemHuntsman._visible = false;
}
}
if (Item13_lvl == 'Level6' && Huntsman == 0) {
_wp.Item12.RareItemKnife._visible = true;
_wp.Item12.RareItemHuntsman._visible = false;
} else {
if (Item13_lvl == 'Level6' && Huntsman == 1) {
_wp.Item12.RareItemKnife._visible = false;
_wp.Item12.RareItemHuntsman._visible = true;
} else {
_wp.Item12.RareItemKnife._visible = false;
_wp.Item12.RareItemHuntsman._visible = false;
}
}
if (Item14_lvl == 'Level6' && Huntsman == 0) {
_wp.Item13.RareItemKnife._visible = true;
_wp.Item13.RareItemHuntsman._visible = false;
} else {
if (Item14_lvl == 'Level6' && Huntsman == 1) {
_wp.Item13.RareItemKnife._visible = false;
_wp.Item13.RareItemHuntsman._visible = true;
} else {
_wp.Item13.RareItemKnife._visible = false;
_wp.Item13.RareItemHuntsman._visible = false;
}
}
if (Item15_lvl == 'Level6' && Huntsman == 0) {
_wp.Item14.RareItemKnife._visible = true;
_wp.Item14.RareItemHuntsman._visible = false;
} else {
if (Item15_lvl == 'Level6' && Huntsman == 1) {
_wp.Item14.RareItemKnife._visible = false;
_wp.Item14.RareItemHuntsman._visible = true;
} else {
_wp.Item14.RareItemKnife._visible = false;
_wp.Item14.RareItemHuntsman._visible = false;
}
}
if (Item16_lvl == 'Level6' && Huntsman == 0) {
_wp.Item15.RareItemKnife._visible = true;
_wp.Item15.RareItemHuntsman._visible = false;
} else {
if (Item16_lvl == 'Level6' && Huntsman == 1) {
_wp.Item15.RareItemKnife._visible = false;
_wp.Item15.RareItemHuntsman._visible = true;
} else {
_wp.Item15.RareItemKnife._visible = false;
_wp.Item15.RareItemHuntsman._visible = false;
}
}
if (Item17_lvl == 'Level6' && Huntsman == 0) {
_wp.Item16.RareItemKnife._visible = true;
_wp.Item16.RareItemHuntsman._visible = false;
} else {
if (Item17_lvl == 'Level6' && Huntsman == 1) {
_wp.Item16.RareItemKnife._visible = false;
_wp.Item16.RareItemHuntsman._visible = true;
} else {
_wp.Item16.RareItemKnife._visible = false;
_wp.Item16.RareItemHuntsman._visible = false;
}
}
if (Item18_lvl == 'Level6' && Huntsman == 0) {
_wp.Item17.RareItemKnife._visible = true;
_wp.Item17.RareItemHuntsman._visible = false;
} else {
if (Item18_lvl == 'Level6' && Huntsman == 1) {
_wp.Item17.RareItemKnife._visible = false;
_wp.Item17.RareItemHuntsman._visible = true;
} else {
_wp.Item17.RareItemKnife._visible = false;
_wp.Item17.RareItemHuntsman._visible = false;
}
}
}
var ImageName18;
var ImageName1;
var ImageName2;
var ImageName3;
var ImageName4;
var ImageName5;
var ImageName6;
var ImageName7;
var ImageName8;
var ImageName9;
var ImageName10;
var ImageName11;
var ImageName12;
var ImageName13;
var ImageName14;
var ImageName15;
var ImageName16;
var ImageName17;
var RandomNumber;
var Random1;
var Random2;
var Random3;
var Random4;
var Random5;
var Random6;
var weapon1;
var weapon2;
var weapon3;
var weapon4;
var weapon5;
var weapon6;
var weapon7;
var weapon8;
var weapon9;
var weapon10;
var weapon11;
var weapon12;
var weapon13;
var weapon14;
var weapon15;
var weapon16;
var weapon17;
var weapon18;
var WeapName1;
var WeapName2;
var WeapName3;
var WeapName4;
var WeapName5;
var WeapName6;
var WeapName7;
var WeapName8;
var WeapName9;
var WeapName10;
var WeapName11;
var WeapName12;
var WeapName13;
var WeapName14;
var WeapName15;
var WeapName16;
var WeapName17;
var WeapName0;
var WeapDesc1;
var WeapDesc2;
var WeapDesc3;
var WeapDesc4;
var WeapDesc5;
var WeapDesc6;
var WeapDesc7;
var WeapDesc8;
var WeapDesc9;
var WeapDesc10;
var WeapDesc11;
var WeapDesc12;
var WeapDesc13;
var WeapDesc14;
var WeapDesc15;
var WeapDesc16;
var WeapDesc17;
var WeapDesc0;
var item1 = OrelRoll.Panel.Weapons.Item0;
var item2 = OrelRoll.Panel.Weapons.Item1;
var item3 = OrelRoll.Panel.Weapons.Item2;
var item4 = OrelRoll.Panel.Weapons.Item3;
var item5 = OrelRoll.Panel.Weapons.Item4;
var item6 = OrelRoll.Panel.Weapons.Item5;
var item7 = OrelRoll.Panel.Weapons.Item6;
var item8 = OrelRoll.Panel.Weapons.Item7;
var item9 = OrelRoll.Panel.Weapons.Item8;
var item10 = OrelRoll.Panel.Weapons.Item9;
var item11 = OrelRoll.Panel.Weapons.Item10;
var item12 = OrelRoll.Panel.Weapons.Item11;
var item13 = OrelRoll.Panel.Weapons.Item12;
var item14 = OrelRoll.Panel.Weapons.Item13;
var item15 = OrelRoll.Panel.Weapons.Item14;
var item16 = OrelRoll.Panel.Weapons.Item15;
var item17 = OrelRoll.Panel.Weapons.Item16;
var item18 = OrelRoll.Panel.Weapons.Item17;
var music_win0 = 0;
var music_win1 = 0;
var music_win2 = 0;
var music_win3 = 0;
var music_win4 = 0;
var music_win5 = 0;
var music_win6 = 0;
var RText;
var RTextBUT;
var RTextWIN;
var randomname;
var randomweap;
var randomweap_desc;
var randomwinner;
var _sc;
var _wp = OrelRoll.Panel.Weapons;
var textFile;
var lvl0count;
var lvl1count;
var lvl2count;
var lvl3count;
var lvl4count;
var lvl5count;
var lvl6count;
var lvlTcount;
var lvl0rarity = 0;
var lvl1rarity = 0;
var lvl2rarity = 0;
var lvl3rarity = 0;
var lvl4rarity = 0;
var lvl5rarity = 0;
var lvl6rarity = 0;
var tempWeaponName;
var tempWeaponDesc;
var NameOfWeapon;
var DescOfWeapon;
var weaponstarcolor;
var namescount;
var RollCount;
var RollCount1;
var timesplayed = -1;
var test0;
var test1;
var test2;
var test3;
var test4;
var Random20 = 0;
var MultiRandomStopped = 0;
var MultiCount = 2;
var MultiCountDone = 0;
var ButtonHiderRandom = 1;
var ButtonText = 'СОЗДÐТЬ ÐÐБОР';
var Item01;
var Item02;
var Item03;
var Item04;
var Item05;
var Item06;
var Item07;
var Item08;
var Item09;
var Item10;
var Item11;
var Item12;
var Item13;
var Item14;
var Item15;
var Item16;
var Item17;
var Item18;
var Item01_desc;
var Item02_desc;
var Item03_desc;
var Item04_desc;
var Item05_desc;
var Item06_desc;
var Item07_desc;
var Item08_desc;
var Item09_desc;
var Item10_desc;
var Item11_desc;
var Item12_desc;
var Item13_desc;
var Item14_desc;
var Item15_desc;
var Item16_desc;
var Item17_desc;
var Item18_desc;
var Item01_lvl;
var Item02_lvl;
var Item03_lvl;
var Item04_lvl;
var Item05_lvl;
var Item06_lvl;
var Item07_lvl;
var Item08_lvl;
var Item09_lvl;
var Item10_lvl;
var Item11_lvl;
var Item12_lvl;
var Item13_lvl;
var Item14_lvl;
var Item15_lvl;
var Item16_lvl;
var Item17_lvl;
var Item18_lvl;
var TotalWeapons;
var Huntsman = 0;
var realwin;
var itR20;
var itS;
var StatTrak;
var Sticker;
var allowVote = allowVote;
var Money = 0;
var Keys = 0;
var Price = 2.49;
var L2got = 0;
var L3got = 0;
var L4got = 0;
var L5got = 0;
var L6got = 0;
var L2gotS = 0;
var L3gotS = 0;
var L4gotS = 0;
var L5gotS = 0;
var L6gotS = 0;
var L2Sgot = 0;
var L3Sgot = 0;
var L4Sgot = 0;
var CaseName01 = 'Weapon Case';
var CaseName02 = 'eSports Case';
var CaseName03 = 'Weapon Case 2';
var CaseName04 = 'Operation Bravo Weapon Case';
var CaseName05 = 'Winter Offensive Weapon Case';
var CaseName06 = 'eSports Winter Case';
var CaseName07 = 'Weapon Case 3';
var CaseName08 = 'Operation Phoenix Weapon Case';
var CaseName09 = 'Huntsman Weapon Case';
var CaseName10 = 'empty';
var CaseName11 = 'empty';
var CaseName12 = 'empty';
var CapName01 = 'Sticker Capsule';
var CapName02 = 'Sticker Capsule 2';
var CapName03 = 'EMS Katowice 2014 Challengers';
var CapName04 = 'EMS Katowice 2014 Legends';
var CapName05 = 'Community Sticker Capsule 1';
var CapName06 = 'empty';
var CapName07 = 'empty';
var CapName08 = 'empty';
var CapName09 = 'empty';
var CapName10 = 'empty';
var CapName11 = 'empty';
var CapName12 = 'empty';
var Case1img = new MovieClipLoader();
var Case2img = new MovieClipLoader();
var Case3img = new MovieClipLoader();
var Case4img = new MovieClipLoader();
var Case5img = new MovieClipLoader();
var Case6img = new MovieClipLoader();
var Case7img = new MovieClipLoader();
var Case8img = new MovieClipLoader();
var Case9img = new MovieClipLoader();
var Case10img = new MovieClipLoader();
var Case11img = new MovieClipLoader();
var Case12img = new MovieClipLoader();
var Cap1img = new MovieClipLoader();
var Cap2img = new MovieClipLoader();
var Cap3img = new MovieClipLoader();
var Cap4img = new MovieClipLoader();
var Cap5img = new MovieClipLoader();
var Cap6img = new MovieClipLoader();
var Cap7img = new MovieClipLoader();
var Cap8img = new MovieClipLoader();
var Cap9img = new MovieClipLoader();
var Cap10img = new MovieClipLoader();
var Cap11img = new MovieClipLoader();
var Cap12img = new MovieClipLoader();
var Tile1img = new MovieClipLoader();
var Tile2img = new MovieClipLoader();
var Tile3img = new MovieClipLoader();
var Tile4img = new MovieClipLoader();
var Tile5img = new MovieClipLoader();
var Tile6img = new MovieClipLoader();
var Tile7img = new MovieClipLoader();
var Tile8img = new MovieClipLoader();
var Tile9img = new MovieClipLoader();
var Tile10img = new MovieClipLoader();
var Tile11img = new MovieClipLoader();
var Tile12img = new MovieClipLoader();
var Tile13img = new MovieClipLoader();
var Tile14img = new MovieClipLoader();
var Tile15img = new MovieClipLoader();
var Tile16img = new MovieClipLoader();
var Tile17img = new MovieClipLoader();
var Tile0img = new MovieClipLoader();
var IMGtemp;
var GLgot;
OnLoaded();
}
movieClip 32 {
}
movieClip 35 {
}
movieClip 38 {
}
movieClip 41 {
}
movieClip 44 {
}
movieClip 47 {
}
movieClip 50 {
}
movieClip 53 {
}
movieClip 56 {
}
movieClip 63 {
}
movieClip 64 {
}
movieClip 108 {
}
movieClip 114 {
}
movieClip 115 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 11 {
stop();
}
}
movieClip 118 {
frame 1112 {
_root.UpdateGPHP();
}
frame 1211 {
_root.UpdateGPHP();
gotoAndPlay('StartAnim');
}
}
movieClip 119 {
}
movieClip 122 {
}
movieClip 124 {
}
movieClip 125 {
}
movieClip 126 {
instance but3 of movieClip 125 {
}
}
movieClip 127 {
frame 1 {
stop();
}
}
movieClip 128 {
frame 1 {
stop();
}
}
movieClip 129 {
}
movieClip 130 {
}
movieClip 132 {
}
movieClip 134 {
}
movieClip 138 {
frame 1 {
function SetMusicMulti() {
_root.SetMusic0();
_root.SetWinnerSE();
}
function SetMusic() {
_root.SetMusic0();
}
function SetRandom20() {
_root.Random20 = 0;
}
stop();
}
frame 2 {
function SetMusicMulti() {
_root.SetMusic1();
_root.SetWinnerSE();
}
function SetMusic() {
_root.SetMusic1();
}
function SetRandom20() {
_root.Random20 = 1;
}
stop();
}
frame 3 {
function SetMusicMulti() {
_root.SetMusic2();
_root.SetWinnerSE();
}
function SetMusic() {
_root.SetMusic2();
}
function SetRandom20() {
_root.Random20 = 2;
}
stop();
}
frame 4 {
function SetMusicMulti() {
_root.SetMusic3();
_root.SetWinnerSE();
}
function SetMusic() {
_root.SetMusic3();
}
function SetRandom20() {
_root.Random20 = 3;
}
stop();
}
frame 5 {
function SetMusicMulti() {
_root.SetMusic4();
_root.SetWinnerSE();
}
function SetMusic() {
_root.SetMusic4();
}
function SetRandom20() {
_root.Random20 = 4;
}
stop();
}
frame 6 {
function SetMusicMulti() {
_root.SetMusic5();
_root.SetWinnerSE();
}
function SetMusic() {
_root.SetMusic5();
}
function SetRandom20() {
_root.Random20 = 5;
}
stop();
}
frame 7 {
function SetMusicMulti() {
_root.SetMusic6();
_root.SetWinnerSE();
}
function SetMusic() {
_root.SetMusic6();
}
function SetRandom20() {
_root.Random20 = 6;
}
stop();
}
frame 8 {
function SetMusic() {
_root.SetMusic6();
}
function SetRandom20() {
_root.Random20 = 6;
}
stop();
}
frame 9 {
function SetMusic() {
_root.SetMusic6();
}
function SetRandom20() {
_root.Random20 = 6;
}
stop();
}
frame 10 {
function SetMusic() {
_root.SetMusic6();
}
function SetRandom20() {
_root.Random20 = 6;
}
stop();
}
frame 11 {
function SetMusic() {
_root.SetMusic6();
}
function SetRandom20() {
_root.Random20 = 6;
}
stop();
}
}
movieClip 140 {
}
movieClip 141 {
}
movieClip 142 {
}
movieClip 143 {
}
movieClip 144 {
}
movieClip 145 {
}
movieClip 150 {
}
movieClip 151 {
frame 1 {
function SetItemInfo(strId, PlayerXuid, TileDesc) {
SetIdXuidType(strId, PlayerXuid, TileDesc);
}
function SetIdXuidType(strId, PlayerXuid, TileDesc) {
var v3 = '';
var v2 = '';
this._ItemID = strId;
this._ItemXuid = PlayerXuid;
this._IsEmpty = false;
this._StatTrakKills = -1;
GetItemData(TileDesc);
}
function SetItemInfoHideEquippedStatus(strId, PlayerXuid) {
this._ItemID = strId;
this._ItemXuid = PlayerXuid;
this._IsEmpty = false;
this._StatTrakKills = -1;
GetItemData('HideEquipped');
}
function SetInfoForLoadoutItems(PlayerXuid, Team, strWeaponSlot) {
var v4 = '';
var v3 = _global.CScaleformComponent_Loadout.GetItemID(PlayerXuid, Team, strWeaponSlot.toString());
this._ItemID = v3;
this._ItemXuid = PlayerXuid;
this._ItemType = v4;
GetItemData('Loadout');
}
function SetInfoForHudDropItem(strId, fauxItemId, PlayerXuid) {
this._ItemID = strId;
this._FauxItemId = fauxItemId;
this._ItemXuid = PlayerXuid;
GetItemData('Drop');
}
function SetInfoForHudSpecItem(strId, defIndex, PlayerXuid, nPaintIndex, nRarity, nQuality, nPaintWear, nPaintSeed, nStatTrakKills) {
this._ItemID = strId;
this._DefIndex = defIndex;
this._ItemXuid = PlayerXuid;
this._Rarity = nRarity;
this._PaintIndexID = nPaintIndex;
this._Quality = nQuality;
this._PaintWear = nPaintWear;
this._PaintSeed = nPaintSeed;
this._StatTrakKills = nStatTrakKills;
GetItemData('Spec');
}
function SetItemInfoStatTrak(strId, PlayerXuid, StatTrakKills) {
this._ItemID = strId;
this._ItemXuid = PlayerXuid;
this._IsEmpty = false;
this._StatTrakKills = StatTrakKills;
GetItemData('HideEquipped');
}
function SetItemInfoForStore(srtBundleID, PlayerXuid) {
if (!_global.CScaleformComponent_Store.IsBundle(srtBundleID)) {
this._ItemID = srtBundleID;
Quantity._visible = true;
} else {
var v4 = _global.CScaleformComponent_Store.GetBundleItemCount(srtBundleID);
if (v4 == 1) {
var v5 = _global.CScaleformComponent_Store.GetBundleItemByIndex(srtBundleID, 0);
this._ItemID = v5;
} else {
this._ItemID = srtBundleID;
}
Quantity._visible = false;
}
this._ItemXuid = PlayerXuid;
this._BundleID = srtBundleID;
this._Quantity = 1;
GetItemData('Store');
}
function SetItemInfoForExceedinglyRareItem(ItemId, PlayerXuid) {
this._IsEmpty = false;
this._ItemID = ItemId;
this._ItemXuid = PlayerXuid;
this._StatTrakKills = -1;
GetItemData('RareItem');
}
function GetItemData(TileDesc) {
if (this._ItemID == '' || this._ItemID == undefined) {
return undefined;
}
if (this._ItemXuid == '' || this._ItemXuid == undefined) {
return undefined;
}
var v3 = _global.CScaleformComponent_Inventory.IsItemInfoValid(String(this._ItemXuid), String(this._ItemID));
if (!v3 && this._FauxItemId > 0) {
this._ItemID = this._FauxItemId;
}
switch (TileDesc) {
case 'Loadout':
Name.ItemName.htmlText = GetName();
SetColor(GetRarityColor());
SetEquippedDot(IsEquippedCT(), IsEquippedT(), IsNoTeam(), GetTeam());
SetGift('');
if (GetMoney() != 0 && GetMoney() != undefined) {
Cost.htmlText = '$' + GetMoney();
} else {
MoneyBg._visible = false;
}
LoadItemImage(GetImagePath(), 180, 135);
SetStickers(GetStickerCount());
_global.AutosizeTextDown(Name.ItemName, 8);
break;
case 'Acknowledge':
Name.ItemName.htmlText = GetName();
SetColor(GetRarityColor());
SetGift(GetItemGifter());
SetEquippedDot(IsEquippedCT(), IsEquippedT(), IsNoTeam(), GetTeam());
MoneyBg._visible = false;
LoadItemImage(GetImagePath(), 180, 135);
SetStickers(GetStickerCount());
_global.AutosizeTextDown(Name.ItemName, 8);
break;
case 'RareItem':
DisplayTileText(SeperateName(GetName()));
SetColor(GetRarityColor());
var v4 = _global.CScaleformComponent_ItemData.GetItemInventoryImage(Number(this._ItemID)) + '.swf';
LoadItemImage('RareItemIcon.swf', 90, 67);
SetStickers(GetStickerCount());
CTDot._visible = false;
TDot._visible = false;
break;
case 'Drop':
Name.ItemName.htmlText = GetSeperateNameString(SeperateName(GetName()));
LoadItemImage(GetImagePath(), 180, 135);
SetColor(GetRarityColor());
break;
case 'Spec':
this._ItemIdIsValid = _global.CScaleformComponent_Inventory.IsItemInfoValid(this._ItemXuid.toString(), this._ItemID.toString());
Name.ItemName.htmlText = GetSeperateNameString(SeperateName(GetName()));
LoadItemImage(GetImagePath(), 176, 132);
SetColor(GetRarityColor());
break;
case 'Store':
DisplayTileText(SeperateName(GetName()));
SetEquippedDot(IsEquippedCT(), IsEquippedT(), IsNoTeam(), GetTeam());
SetColor(GetRarityColor());
LoadItemImage(GetImagePath(), 90, 67);
SetStorePriceData();
SetUpQuantityButtons();
SetStickers(GetStickerCount());
CTDot._visible = false;
TDot._visible = false;
break;
case 'HideEquipped':
DisplayTileText(SeperateName(GetName()));
SetColor(GetRarityColor());
LoadItemImage(GetImagePath(), 90, 67);
SetStickers(GetStickerCount());
CTDot._visible = false;
TDot._visible = false;
break;
case 'ImageOnly':
LoadItemImage(GetImagePath(), 90, 67);
SetStickers(GetStickerCount());
break;
default:
DisplayTileText(SeperateName(GetName()));
SetEquippedDot(IsEquippedCT(), IsEquippedT(), IsNoTeam(), GetTeam());
SetColor(GetRarityColor());
SetStickers(GetStickerCount());
LoadItemImage(GetImagePath(), 90, 67);
}
}
function SetUpQuantityButtons() {
QuantityBtn.Less.dialog = this;
QuantityBtn.Less.Action = function () {
this.dialog.ChangeQuantity(false);
};
QuantityBtn.More.dialog = this;
QuantityBtn.More.Action = function () {
this.dialog.ChangeQuantity(true);
};
var v4 = _global.GameInterface.Translate('#SFUI_InvUse_Get_Quantity');
v4 = _global.ConstructString(v4, 1);
QuantityBtn.Quantity.htmlText = v4;
BuyBtn.dialog = this;
BuyBtn.Action = function () {
this.dialog.Purchase();
};
if (this._Capability == 'decodable') {
var v3 = _global.GameInterface.Translate('#SFUI_InvUse_Get_decodable');
} else {
if (this._Capability == 'nameable') {
var v3 = _global.GameInterface.Translate('#SFUI_InvUse_Get_nameable');
}
}
v3 = _global.ConstructString(v3, GetStoreOriginalPrice());
BuyBtn.OriginalPrice.Price.htmlText = v3;
}
function ChangeQuantity(bAdd) {
if (bAdd && this._Quantity < 20) {
++this._Quantity;
} else {
if (!bAdd && this._Quantity > 1) {
--this._Quantity;
}
}
var v3 = _global.GameInterface.Translate('#SFUI_InvUse_Get_Quantity');
v3 = _global.ConstructString(v3, this._Quantity);
QuantityBtn.Quantity.htmlText = v3;
SetStorePriceData();
}
function Purchase() {
var v4 = [];
var v3 = 0;
while (v3 < this._Quantity) {
v4.push(this._BundleID);
++v3;
}
var v5 = v4.join(',');
_global.CScaleformComponent_Store.StoreItemPurchase(v5);
}
function SetStorePriceData() {
var v5 = GetStoreOriginalPrice();
var v6 = GetStoreSalePrice();
var v4 = GetStoreSalePercentReduction();
if (v4 == '' || v4 == undefined) {
BuyBtn.OriginalPrice._visible = true;
BuyBtn.Discount._visible = false;
BuyBtn.SalePrice._visible = false;
if (this._Quantity > 1) {
if (this._Capability == 'decodable') {
var v3 = _global.GameInterface.Translate('#SFUI_InvUse_Get_decodable_multi');
} else {
if (this._Capability == 'nameable') {
var v3 = _global.GameInterface.Translate('#SFUI_InvUse_Get_nameable_multi');
}
}
} else {
if (this._Capability == 'decodable') {
var v3 = _global.GameInterface.Translate('#SFUI_InvUse_Get_decodable');
} else {
if (this._Capability == 'nameable') {
var v3 = _global.GameInterface.Translate('#SFUI_InvUse_Get_nameable');
}
}
}
v3 = _global.ConstructString(v3, v5);
BuyBtn.OriginalPrice.Price.htmlText = v3;
} else {
BuyBtn.OriginalPrice._visible = false;
BuyBtn.Discount._visible = true;
BuyBtn.SalePrice._visible = true;
BuyBtn.SalePrice.SalePrice.htmlText = v6;
BuyBtn.SalePrice.OriginalPrice.htmlText = v5;
BuyBtn.Discount.Percent.htmlText = v4;
}
}
function SetStickers(numStickerCount) {
if (numStickerCount > 0) {
var v7 = 7;
var v3 = 0;
while (v3 < v7) {
var v4 = Stickers['Tile' + v3];
if (v3 >= numStickerCount) {
v4._visible = false;
} else {
var v6 = _global.CScaleformComponent_Inventory.GetItemStickerImageByIndex(this._ItemXuid, this._ItemID, v3);
var v5 = _global.CScaleformComponent_Inventory.GetItemStickerNameByIndex(this._ItemXuid, this._ItemID, v3);
v4._visible = true;
LoadStickerImage(v4, v6, v5);
}
++v3;
}
Stickers._visible = true;
} else {
Stickers._visible = false;
}
}
function LoadStickerImage(objTile, Path, Name) {
if (objTile.Image != undefined) {
objTile.Image.unloadMovie();
}
var v1 = new Object();
v1.onLoadInit = function (target_mc) {
target_mc._width = 12;
target_mc._height = 9;
target_mc.forceSmoothing = true;
};
v1.onLoadError = function (target_mc, errorCode, status) {};
var v4 = Path + '.png';
var v3 = new MovieClipLoader();
v3.addListener(v1);
v3.loadClip(v4, objTile.Image);
objTile.Text.htmlText = Name;
}
function EnsureImageCached() {
_global.CScaleformComponent_ImageCache.EnsureInventoryImageCached(this._ItemID);
}
function GetName() {
var v3 = _global.CScaleformComponent_Inventory.GetItemName(this._ItemXuid, this._ItemID);
if (this._StatTrakKills >= 0) {
v3 = _global.GameInterface.Translate('#strange') + ' ' + v3;
}
return v3;
}
function GetTeam() {
var v3 = _global.CScaleformComponent_Inventory.GetItemTeam(this._ItemXuid, this._ItemID);
return v3;
}
function GetRarityColor() {
var v3 = _global.CScaleformComponent_Inventory.GetItemRarityColor(this._ItemXuid, this._ItemID);
return v3;
}
function GetSlotID() {
var v3 = _global.CScaleformComponent_Inventory.GetSlotSubPosition(this._ItemXuid, this._ItemID);
return v3;
}
function GetCatagory() {
var v3 = _global.CScaleformComponent_Inventory.GetSlot(this._ItemXuid, this._ItemID);
return v3;
}
function GetImagePath() {
if (this._ItemIdIsValid == false) {
_global.CScaleformComponent_ImageCache.EnsureItemDataImageCached(this._DefIndex, this._PaintIndexID);
var v3 = 'img://itemdata_' + this._DefIndex + '_' + this._PaintIndexID + '_' + this._Rarity + '_' + this._Quality + '_' + this._PaintWear + '_' + this._PaintSeed + '_' + this._StatTrakKills;
return v3;
}
var v4 = _global.CScaleformComponent_Inventory.IsInventoryImageCachable(this._ItemXuid, this._ItemID);
if (!v4) {
v3 = _global.CScaleformComponent_Inventory.GetItemInventoryImage(this._ItemXuid, this._ItemID) + '.png';
return v3;
}
EnsureImageCached();
v3 = 'img://inventory_' + this._ItemID;
return v3;
}
function GetDefaultItemModelPath() {
if (GetSlotID() == 'flair0') {
var v2 = 'img://inventory_' + this._ItemID;
return v2;
}
v2 = GetImagePath();
return v2;
}
function IsTool() {
return _global.CScaleformComponent_Inventory.IsTool(this._ItemXuid, this._ItemID);
}
function IsEquippedCT() {
var v3 = _global.CScaleformComponent_Inventory.IsEquipped(this._ItemXuid, this._ItemID.toString(), 'ct');
return v3;
}
function IsEquippedT() {
var v3 = _global.CScaleformComponent_Inventory.IsEquipped(this._ItemXuid, this._ItemID.toString(), 't');
return v3;
}
function IsNoTeam() {
var v3 = _global.CScaleformComponent_Inventory.IsEquipped(this._ItemXuid, this._ItemID.toString(), 'noteam');
return v3;
}
function GetItemCapability(Index) {
var v3 = _global.CScaleformComponent_Inventory.GetItemCapabilityByIndex(this._ItemXuid, this._ItemID, Number(Index));
return v3;
}
function GetItemCapabilityCount() {
var v3 = _global.CScaleformComponent_Inventory.GetItemCapabilitiesCount(this._ItemXuid, this._ItemID);
return v3;
}
function GetChosenActionItemsCount(Capability) {
var v3 = _global.CScaleformComponent_Inventory.GetChosenActionItemsCount(this._ItemXuid, this._ItemID, Capability);
return v3;
}
function GetChosenActionItemIDByIndex(Capability, Index) {
var v3 = _global.CScaleformComponent_Inventory.GetChosenActionItemIDByIndex(this._ItemXuid, this._ItemID, Capability, Number(Index));
return v3;
}
function GetStickerCount() {
var v3 = _global.CScaleformComponent_Inventory.GetItemStickerCount(this._ItemXuid, this._ItemID);
return v3;
}
function HasMusic() {
var v3 = _global.CScaleformComponent_Inventory.HasMusic(this._ItemXuid, this._ItemID);
return v3;
}
function GetMoney() {
var v4 = IsEquippedCT();
var v5 = IsEquippedT();
var v3 = '';
if (v4) {
v3 = 'ct';
return _global.CScaleformComponent_Loadout.GetItemGamePrice(this._ItemXuid, v3, (GetSlotID()).toString());
}
v3 = 't';
return _global.CScaleformComponent_Loadout.GetItemGamePrice(this._ItemXuid, v3, (GetSlotID()).toString());
}
function GetStoreOriginalPrice() {
return _global.CScaleformComponent_Store.GetStoreItemOriginalPrice(this._BundleID, this._Quantity);
}
function GetStoreSalePrice() {
return _global.CScaleformComponent_Store.GetStoreItemSalePrice(this._BundleID, this._Quantity);
}
function GetStoreSalePercentReduction() {
return _global.CScaleformComponent_Store.GetStoreItemPercentReduction(this._BundleID, this._Quantity);
}
function GetItemGifter() {
return _global.CScaleformComponent_Inventory.GetItemGifterXuid(this._ItemXuid, this._ItemID);
}
function LoadItemImage(ImagePath, numWidth, numHeight) {
ItemImage.DefaultItemImage._visible = false;
ItemImage.DynamicItemImage._visible = true;
if (ItemImage.DynamicItemImage.Image != undefined) {
ItemImage.DynamicItemImage.Image.unloadMovie();
}
var v1 = new Object();
v1.onLoadInit = function (target_mc) {
target_mc._width = numWidth;
target_mc._height = numHeight;
};
v1.onLoadError = function (target_mc, errorCode, status) {};
var v3 = ImagePath;
var v2 = new MovieClipLoader();
v2.addListener(v1);
v2.loadClip(v3, ItemImage.DynamicItemImage.Image);
}
function RefreshItemImage() {
ItemImage.DynamicItemImage.Image.unloadMovie();
var v2 = new Object();
v2.onLoadInit = function (target_mc) {
target_mc._width = 90;
target_mc._height = 90;
};
var v4 = 'img://inventory_' + this._ItemID;
var v3 = new MovieClipLoader();
v3.addListener(v2);
v3.loadClip(v4, ItemImage.DynamicItemImage.Image);
}
function SetTeamImage(strTeam) {
switch (strTeam) {
case '#CSGO_Inventory_Team_CT':
CTIcon._visible = true;
TIcon._visible = false;
break;
case '#CSGO_Inventory_Team_T':
TIcon._visible = true;
CTIcon._visible = false;
break;
case '#CSGO_Inventory_Team_Any':
TIcon._visible = false;
CTIcon._visible = false;
break;
default:
CTIcon._visible = false;
TIcon._visible = false;
}
}
function SetColor(strColor) {
strColor = strColor.substring(1, strColor.length);
strColor = '0x' + strColor;
var v3 = new Number(strColor);
var v4 = new Color(this.RarityColor);
v4.setRGB(v3);
}
function SetGift(strGifterId) {
if (strGifterId != '' && strGifterId != null && strGifterId != undefined) {
Gift._visible = true;
var v4 = _global.CScaleformComponent_FriendsList.GetFriendName(strGifterId);
var v2 = _global.GameInterface.Translate('#SFUI_InvUse_Acknowledge_Gift');
v2 = _global.ConstructString(v2, v4);
Gift.Text.htmlText = v2;
} else {
Gift._visible = false;
}
}
function SetEquippedDot(IsEquippedCt, IsEquippedT, IsNoTeam, strTeam) {
CTDot._visible = false;
TDot._visible = false;
CTDot.Equipped._visible = false;
TDot.Equipped._visible = false;
switch (strTeam) {
case '#CSGO_Inventory_Team_CT':
if (IsEquippedCt) {
CTDot._visible = true;
CTDot.Equipped._visible = true;
}
break;
case '#CSGO_Inventory_Team_T':
if (IsEquippedT) {
TDot._visible = true;
TDot.Equipped._visible = true;
}
break;
case '#CSGO_Inventory_Team_Any':
if (IsEquippedCt) {
CTDot._visible = true;
CTDot.Equipped._visible = true;
TDot._visible = true;
}
if (IsEquippedT) {
TDot._visible = true;
TDot.Equipped._visible = true;
CTDot._visible = true;
}
}
}
function SeperateName(strName) {
if (strName.indexOf('| ') != -1) {
var v2 = strName.split('| ', 2);
return v2;
}
if (strName.indexOf('| ') != -1) {
v2 = strName.split('| ', 2);
return v2;
}
v2 = new Array(strName);
return v2;
}
function GetSeperateNameString(aName) {
if (aName.length == 1) {
return '<b>' + aName[0] + '</b>';
} else {
return '<b>' + aName[0] + '</b>' + '\n' + aName[1];
}
}
function DisplayTileText(aName) {
ItemName.htmlText = GetSeperateNameString(aName);
}
function GetItemId() {
return '' + this._ItemID;
}
function GetDefIndex() {
return this._DefIndex;
}
function GetFauxId() {
return this._FauxItemId;
}
function GetOwnerXuid() {
return '' + this._ItemXuid;
}
function GetItemType() {
return this._ItemType;
}
function NeedsPaintId() {
return this._NeedsPaint;
}
function GetPaintIndex() {
return this._PaintIndexID;
}
Lib.Controls.SFButton.InitAsStandardSFButton(this);
this._ItemID = '';
this._ItemXuid = '';
this._ItemIdIsValid = true;
this._StatTrakKills = -1;
this._Capability = '';
this._FauxItemId = 0;
this._IsEmpty = false;
this.stop();
}
}
movieClip 154 {
}
movieClip 157 {
frame 1 {
function SetItemInfo(strId, PlayerXuid, TileDesc) {
SetIdXuidType(strId, PlayerXuid, TileDesc);
}
function SetIdXuidType(strId, PlayerXuid, TileDesc) {
var v3 = '';
var v2 = '';
this._ItemID = strId;
this._ItemXuid = PlayerXuid;
this._IsEmpty = false;
this._StatTrakKills = -1;
GetItemData(TileDesc);
}
function SetItemInfoHideEquippedStatus(strId, PlayerXuid) {
this._ItemID = strId;
this._ItemXuid = PlayerXuid;
this._IsEmpty = false;
this._StatTrakKills = -1;
GetItemData('HideEquipped');
}
function SetInfoForLoadoutItems(PlayerXuid, Team, strWeaponSlot) {
var v4 = '';
var v3 = _global.CScaleformComponent_Loadout.GetItemID(PlayerXuid, Team, strWeaponSlot.toString());
this._ItemID = v3;
this._ItemXuid = PlayerXuid;
this._ItemType = v4;
GetItemData('Loadout');
}
function SetInfoForHudDropItem(strId, fauxItemId, PlayerXuid) {
this._ItemID = strId;
this._FauxItemId = fauxItemId;
this._ItemXuid = PlayerXuid;
GetItemData('Drop');
}
function SetInfoForHudSpecItem(strId, defIndex, PlayerXuid, nPaintIndex, nRarity, nQuality, nPaintWear, nPaintSeed, nStatTrakKills) {
this._ItemID = strId;
this._DefIndex = defIndex;
this._ItemXuid = PlayerXuid;
this._Rarity = nRarity;
this._PaintIndexID = nPaintIndex;
this._Quality = nQuality;
this._PaintWear = nPaintWear;
this._PaintSeed = nPaintSeed;
this._StatTrakKills = nStatTrakKills;
GetItemData('Spec');
}
function SetItemInfoStatTrak(strId, PlayerXuid, StatTrakKills) {
this._ItemID = strId;
this._ItemXuid = PlayerXuid;
this._IsEmpty = false;
this._StatTrakKills = StatTrakKills;
GetItemData('HideEquipped');
}
function SetItemInfoForStore(srtBundleID, PlayerXuid) {
if (!_global.CScaleformComponent_Store.IsBundle(srtBundleID)) {
this._ItemID = srtBundleID;
Quantity._visible = true;
} else {
var v4 = _global.CScaleformComponent_Store.GetBundleItemCount(srtBundleID);
if (v4 == 1) {
var v5 = _global.CScaleformComponent_Store.GetBundleItemByIndex(srtBundleID, 0);
this._ItemID = v5;
} else {
this._ItemID = srtBundleID;
}
Quantity._visible = false;
}
this._ItemXuid = PlayerXuid;
this._BundleID = srtBundleID;
this._Quantity = 1;
GetItemData('Store');
}
function SetItemInfoForExceedinglyRareItem(ItemId, PlayerXuid) {
this._IsEmpty = false;
this._ItemID = ItemId;
this._ItemXuid = PlayerXuid;
this._StatTrakKills = -1;
GetItemData('RareItem');
}
function GetItemData(TileDesc) {
if (this._ItemID == '' || this._ItemID == undefined) {
return undefined;
}
if (this._ItemXuid == '' || this._ItemXuid == undefined) {
return undefined;
}
var v3 = _global.CScaleformComponent_Inventory.IsItemInfoValid(String(this._ItemXuid), String(this._ItemID));
if (!v3 && this._FauxItemId > 0) {
this._ItemID = this._FauxItemId;
}
switch (TileDesc) {
case 'Loadout':
Name.ItemName.htmlText = GetName();
SetColor(GetRarityColor());
SetEquippedDot(IsEquippedCT(), IsEquippedT(), IsNoTeam(), GetTeam());
SetGift('');
if (GetMoney() != 0 && GetMoney() != undefined) {
Cost.htmlText = '$' + GetMoney();
} else {
MoneyBg._visible = false;
}
LoadItemImage(GetImagePath(), 180, 135);
SetStickers(GetStickerCount());
_global.AutosizeTextDown(Name.ItemName, 8);
break;
case 'Acknowledge':
Name.ItemName.htmlText = GetName();
SetColor(GetRarityColor());
SetGift(GetItemGifter());
SetEquippedDot(IsEquippedCT(), IsEquippedT(), IsNoTeam(), GetTeam());
MoneyBg._visible = false;
LoadItemImage(GetImagePath(), 180, 135);
SetStickers(GetStickerCount());
_global.AutosizeTextDown(Name.ItemName, 8);
break;
case 'RareItem':
DisplayTileText(SeperateName(GetName()));
SetColor(GetRarityColor());
var v4 = _global.CScaleformComponent_ItemData.GetItemInventoryImage(Number(this._ItemID)) + '.swf';
LoadItemImage('RareItemIcon.swf', 90, 67);
SetStickers(GetStickerCount());
CTDot._visible = false;
TDot._visible = false;
break;
case 'Drop':
Name.ItemName.htmlText = GetSeperateNameString(SeperateName(GetName()));
LoadItemImage(GetImagePath(), 180, 135);
SetColor(GetRarityColor());
break;
case 'Spec':
this._ItemIdIsValid = _global.CScaleformComponent_Inventory.IsItemInfoValid(this._ItemXuid.toString(), this._ItemID.toString());
Name.ItemName.htmlText = GetSeperateNameString(SeperateName(GetName()));
LoadItemImage(GetImagePath(), 176, 132);
SetColor(GetRarityColor());
break;
case 'Store':
DisplayTileText(SeperateName(GetName()));
SetEquippedDot(IsEquippedCT(), IsEquippedT(), IsNoTeam(), GetTeam());
SetColor(GetRarityColor());
LoadItemImage(GetImagePath(), 90, 67);
SetStorePriceData();
SetUpQuantityButtons();
SetStickers(GetStickerCount());
CTDot._visible = false;
TDot._visible = false;
break;
case 'HideEquipped':
DisplayTileText(SeperateName(GetName()));
SetColor(GetRarityColor());
LoadItemImage(GetImagePath(), 90, 67);
SetStickers(GetStickerCount());
CTDot._visible = false;
TDot._visible = false;
break;
case 'ImageOnly':
LoadItemImage(GetImagePath(), 90, 67);
SetStickers(GetStickerCount());
break;
default:
DisplayTileText(SeperateName(GetName()));
SetEquippedDot(IsEquippedCT(), IsEquippedT(), IsNoTeam(), GetTeam());
SetColor(GetRarityColor());
SetStickers(GetStickerCount());
LoadItemImage(GetImagePath(), 90, 67);
}
}
function SetUpQuantityButtons() {
QuantityBtn.Less.dialog = this;
QuantityBtn.Less.Action = function () {
this.dialog.ChangeQuantity(false);
};
QuantityBtn.More.dialog = this;
QuantityBtn.More.Action = function () {
this.dialog.ChangeQuantity(true);
};
var v4 = _global.GameInterface.Translate('#SFUI_InvUse_Get_Quantity');
v4 = _global.ConstructString(v4, 1);
QuantityBtn.Quantity.htmlText = v4;
BuyBtn.dialog = this;
BuyBtn.Action = function () {
this.dialog.Purchase();
};
if (this._Capability == 'decodable') {
var v3 = _global.GameInterface.Translate('#SFUI_InvUse_Get_decodable');
} else {
if (this._Capability == 'nameable') {
var v3 = _global.GameInterface.Translate('#SFUI_InvUse_Get_nameable');
}
}
v3 = _global.ConstructString(v3, GetStoreOriginalPrice());
BuyBtn.OriginalPrice.Price.htmlText = v3;
}
function ChangeQuantity(bAdd) {
if (bAdd && this._Quantity < 20) {
++this._Quantity;
} else {
if (!bAdd && this._Quantity > 1) {
--this._Quantity;
}
}
var v3 = _global.GameInterface.Translate('#SFUI_InvUse_Get_Quantity');
v3 = _global.ConstructString(v3, this._Quantity);
QuantityBtn.Quantity.htmlText = v3;
SetStorePriceData();
}
function Purchase() {
var v4 = [];
var v3 = 0;
while (v3 < this._Quantity) {
v4.push(this._BundleID);
++v3;
}
var v5 = v4.join(',');
_global.CScaleformComponent_Store.StoreItemPurchase(v5);
}
function SetStorePriceData() {
var v5 = GetStoreOriginalPrice();
var v6 = GetStoreSalePrice();
var v4 = GetStoreSalePercentReduction();
if (v4 == '' || v4 == undefined) {
BuyBtn.OriginalPrice._visible = true;
BuyBtn.Discount._visible = false;
BuyBtn.SalePrice._visible = false;
if (this._Quantity > 1) {
if (this._Capability == 'decodable') {
var v3 = _global.GameInterface.Translate('#SFUI_InvUse_Get_decodable_multi');
} else {
if (this._Capability == 'nameable') {
var v3 = _global.GameInterface.Translate('#SFUI_InvUse_Get_nameable_multi');
}
}
} else {
if (this._Capability == 'decodable') {
var v3 = _global.GameInterface.Translate('#SFUI_InvUse_Get_decodable');
} else {
if (this._Capability == 'nameable') {
var v3 = _global.GameInterface.Translate('#SFUI_InvUse_Get_nameable');
}
}
}
v3 = _global.ConstructString(v3, v5);
BuyBtn.OriginalPrice.Price.htmlText = v3;
} else {
BuyBtn.OriginalPrice._visible = false;
BuyBtn.Discount._visible = true;
BuyBtn.SalePrice._visible = true;
BuyBtn.SalePrice.SalePrice.htmlText = v6;
BuyBtn.SalePrice.OriginalPrice.htmlText = v5;
BuyBtn.Discount.Percent.htmlText = v4;
}
}
function SetStickers(numStickerCount) {
if (numStickerCount > 0) {
var v7 = 7;
var v3 = 0;
while (v3 < v7) {
var v4 = Stickers['Tile' + v3];
if (v3 >= numStickerCount) {
v4._visible = false;
} else {
var v6 = _global.CScaleformComponent_Inventory.GetItemStickerImageByIndex(this._ItemXuid, this._ItemID, v3);
var v5 = _global.CScaleformComponent_Inventory.GetItemStickerNameByIndex(this._ItemXuid, this._ItemID, v3);
v4._visible = true;
LoadStickerImage(v4, v6, v5);
}
++v3;
}
Stickers._visible = true;
} else {
Stickers._visible = false;
}
}
function LoadStickerImage(objTile, Path, Name) {
if (objTile.Image != undefined) {
objTile.Image.unloadMovie();
}
var v1 = new Object();
v1.onLoadInit = function (target_mc) {
target_mc._width = 12;
target_mc._height = 9;
target_mc.forceSmoothing = true;
};
v1.onLoadError = function (target_mc, errorCode, status) {};
var v4 = Path + '.png';
var v3 = new MovieClipLoader();
v3.addListener(v1);
v3.loadClip(v4, objTile.Image);
objTile.Text.htmlText = Name;
}
function EnsureImageCached() {
_global.CScaleformComponent_ImageCache.EnsureInventoryImageCached(this._ItemID);
}
function GetName() {
var v3 = _global.CScaleformComponent_Inventory.GetItemName(this._ItemXuid, this._ItemID);
if (this._StatTrakKills >= 0) {
v3 = _global.GameInterface.Translate('#strange') + ' ' + v3;
}
return v3;
}
function GetTeam() {
var v3 = _global.CScaleformComponent_Inventory.GetItemTeam(this._ItemXuid, this._ItemID);
return v3;
}
function GetRarityColor() {
var v3 = _global.CScaleformComponent_Inventory.GetItemRarityColor(this._ItemXuid, this._ItemID);
return v3;
}
function GetSlotID() {
var v3 = _global.CScaleformComponent_Inventory.GetSlotSubPosition(this._ItemXuid, this._ItemID);
return v3;
}
function GetCatagory() {
var v3 = _global.CScaleformComponent_Inventory.GetSlot(this._ItemXuid, this._ItemID);
return v3;
}
function GetImagePath() {
if (this._ItemIdIsValid == false) {
_global.CScaleformComponent_ImageCache.EnsureItemDataImageCached(this._DefIndex, this._PaintIndexID);
var v3 = 'img://itemdata_' + this._DefIndex + '_' + this._PaintIndexID + '_' + this._Rarity + '_' + this._Quality + '_' + this._PaintWear + '_' + this._PaintSeed + '_' + this._StatTrakKills;
return v3;
}
var v4 = _global.CScaleformComponent_Inventory.IsInventoryImageCachable(this._ItemXuid, this._ItemID);
if (!v4) {
v3 = _global.CScaleformComponent_Inventory.GetItemInventoryImage(this._ItemXuid, this._ItemID) + '.png';
return v3;
}
EnsureImageCached();
v3 = 'img://inventory_' + this._ItemID;
return v3;
}
function GetDefaultItemModelPath() {
if (GetSlotID() == 'flair0') {
var v2 = 'img://inventory_' + this._ItemID;
return v2;
}
v2 = GetImagePath();
return v2;
}
function IsTool() {
return _global.CScaleformComponent_Inventory.IsTool(this._ItemXuid, this._ItemID);
}
function IsEquippedCT() {
var v3 = _global.CScaleformComponent_Inventory.IsEquipped(this._ItemXuid, this._ItemID.toString(), 'ct');
return v3;
}
function IsEquippedT() {
var v3 = _global.CScaleformComponent_Inventory.IsEquipped(this._ItemXuid, this._ItemID.toString(), 't');
return v3;
}
function IsNoTeam() {
var v3 = _global.CScaleformComponent_Inventory.IsEquipped(this._ItemXuid, this._ItemID.toString(), 'noteam');
return v3;
}
function GetItemCapability(Index) {
var v3 = _global.CScaleformComponent_Inventory.GetItemCapabilityByIndex(this._ItemXuid, this._ItemID, Number(Index));
return v3;
}
function GetItemCapabilityCount() {
var v3 = _global.CScaleformComponent_Inventory.GetItemCapabilitiesCount(this._ItemXuid, this._ItemID);
return v3;
}
function GetChosenActionItemsCount(Capability) {
var v3 = _global.CScaleformComponent_Inventory.GetChosenActionItemsCount(this._ItemXuid, this._ItemID, Capability);
return v3;
}
function GetChosenActionItemIDByIndex(Capability, Index) {
var v3 = _global.CScaleformComponent_Inventory.GetChosenActionItemIDByIndex(this._ItemXuid, this._ItemID, Capability, Number(Index));
return v3;
}
function GetStickerCount() {
var v3 = _global.CScaleformComponent_Inventory.GetItemStickerCount(this._ItemXuid, this._ItemID);
return v3;
}
function HasMusic() {
var v3 = _global.CScaleformComponent_Inventory.HasMusic(this._ItemXuid, this._ItemID);
return v3;
}
function GetMoney() {
var v4 = IsEquippedCT();
var v5 = IsEquippedT();
var v3 = '';
if (v4) {
v3 = 'ct';
return _global.CScaleformComponent_Loadout.GetItemGamePrice(this._ItemXuid, v3, (GetSlotID()).toString());
}
v3 = 't';
return _global.CScaleformComponent_Loadout.GetItemGamePrice(this._ItemXuid, v3, (GetSlotID()).toString());
}
function GetStoreOriginalPrice() {
return _global.CScaleformComponent_Store.GetStoreItemOriginalPrice(this._BundleID, this._Quantity);
}
function GetStoreSalePrice() {
return _global.CScaleformComponent_Store.GetStoreItemSalePrice(this._BundleID, this._Quantity);
}
function GetStoreSalePercentReduction() {
return _global.CScaleformComponent_Store.GetStoreItemPercentReduction(this._BundleID, this._Quantity);
}
function GetItemGifter() {
return _global.CScaleformComponent_Inventory.GetItemGifterXuid(this._ItemXuid, this._ItemID);
}
function LoadItemImage(ImagePath, numWidth, numHeight) {
ItemImage.DefaultItemImage._visible = false;
ItemImage.DynamicItemImage._visible = true;
if (ItemImage.DynamicItemImage.Image != undefined) {
ItemImage.DynamicItemImage.Image.unloadMovie();
}
var v1 = new Object();
v1.onLoadInit = function (target_mc) {
target_mc._width = numWidth;
target_mc._height = numHeight;
};
v1.onLoadError = function (target_mc, errorCode, status) {};
var v3 = ImagePath;
var v2 = new MovieClipLoader();
v2.addListener(v1);
v2.loadClip(v3, ItemImage.DynamicItemImage.Image);
}
function RefreshItemImage() {
ItemImage.DynamicItemImage.Image.unloadMovie();
var v2 = new Object();
v2.onLoadInit = function (target_mc) {
target_mc._width = 90;
target_mc._height = 90;
};
var v4 = 'img://inventory_' + this._ItemID;
var v3 = new MovieClipLoader();
v3.addListener(v2);
v3.loadClip(v4, ItemImage.DynamicItemImage.Image);
}
function SetTeamImage(strTeam) {
switch (strTeam) {
case '#CSGO_Inventory_Team_CT':
CTIcon._visible = true;
TIcon._visible = false;
break;
case '#CSGO_Inventory_Team_T':
TIcon._visible = true;
CTIcon._visible = false;
break;
case '#CSGO_Inventory_Team_Any':
TIcon._visible = false;
CTIcon._visible = false;
break;
default:
CTIcon._visible = false;
TIcon._visible = false;
}
}
function SetColor(strColor) {
strColor = strColor.substring(1, strColor.length);
strColor = '0x' + strColor;
var v3 = new Number(strColor);
var v4 = new Color(this.RarityColor);
v4.setRGB(v3);
}
function SetGift(strGifterId) {
if (strGifterId != '' && strGifterId != null && strGifterId != undefined) {
Gift._visible = true;
var v4 = _global.CScaleformComponent_FriendsList.GetFriendName(strGifterId);
var v2 = _global.GameInterface.Translate('#SFUI_InvUse_Acknowledge_Gift');
v2 = _global.ConstructString(v2, v4);
Gift.Text.htmlText = v2;
} else {
Gift._visible = false;
}
}
function SetEquippedDot(IsEquippedCt, IsEquippedT, IsNoTeam, strTeam) {
CTDot._visible = false;
TDot._visible = false;
CTDot.Equipped._visible = false;
TDot.Equipped._visible = false;
switch (strTeam) {
case '#CSGO_Inventory_Team_CT':
if (IsEquippedCt) {
CTDot._visible = true;
CTDot.Equipped._visible = true;
}
break;
case '#CSGO_Inventory_Team_T':
if (IsEquippedT) {
TDot._visible = true;
TDot.Equipped._visible = true;
}
break;
case '#CSGO_Inventory_Team_Any':
if (IsEquippedCt) {
CTDot._visible = true;
CTDot.Equipped._visible = true;
TDot._visible = true;
}
if (IsEquippedT) {
TDot._visible = true;
TDot.Equipped._visible = true;
CTDot._visible = true;
}
}
}
function SeperateName(strName) {
if (strName.indexOf('| ') != -1) {
var v2 = strName.split('| ', 2);
return v2;
}
if (strName.indexOf('| ') != -1) {
v2 = strName.split('| ', 2);
return v2;
}
v2 = new Array(strName);
return v2;
}
function GetSeperateNameString(aName) {
if (aName.length == 1) {
return '<b>' + aName[0] + '</b>';
} else {
return '<b>' + aName[0] + '</b>' + '\n' + aName[1];
}
}
function DisplayTileText(aName) {
ItemName.htmlText = GetSeperateNameString(aName);
}
function GetItemId() {
return '' + this._ItemID;
}
function GetDefIndex() {
return this._DefIndex;
}
function GetFauxId() {
return this._FauxItemId;
}
function GetOwnerXuid() {
return '' + this._ItemXuid;
}
function GetItemType() {
return this._ItemType;
}
function NeedsPaintId() {
return this._NeedsPaint;
}
function GetPaintIndex() {
return this._PaintIndexID;
}
Lib.Controls.SFButton.InitAsStandardSFButton(this);
this._ItemID = '';
this._ItemXuid = '';
this._ItemIdIsValid = true;
this._StatTrakKills = -1;
this._Capability = '';
this._FauxItemId = 0;
this._IsEmpty = false;
this.stop();
}
}
movieClip 158 {
}
movieClip 159 {
}
movieClip 166 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 6 {
stop();
}
}
movieClip 172 {
}
movieClip 173 {
frame 120 {
gotoAndPlay(1);
}
}
movieClip 176 {
frame 120 {
gotoAndPlay(1);
}
}
// unknown tag 88 length 84
movieClip 181 {
}
movieClip 186 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 187 {
frame 1 {
stop();
}
frame 39 {
stop();
}
}
movieClip 190 {
}
movieClip 192 {
}
movieClip 194 {
}
movieClip 195 {
frame 1 {
stop();
}
}
movieClip 198 {
frame 1 {
stop();
}
frame 2 {
_root.music1.start();
}
frame 7 {
_root.music.start();
}
frame 10 {
_root.music2.start();
}
frame 13 {
_root.music.start();
}
frame 16 {
_root.music2.start();
}
frame 19 {
_root.music.start();
}
frame 22 {
_root.music2.start();
}
frame 25 {
_root.music.start();
}
frame 28 {
_root.music2.start();
}
frame 31 {
_root.music.start();
}
frame 34 {
_root.music2.start();
}
frame 37 {
_root.music.start();
}
frame 40 {
_root.music2.start();
}
frame 43 {
_root.music.start();
}
frame 46 {
_root.music2.start();
}
frame 50 {
_root.music.start();
}
frame 58 {
_root.music2.start();
}
frame 67 {
_root.music.start();
}
frame 79 {
_root.music2.start();
}
frame 106 {
_root.SetWinner();
stop();
}
}
movieClip 199 {
frame 1 {
stop();
}
frame 2 {
_root.music1.start();
}
frame 7 {
_root.music.start();
}
frame 10 {
_root.music2.start();
}
frame 13 {
_root.music.start();
}
frame 16 {
_root.music2.start();
}
frame 19 {
_root.music.start();
}
frame 22 {
_root.music2.start();
}
frame 25 {
_root.music.start();
}
frame 28 {
_root.music2.start();
}
frame 31 {
_root.music.start();
}
frame 34 {
_root.music2.start();
}
frame 37 {
_root.music.start();
}
frame 40 {
_root.music2.start();
}
frame 43 {
_root.music.start();
}
frame 46 {
_root.music2.start();
}
frame 50 {
_root.music.start();
}
frame 58 {
_root.music2.start();
}
frame 69 {
_root.music.start();
}
frame 83 {
_root.music2.start();
}
frame 106 {
_root.SetWinner();
stop();
}
}
movieClip 200 {
frame 1 {
stop();
}
frame 2 {
_root.music1.start();
}
frame 7 {
_root.music.start();
}
frame 10 {
_root.music2.start();
}
frame 13 {
_root.music.start();
}
frame 16 {
_root.music2.start();
}
frame 19 {
_root.music.start();
}
frame 22 {
_root.music2.start();
}
frame 25 {
_root.music.start();
}
frame 28 {
_root.music2.start();
}
frame 31 {
_root.music.start();
}
frame 34 {
_root.music2.start();
}
frame 37 {
_root.music.start();
}
frame 40 {
_root.music2.start();
}
frame 43 {
_root.music.start();
}
frame 46 {
_root.music2.start();
}
frame 50 {
_root.music.start();
}
frame 59 {
_root.music2.start();
}
frame 70 {
_root.music.start();
}
frame 86 {
_root.music2.start();
}
frame 106 {
_root.SetWinner();
stop();
}
}
movieClip 201 {
frame 1 {
stop();
}
frame 2 {
_root.music1.start();
}
frame 7 {
_root.music.start();
}
frame 10 {
_root.music2.start();
}
frame 13 {
_root.music.start();
}
frame 16 {
_root.music2.start();
}
frame 19 {
_root.music.start();
}
frame 22 {
_root.music2.start();
}
frame 25 {
_root.music.start();
}
frame 28 {
_root.music2.start();
}
frame 31 {
_root.music.start();
}
frame 34 {
_root.music2.start();
}
frame 37 {
_root.music.start();
}
frame 40 {
_root.music2.start();
}
frame 43 {
_root.music.start();
}
frame 46 {
_root.music2.start();
}
frame 50 {
_root.music.start();
}
frame 60 {
_root.music2.start();
}
frame 73 {
_root.music.start();
}
frame 96 {
_root.music2.start();
}
frame 106 {
_root.SetWinner();
stop();
}
}
movieClip 202 {
frame 1 {
stop();
}
frame 2 {
_root.music1.start();
}
frame 7 {
_root.music.start();
}
frame 10 {
_root.music2.start();
}
frame 13 {
_root.music.start();
}
frame 16 {
_root.music2.start();
}
frame 19 {
_root.music.start();
}
frame 22 {
_root.music2.start();
}
frame 25 {
_root.music.start();
}
frame 28 {
_root.music2.start();
}
frame 31 {
_root.music.start();
}
frame 34 {
_root.music2.start();
}
frame 37 {
_root.music.start();
}
frame 40 {
_root.music2.start();
}
frame 43 {
_root.music.start();
}
frame 46 {
_root.music2.start();
}
frame 50 {
_root.music.start();
}
frame 58 {
_root.music2.start();
}
frame 68 {
_root.music.start();
}
frame 81 {
_root.music2.start();
}
frame 106 {
_root.SetWinner();
stop();
}
}
movieClip 204 {
}
movieClip 205 {
frame 1 {
stop();
}
frame 2 {
_root.RandomText();
Texter.Text.text = _root.RText;
}
frame 25 {
Texter.Text.text = _root.RText;
}
frame 26 {
Texter.Text.text = _root.RText;
}
frame 30 {
Texter.Text.text = _root.RText;
}
frame 100 {
stop();
}
}
movieClip 207 {
}
movieClip 210 {
}
movieClip 211 {
frame 1 {
stop();
}
frame 2 {
_root.lvl0rarity += 1;
stop();
}
frame 3 {
_root.lvl1rarity += 1;
stop();
}
frame 4 {
_root.lvl2rarity += 1;
stop();
}
frame 5 {
_root.lvl3rarity += 1;
stop();
}
frame 6 {
_root.lvl4rarity += 1;
stop();
}
frame 7 {
_root.lvl5rarity += 1;
stop();
}
frame 8 {
_root.lvl6rarity += 1;
stop();
}
}
movieClip 212 {
}
movieClip 213 {
}
movieClip 215 {
}
movieClip 217 {
}
movieClip 219 {
}
movieClip 220 {
frame 1 {
stop();
}
frame 2 {
Player.Text.text = _root.RTextWIN;
Weapon.Text.text = _root.randomwinnerweap;
Image._visible = true;
_root.CountStatsWeap();
}
frame 6 {
_root.HideInv();
_root.NameSide();
Player.Text.text = _root.RTextWIN;
Weapon.Text.text = _root.randomwinnerweap;
_root.nameside.text = _root.randomwinner;
_root.nameside2.text = _root.randomwinnerweap;
_root.colorside.gotoAndStop(_root.weaponstarcolor);
_root.OrelRoll.Panel.Warning._visible = false;
}
frame 20 {
_root.OrelRoll.Panel.DoRoll.onRelease = function () {
_root.DoPrepareNotLoad();
};
_root.OrelRoll.Panel.DoRoll.gotoAndStop('def');
Player.Text.text = _root.RTextWIN;
Weapon.Text.text = _root.randomwinnerweap;
stop();
}
frame 30 {
Player.Text.text = _root.randomwinner;
Weapon.Text.text = _root.randomwinnerweap;
Image._visible = false;
_root.OrelRoll.Panel.Warning._visible = true;
stop();
}
}
movieClip 224 {
}
movieClip 225 {
frame 1 {
stop();
}
frame 90 {
stop();
}
}
movieClip 226 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
movieClip 227 {
frame 1 {
stop();
}
}
movieClip 230 {
}
movieClip 231 {
}
movieClip 233 {
}
movieClip 236 {
}
movieClip 237 {
frame 1 {
this._visible = false;
stop();
}
frame 2 {
this._visible = true;
}
frame 10 {
stop();
}
frame 20 {
this._visible = false;
stop();
}
}
frame 4 {
}