Frame 1
var expmulti = 1.38;
var level = 1;
var monster = 1;
var experience = 70;
var mesos = 0;
var maxmesos = 999999;
var fame = 0;
var str = 290;
var watk = 190;
var upgrades = 1;
var fames = 0;
var inflation = 1;
var deflation = 1;
var counter = 0;
var zakum = 0;
var zakumhp = 3300000;
var zakumhpmax = 3300000;
var zakumdead = 0;
var pianus = 0;
var pianushp = 100000000;
var pianushpmax = 100000000;
var pianusdead = 0;
var monstermeso = Array(15, 35, 65, 110, 150, 350, 600, 950);
var itemvalue = Array(0, 300000, 2000000, 8000000, 15000000, 30000000, 1000000000, 15000000);
var buyoffer = 0;
var bor = 0;
var borx = 0;
var itema = 0;
var itemb = 0;
var itemc = 0;
var visitor = 0;
var visitortype = 0;
var randomvisit = 0;
var inflatetext = 1;
var dropcheat = 0;
stop();
Frame 2
_parent.gui_mc.level_txt.text = _root.level;
_parent.gui_mc.famebox_mc.fame_txt.text = _root.fame;
_parent.gui_mc.mesobox_mc.meso_txt.text = _root.mesos;
_parent.monster1_mc.gotoAndStop(_root.monster);
_parent.monster2_mc.gotoAndStop(_root.monster);
_parent.monster3_mc.gotoAndStop(_root.monster);
_parent.monster4_mc.gotoAndStop(_root.monster);
_parent.monster5_mc.gotoAndStop(_root.monster);
_parent.gui_mc.job_txt.text = "BEGINNER";
if (_root.level >= 10) {
_parent.gui_mc.job_txt.text = "SWORDSMAN";
}
if (_root.level >= 30) {
_parent.gui_mc.job_txt.text = "SPEARMAN";
}
if (_root.level >= 70) {
_parent.gui_mc.job_txt.text = "DRAGON KNIGHT";
}
stop();
Instance of Symbol 47 MovieClip "hero_mc" in Frame 2
onClipEvent (load) {
_parent.monster1_mc.gotoAndStop(_root.monster);
_parent.monster2_mc.gotoAndStop(_root.monster);
_parent.monster3_mc.gotoAndStop(_root.monster);
_parent.monster4_mc.gotoAndStop(_root.monster);
_parent.monster5_mc.gotoAndStop(_root.monster);
if (_root.level >= 10) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 30) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 40) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 50) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 60) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 70) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 80) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 90) {
_parent.hero_mc.arm_mc.nextFrame();
}
}
onClipEvent (enterFrame) {
_root.counter++;
if (_root.level < 10) {
maxd = (_root.str * 0.04) * _root.watk;
mind = ((_root.str * 0.0045) * _root.watk) + 1;
_root.experience = _root.experience + ((10 - _root.level) / 20);
}
if ((_root.level >= 10) && (_root.level < 30)) {
maxd = (((_root.str * 0.045) * _root.watk) * (_root.level - 5)) / 10;
mind = ((((_root.str * 0.0045) * _root.watk) * (_root.level - 5)) / 10) + 1;
_root.experience = _root.experience + ((30 - _root.level) / 20);
}
if ((_root.level >= 30) && (_root.level < 40)) {
maxd = ((_root.str * 0.05) * _root.watk) * 2.5;
mind = (((_root.str * 0.0005) * ((_root.level * 5) - 135)) * _root.watk) * 2.5;
}
if ((_root.level >= 40) && (_root.level < 70)) {
maxd = ((_root.str * 0.05) * _root.watk) * 2.5;
mind = (((_root.str * 0.0005) * 60) * _root.watk) * 2.5;
}
if ((_root.level >= 70) && (_root.level < 100)) {
maxd = ((_root.str * 0.05) * _root.watk) * (2.5 + ((_root.level - 70) / 15));
mind = (((_root.str * 0.0005) * 60) * _root.watk) * (2.5 + ((_root.level - 70) / 15));
}
if (_root.level >= 100) {
maxd = ((_root.str * 0.05) * _root.watk) * 4.5;
mind = (((_root.str * 0.0005) * 60) * _root.watk) * 4.5;
}
if (_root.level >= 120) {
_parent.gui_mc.job_txt.text = "DARK KNIGHT";
}
if (_root.level >= 50) {
_root.zbutton_mc.gotoAndStop(2);
}
damage = Math.round((Math.random() * maxd) + mind);
pq = _root.monster - 1;
maxmeso = _root.monstermeso[pq];
minmeso = maxmeso * 0.7;
meso = Math.round((Math.random() * maxmeso) + minmeso);
if (_root.counter == 5) {
_parent.monster1_mc.damage_txt.text = damage;
_parent.monster4_mc.damage_txt.text = " ";
_root.experience = _root.experience + (damage / Math.pow(_root.level, _root.expmulti));
_root.mesos = _root.mesos + meso;
}
if (_root.counter == 10) {
_parent.monster2_mc.damage_txt.text = damage;
_parent.monster5_mc.damage_txt.text = " ";
_root.experience = _root.experience + (damage / Math.pow(_root.level, _root.expmulti));
_root.mesos = _root.mesos + meso;
}
if (_root.counter == 15) {
_parent.monster3_mc.damage_txt.text = damage;
_parent.monster1_mc.damage_txt.text = " ";
_root.experience = _root.experience + (damage / Math.pow(_root.level, _root.expmulti));
_root.mesos = _root.mesos + meso;
}
if (_root.counter == 20) {
_parent.monster4_mc.damage_txt.text = damage;
_parent.monster2_mc.damage_txt.text = " ";
_root.experience = _root.experience + (damage / Math.pow(_root.level, _root.expmulti));
_root.mesos = _root.mesos + meso;
dropluck = Math.random() * 10000;
if (dropluck > 9100) {
if (_root.monster > 3) {
qr = _root.monster - 3;
rs = qr + 1;
if (_root.itema == 0) {
_root.itema = qr;
_parent.menu_mc.item1_mc.gotoAndStop(rs);
} else if (_root.itemb == 0) {
_root.itemb = qr;
_parent.menu_mc.item2_mc.gotoAndStop(rs);
} else if (_root.itemc == 0) {
_root.itemc = qr;
_parent.menu_mc.item3_mc.gotoAndStop(rs);
}
}
}
}
if (_root.counter == 25) {
_parent.monster5_mc.damage_txt.text = damage;
_parent.monster3_mc.damage_txt.text = " ";
_root.experience = _root.experience + (damage / Math.pow(_root.level, _root.expmulti));
_root.counter = 0;
_root.mesos = _root.mesos + meso;
}
if (_root.experience >= 100) {
_root.experience = _root.experience - 100;
_root.level++;
_root.str = _root.str + 5;
_parent.gui_mc.level_txt.text = _root.level;
leveltest = _root.level % 10;
if (leveltest == 0) {
if ((_root.level <= 90) && (_root.level != 20)) {
_root.watk = _root.watk + 10;
_parent.hero_mc.arm_mc.nextFrame();
if (_root.level == 10) {
_parent.gui_mc.job_txt.text = "SWORDSMAN";
}
if (_root.level == 30) {
_parent.gui_mc.job_txt.text = "SPEARMAN";
}
if (_root.level == 70) {
_parent.gui_mc.job_txt.text = "DRAGON KNIGHT";
}
}
}
if (((((((_root.level == 15) || (_root.level == 22)) || (_root.level == 35)) || (_root.level == 48)) || (_root.level == 62)) || (_root.level == 75)) || (_root.level == 95)) {
_root.monster++;
_parent.monster1_mc.gotoAndStop(_root.monster);
_parent.monster2_mc.gotoAndStop(_root.monster);
_parent.monster3_mc.gotoAndStop(_root.monster);
_parent.monster4_mc.gotoAndStop(_root.monster);
_parent.monster5_mc.gotoAndStop(_root.monster);
_root.expmulti = _root.expmulti + 0.1;
}
}
_parent.gui_mc.expbar_mc.barfill_mc._xscale = _root.experience;
_parent.gui_mc.famebox_mc.fame_txt.text = _root.fame;
_parent.gui_mc.mesobox_mc.meso_txt.text = _root.mesos;
if (_root.level >= 50) {
_root.zbutton_mc.gotoAndStop(2);
_root.pianus_b.gotoAndStop(2);
}
}
Frame 3
avg_txt.text = Math.round((Math.pow(_root.upgrades, 1.7) * 10000) * _root.inflation);
_root.buyoffer = Math.round((Math.pow(_root.upgrades, 1.7) * 10000) * _root.inflation);
_root.bor = Math.random();
_root.borx = 0;
if (_root.bor < 0.25) {
_root.borx = 0.8 + Math.random();
} else {
_root.borx = 1 + Math.random();
}
_root.borx = _root.borx * _root.buyoffer;
_root.borx = Math.round(_root.borx);
offer_txt.text = _root.borx;
Instance of Symbol 47 MovieClip "hero_mc" in Frame 3
onClipEvent (load) {
if (_root.level >= 10) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 30) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 40) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 50) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 60) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 70) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 80) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 90) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 120) {
_parent.gui_mc.job_txt.text = "DARK KNIGHT";
}
}
Frame 4
if (_root.itema != 0) {
if (_root.itema == 1) {
itemname_txt.text = "Kumbis";
}
if (_root.itema == 2) {
itemname_txt.text = "Esther";
}
if (_root.itema == 3) {
itemname_txt.text = "Steelies";
}
if (_root.itema == 4) {
itemname_txt.text = "Doombringer";
}
if (_root.itema == 5) {
itemname_txt.text = "Ilbis";
}
if (_root.itema == 6) {
itemname_txt.text = "Fairfrozen";
}
if (_root.itema == 7) {
itemname_txt.text = "Fraute";
}
avg_txt.text = Math.round(_root.itemvalue[_root.itema] * _root.deflation);
_root.buyoffer = Math.round(_root.itemvalue[_root.itema] * _root.deflation);
_root.bor = Math.random();
_root.borx = 0;
if (_root.bor < 0.25) {
_root.borx = 0.1 + Math.random();
} else {
_root.borx = 1 - _root.bor;
}
_root.borx = _root.borx * _root.buyoffer;
_root.borx = Math.round(_root.borx);
offer_txt.text = _root.borx;
if (_root.mesos >= _root.maxmesos) {
}
} else {
itemname_txt.text = "NOTHING";
avg_txt.text = "";
offer_txt.text = "";
}
Frame 5
_root.bor = 5000 + (_root.fames * 500);
avg_txt.text = _root.bor;
talk_txt.text = "SELLING FAME";
Frame 7
stop();
Instance of Symbol 47 MovieClip "hero_mc" in Frame 7
onClipEvent (load) {
_parent.gui_mc.level_txt.text = _root.level;
if (_root.level >= 70) {
_parent.gui_mc.job_txt.text = "DRAGON KNIGHT";
}
_root.zakum = 1;
_root.zakumhp = 330000 /* 0x050910 */;
_root.zakumhpmax = 330000 /* 0x050910 */;
if (_root.level >= 10) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 30) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 40) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 50) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 60) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 70) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 80) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 90) {
_parent.hero_mc.arm_mc.nextFrame();
}
}
onClipEvent (enterFrame) {
_root.counter++;
if ((_root.level >= 40) && (_root.level < 70)) {
maxd = ((_root.str * 0.05) * _root.watk) * 2.5;
mind = (((_root.str * 0.0005) * 60) * _root.watk) * 2.5;
}
if ((_root.level >= 70) && (_root.level < 100)) {
maxd = ((_root.str * 0.05) * _root.watk) * (2.5 + ((_root.level - 70) / 15));
mind = (((_root.str * 0.0005) * 60) * _root.watk) * (2.5 + ((_root.level - 70) / 15));
}
if (_root.level >= 100) {
maxd = ((_root.str * 0.05) * _root.watk) * 4.5;
mind = (((_root.str * 0.0005) * 60) * _root.watk) * 4.5;
}
damage = Math.round((Math.random() * maxd) + mind);
if (_root.counter >= 5) {
_root.counter = 0;
_root.zakumhp = _root.zakumhp - damage;
_root.damage_txt.text = damage;
if (_root.zakumhp <= 0) {
if (_root.zakum == 1) {
_root.zakumhp = 6600000 /* 0x64B540 */;
_root.zakumhpmax = 6600000 /* 0x64B540 */;
_root.zakum++;
_root.zakum_mc.gotoAndStop(2);
} else if (_root.zakum == 2) {
_root.zakumhp = 8800000 /* 0x864700 */;
_root.zakumhpmax = 8800000 /* 0x864700 */;
_root.zakum++;
_root.zakum_mc.zakumbod_mc.gotoAndStop(2);
} else if (_root.zakum == 3) {
_root.zakumhp = 11000000 /* 0xA7D8C0 */;
_root.zakumhpmax = 11000000 /* 0xA7D8C0 */;
_root.zakum++;
_root.zakum_mc.zakumbod_mc.gotoAndStop(3);
} else if (_root.zakum == 4) {
_parent.damage_txt.text = "";
if (_root.itema == 0) {
_root.itema = 6;
_parent.menu_mc.item1_mc.gotoAndStop(7);
} else if (_root.itemb == 0) {
_root.itemb = 6;
_parent.menu_mc.item2_mc.gotoAndStop(7);
} else if (_root.itemc == 0) {
_root.itemc = 6;
_parent.menu_mc.item3_mc.gotoAndStop(7);
}
_root.counter = -1000;
_root.zakumhp = 0;
_root.zakumhpmax = 1;
_root.zakum = 0;
_root.zakum_mc.zakumbod_mc.gotoAndStop(4);
expgain = 7000000 / Math.pow(_root.level, 2.5);
_parent.hero_mc.head_mc.gotoAndStop(2);
if (_root.zakumdead != 1) {
_root.zakumdead = 1;
_root.str = _root.str + 30;
}
if (expgain > 200) {
expgain = 199.98;
}
_root.experience = _root.experience + expgain;
if (_root.experience >= 100) {
_root.experience = _root.experience - 100;
_root.level++;
_root.str = _root.str + 5;
_parent.gui_mc.level_txt.text = _root.level;
leveltest = _root.level % 10;
if (leveltest == 0) {
if ((_root.level <= 90) && (_root.level != 20)) {
_root.watk = _root.watk + 10;
_parent.hero_mc.arm_mc.nextFrame();
if (_root.level == 10) {
_parent.gui_mc.job_txt.text = "SWORDSMAN";
}
if (_root.level == 30) {
_parent.gui_mc.job_txt.text = "SPEARMAN";
}
if (_root.level == 70) {
_parent.gui_mc.job_txt.text = "DRAGON KNIGHT";
}
}
}
}
}
}
}
_parent.gui_mc.expbar_mc.barfill_mc._xscale = _root.experience;
_parent.gui_mc.famebox_mc.fame_txt.text = _root.fame;
_parent.gui_mc.mesobox_mc.meso_txt.text = _root.mesos;
_root.zakumhp_mc.barfill_mc._xscale = (100 * _root.zakumhp) / _root.zakumhpmax;
}
Frame 8
stop();
Instance of Symbol 47 MovieClip "hero_mc" in Frame 8
onClipEvent (load) {
_parent.gui_mc.level_txt.text = _root.level;
if (_root.level >= 70) {
_parent.gui_mc.job_txt.text = "DRAGON KNIGHT";
}
_root.pianus = 1;
_root.pianushp = 100000000 /* 0x5F5E100 */;
_root.pianushpmax = 100000000 /* 0x5F5E100 */;
if (_root.level >= 10) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 30) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 40) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 50) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 60) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 70) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 80) {
_parent.hero_mc.arm_mc.nextFrame();
}
if (_root.level >= 90) {
_parent.hero_mc.arm_mc.nextFrame();
}
}
onClipEvent (enterFrame) {
_root.counter++;
if ((_root.level >= 40) && (_root.level < 70)) {
maxd = ((_root.str * 0.05) * _root.watk) * 2.5;
mind = (((_root.str * 0.0005) * 60) * _root.watk) * 2.5;
}
if ((_root.level >= 70) && (_root.level < 100)) {
maxd = ((_root.str * 0.05) * _root.watk) * (2.5 + ((_root.level - 70) / 15));
mind = (((_root.str * 0.0005) * 60) * _root.watk) * (2.5 + ((_root.level - 70) / 15));
}
if (_root.level >= 100) {
maxd = ((_root.str * 0.05) * _root.watk) * 4.5;
mind = (((_root.str * 0.0005) * 60) * _root.watk) * 4.5;
}
damage = Math.round((Math.random() * maxd) + mind);
if (_root.counter >= 6) {
_root.counter = 0;
_root.pianushp = _root.pianushp - damage;
_root.damage_txt.text = damage;
if (_root.pianushp <= 0) {
if (_root.pianus == 1) {
_root.pianushp = 100000000 /* 0x5F5E100 */;
_root.pianushpmax = 100000000 /* 0x5F5E100 */;
}
_root.counter = -1000;
_root.pianushp = 0;
_root.pianushpmax = 1;
_root.pianus = 0;
_root.pianusdead = 1;
expgain = 7000000 / Math.pow(_root.level, 2.5);
if (_root.pianusdead != 1) {
_root.pianusdead = 1;
_root.str = _root.str + 30;
}
if (_root.itema == 0) {
_root.itema = 7;
_parent.menu_mc.item1_mc.gotoAndStop(8);
} else if (_root.itemb == 0) {
_root.itemb = 7;
_parent.menu_mc.item2_mc.gotoAndStop(8);
} else if (_root.itemc == 0) {
_root.itemc = 7;
_parent.menu_mc.item3_mc.gotoAndStop(8);
}
if (expgain > 200) {
expgain = 199.98;
}
_root.experience = _root.experience + expgain;
if (_root.experience >= 100) {
_root.experience = _root.experience - 100;
_root.level++;
_root.str = _root.str + 5;
_parent.gui_mc.level_txt.text = _root.level;
leveltest = _root.level % 10;
if (leveltest == 0) {
if ((_root.level <= 90) && (_root.level != 20)) {
_root.watk = _root.watk + 10;
_parent.hero_mc.arm_mc.nextFrame();
if (_root.level == 10) {
_parent.gui_mc.job_txt.text = "SWORDSMAN";
}
if (_root.level == 30) {
_parent.gui_mc.job_txt.text = "SPEARMAN";
}
if (_root.level == 70) {
_parent.gui_mc.job_txt.text = "DRAGON KNIGHT";
}
}
}
}
}
}
_parent.gui_mc.expbar_mc.barfill_mc._xscale = _root.experience;
_parent.gui_mc.famebox_mc.fame_txt.text = _root.fame;
_parent.gui_mc.mesobox_mc.meso_txt.text = _root.mesos;
_root.pianushp_mc.barfill_mc._xscale = (100 * _root.pianushp) / _root.pianushpmax;
}
Symbol 10 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 11 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 2
stop();
Symbol 46 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 70 Button
on (release) {
_root.gotoAndStop(7);
}
Symbol 71 MovieClip Frame 1
stop();
Symbol 74 Button
on (release) {
_root.gotoAndStop(8);
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 98 Button
on (release) {
_root.gotoAndStop(2);
if (_root.zakumdead == 1) {
_parent.hero_mc.head_mc.gotoAndStop(2);
}
}
Symbol 100 Button
on (release) {
if (_root.zakumdead == 1) {
_parent.hero_mc.head_mc.gotoAndStop(2);
}
if (_root.visitor == 0) {
_root.gotoAndStop(3);
}
}
Symbol 102 Button
on (release) {
if (_root.zakumdead == 1) {
_parent.hero_mc.head_mc.gotoAndStop(2);
}
if (_root.visitor == 0) {
_root.gotoAndStop(4);
}
}
Symbol 104 Button
on (release) {
if (_root.zakumdead == 1) {
_parent.hero_mc.head_mc.gotoAndStop(2);
}
if (_root.visitor == 0) {
_root.gotoAndStop(5);
}
}
Symbol 107 Button
on (release) {
if (_root.zakumdead == 1) {
_parent.hero_mc.head_mc.gotoAndStop(2);
}
_root.visitortype = 1;
_root.visitor = 0;
_root.gotoAndStop(6);
}
Symbol 123 MovieClip Frame 1
stop();
Symbol 135 Button
on (press) {
if (_root.borx <= _root.mesos) {
_root.upgrades++;
_root.watk = _root.watk + 2;
_root.mesos = _root.mesos - _root.borx;
gui_mc.mesobox_mc.meso_txt.text = _root.mesos;
averageprice = Math.round((Math.pow(_root.upgrades, 1.7) * 10000) * _root.inflation);
avg_txt.text = averageprice;
whatyoudid = Math.sqrt(_root.borx / averageprice);
_root.inflation = _root.inflation * whatyoudid;
if (_root.inflation < 0.95) {
_root.inflation = 0.97;
}
avg_txt.text = Math.round((Math.pow(_root.upgrades, 1.7) * 10000) * _root.inflation);
_root.buyoffer = Math.round((Math.pow(_root.upgrades, 1.7) * 10000) * _root.inflation);
_root.bor = Math.random();
_root.borx = 0;
if (_root.bor < 0.25) {
_root.borx = 0.8 + Math.random();
} else {
_root.borx = 1 + Math.random();
}
_root.borx = _root.borx * _root.buyoffer;
_root.borx = Math.round(_root.borx);
offer_txt.text = _root.borx;
}
}
Symbol 141 Button
on (press) {
avg_txt.text = Math.round((Math.pow(_root.upgrades, 1.7) * 10000) * _root.inflation);
_root.buyoffer = Math.round((Math.pow(_root.upgrades, 1.7) * 10000) * _root.inflation);
_root.bor = Math.random();
_root.borx = 0;
if (_root.bor < 0.25) {
_root.borx = 0.8 + Math.random();
} else {
_root.borx = 1 + Math.random();
}
_root.borx = _root.borx * _root.buyoffer;
_root.borx = Math.round(_root.borx);
offer_txt.text = _root.borx;
}
Symbol 151 Button
on (press) {
if (_root.itema != 0) {
_root.itema = _root.itemb;
var framego = (_root.itema + 1);
menu_mc.item1_mc.gotoAndStop(framego);
_root.itemb = _root.itemc;
framego = _root.itemb + 1;
menu_mc.item2_mc.gotoAndStop(framego);
_root.itemc = 0;
menu_mc.item3_mc.gotoAndStop(1);
_root.mesos = _root.mesos + _root.borx;
gui_mc.mesobox_mc.meso_txt.text = _root.mesos;
var averageprice = avg_txt.text;
var whatyoudid = Math.sqrt(_root.borx / averageprice);
_root.deflation = _root.deflation * whatyoudid;
if (_root.deflation > 1.05) {
_root.deflation = 1.03;
}
if (_root.itema != 0) {
avg_txt.text = Math.round(_root.itemvalue[_root.itema] * _root.deflation);
_root.buyoffer = Math.round(_root.itemvalue[_root.itema] * _root.deflation);
_root.bor = Math.random();
_root.borx = 0;
if (_root.bor < 0.25) {
_root.borx = 0.1 + Math.random();
} else {
_root.borx = 1 - _root.bor;
}
_root.borx = _root.borx * _root.buyoffer;
_root.borx = Math.round(_root.borx);
offer_txt.text = _root.borx;
}
if (_root.itema == 1) {
itemname_txt.text = "Kumbis";
}
if (_root.itema == 2) {
itemname_txt.text = "Esther";
}
if (_root.itema == 3) {
itemname_txt.text = "Steelies";
}
if (_root.itema == 4) {
itemname_txt.text = "Doombringer";
}
if (_root.itema == 5) {
itemname_txt.text = "Ilbis";
}
if (_root.itema == 6) {
itemname_txt.text = "FairFrozen";
}
if (_root.itema == 7) {
itemname_txt.text = "Fraute";
}
}
if (_root.itema == 0) {
itemname_txt.text = "NOTHING";
avg_txt.text = "";
offer_txt.text = "";
}
}
Symbol 155 Button
on (press) {
if (_root.itema != 0) {
avg_txt.text = Math.round(_root.itemvalue[itema] * _root.deflation);
_root.buyoffer = Math.round(_root.itemvalue[itema] * _root.deflation);
_root.bor = Math.random();
_root.borx = 0;
if (_root.bor < 0.25) {
_root.borx = 0.1 + Math.random();
} else {
_root.borx = 1 - _root.bor;
}
_root.borx = _root.borx * _root.buyoffer;
_root.borx = Math.round(_root.borx);
offer_txt.text = _root.borx;
}
}
Symbol 166 Button
on (press) {
if (_root.bor <= _root.mesos) {
_root.mesos = _root.mesos - _root.bor;
gui_mc.mesobox_mc.meso_txt.text = _root.mesos;
_root.fame++;
gui_mc.famebox_mc.fame_txt.text = _root.fame;
_root.fames++;
_root.bor = 5000 + (_root.fames * 500);
avg_txt.text = _root.bor;
}
}
Symbol 167 Button
on (press) {
_root.borx = Math.random();
if (_root.borx > 0.25) {
_root.bor = Math.round(_root.bor * 0.95);
if (_root.borx < 0.4) {
talk_txt.text = "is this ok?";
}
if ((_root.borx > 0.55) && (_root.borx < 0.7)) {
talk_txt.text = "how about this?";
}
if ((_root.borx > 0.7) && (_root.borx < 0.85)) {
talk_txt.text = "plzzz accept plzzzz";
}
if (_root.borx > 0.85) {
talk_txt.text = "i sell fame u??????";
}
} else {
if (_root.borx > 0.13) {
talk_txt.text = "wtf ripoff";
}
if (_root.borx <= 0.13) {
talk_txt.text = "u suck noob";
}
_root.bor = 5000 + (_root.fames * 500);
}
avg_txt.text = _root.bor;
}
Symbol 175 Button
on (release) {
gotoAndStop (2);
}
Symbol 183 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 1
stop();