Frame 1
_focusrect = false;
Instance of Symbol 2 MovieClip "event_mc" in Frame 1
onClipEvent (load) {
function versionCheck() {
if (my_so.data.lastVer < 2) {
my_so.data.lastVer = 2;
my_so.data.skills.cost[9] = Math.floor(2800 * Math.pow(13.2, my_so.data.skills.rank[9]));
my_so.data.skills.effect[5] = my_so.data.skills.rank[5];
}
if (my_so.data.lastVer < 9) {
my_so.data.lastVer = 9;
my_so.data.skills.cost[10] = 90000000 /* 0x55D4A80 */;
my_so.data.skills.effect[10] = 1;
my_so.data.skills.rank[10] = 0;
my_so.data.skills.effect[1] = (my_so.data.skills.rank[1] * 15) + 100;
}
if (my_so.data.lastVer < 11) {
my_so.data.lastVer = 11;
my_so.data.skills.effect[10] = Math.floor(Math.pow(my_so.data.skills.rank[10], 3.4));
}
}
function commalize(n) {
if (n < 1000) {
return(n);
}
var _local3 = 0;
var _local4 = n;
var _local6 = 0;
var _local7 = -1;
var _local5 = 100;
var _local2 = Number(n % 10).toString();
n = Math.floor(n / 10);
while ((_local4 / 10) >= 1) {
_local3++;
_local4 = _local4 / 10;
}
if (_local3 >= 28) {
n = Math.floor(n / 1E24);
_local2 = (n % 10) + "o";
n = Math.floor(n / 10);
_local2 = (n % 10) + _local2;
n = Math.floor(n / 10);
_local2 = ((n % 10) + ".") + _local2;
_local3 = _local3 - 27;
n = Math.floor(n / 10);
} else if (_local3 >= 19) {
n = Math.floor(n / 1E15);
_local2 = (n % 10) + "qt";
n = Math.floor(n / 10);
_local2 = (n % 10) + _local2;
n = Math.floor(n / 10);
_local2 = ((n % 10) + ".") + _local2;
_local3 = _local3 - 18;
n = Math.floor(n / 10);
} else if (_local3 >= 10) {
n = Math.floor(n / 1000000);
_local2 = (n % 10) + "b";
n = Math.floor(n / 10);
_local2 = (n % 10) + _local2;
n = Math.floor(n / 10);
_local2 = ((n % 10) + ".") + _local2;
_local3 = _local3 - 9;
n = Math.floor(n / 10);
}
i = 1;
while (i <= _local3) {
if ((i % 3) == 0) {
_local2 = "," + _local2;
}
_local2 = Number(n % 10).toString() + _local2;
n = Math.floor(n / 10);
i++;
}
return(_local2);
}
function wipe() {
initSave();
updateOre(0);
_parent.wname_txt.text = my_so.data.weaponName;
_parent.wpower_txt.text = "P: " + commalize(my_so.data.weaponPower);
_parent.wrarity_txt.text = ("Qual: " + my_so.data.weaponRarity) + "%";
_parent.gold_txt.text = "$" + commalize(my_so.data.gold);
_parent.gems_txt.text = "Gems: 5";
}
function initSave() {
my_so.data.birth = idiotDate.getTime();
my_so.data.lastTime = idiotDate.getTime();
my_so.data.age = 1;
my_so.data.xp = 1;
my_so.data.gold = 0;
my_so.data.gems = 5;
my_so.data.weaponPower = 20;
my_so.data.weaponRarity = 100;
my_so.data.weaponName = "Toy Pickaxe";
my_so.data.lastOre = 0;
my_so.data.orehp = 0;
my_so.data.oredef = 0;
my_so.data.orecost = 0;
my_so.data.highOre = 0;
my_so.data.skills = new Object();
my_so.data.skills.rank = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
my_so.data.skills.cost = [100, 400, 900, 40000, 30, 80000, 200000, 800000, 2400000, 2800, 90000000];
my_so.data.skills.effect = [3000, 100, 50, 0, 200, 0, 0, 20, 0, 0, 1];
my_so.data.lastVer = 10;
}
function managePower(n) {
_parent.life_txt.text = commalize(Math.round(my_so.data.age / 6170));
_parent.active_txt.text = commalize(Math.round(my_so.data.xp / 20));
lifeBonus = (Math.floor((Math.log(1 + (my_so.data.age / 25920000)) * Math.sqrt(1 + (my_so.data.age / 25920000))) * 100) / 100) + 1;
_parent.lifeBonus_txt.text = lifeBonus + "x";
activeBonus = (Math.floor((Math.log(1 + (my_so.data.xp / 324000)) * Math.sqrt(1 + (my_so.data.xp / 10800))) * 100) / 100) + 1;
_parent.activeBonus_txt.text = activeBonus + "x";
return(((n * lifeBonus) * activeBonus) * my_so.data.weaponPower);
}
function updateOre(n) {
if (my_so.data.lastOre >= 50) {
if (my_so.data.lastOre == 50) {
my_so.data.orehp = 3200000000000;
my_so.data.oredef = 7000000000;
my_so.data.orecost = 680000000000000;
} else if (n == 2) {
my_so.data.orehp = Math.round(my_so.data.orehp * 1.2);
if (my_so.data.lastOre > 64) {
my_so.data.oredef = Math.round(my_so.data.oredef * 1.2);
my_so.data.orecost = Math.round(my_so.data.orecost * 1.35);
} else {
my_so.data.oredef = Math.round(my_so.data.oredef * 1.5);
my_so.data.orecost = Math.round(my_so.data.orecost * 1.5);
}
} else if (n == 1) {
my_so.data.orehp = Math.round(my_so.data.orehp / 1.2);
if (my_so.data.lastOre > 63) {
my_so.data.oredef = Math.round(my_so.data.oredef / 1.2);
my_so.data.orecost = Math.round(my_so.data.orecost / 1.35);
} else {
my_so.data.oredef = Math.round(my_so.data.oredef / 1.5);
my_so.data.orecost = Math.round(my_so.data.orecost / 1.5);
}
}
orehp = my_so.data.orehp;
oredef = my_so.data.oredef;
orecost = my_so.data.orecost;
oremhp = orehp;
var _local2 = my_so.data.lastOre - 49;
orename = "Hellstone Lv. " + _local2;
_parent.rocks_mc.gotoAndStop(51);
} else {
orehp = ore.hp[my_so.data.lastOre];
oremhp = orehp;
oredef = ore.def[my_so.data.lastOre];
orename = ore.namo[my_so.data.lastOre];
orecost = ore.cost[my_so.data.lastOre];
_parent.rocks_mc.gotoAndStop(my_so.data.lastOre + 1);
}
_parent.oname_txt.text = orename;
_parent.ohp_txt.text = "HP: " + commalize(orehp);
_parent.odef_txt.text = "D: " + commalize(oredef);
_parent.ovalue_txt.text = "$" + commalize(orecost);
gps = Math.max(0, Math.floor(((3000 / my_so.data.skills.effect[0]) * Math.min(oremhp, managePower(my_so.data.skills.effect[2] / 100) - oredef)) * (orecost / oremhp)));
_parent.gps_txt.text = ("$" + commalize(gps)) + "/s";
if (my_so.data.lastOre == 0) {
_parent.leftarrow_mc.gotoAndStop(3);
} else {
_parent.leftarrow_mc.gotoAndStop(1);
}
if ((my_so.data.lastOre > my_so.data.highOre) && (my_so.data.lastOre < 2286)) {
_parent.rightarrow_mc.gotoAndStop(3);
} else {
_parent.rightarrow_mc.gotoAndStop(1);
}
}
function hitOre(n, manual) {
idiotDate = new Date();
my_so.data.age = idiotDate.getTime() - my_so.data.birth;
attackPow = Math.floor(managePower(n));
if (manual) {
_parent.dps_txt.text = commalize(Math.max(0, attackPow - oredef));
} else {
adps = Math.min(oremhp, attackPow - oredef);
adps = Math.max(adps, 0);
_parent.adps_txt.text = commalize(Math.floor(adps * (3000 / my_so.data.skills.effect[0])));
}
orehp = Math.min((orehp - attackPow) + oredef, orehp);
if (orehp <= 0) {
if (my_so.data.highOre < my_so.data.lastOre) {
my_so.data.highOre = my_so.data.lastOre;
_parent.rightarrow_mc.gotoAndStop(1);
}
my_so.data.gold = my_so.data.gold + orecost;
_parent.gold_txt.text = "$" + commalize(my_so.data.gold);
orehp = oremhp;
_parent.ohp_txt.text = "HP: " + commalize(orehp);
if ((Math.random() * 1000) < my_so.data.skills.effect[7]) {
my_so.data.gems++;
_parent.gems_txt.text = "Gems: " + commalize(my_so.data.gems);
}
_parent.infoWindow_mc.s_mc.canBuy();
}
_parent.ohp_txt.text = "HP: " + commalize(orehp);
if (!manual) {
gps = Math.max(0, Math.floor(((3000 / my_so.data.skills.effect[0]) * Math.min(oremhp, managePower(my_so.data.skills.effect[2] / 100) - oredef)) * (orecost / oremhp)));
_parent.gps_txt.text = ("$" + commalize(gps)) + "/s";
}
}
function cout(s) {
coutt = 270;
_parent.trace_txt.text = (s + newline) + _parent.trace_txt.text;
}
function gemRandom(kz) {
var _local2 = (my_so.data.skills.effect[7] * kz) / 1000;
var _local5 = my_so.data.skills.effect[7] / 1000;
var _local4 = (1000 - my_so.data.skills.effect[7]) / 1000;
var _local3 = Math.sqrt((kz * _local5) * _local4);
var _local1 = 0;
if (Math.random() > 0.5) {
_local1 = Math.round(_local2 + (_local3 * (Math.sqrt(-2 * Math.log(Math.random())) * Math.cos((2 * Math.random()) * Math.PI))));
} else {
_local1 = Math.round(_local2 + (_local3 * (Math.sqrt(-2 * Math.log(Math.random())) * Math.sin((2 * Math.random()) * Math.PI))));
}
my_so.data.gems = my_so.data.gems + _local1;
cout(("Found " + _local1) + " gems.");
}
function autoSmack() {
savecount = savecount + 1;
counter = counter + 100;
if (savecount > 2000) {
savecount = savecount - 2000;
my_so.flush();
cout("Game saved.");
}
if (counter > my_so.data.skills.effect[0]) {
counter = counter - my_so.data.skills.effect[0];
coutt = coutt - 10;
hitOre(my_so.data.skills.effect[2] / 100, false);
if (coutt == 0) {
_parent.trace_txt.text = "";
}
}
my_so.data.xp++;
my_so.data.lastTime = idiotDate.getTime();
}
var kongregate = _global.kongregate;
kongregate.services.connect();
var menuOpen = 0;
var idiotDate = new Date();
var my_so = SharedObject.getLocal("minerTest");
if (my_so.data.birth == null) {
initSave();
} else {
my_so.data.age = idiotDate.getTime() - my_so.data.birth;
}
versionCheck();
var dateHack = idiotDate.getTime();
var dateHack2 = idiotDate.getTime();
var counter = 0;
var savecount = 0;
var craftPage = 0;
var skillcap = [50, 500, 500, 10, 0, 30, 50, 40, 30, 50, 5];
var ore = new Object();
ore.namo = ["Poo", "Paper", "Salt", "Clay", "Rock", "Coal", "Bone", "Lead", "Iron", "Copper", "Carbonite", "Quartz", "Spooky Bone", "Silver", "Crystal", "Topaz", "Amethyst", "Aquamarine", "Emerald", "Ruby", "Sapphire", "Haunted Bone", "Gold", "Platinum", "Diamond", "Mithril", "Obsidian", "Earth Essence", "Orbium", "Novalite", "Magic Crystal", "Darkstone", "Adamantium", "Fire Essence", "Lunalite", "Mysterium", "Cursed Bone", "Wind Essence", "Unobtanium", "Sollite", "Water Essence", "Absurdium", "Cosmolite", "Shadow Essence", "Demonite", "Eternium", "Mysticite", "Light Essence", "Soulstone", "Arcanium"];
ore.hp = [100, 400, 700, 1400, 2200, 4000, 7000, 12400, 16000, 25000, 40000, 64000, 92000, 128000, 200000, 500000, 1400000, 4800000, 13000000, 42000000, 120000000, 200000000, 360000000, 500000000, 700000000, 1000000000, 1400000000, 2000000000, 2600000000, 3500000000, 4900000000, 7200000000, 10000000000, 14000000000, 20000000000, 30000000000, 45000000000, 68000000000, 100000000000, 130000000000, 175000000000, 240000000000, 320000000000, 435000000000, 590000000000, 780000000000, 1050000000000, 1350000000000, 1800000000000, 2400000000000];
ore.def = [0, 3, 15, 35, 90, 200, 380, 700, 1140, 1600, 2500, 3800, 5400, 7200, 9999, 13500, 18000, 24500, 34000, 50000, 80000, 130000, 200000, 295000, 440000, 680000, 1050000, 1400000, 2000000, 2800000, 4000000, 5800000, 8500000, 12000000, 17000000, 24000000, 33500000, 48000000, 69000000, 95000000, 138000000, 205000000, 300000000, 440000000, 640000000, 950000000, 1400000000, 2000000000, 3100000000, 4800000000];
ore.cost = [2, 10, 22, 50, 120, 275, 580, 1100, 1850, 3200, 5200, 8600, 14000, 20000, 42000, 140000, 480000, 2200000, 7200000, 25500000, 85000000, 190000000, 400000000, 760000000, 1600000000, 2800000000, 4800000000, 8200000000, 13500000000, 24500000000, 42000000000, 70000000000, 125000000000, 200000000000, 340000000000, 580000000000, 1050000000000, 1700000000000, 3000000000000, 4800000000000, 7200000000000, 12000000000000, 20000000000000, 30000000000000, 48000000000000, 72000000000000, 110000000000000, 170000000000000, 270000000000000, 420000000000000];
_parent.gems_txt.text = "Gems: " + my_so.data.gems;
_parent.oname_txt.text = ore.namo[my_so.data.lastOre];
var orehp = 1;
var oredef = 1;
var orecost = 1;
var oremhp = 1;
var orename = "";
var lifeBonus = 1;
var activeBonus = 1;
var attackPow = 1;
var gps = 1;
var kps = 1;
var adps = 1;
my_so.data.gold = Math.max(my_so.data.gold, 0);
_parent.wname_txt.text = my_so.data.weaponName;
_parent.wpower_txt.text = "P: " + commalize(my_so.data.weaponPower);
_parent.wrarity_txt.text = ("Qual: " + my_so.data.weaponRarity) + "%";
_parent.gold_txt.text = "$" + commalize(my_so.data.gold);
updateOre(0);
var goldGain = Math.floor((((idiotDate.getTime() - my_so.data.lastTime) * gps) * (my_so.data.skills.effect[9] / 100)) / 1000);
if (goldGain > 0) {
my_so.data.gold = my_so.data.gold + goldGain;
cout("Welcome back. While you were gone, I got $" + commalize(goldGain));
_parent.gold_txt.text = "$" + commalize(my_so.data.gold);
}
my_so.data.lastTime = idiotDate.getTime();
_parent.craftButt_mc.checkArrows();
setInterval(autoSmack, 33);
}
Instance of Symbol 26 MovieClip "leftarrow_mc" in Frame 1
on (rollOver) {
if (_parent.event_mc.my_so.data.lastOre > 0) {
gotoAndStop (2);
}
}
on (rollOut) {
if (_parent.event_mc.my_so.data.lastOre > 0) {
gotoAndStop (1);
}
}
on (dragOut) {
if (_parent.event_mc.my_so.data.lastOre > 0) {
gotoAndStop (1);
}
}
on (release) {
if (_parent.event_mc.my_so.data.lastOre > 0) {
_parent.event_mc.my_so.data.lastOre--;
_parent.event_mc.updateOre(1);
}
}
Instance of Symbol 26 MovieClip "rightarrow_mc" in Frame 1
on (rollOver) {
if (_parent.event_mc.my_so.data.lastOre <= _parent.event_mc.my_so.data.highOre) {
gotoAndStop (2);
}
}
on (rollOut) {
if (_parent.event_mc.my_so.data.lastOre <= _parent.event_mc.my_so.data.highOre) {
gotoAndStop (1);
}
}
on (dragOut) {
if (_parent.event_mc.my_so.data.lastOre <= _parent.event_mc.my_so.data.highOre) {
gotoAndStop (1);
}
}
on (release) {
if (_parent.event_mc.my_so.data.lastOre <= _parent.event_mc.my_so.data.highOre) {
_parent.event_mc.my_so.data.lastOre++;
_parent.event_mc.updateOre(2);
}
}
Instance of Symbol 79 MovieClip "rocks_mc" in Frame 1
on (release) {
_parent.event_mc.hitOre(_parent.event_mc.my_so.data.skills.effect[1] / 100, true);
_parent.event_mc.my_so.data.xp = _parent.event_mc.my_so.data.xp + 5;
}
Instance of Symbol 83 MovieClip "craftButt_mc" in Frame 1
onClipEvent (load) {
function checkArrows() {
if (_parent.event_mc.craftPage > 0) {
_parent.downArrow_mc.gotoAndStop(1);
} else {
_parent.downArrow_mc.gotoAndStop(3);
}
if (_parent.event_mc.my_so.data.skills.rank[10] > _parent.event_mc.craftPage) {
_parent.upArrow_mc.gotoAndStop(1);
} else {
_parent.upArrow_mc.gotoAndStop(3);
}
if (_parent.craftPage == 0) {
req_txt.text = "Requires 1 gem.";
} else {
req_txt.text = ("Requires " + Math.floor(Math.pow(3.4, _parent.event_mc.craftPage))) + " gems.";
}
}
var plusprob = new Array(0.4, 0.48, 0.55, 0.6, 0.63, 0.66, 0.69, 0.734, 0.75);
var rankprob = new Array(0.3, 0.25, 0.29, 0.31, 0.3, 0.28, 0.27, 0.26, 0.26, 0.25, 0.24, 0.23, 0.22, 0.21, 0.2, 0.19);
checkArrows();
}
on (release) {
if (_parent.event_mc.my_so.data.gems >= Math.floor(Math.pow(3.4, _parent.event_mc.craftPage))) {
if (Math.random() > (_parent.event_mc.my_so.data.skills.effect[6] / 100)) {
_parent.event_mc.my_so.data.gems = _parent.event_mc.my_so.data.gems - Math.floor(Math.pow(3.4, _parent.event_mc.craftPage));
_parent.gems_txt.text = "Gems: " + _parent.event_mc.my_so.data.gems;
} else {
_parent.event_mc.cout("Saved the gem!");
}
var weprank = _parent.event_mc.craftPage;
var wname = "";
var prefix = "";
var bTest = Math.random();
var bFactor = 0.05;
var bString = "";
if (bTest > 0.985) {
bFactor = 0.08;
bString = "Blacksmith had a flash of inspiration!";
}
if (bTest > 0.995) {
bFactor = 0.1;
bString = "Blacksmith had a stroke of brilliance!";
}
if (bTest > 0.999) {
bFactor = 0.12;
bString = "Blacksmith had a vision of magnificence!";
}
while (((Math.random() - bFactor) < rankprob[weprank]) && (weprank < 16)) {
weprank++;
}
switch (weprank) {
case 0 :
wname = "Pickaxe";
break;
case 1 :
wname = "Sturdy Pick";
break;
case 2 :
wname = "Power Pick";
break;
case 3 :
wname = "Super Pick";
break;
case 4 :
wname = "Ultra Pick";
break;
case 5 :
wname = "Mega Pick";
break;
case 6 :
wname = "Hyper Pick";
break;
case 7 :
wname = "COSMIC PICK";
break;
case 8 :
wname = "ULTIMATE PICK";
break;
case 9 :
wname = "GODLY PICK";
break;
default :
wname = Math.pow(weprank - 8, 2) + " TIMES GODLY PICK";
}
var modifier = (Math.random() + (_parent.event_mc.my_so.data.skills.effect[5] / 100));
if (modifier < 0.1) {
prefix = "Abysmal ";
} else if (modifier < 0.21) {
prefix = "Awful ";
} else if (modifier < 0.35) {
prefix = "Bad ";
} else if (modifier > 1.22) {
prefix = "Mythical ";
} else if (modifier > 1.15) {
prefix = "Legendary ";
} else if (modifier > 1.1) {
prefix = "Astonishing ";
} else if (modifier > 0.9) {
prefix = "Incredible ";
} else if (modifier > 0.79) {
prefix = "Amazing ";
} else if (modifier > 0.65) {
prefix = "Good ";
}
var weppow = Math.round(((_parent.event_mc.my_so.data.skills.effect[4] / 10) * ((modifier * 0.5) + 0.8)) * Math.pow(1.3, weprank));
var wepplus = 0;
while (Math.random() < (plusprob[weprank] + (_parent.event_mc.my_so.data.skills.effect[3] / 100))) {
wepplus++;
}
weppow = weppow + Math.round((weppow * wepplus) * 0.075);
var wqual = (Math.floor((weppow * 100000) / _parent.event_mc.my_so.data.skills.effect[4]) / 100);
if (wqual > _parent.event_mc.bestQual) {
_parent.event_mc.kongregate.stats.submit("Quality", Math.floor(wqual));
_parent.event_mc.bestQual = Math.floor(wqual);
}
if (weppow > _parent.event_mc.my_so.data.weaponPower) {
_parent.event_mc.my_so.data.weaponPower = weppow;
_parent.event_mc.my_so.data.weaponRarity = wqual;
if (wepplus > 0) {
_parent.event_mc.my_so.data.weaponName = ((prefix + wname) + " +") + wepplus;
} else {
_parent.event_mc.my_so.data.weaponName = prefix + wname;
}
_parent.wname_txt.text = _parent.event_mc.my_so.data.weaponName;
_parent.wpower_txt.text = "P: " + _parent.event_mc.commalize(_parent.event_mc.my_so.data.weaponPower);
_parent.wrarity_txt.text = ("Qual: " + wqual) + "%";
if (bFactor == 0.05) {
_parent.event_mc.cout(((("Congratulations, you got a better pick (Pow: " + _parent.event_mc.commalize(weppow)) + " / Qual: ") + wqual) + "%)");
} else {
_parent.event_mc.cout(((("...and produced a masterpiece!(Pow: " + _parent.event_mc.commalize(weppow)) + " / Qual: ") + wqual) + "%)");
}
_parent.event_mc.my_so.flush();
_parent.event_mc.cout("Game saved.");
} else if (bFactor == 0.05) {
_parent.event_mc.cout(((("Sorry, I crafted a dud (Pow: " + _parent.event_mc.commalize(weppow)) + " / Qual: ") + wqual) + "%)");
} else {
_parent.event_mc.cout(((("...but failed to create anything useful (Pow: " + _parent.event_mc.commalize(weppow)) + " / Qual: ") + wqual) + "%)");
}
if (bFactor > 0.05) {
_parent.event_mc.cout(bString);
}
}
}
Instance of Symbol 89 MovieClip "pickButt" in Frame 1
onClipEvent (load) {
function closeMenu() {
_parent.infoWindow_mc.gotoAndStop(1);
_parent.infoWindow_mc.s_mc.cleanUp();
_parent.event_mc.menuOpen = 0;
}
}
on (release) {
closeMenu();
}
Instance of Symbol 92 MovieClip in Frame 1
on (release) {
if (_parent.event_mc.menuOpen == 2) {
_parent.pickButt.closeMenu();
} else {
_parent.infoWindow_mc.gotoAndStop(2);
_parent.infoWindow_mc.s_mc.spawnSkills();
_parent.infoWindow_mc.s_mc.canBuy();
_parent.event_mc.menuOpen = 2;
}
}
Instance of Symbol 95 MovieClip in Frame 1
on (release) {
if (_parent.event_mc.menuOpen == 3) {
_parent.pickButt.closeMenu();
} else {
_parent.infoWindow_mc.gotoAndStop(3);
_parent.infoWindow_mc.s_mc.cleanUp();
_parent.event_mc.menuOpen = 3;
}
}
Instance of Symbol 26 MovieClip "upArrow_mc" in Frame 1
on (rollOver) {
if (_parent.event_mc.craftPage < _parent.event_mc.my_so.data.skills.rank[10]) {
gotoAndStop (2);
}
}
on (rollOut) {
if (_parent.event_mc.craftPage < _parent.event_mc.my_so.data.skills.rank[10]) {
gotoAndStop (1);
}
}
on (dragOut) {
if (_parent.event_mc.craftPage < _parent.event_mc.my_so.data.skills.rank[10]) {
gotoAndStop (1);
}
}
on (release) {
if (_parent.event_mc.craftPage < _parent.event_mc.my_so.data.skills.rank[10]) {
_parent.event_mc.craftPage++;
_parent.craftButt_mc.checkArrows();
}
}
Instance of Symbol 26 MovieClip "downArrow_mc" in Frame 1
on (rollOver) {
if (_parent.event_mc.craftPage > 0) {
gotoAndStop (2);
}
}
on (rollOut) {
if (_parent.event_mc.craftPage > 0) {
gotoAndStop (1);
}
}
on (dragOut) {
if (_parent.event_mc.craftPage > 0) {
gotoAndStop (1);
}
}
on (release) {
if (_parent.event_mc.craftPage > 0) {
_parent.event_mc.craftPage--;
_parent.craftButt_mc.checkArrows();
}
}
Instance of Symbol 101 MovieClip in Frame 1
on (release) {
if (_parent.event_mc.menuOpen == 4) {
_parent.pickButt.closeMenu();
} else {
_parent.infoWindow_mc.gotoAndStop(4);
_parent.infoWindow_mc.s_mc.cleanUp();
_parent.event_mc.menuOpen = 4;
}
}
Symbol 26 MovieClip Frame 1
stop();
Symbol 146 Button
on (release) {
_parent.event_mc.my_so.flush();
_parent.event_mc.cout("Game saved.");
}
Symbol 151 Button
on (release) {
gotoAndStop (5);
counter = 5;
}
Symbol 164 MovieClip Frame 1
var confirm = 5;
stop();
Instance of Symbol 2 MovieClip "s_mc" in Symbol 164 MovieClip Frame 1
onClipEvent (load) {
function spawnSkills() {
var _local2 = 1000;
_parent.skill_mc.duplicateMovieClip("sk1", _local2, {_x:118, _y:226, skid:1});
_local2++;
_parent.skill_mc.duplicateMovieClip("sk2", _local2, {_x:18, _y:126, skid:2});
_local2++;
_parent.skill_mc.duplicateMovieClip("sk3", _local2, {_x:18, _y:226, skid:3});
_local2++;
_parent.skill_mc.duplicateMovieClip("sk4", _local2, {_x:218, _y:26, skid:4});
_local2++;
_parent.skill_mc.duplicateMovieClip("sk5", _local2, {_x:18, _y:26, skid:5});
_local2++;
_parent.skill_mc.duplicateMovieClip("sk6", _local2, {_x:118, _y:26, skid:6});
_local2++;
_parent.skill_mc.duplicateMovieClip("sk7", _local2, {_x:318, _y:26, skid:7});
_local2++;
_parent.skill_mc.duplicateMovieClip("sk8", _local2, {_x:318, _y:126, skid:8});
_local2++;
_parent.skill_mc.duplicateMovieClip("sk9", _local2, {_x:1318, _y:226, skid:9});
_local2++;
_parent.skill_mc.duplicateMovieClip("sk10", _local2, {_x:218, _y:226, skid:10});
_local2++;
_parent.skill_mc.duplicateMovieClip("sk11", _local2, {_x:418, _y:26, skid:11});
_local2++;
_parent.skname_txt.text = "";
_parent.skdesc_txt.text = "";
_parent.skeffect_txt.text = "";
_parent.skcost_txt.text = "";
}
function canBuy() {
i = 1;
while (i <= 11) {
if ((_parent._parent.event_mc.my_so.data.gold >= _parent._parent.event_mc.my_so.data.skills.cost[i - 1]) && ((_parent._parent.event_mc.my_so.data.skills.rank[i - 1] < _parent._parent.event_mc.skillcap[i - 1]) || (_parent._parent.event_mc.skillcap[i - 1] == 0))) {
_parent["sk" + i]._alpha = 100;
} else {
_parent["sk" + i]._alpha = 30;
}
i++;
}
}
function cleanUp() {
i = 1;
while (i <= 11) {
_parent["sk" + i].removeMovieClip();
i++;
}
}
}
onClipEvent (unload) {
cleanUp();
}
Instance of Symbol 131 MovieClip "skill_mc" in Symbol 164 MovieClip Frame 2
onClipEvent (load) {
function updateDesc() {
_parent.skcost_txt.text = "Cost: $" + _parent._parent.event_mc.commalize(_parent._parent.event_mc.my_so.data.skills.cost[skid - 1]);
switch (skid) {
case 1 :
_parent.skname_txt.text = "Auto-Click faster";
_parent.skdesc_txt.text = "Increases the frequency of automatic clicks";
_parent.skeffect_txt.text = (("Clicks per second: " + (Math.floor(300000 / _parent._parent.event_mc.my_so.data.skills.effect[0]) / 100)) + " -> ") + (Math.floor(300000 / (_parent._parent.event_mc.my_so.data.skills.effect[0] * 0.95)) / 100);
break;
case 2 :
_parent.skname_txt.text = "Manual Click Power";
_parent.skdesc_txt.text = "Increases the power of manual clicking";
_parent.skeffect_txt.text = ((("Power: " + _parent._parent.event_mc.my_so.data.skills.effect[1]) + "% -> ") + (_parent._parent.event_mc.my_so.data.skills.effect[1] + 15)) + "%";
break;
case 3 :
_parent.skname_txt.text = "Auto-Click Power";
_parent.skdesc_txt.text = "Increases the power of automatic clicks";
_parent.skeffect_txt.text = ((("Power: " + _parent._parent.event_mc.my_so.data.skills.effect[2]) + "% -> ") + (_parent._parent.event_mc.my_so.data.skills.effect[2] + 8)) + "%";
break;
case 4 :
_parent.skname_txt.text = "Blacksmith Expertise";
_parent.skdesc_txt.text = "Increases the likelihood of crafting with + bonuses";
_parent.skeffect_txt.text = (("Level: " + _parent._parent.event_mc.my_so.data.skills.rank[3]) + " -> ") + (_parent._parent.event_mc.my_so.data.skills.rank[3] + 1);
break;
case 5 :
_parent.skname_txt.text = "Upgrade Blacksmith";
_parent.skdesc_txt.text = "Makes the blacksmith slightly better, increasing the base power of the pickaxes he produces.";
_parent.skeffect_txt.text = (("Base power: " + _parent._parent.event_mc.commalize(Math.floor(_parent._parent.event_mc.my_so.data.skills.effect[4] / 10))) + " -> ") + _parent._parent.event_mc.commalize(Math.floor(((_parent._parent.event_mc.my_so.data.skills.effect[4] * 1.06) + 120) / 10));
break;
case 6 :
_parent.skname_txt.text = "Blacksmith Skill";
_parent.skdesc_txt.text = "Increases the general quality of crafted gear.";
_parent.skeffect_txt.text = ((("Average quality: " + (_parent._parent.event_mc.my_so.data.skills.effect[5] + 100)) + "% -> ") + (_parent._parent.event_mc.my_so.data.skills.effect[5] + 101)) + "%";
break;
case 7 :
_parent.skname_txt.text = "Blacksmith Efficiency";
_parent.skdesc_txt.text = "Small chance the Blacksmith will not use a gem while crafting.";
_parent.skeffect_txt.text = ((("Chance: " + _parent._parent.event_mc.my_so.data.skills.effect[6]) + "% -> ") + (_parent._parent.event_mc.my_so.data.skills.effect[6] + 1)) + "%";
break;
case 8 :
_parent.skname_txt.text = "Gem Finder";
_parent.skdesc_txt.text = "Increases odds of finding a gem.";
_parent.skeffect_txt.text = ((("Chance: " + (Math.floor(100 * _parent._parent.event_mc.my_so.data.skills.effect[7]) / 1000)) + "% -> ") + (Math.floor(100 * (_parent._parent.event_mc.my_so.data.skills.effect[7] + 4)) / 1000)) + "%";
break;
case 9 :
_parent.skname_txt.text = "Gem Idler";
_parent.skdesc_txt.text = "Can find gems even when the game is closed.";
_parent.skeffect_txt.text = ((("Chance: " + (Math.floor(100 * _parent._parent.event_mc.my_so.data.skills.effect[8]) / 1000)) + "% -> ") + (Math.floor(100 * (_parent._parent.event_mc.my_so.data.skills.effect[8] + 2)) / 1000)) + "%";
break;
case 10 :
_parent.skname_txt.text = "Idle Power";
_parent.skdesc_txt.text = "Can earn gold even when the game is closed.";
_parent.skeffect_txt.text = ((("Power: " + _parent._parent.event_mc.my_so.data.skills.effect[9]) + "% -> ") + (_parent._parent.event_mc.my_so.data.skills.effect[9] + 2)) + "%";
break;
case 11 :
_parent.skname_txt.text = "Gem Waster";
_parent.skdesc_txt.text = "Allows you to use several gems at once to ensure crafting a higher tier of pick. But it's not really worth it.";
_parent.skeffect_txt.text = (("Max gems at once: " + Math.floor(Math.pow(3.4, _parent._parent.event_mc.my_so.data.skills.rank[10]))) + " -> ") + Math.floor(Math.pow(3.4, _parent._parent.event_mc.my_so.data.skills.rank[10] + 1));
}
if ((_parent._parent.event_mc.my_so.data.skills.rank[skid - 1] >= _parent._parent.event_mc.skillcap[skid - 1]) && (_parent._parent.event_mc.skillcap[skid - 1] != 0)) {
_parent.skcost_txt.text = "Max level. Cannot upgrade further.";
}
}
function clearDesc() {
_parent.skname_txt.text = "";
_parent.skdesc_txt.text = "";
_parent.skeffect_txt.text = "";
_parent.skcost_txt.text = "";
}
if (skid > 0) {
gotoAndStop(skid);
}
}
on (rollOver) {
updateDesc();
}
on (rollOut) {
clearDesc();
}
on (dragOut) {
clearDesc();
}
on (release) {
if ((_parent._parent.event_mc.my_so.data.gold >= _parent._parent.event_mc.my_so.data.skills.cost[skid - 1]) && ((_parent._parent.event_mc.my_so.data.skills.rank[skid - 1] < _parent._parent.event_mc.skillcap[skid - 1]) || (_parent._parent.event_mc.skillcap[skid - 1] == 0))) {
_parent._parent.event_mc.my_so.data.skills.rank[skid - 1]++;
_parent._parent.event_mc.my_so.data.gold = _parent._parent.event_mc.my_so.data.gold - _parent._parent.event_mc.my_so.data.skills.cost[skid - 1];
_parent._parent.gold_txt.text = "$" + _parent._parent.event_mc.commalize(_parent._parent.event_mc.my_so.data.gold);
switch (skid) {
case 1 :
_parent._parent.event_mc.my_so.data.skills.effect[0] = Math.floor(_parent._parent.event_mc.my_so.data.skills.effect[0] * 0.95);
_parent._parent.event_mc.my_so.data.skills.cost[0] = Math.floor((_parent._parent.event_mc.my_so.data.skills.cost[0] * 2.8) + (_parent._parent.event_mc.my_so.data.skills.rank[0] * 400));
break;
case 2 :
_parent._parent.event_mc.my_so.data.skills.effect[1] = _parent._parent.event_mc.my_so.data.skills.effect[1] + 15;
_parent._parent.event_mc.my_so.data.skills.cost[1] = Math.floor((_parent._parent.event_mc.my_so.data.skills.cost[1] * 1.2) + (_parent._parent.event_mc.my_so.data.skills.rank[1] * 1700));
break;
case 3 :
_parent._parent.event_mc.my_so.data.skills.effect[2] = _parent._parent.event_mc.my_so.data.skills.effect[2] + 8;
_parent._parent.event_mc.my_so.data.skills.cost[2] = Math.floor((_parent._parent.event_mc.my_so.data.skills.cost[2] * 1.2) + (_parent._parent.event_mc.my_so.data.skills.rank[2] * 3000));
break;
case 4 :
_parent._parent.event_mc.my_so.data.skills.effect[3] = _parent._parent.event_mc.my_so.data.skills.effect[3] + 1;
_parent._parent.event_mc.my_so.data.skills.cost[3] = Math.floor(_parent._parent.event_mc.my_so.data.skills.cost[3] * 16);
break;
case 5 :
_parent._parent.event_mc.my_so.data.skills.effect[4] = Math.floor((_parent._parent.event_mc.my_so.data.skills.effect[4] * 1.06) + 120);
_parent._parent.event_mc.my_so.data.skills.cost[4] = Math.floor((_parent._parent.event_mc.my_so.data.skills.cost[4] * 1.2) + (_parent._parent.event_mc.my_so.data.skills.rank[4] * 100));
break;
case 6 :
_parent._parent.event_mc.my_so.data.skills.effect[5] = _parent._parent.event_mc.my_so.data.skills.effect[5] + 1;
_parent._parent.event_mc.my_so.data.skills.cost[5] = Math.floor(_parent._parent.event_mc.my_so.data.skills.cost[5] * 4.2);
break;
case 7 :
_parent._parent.event_mc.my_so.data.skills.effect[6] = _parent._parent.event_mc.my_so.data.skills.effect[6] + 1;
_parent._parent.event_mc.my_so.data.skills.cost[6] = Math.floor(_parent._parent.event_mc.my_so.data.skills.cost[6] * 8.5);
break;
case 8 :
_parent._parent.event_mc.my_so.data.skills.effect[7] = _parent._parent.event_mc.my_so.data.skills.effect[7] + 4;
_parent._parent.event_mc.my_so.data.skills.cost[7] = Math.floor(_parent._parent.event_mc.my_so.data.skills.cost[7] * 22);
break;
case 9 :
_parent._parent.event_mc.my_so.data.skills.effect[8] = _parent._parent.event_mc.my_so.data.skills.effect[8] + 2;
_parent._parent.event_mc.my_so.data.skills.cost[8] = Math.floor(_parent._parent.event_mc.my_so.data.skills.cost[8] * 7);
break;
case 10 :
_parent._parent.event_mc.my_so.data.skills.effect[9] = _parent._parent.event_mc.my_so.data.skills.effect[9] + 2;
_parent._parent.event_mc.my_so.data.skills.cost[9] = Math.floor((_parent._parent.event_mc.my_so.data.skills.cost[9] * 13.2) + (_parent._parent.event_mc.my_so.data.skills.rank[9] * 30000));
break;
case 11 :
_parent._parent.event_mc.my_so.data.skills.effect[10] = Math.floor(Math.pow(3.4, _parent._parent.event_mc.my_so.data.skills.rank[10]));
_parent._parent.event_mc.my_so.data.skills.cost[10] = Math.floor(_parent._parent.event_mc.my_so.data.skills.cost[10] * 10000000);
_parent._parent.craftButt_mc.checkArrows();
}
_parent.s_mc.canBuy();
updateDesc();
}
}
Instance of Symbol 138 MovieClip in Symbol 164 MovieClip Frame 3
onClipEvent (load) {
var hp = 200;
}
on (release) {
this.hp--;
if (hp == 0) {
_parent.bob_txt.text = "by Crovie, only to appear on Kongregate. If you see this anywhere else, it's stolen.";
}
}
Symbol 164 MovieClip Frame 5
deltext_txt.text = "ARE YOU SURE YOU WANT TO PERMANENTLY DELETE YOUR DATA?";
Instance of Symbol 157 MovieClip "yes_mc" in Symbol 164 MovieClip Frame 5
on (release) {
if (_parent.confirm > 0) {
_parent.deltext_txt.text = ("Click " + _parent.confirm) + " more times to confirm";
_parent.confirm--;
} else {
_parent._parent.event_mc.wipe();
_parent._parent.pickButt.closeMenu();
}
}
Instance of Symbol 160 MovieClip in Symbol 164 MovieClip Frame 5
on (release) {
_parent._parent.pickButt.closeMenu();
}
Instance of Symbol 163 MovieClip in Symbol 164 MovieClip Frame 5
on (release) {
_parent._parent.pickButt.closeMenu();
}