Frame 1
stop();
var cmMovie = new ContextMenu();
cmMovie.builtInItems.zoom = true;
cmMovie.builtInItems.print = false;
cmMovie.builtInItems.play = false;
cmMovie.builtInItems.forward_back = false;
cmMovie.builtInItems.rewind = false;
cmMovie.builtInItems.loop = false;
this.menu = cmMovie;
var _mochiads_game_id = "64194cd455c0efec";
Instance of Symbol 190 MovieClip "mainmenu" in Frame 1
onClipEvent (load) {
this.swapDepths(999999999999999);
}
Instance of Symbol 194 MovieClip "mainmenumusic" in Frame 1
onClipEvent (enterFrame) {
if (((_root.mainmenu._currentframe > 2) && (this._currentframe < 2)) && (_root._currentframe < 2)) {
this.gotoAndStop(2);
}
if ((_root.mainmenu._currentframe < 3) or (_root._currentframe > 1)) {
this.gotoAndStop(1);
}
}
Frame 2
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("4f9a51a9", this, 10301, true);
stop();
Instance of Symbol 316 MovieClip "cupcakelord" in Frame 2
onClipEvent (load) {
castlepositionrandomiser = Math.random(200) * 198;
charboundry = false;
letmove = true;
randomnumber = 0;
v = _root.potnum;
gpause = false;
ctime = 0;
c = _root.crystalstally;
exphits = false;
movmentspeed = 1;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.stoper) && (!gpause)) {
letmove = false;
}
if ((this.cupcakelordinside.cupcakelordfrozen.frozentimer < 99) && (!gpause)) {
letmove = false;
}
if ((this.cupcakelordinside.cupcakelordfrozen.frozentimer > 99) && (!gpause)) {
letmove = true;
}
if (_root.char.hitTest(this) && (!gpause)) {
charboundry = true;
}
if ((!_root.char.hitTest(this)) && (!gpause)) {
charboundry = false;
}
if ((((this._x < _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -50;
}
if ((((this._x > _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 50;
}
if ((((this._y < _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._x;
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((((this._x < (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -50;
}
if ((((this._x > (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 50;
}
if ((((this._y < _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((this.cupcakelordinside.health < 1) && (!gpause)) {
this.gotoAndStop(2);
_root.meat = _root.meat + 200;
_root.enemys = _root.enemys - 1;
_root.enemys.text = _root.enemys.text - 1;
_root.expbar.bar._x = _root.expbar.bar._x + 40;
}
if (this.bloodexploasion._currentframe > 12) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
if ((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation < 1)) && (!gpause)) {
this._y = this._y + 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 89)) && (_root.leafcutspell340031.rotation < 91)) && (!gpause)) {
this._x = this._x - 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 179)) && (_root.leafcutspell340031.rotation < 181)) && (!gpause)) {
this._y = this._y - 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 269)) && (_root.leafcutspell340031.rotation < 271)) && (!gpause)) {
this._x = this._x + 0;
}
if ((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation < 1)) && (!gpause)) {
this._y = this._y + 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 89)) && (_root.crushspell31002.rotation < 91)) && (!gpause)) {
this._x = this._x - 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 179)) && (_root.crushspell31002.rotation < 181)) && (!gpause)) {
this._y = this._y - 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 269)) && (_root.crushspell31002.rotation < 271)) && (!gpause)) {
this._x = this._x + 0;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this._y = this._y + 3;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this._y = _root.cyclonespell31008._y;
this._x = _root.cyclonespell31008._x;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
movmentspeed = 0.2;
}
if ((!this.hitTest(_root.firetrapspell320052.firetrapdamage)) && (!gpause)) {
movmentspeed = 1;
}
}
Instance of Symbol 408 MovieClip "trifullord" in Frame 2
onClipEvent (load) {
castlepositionrandomiser = Math.random(200) * 200;
charboundry = false;
letmove = true;
randomnumber = 0;
v = _root.potnum;
gpause = false;
ctime = 0;
c = _root.crystalstally;
exphits = false;
movmentspeed = 1;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.stoper) && (!gpause)) {
letmove = false;
}
if ((this.trifullordinside.trifullordfrozen.frozentimer < 99) && (!gpause)) {
letmove = false;
}
if ((this.trifullordinside.trifullordfrozen.frozentimer > 99) && (!gpause)) {
letmove = true;
}
if (_root.char.hitTest(this) && (!gpause)) {
charboundry = true;
}
if ((!_root.char.hitTest(this)) && (!gpause)) {
charboundry = false;
}
if ((((this._x < _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + (movmentspeed + 0.3);
this._xscale = -60;
}
if ((((this._x > _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - (movmentspeed + 0.3);
this._xscale = 60;
}
if ((((this._y < _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._x;
this._y = this._y + (movmentspeed + 0.3);
}
if ((((this._y > _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - (movmentspeed + 0.3);
}
if ((((this._x < (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -60;
}
if ((((this._x > (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 60;
}
if ((((this._y < _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((this.trifullordinside.health < 1) && (!gpause)) {
this.gotoAndStop(2);
_root.meat = _root.meat + 200;
_root.enemys = _root.enemys - 1;
_root.enemys.text = _root.enemys.text - 1;
_root.expbar.bar._x = _root.expbar.bar._x + 60;
}
if (this.bloodexploasion._currentframe > 12) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
if ((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation < 1)) && (!gpause)) {
this._y = this._y + 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 89)) && (_root.leafcutspell340031.rotation < 91)) && (!gpause)) {
this._x = this._x - 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 179)) && (_root.leafcutspell340031.rotation < 181)) && (!gpause)) {
this._y = this._y - 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 269)) && (_root.leafcutspell340031.rotation < 271)) && (!gpause)) {
this._x = this._x + 0;
}
if ((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation < 1)) && (!gpause)) {
this._y = this._y + 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 89)) && (_root.crushspell31002.rotation < 91)) && (!gpause)) {
this._x = this._x - 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 179)) && (_root.crushspell31002.rotation < 181)) && (!gpause)) {
this._y = this._y - 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 269)) && (_root.crushspell31002.rotation < 271)) && (!gpause)) {
this._x = this._x + 0;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this._y = this._y + 3;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this._y = _root.cyclonespell31008._y;
this._x = _root.cyclonespell31008._x;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
movmentspeed = 0.2;
}
if ((!this.hitTest(_root.firetrapspell320052.firetrapdamage)) && (!gpause)) {
movmentspeed = 1;
}
}
Instance of Symbol 441 MovieClip "mage" in Frame 2
onClipEvent (load) {
randomnumber = 5;
castlepositionrandomiser = Math.random(200) * 198;
charboundry = false;
letmove = true;
gpause = false;
ctime = 0;
c = _root.crystalstally;
exphits = false;
movmentspeed = 1;
hittinggerm = false;
}
onClipEvent (enterFrame) {
i = randomnumber;
this.swapDepths(_y);
if (this.hitTest(_root.char) && (!gpause)) {
hittinggerm = true;
this.mageinside.gotoAndStop(2);
}
if (((!this.hitTest(_root.char)) && (!this.hitTest(_root.jellycastle))) && (!gpause)) {
hittinggerm = false;
this.mageinside.gotoAndStop(1);
}
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.stoper) && (!gpause)) {
letmove = false;
}
if ((this.mageinside.magefrozen.frozentimer < 99) && (!gpause)) {
letmove = false;
}
if ((this.mageinside.magefrozen.frozentimer > 99) && (!gpause)) {
letmove = true;
}
if (_root.char.hitTest(this) && (!gpause)) {
charboundry = true;
}
if ((!_root.char.hitTest(this)) && (!gpause)) {
charboundry = false;
}
if ((((this._x < _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._xscale = -10;
}
if ((((this._x > _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._xscale = 10;
}
if ((((this._y < _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
}
if ((((this._y > _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
}
if ((((this._x < (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -10;
}
if ((((this._x > (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 10;
}
if ((((this._y < _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((this.mageinside.health < 1) && (!gpause)) {
this.gotoAndStop(2);
_root.meat = _root.meat + 2;
_root.enemys = _root.enemys - 1;
_root.enemys.text = _root.enemys.text - 1;
_root.expbar.bar._x = _root.expbar.bar._x + 5;
}
if (this.bloodexploasion._currentframe > 12) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
if ((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation < 1)) && (!gpause)) {
this._y = this._y + 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 89)) && (_root.leafcutspell340031.rotation < 91)) && (!gpause)) {
this._x = this._x - 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 179)) && (_root.leafcutspell340031.rotation < 181)) && (!gpause)) {
this._y = this._y - 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 269)) && (_root.leafcutspell340031.rotation < 271)) && (!gpause)) {
this._x = this._x + 0;
}
if ((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation < 1)) && (!gpause)) {
this._y = this._y + 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 89)) && (_root.crushspell31002.rotation < 91)) && (!gpause)) {
this._x = this._x - 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 179)) && (_root.crushspell31002.rotation < 181)) && (!gpause)) {
this._y = this._y - 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 269)) && (_root.crushspell31002.rotation < 271)) && (!gpause)) {
this._x = this._x + 0;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this._y = this._y + 3;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this._y = _root.cyclonespell31008._y;
this._x = _root.cyclonespell31008._x;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
movmentspeed = 0.2;
}
if ((!this.hitTest(_root.firetrapspell320052.firetrapdamage)) && (!gpause)) {
movmentspeed = 1;
}
if ((this.mageinside.mageattack._currentframe > 30) && (this.mageinside.mageattack._currentframe < 32)) {
randomnumber = Math.round(Math.random(6001) * 7000);
}
if ((this.mageinside.mageattack._currentframe > 39) && (this.mageinside.mageattack._currentframe < 41)) {
_root.magespell.duplicateMovieClip("magespell" + i, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
}
Instance of Symbol 444 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 450 MovieClip "jellymine" in Frame 2
onClipEvent (enterFrame) {
if (_root.deathscreen._currentframe > 1) {
unloadMovie (this);
removeMovieClip(this);
}
}
Instance of Symbol 452 MovieClip in Frame 2
onClipEvent (load) {
_root.manafinal = 0;
_root.gametimer = 0;
_root._quality = "MEDIUM";
_root.dodgechancehider = 0;
_root.manarate = 0.3;
_root.manatotal = 200;
_root.mana = 0;
_root.dodgechance = 5;
_root.statpoints = 1;
gpause = false;
_root.speed = 5;
_root.magicmenu.statpoints = 0;
_root.lv = 1;
_root.potnum = 1;
_root.maxhealth = 100;
_root.attackpower = 35;
_root.workercap = 1;
_root.workerlimit = 0;
var point = 0;
_root.meat = point;
_root.charhealth = 100;
_root.enemys = 0;
_root.jellycastlehealth = 1000;
timing = true;
_root.clock = 0;
_root.miniclock = 0;
_root.tenclock = 10;
i = 0;
level1 = true;
_root.wave = 0;
_root.numzer = 2;
}
onClipEvent (enterFrame) {
_root.mana = Math.round(_root.manafinal);
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.char1health > _root.maxhealth) && (!gpause)) {
_root.char1health = _root.maxhealth;
}
if (this.hitTest(_root.deathscreen) && (!gpause)) {
unloadMovie (this);
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
_root.miniclock = _root.miniclock + 1.1;
}
if ((((_root.miniclock > 1) && (_root.clock > 10)) && (_root.clock < 17)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 30)) && (_root.clock < 36)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 35)) && (_root.clock < 38)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll.duplicateMovieClip("troll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 54)) && (_root.clock < 62)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 50)) && (_root.clock < 53)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.mage.duplicateMovieClip("mage" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 70)) && (_root.clock < 81)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 90)) && (_root.clock < 94)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 96)) && (_root.clock < 98)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.cupcakerider.duplicateMovieClip("cupcakerider" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 110)) && (_root.clock < 116)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 117)) && (_root.clock < 121)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll.duplicateMovieClip("troll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 130)) && (_root.clock < 132)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll2.duplicateMovieClip("troll2" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 130)) && (_root.clock < 138)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 150)) && (_root.clock < 155)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 150)) && (_root.clock < 153)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 150)) && (_root.clock < 154)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll.duplicateMovieClip("troll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 170)) && (_root.clock < 173)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll2.duplicateMovieClip("troll2" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 175)) && (_root.clock < 177)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.cupcakerider.duplicateMovieClip("cupcakerider" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 190)) && (_root.clock < 192)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.cupcakelord.duplicateMovieClip("cupcakelord" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 210)) && (_root.clock < 215)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.ninja.duplicateMovieClip("ninja" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 230)) && (_root.clock < 234)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.ninja.duplicateMovieClip("ninja" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 233)) && (_root.clock < 236)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll.duplicateMovieClip("troll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 250)) && (_root.clock < 255)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.mage.duplicateMovieClip("mage" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 253)) && (_root.clock < 257)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll.duplicateMovieClip("troll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 280)) && (_root.clock < 283)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 271)) && (_root.clock < 274)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll2.duplicateMovieClip("troll2" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 275)) && (_root.clock < 278)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.ninja.duplicateMovieClip("ninja" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 294)) && (_root.clock < 299)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll.duplicateMovieClip("troll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 291)) && (_root.clock < 294)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.mage.duplicateMovieClip("mage" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 310)) && (_root.clock < 315)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll2.duplicateMovieClip("troll2" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 315)) && (_root.clock < 323)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 330)) && (_root.clock < 334)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll2.duplicateMovieClip("ninja" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 334)) && (_root.clock < 338)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll.duplicateMovieClip("troll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 350)) && (_root.clock < 353)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.cupcakerider.duplicateMovieClip("cupcakerider" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 354)) && (_root.clock < 357)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 370)) && (_root.clock < 375)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.ninja.duplicateMovieClip("ninja" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 375)) && (_root.clock < 381)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.mage.duplicateMovieClip("mage" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 390)) && (_root.clock < 392)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.trifullord.duplicateMovieClip("trifullord" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 410)) && (_root.clock < 419)) && (!gpause)) {
i++;
_root.slime.duplicateMovieClip("slime" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 430)) && (_root.clock < 435)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.papaslime.duplicateMovieClip("papaslime" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 450)) && (_root.clock < 455)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.mage.duplicateMovieClip("mage" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 455)) && (_root.clock < 459)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll.duplicateMovieClip("troll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 470)) && (_root.clock < 476)) && (!gpause)) {
i++;
_root.slime.duplicateMovieClip("slime" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 470)) && (_root.clock < 475)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.papaslime.duplicateMovieClip("papaslime" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 490)) && (_root.clock < 494)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll2.duplicateMovieClip("troll2" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 494)) && (_root.clock < 499)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll.duplicateMovieClip("troll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 499)) && (_root.clock < 504)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 510)) && (_root.clock < 520)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 530)) && (_root.clock < 533)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.witch.duplicateMovieClip("witch" + i, _root.getNextHighestDepth(), {_x:-5, _y:(Math.random() * 300) + 300});
}
if ((((_root.miniclock > 1) && (_root.clock > 533)) && (_root.clock < 536)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.witch.duplicateMovieClip("witch" + i, _root.getNextHighestDepth(), {_x:585, _y:(Math.random() * 300) + 300});
}
if ((((_root.miniclock > 1) && (_root.clock > 550)) && (_root.clock < 553)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.papaslime.duplicateMovieClip("papaslime" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 554)) && (_root.clock < 557)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll.duplicateMovieClip("troll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 570)) && (_root.clock < 576)) && (!gpause)) {
i++;
_root.slime.duplicateMovieClip("slime" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 570)) && (_root.clock < 576)) && (!gpause)) {
i++;
_root.slime.duplicateMovieClip("slime" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 590)) && (_root.clock < 592)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.slimelord.duplicateMovieClip("slimelord" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 610)) && (_root.clock < 616)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 613)) && (_root.clock < 618)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.mage.duplicateMovieClip("mage" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 630)) && (_root.clock < 636)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.mage.duplicateMovieClip("mage" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 633)) && (_root.clock < 638)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.witch.duplicateMovieClip("witch" + i, _root.getNextHighestDepth(), {_x:585, _y:(Math.random() * 300) + 300});
}
if ((((_root.miniclock > 1) && (_root.clock > 650)) && (_root.clock < 654)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll.duplicateMovieClip("troll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 654)) && (_root.clock < 658)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll2.duplicateMovieClip("troll2" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 670)) && (_root.clock < 674)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.papaslime.duplicateMovieClip("papaslime" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 672)) && (_root.clock < 677)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.ninja.duplicateMovieClip("ninja" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 300) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 690)) && (_root.clock < 694)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.cupcakerider.duplicateMovieClip("cupcakerider" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 692)) && (_root.clock < 698)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.mage.duplicateMovieClip("mage" + i, _root.getNextHighestDepth(), {_x:585, _y:(Math.random() * 300) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 714)) && (_root.clock < 718)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 716)) && (_root.clock < 719)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.ninja.duplicateMovieClip("ninja" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 300) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 710)) && (_root.clock < 716)) && (!gpause)) {
i++;
_root.slime.duplicateMovieClip("slime" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 300) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 730)) && (_root.clock < 736)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 733)) && (_root.clock < 738)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.witch.duplicateMovieClip("witch" + i, _root.getNextHighestDepth(), {_x:585, _y:(Math.random() * 300) + 300});
}
if ((((_root.miniclock > 1) && (_root.clock > 750)) && (_root.clock < 754)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll.duplicateMovieClip("troll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 754)) && (_root.clock < 759)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.ninja.duplicateMovieClip("ninja" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 300) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 770)) && (_root.clock < 774)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll.duplicateMovieClip("troll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 774)) && (_root.clock < 779)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.ninja.duplicateMovieClip("ninja" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 300) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 790)) && (_root.clock < 792)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.jellycake.duplicateMovieClip("jellycake" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 810)) && (_root.clock < 815)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.papaslime.duplicateMovieClip("papaslime" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 815)) && (_root.clock < 820)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll.duplicateMovieClip("troll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 830)) && (_root.clock < 833)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.cupcakerider.duplicateMovieClip("cupcakerider" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 830)) && (_root.clock < 835)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.witch.duplicateMovieClip("witch" + i, _root.getNextHighestDepth(), {_x:0, _y:(Math.random() * 300) + 300});
}
if ((((_root.miniclock > 1) && (_root.clock > 850)) && (_root.clock < 856)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll2.duplicateMovieClip("troll2" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 850)) && (_root.clock < 853)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.witch.duplicateMovieClip("witch" + i, _root.getNextHighestDepth(), {_x:585, _y:(Math.random() * 300) + 300});
}
if ((((_root.miniclock > 1) && (_root.clock > 870)) && (_root.clock < 873)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 870)) && (_root.clock < 874)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.ninja.duplicateMovieClip("ninja" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 895)) && (_root.clock < 901)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.papaslime.duplicateMovieClip("papaslime" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 890)) && (_root.clock < 896)) && (!gpause)) {
i++;
_root.slime.duplicateMovieClip("slime" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 910)) && (_root.clock < 916)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.mage.duplicateMovieClip("mage" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 910)) && (_root.clock < 913)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.cupcakerider.duplicateMovieClip("cupcakerider" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 934)) && (_root.clock < 938)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.mage.duplicateMovieClip("mage" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 930)) && (_root.clock < 937)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.ninja.duplicateMovieClip("ninja" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 954)) && (_root.clock < 958)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.cupcakerider.duplicateMovieClip("cupcakerider" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 950)) && (_root.clock < 957)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll.duplicateMovieClip("troll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 970)) && (_root.clock < 972)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.babytroll.duplicateMovieClip("babytroll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 971)) && (_root.clock < 973)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll.duplicateMovieClip("troll" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 972)) && (_root.clock < 974)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.troll2.duplicateMovieClip("troll2" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 974)) && (_root.clock < 976)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.cupcakerider.duplicateMovieClip("cupcakerider" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 972)) && (_root.clock < 974)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.mage.duplicateMovieClip("mage" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 970)) && (_root.clock < 972)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.ninja.duplicateMovieClip("ninja" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 972)) && (_root.clock < 974)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.witch.duplicateMovieClip("witch" + i, _root.getNextHighestDepth(), {_x:0, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 975)) && (_root.clock < 977)) && (!gpause)) {
i++;
_root.slime.duplicateMovieClip("slime" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 974)) && (_root.clock < 976)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.papaslime.duplicateMovieClip("papaslime" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((((_root.miniclock > 1) && (_root.clock > 990)) && (_root.clock < 992)) && (!gpause)) {
i++;
_root.enemys = _root.enemys + 1;
_root.greenfist.duplicateMovieClip("greenfist" + i, _root.getNextHighestDepth(), {_x:Math.random() * 580, _y:(Math.random() * 30) + 700});
}
if ((_root.miniclock > 1) && (!gpause)) {
_root.tenclock = _root.tenclock - 1;
}
if ((_root.miniclock > 1) && (!gpause)) {
_root.clock = _root.clock + 1;
_root.miniclock = 0;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
_root.gametimer = _root.gametimer + 1;
}
if ((_root.tenclock < 1) && (!gpause)) {
_root.wave = _root.wave + 1;
_root.tenclock = 20;
}
if (((((_root.wave > 9) && (_root.wave < 11)) && (_root.enemys > 0)) && (!gpause)) && (_root.clock > 192)) {
_root.tenclock = 18;
_root.clock = 192;
}
if ((((_root.wave > 19) && (_root.wave < 21)) && (_root.enemys > 0)) && ((!gpause) & (_root.clock > 392))) {
_root.tenclock = 18;
_root.clock = 392;
}
if ((((_root.wave > 29) && (_root.wave < 31)) && (_root.enemys > 0)) && ((!gpause) & (_root.clock > 592))) {
_root.tenclock = 18;
_root.clock = 592;
}
if ((((_root.wave > 39) && (_root.wave < 41)) && (_root.enemys > 0)) && ((!gpause) & (_root.clock > 792))) {
_root.tenclock = 18;
_root.clock = 792;
}
if ((((_root.wave > 49) && (_root.wave < 51)) && (_root.enemys > 0)) && ((!gpause) & (_root.clock > 992))) {
_root.tenclock = 18;
_root.clock = 992;
}
if (_root.deathscreen._currentframe > 1) {
unloadMovie (this);
removeMovieClip(this);
}
}
Instance of Symbol 510 MovieClip "cupcakerider" in Frame 2
onClipEvent (load) {
castlepositionrandomiser = Math.random(200) * 200;
charboundry = false;
letmove = true;
randomnumber = 0;
v = _root.potnum;
gpause = false;
ctime = 0;
c = _root.crystalstally;
exphits = false;
movmentspeed = 0.65;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.stoper) && (!gpause)) {
letmove = false;
}
if ((this.cupcakeriderinside.cupcakeriderfrozen.frozentimer < 99) && (!gpause)) {
letmove = false;
}
if ((this.cupcakeriderinside.cupcakeriderfrozen.frozentimer > 99) && (!gpause)) {
letmove = true;
}
if (_root.char.hitTest(this) && (!gpause)) {
charboundry = true;
}
if ((!_root.char.hitTest(this)) && (!gpause)) {
charboundry = false;
}
if ((((this._x < _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -10;
}
if ((((this._x > _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 10;
}
if ((((this._y < _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._x;
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((((this._x < (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -10;
}
if ((((this._x > (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 10;
}
if ((((this._y < _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((this.cupcakeriderinside.health < 1) && (!gpause)) {
this.gotoAndStop(2);
_root.meat = _root.meat + 20;
_root.enemys = _root.enemys - 1;
_root.enemys.text = _root.enemys.text - 1;
_root.expbar.bar._x = _root.expbar.bar._x + 15;
}
if (this.bloodexploasion._currentframe > 12) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
if ((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation < 1)) && (!gpause)) {
this._y = this._y + 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 89)) && (_root.leafcutspell340031.rotation < 91)) && (!gpause)) {
this._x = this._x - 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 179)) && (_root.leafcutspell340031.rotation < 181)) && (!gpause)) {
this._y = this._y - 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 269)) && (_root.leafcutspell340031.rotation < 271)) && (!gpause)) {
this._x = this._x + 4;
}
if ((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation < 1)) && (!gpause)) {
this._y = this._y + 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 89)) && (_root.crushspell31002.rotation < 91)) && (!gpause)) {
this._x = this._x - 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 179)) && (_root.crushspell31002.rotation < 181)) && (!gpause)) {
this._y = this._y - 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 269)) && (_root.crushspell31002.rotation < 271)) && (!gpause)) {
this._x = this._x + 4;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this._y = this._y + 3;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this._y = _root.cyclonespell31008._y;
this._x = _root.cyclonespell31008._x;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
movmentspeed = 0.2;
}
if ((!this.hitTest(_root.firetrapspell320052.firetrapdamage)) && (!gpause)) {
movmentspeed = 1;
}
}
Instance of Symbol 513 MovieClip "defendtext" in Frame 2
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
if (_root.deathscreen._currentframe > 1) {
unloadMovie (this);
removeMovieClip(this);
}
if (this._currentframe > 35) {
unloadMovie (this);
}
}
Instance of Symbol 517 MovieClip "worker" in Frame 2
onClipEvent (load) {
health = 100;
harvest = 0;
harvestfull = false;
letmove = true;
gpause = false;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.stoper) && (!gpause)) {
letmove = false;
}
if (((_root.jellymine.hitTest(this) && (letmove)) && (!harvestfull)) && (!gpause)) {
harvest++;
}
if (((_root.jellycastle.hitTest(this) && (letmove)) && (harvestfull)) && (!gpause)) {
harvest = harvest - 10;
_root.meat = _root.meat + 2;
}
if ((harvest > 10) && (!gpause)) {
harvestfull = true;
}
if ((harvest < 10) && (!gpause)) {
harvestfull = false;
}
if ((((this._x < _root.jellymine._x) && (!harvestfull)) && (letmove)) && (!gpause)) {
this._xscale = -100;
}
if ((((this._x > _root.jellymine._x) && (!harvestfull)) && (letmove)) && (!gpause)) {
this._x--;
this._xscale = 100;
}
if ((((this._y < _root.jellymine._y) && (!harvestfull)) && (letmove)) && (!gpause)) {
this._x;
this._y++;
}
if ((((this._y > _root.jellymine._y) && (!harvestfull)) && (letmove)) && (!gpause)) {
this._y--;
}
if ((((this._x < _root.jellycastle._x) && (harvestfull)) && (letmove)) && (!gpause)) {
this._x++;
this._xscale = -100;
}
if (((this._x > _root.jellycastle._x) && (harvestfull)) && (!gpause)) {
this._x--;
this._xscale = 100;
}
if ((((this._y < _root.jellycastle._y) && (harvestfull)) && (letmove)) && (!gpause)) {
this._y++;
}
if ((((this._y > _root.jellycastle._y) && (harvestfull)) && (letmove)) && (!gpause)) {
this._y--;
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 528 MovieClip "bloodup" in Frame 2
onClipEvent (load) {
gpause = false;
blah = false;
}
onClipEvent (enterFrame) {
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 1)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 1)) {
this.play();
}
if ((!this.hitTest(_root.stoper)) && (!blah)) {
this.gotoAndPlay(2);
blah = true;
}
if (this._currentframe > 15) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 528 MovieClip "bloodright" in Frame 2
onClipEvent (load) {
gpause = false;
blah = false;
}
onClipEvent (enterFrame) {
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 1)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 1)) {
this.play();
}
if ((!this.hitTest(_root.stoper)) && (!blah)) {
this.gotoAndPlay(2);
blah = true;
}
if (this._currentframe > 15) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 528 MovieClip "bloodleft" in Frame 2
onClipEvent (load) {
blah = false;
gpause = false;
}
onClipEvent (enterFrame) {
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 1)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 1)) {
this.play();
}
if ((!this.hitTest(_root.stoper)) && (!blah)) {
this.gotoAndPlay(2);
blah = true;
}
if (this._currentframe > 15) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 528 MovieClip "blooddown" in Frame 2
onClipEvent (load) {
blah = false;
gpause = false;
}
onClipEvent (enterFrame) {
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 1)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 1)) {
this.play();
}
if ((!this.hitTest(_root.stoper)) && (!blah)) {
this.gotoAndPlay(2);
blah = true;
}
if (this._currentframe > 15) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 535 MovieClip "directions" in Frame 2
onClipEvent (enterFrame) {
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 550 MovieClip "icespikespell" in Frame 2
onClipEvent (load) {
gpause = false;
letmove = true;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 1)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 1)) {
this.play();
}
if (this.hitTest(_root.stoper)) {
letmove = false;
this.gotoAndStop(1);
}
if (this._currentframe > 40) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 561 MovieClip "crushspell" in Frame 2
onClipEvent (load) {
gpause = false;
letmove = true;
if ((_root.directions._currentframe < 2) && (!gpause)) {
this._rotation = 0;
this.rotation = 0;
}
if (((_root.directions._currentframe > 1) && (_root.directions._currentframe < 3)) && (!gpause)) {
this._rotation = 180;
this.rotation = 180;
}
if (((_root.directions._currentframe > 2) && (_root.directions._currentframe < 4)) && (!gpause)) {
this._rotation = 90;
this.rotation = 90;
}
if (((_root.directions._currentframe > 3) && (_root.directions._currentframe < 5)) && (!gpause)) {
this._rotation = 270;
this.rotation = 270;
}
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 1)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 1)) {
this.play();
}
if (this.hitTest(_root.stoper)) {
letmove = false;
this.gotoAndStop(1);
}
if (gpause) {
this.stop;
}
if (this._currentframe > 26) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 593 MovieClip "blizzardspell" in Frame 2
onClipEvent (load) {
gpause = false;
lauched = false;
}
on (press) {
if ((this._currentframe > 1) && (this._currentframe < 3)) {
launched = true;
this.gotoAndPlay(3);
}
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 2)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 2)) {
this.play();
}
if ((!_root.stoper.hitTest(this)) && (this._currentframe < 2)) {
this.gotoAndStop(2);
}
if (((this._currentframe > 1) && (this._currentframe < 3)) && (!launched)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if (this._currentframe > 43) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 635 MovieClip "typhoonspell" in Frame 2
onClipEvent (load) {
lauched = false;
gpause = false;
}
on (press) {
if ((this._currentframe > 1) && (this._currentframe < 3)) {
launched = true;
this.gotoAndPlay(3);
}
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 2)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 2)) {
this.play();
}
if ((!_root.stoper.hitTest(this)) && (this._currentframe < 2)) {
this.gotoAndStop(2);
}
if (((this._currentframe > 1) && (this._currentframe < 3)) && (!launched)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if (this._currentframe > 150) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 652 MovieClip "cyclonespell" in Frame 2
onClipEvent (load) {
gpause = false;
lauched = false;
}
on (press) {
if ((this._currentframe > 1) && (this._currentframe < 3)) {
launched = true;
this.gotoAndPlay(3);
}
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 2)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 2)) {
this.play();
}
if ((!_root.stoper.hitTest(this)) && (this._currentframe < 2)) {
this.gotoAndStop(2);
}
if (((this._currentframe > 1) && (this._currentframe < 3)) && (!launched)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if (this._currentframe > 60) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 660 MovieClip "minorhealspell" in Frame 2
onClipEvent (load) {
gpause = false;
letmove = true;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 1)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 1)) {
this.play();
}
if (this.hitTest(_root.stoper)) {
letmove = false;
this.gotoAndStop(1);
}
if (this.hitTest(_root.char)) {
this._x = _root.char._x;
this._y = _root.char._y + 5;
}
if (this._currentframe > 25) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 679 MovieClip "thornsspell" in Frame 2
onClipEvent (load) {
gpause = false;
letmove = true;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 1)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 1)) {
this.play();
}
if (this.hitTest(_root.stoper)) {
letmove = false;
this.gotoAndStop(1);
}
if (gpause) {
this.stop;
}
if (this.hitTest(_root.char)) {
this._x = _root.char._x;
this._y = _root.char._y + 5;
}
if (this._currentframe > 55) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 686 MovieClip "fireburstspell" in Frame 2
onClipEvent (load) {
gpause = false;
letmove = true;
if ((_root.directions._currentframe < 2) && (!gpause)) {
this._rotation = 90;
}
if (((_root.directions._currentframe > 1) && (_root.directions._currentframe < 3)) && (!gpause)) {
this._rotation = 270;
}
if (((_root.directions._currentframe > 2) && (_root.directions._currentframe < 4)) && (!gpause)) {
this._rotation = 180;
}
if (((_root.directions._currentframe > 3) && (_root.directions._currentframe < 5)) && (!gpause)) {
this._rotation = 0;
}
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 1)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 1)) {
this.play();
}
if (this.hitTest(_root.stoper)) {
letmove = false;
this.gotoAndStop(1);
}
if (this._currentframe > 40) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 696 MovieClip "firewalkspell" in Frame 2
onClipEvent (load) {
gpause = false;
letmove = true;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 1)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 1)) {
this.play();
}
if (this.hitTest(_root.stoper)) {
letmove = false;
this.gotoAndStop(1);
}
if (this._currentframe > 115) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 724 MovieClip "firerainspell" in Frame 2
onClipEvent (load) {
lauched = false;
gpause = false;
}
on (press) {
if ((this._currentframe > 1) && (this._currentframe < 3)) {
launched = true;
this.gotoAndPlay(3);
}
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 2)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 2)) {
this.play();
}
if ((!_root.stoper.hitTest(this)) && (this._currentframe < 2)) {
this.gotoAndStop(2);
}
if (((this._currentframe > 1) && (this._currentframe < 3)) && (!launched)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if (this._currentframe > 77) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 746 MovieClip "vinewhipspell" in Frame 2
onClipEvent (load) {
gpause = false;
letmove = true;
if ((_root.directions._currentframe < 2) && (!gpause)) {
this._rotation = 0;
}
if (((_root.directions._currentframe > 1) && (_root.directions._currentframe < 3)) && (!gpause)) {
this._rotation = 180;
}
if (((_root.directions._currentframe > 2) && (_root.directions._currentframe < 4)) && (!gpause)) {
this._rotation = 90;
}
if (((_root.directions._currentframe > 3) && (_root.directions._currentframe < 5)) && (!gpause)) {
this._rotation = 270;
}
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 1)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 1)) {
this.play();
}
if (this.hitTest(_root.stoper)) {
letmove = false;
this.gotoAndStop(1);
}
if (this._currentframe > 20) {
removeMovieClip(this);
}
if (this.hitTest(_root.char)) {
this._x = _root.char._x;
this._y = _root.char._y;
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 757 MovieClip "barkarmorspell" in Frame 2
onClipEvent (load) {
gpause = false;
letmove = true;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((this._currentframe > 3) && (this._currentframe < 5)) {
_root.dodgechancehider = _root.dodgechance;
}
if ((this._currentframe > 9) && (this._currentframe < 110)) {
_root.dodgechance = 100;
}
if ((this._currentframe > 109) && (this._currentframe < 114)) {
_root.dodgechance = _root.dodgechancehider;
}
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 1)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 1)) {
this.play();
}
if (this.hitTest(_root.stoper)) {
letmove = false;
this.gotoAndStop(1);
}
if (this.hitTest(_root.char)) {
this._x = _root.char._x;
this._y = _root.char._y;
}
if (this._currentframe > 116) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 766 MovieClip "leafcutspell" in Frame 2
onClipEvent (load) {
gpause = false;
letmove = true;
if (_root.directions._currentframe < 2) {
this._rotation = 0;
this.rotation = 0;
}
if ((_root.directions._currentframe > 1) && (_root.directions._currentframe < 3)) {
this._rotation = 180;
this.rotation = 180;
}
if ((_root.directions._currentframe > 2) && (_root.directions._currentframe < 4)) {
this._rotation = 90;
this.rotation = 90;
}
if ((_root.directions._currentframe > 3) && (_root.directions._currentframe < 5)) {
this._rotation = 270;
this.rotation = 270;
}
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 1)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 1)) {
this.play();
}
if (this.hitTest(_root.stoper)) {
letmove = false;
this.gotoAndStop(1);
}
if (gpause) {
this.stop;
}
if (this._currentframe > 10) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 776 MovieClip "squirtspell" in Frame 2
onClipEvent (load) {
gpause = false;
letmove = true;
if ((_root.directions._currentframe < 2) && (!gpause)) {
this._rotation = 0;
}
if (((_root.directions._currentframe > 1) && (_root.directions._currentframe < 3)) && (!gpause)) {
this._rotation = 180;
}
if (((_root.directions._currentframe > 2) && (_root.directions._currentframe < 4)) && (!gpause)) {
this._rotation = 90;
}
if (((_root.directions._currentframe > 3) && (_root.directions._currentframe < 5)) && (!gpause)) {
this._rotation = 270;
}
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 1)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 1)) {
this.play();
}
if (this.hitTest(_root.stoper)) {
letmove = false;
this.gotoAndStop(1);
}
if (this._currentframe > 35) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 778 MovieClip "timingdevice" in Frame 2
onClipEvent (enterFrame) {
if (_root.deathscreen._currentframe > 1) {
unloadMovie (this);
removeMovieClip(this);
}
}
Instance of Symbol 786 MovieClip "pausegame" in Frame 2
onClipEvent (enterFrame) {
this.swapDepths(9999);
if (_root.deathscreen._currentframe > 1) {
unloadMovie (this);
removeMovieClip(this);
}
}
Instance of Symbol 810 MovieClip "manabar" in Frame 2
onClipEvent (enterFrame) {
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 828 MovieClip "jellycastle" in Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.jellycastlehealth > 800) {
this.gotoAndStop(1);
}
if ((_root.jellycastlehealth < 800) && (_root.jellycastlehealth > 600)) {
this.gotoAndStop(2);
}
if ((_root.jellycastlehealth < 600) && (_root.jellycastlehealth > 400)) {
this.gotoAndStop(3);
}
if ((_root.jellycastlehealth < 400) && (_root.jellycastlehealth > 200)) {
this.gotoAndStop(4);
}
if (_root.jellycastlehealth < 200) {
this.gotoAndStop(5);
}
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 835 MovieClip "castlehealthbar" in Frame 2
onClipEvent (enterFrame) {
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 860 MovieClip "music" in Frame 2
onClipEvent (enterFrame) {
if (_root._currentframe < 2) {
this.gotoAndStop(2);
}
if (_root.deathscreen._currentframe > 1) {
this.gotoAndStop(2);
unloadMovie (this);
removeMovieClip(this);
}
}
Instance of Symbol 943 MovieClip "magicmenu" in Frame 2
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
if (_root.deathscreen._currentframe > 1) {
unloadMovie (this);
removeMovieClip(this);
}
}
Instance of Symbol 1012 MovieClip "upgradespage" in Frame 2
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
if (_root.deathscreen._currentframe > 1) {
unloadMovie (this);
removeMovieClip(this);
}
}
Instance of Symbol 1053 MovieClip "water" in Frame 2
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 1082 MovieClip "fire" in Frame 2
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 1106 MovieClip "nature" in Frame 2
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 1124 MovieClip "pointer" in Frame 2
onClipEvent (load) {
pointertimer = 2000;
stopper = true;
}
onClipEvent (enterFrame) {
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
if (_root.expbar.bar.hitTest(_root.expbar.expbarend)) {
pointertimer = 2000;
}
if (pointertimer > 0) {
pointertimer = pointertimer - 1;
}
if ((pointertimer > 0) && (_root.magicmenu.coverformagicmenu._currentframe > 1)) {
pointertimer = 0;
}
if (pointertimer < 2) {
this.gotoAndPlay(1);
}
}
Instance of Symbol 1152 MovieClip "spelltext" in Frame 2
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
if (_root.deathscreen._currentframe > 1) {
unloadMovie (this);
removeMovieClip(this);
}
}
Instance of Symbol 1170 MovieClip "flamelancespell" in Frame 2
onClipEvent (load) {
gpause = false;
letmove = true;
if (_root.directions._currentframe < 2) {
this._rotation = 0;
}
if ((_root.directions._currentframe > 1) && (_root.directions._currentframe < 3)) {
this._rotation = 180;
}
if ((_root.directions._currentframe > 2) && (_root.directions._currentframe < 4)) {
this._rotation = 90;
}
if ((_root.directions._currentframe > 3) && (_root.directions._currentframe < 5)) {
this._rotation = 270;
}
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 1)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 1)) {
this.play();
}
if (this.hitTest(_root.stoper)) {
letmove = false;
this.gotoAndStop(1);
}
if (this._currentframe > 20) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 1194 MovieClip "firetrapspell" in Frame 2
onClipEvent (load) {
lauched = false;
gpause = false;
}
on (press) {
if ((this._currentframe > 1) && (this._currentframe < 3)) {
launched = true;
this.gotoAndPlay(3);
}
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 2)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 2)) {
this.play();
}
if ((!_root.stoper.hitTest(this)) && (this._currentframe < 2)) {
this.gotoAndStop(2);
}
if (((this._currentframe > 1) && (this._currentframe < 3)) && (!launched)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if (this._currentframe > 137) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 1224 MovieClip "lustspell" in Frame 2
onClipEvent (load) {
lauched = false;
gpause = false;
}
on (press) {
if ((this._currentframe > 1) && (this._currentframe < 3)) {
launched = true;
this.gotoAndPlay(3);
}
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 2)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 2)) {
this.play();
}
if ((!_root.stoper.hitTest(this)) && (this._currentframe < 2)) {
this.gotoAndStop(2);
}
if (((this._currentframe > 1) && (this._currentframe < 3)) && (!launched)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if (this._currentframe > 85) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 1237 MovieClip "lifetreespell" in Frame 2
onClipEvent (load) {
lauched = false;
gpause = false;
}
on (press) {
if ((this._currentframe > 1) && (this._currentframe < 3)) {
launched = true;
this.gotoAndPlay(3);
}
}
onClipEvent (enterFrame) {
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 2)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 2)) {
this.play();
}
if (this.hitTest(_root.stoper)) {
letmove = false;
this.gotoAndStop(1);
}
this.swapDepths(_y);
if ((!_root.stoper.hitTest(this)) && (this._currentframe < 2)) {
this.gotoAndStop(2);
}
if (((this._currentframe > 1) && (this._currentframe < 3)) && (!launched)) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
if (this._currentframe > 280) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 1269 MovieClip "troll" in Frame 2
onClipEvent (load) {
castlepositionrandomiser = Math.random(200) * 197;
charboundry = false;
letmove = true;
randomnumber = 0;
v = _root.potnum;
gpause = false;
ctime = 0;
c = _root.crystalstally;
exphits = false;
movmentspeed = 0.5;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.stoper) && (!gpause)) {
letmove = false;
}
if ((this.trollinside.trollfrozen.frozentimer < 99) && (!gpause)) {
letmove = false;
}
if ((this.trollinside.trollfrozen.frozentimer > 99) && (!gpause)) {
letmove = true;
}
if (_root.char.hitTest(this) && (!gpause)) {
charboundry = true;
}
if ((!_root.char.hitTest(this)) && (!gpause)) {
charboundry = false;
}
if ((((this._x < _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -20;
}
if ((((this._x > _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 20;
}
if ((((this._y < _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._x;
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((((this._x < (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -20;
}
if ((((this._x > (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 20;
}
if ((((this._y < _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((this.trollinside.health < 1) && (!gpause)) {
this.gotoAndStop(2);
_root.meat = _root.meat + 10;
_root.enemys = _root.enemys - 1;
_root.enemys.text = _root.enemys.text - 1;
_root.expbar.bar._x = _root.expbar.bar._x + 14;
}
if (this.bloodexploasion._currentframe > 12) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
if ((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation < 1)) && (!gpause)) {
this._y = this._y + 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 89)) && (_root.leafcutspell340031.rotation < 91)) && (!gpause)) {
this._x = this._x - 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 179)) && (_root.leafcutspell340031.rotation < 181)) && (!gpause)) {
this._y = this._y - 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 269)) && (_root.leafcutspell340031.rotation < 271)) && (!gpause)) {
this._x = this._x + 4;
}
if ((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation < 1)) && (!gpause)) {
this._y = this._y + 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 89)) && (_root.crushspell31002.rotation < 91)) && (!gpause)) {
this._x = this._x - 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 179)) && (_root.crushspell31002.rotation < 181)) && (!gpause)) {
this._y = this._y - 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 269)) && (_root.crushspell31002.rotation < 271)) && (!gpause)) {
this._x = this._x + 4;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this._y = this._y + 3;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this._y = _root.cyclonespell31008._y;
this._x = _root.cyclonespell31008._x;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
movmentspeed = 0.2;
}
if ((!this.hitTest(_root.firetrapspell320052.firetrapdamage)) && (!gpause)) {
movmentspeed = 1;
}
}
Instance of Symbol 1300 MovieClip "troll2" in Frame 2
onClipEvent (load) {
castlepositionrandomiser = Math.random(200) * 200;
charboundry = false;
letmove = true;
randomnumber = 0;
gpause = false;
ctime = 0;
c = _root.crystalstally;
exphits = false;
movmentspeed = 1;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.stoper) && (!gpause)) {
letmove = false;
}
if ((this.troll2inside.troll2frozen.frozentimer < 99) && (!gpause)) {
letmove = false;
}
if ((this.troll2inside.troll2frozen.frozentimer > 99) && (!gpause)) {
letmove = true;
}
if ((_root.char.hitTest(this) && (!gpause)) && (!dead)) {
charboundry = true;
}
if (((!_root.char.hitTest(this)) && (!gpause)) && (!dead)) {
charboundry = false;
}
if ((((this._x < _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -20;
}
if ((((this._x > _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 20;
}
if ((((this._y < _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._x;
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((((this._x < (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -20;
}
if ((((this._x > (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 20;
}
if ((((this._y < _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((this.troll2inside.health < 1) && (!gpause)) {
this.gotoAndStop(2);
_root.meat = _root.meat + 15;
_root.enemys = _root.enemys - 1;
_root.enemys.text = _root.enemys.text - 1;
_root.expbar.bar._x = _root.expbar.bar._x + 18;
}
if (this.bloodexploasion._currentframe > 12) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
if ((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation < 1)) && (!gpause)) {
this._y = this._y + 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 89)) && (_root.leafcutspell340031.rotation < 91)) && (!gpause)) {
this._x = this._x - 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 179)) && (_root.leafcutspell340031.rotation < 181)) && (!gpause)) {
this._y = this._y - 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 269)) && (_root.leafcutspell340031.rotation < 271)) && (!gpause)) {
this._x = this._x + 4;
}
if ((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation < 1)) && (!gpause)) {
this._y = this._y + 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 89)) && (_root.crushspell31002.rotation < 91)) && (!gpause)) {
this._x = this._x - 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 179)) && (_root.crushspell31002.rotation < 181)) && (!gpause)) {
this._y = this._y - 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 269)) && (_root.crushspell31002.rotation < 271)) && (!gpause)) {
this._x = this._x + 4;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this._y = this._y + 3;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this._y = _root.cyclonespell31008._y;
this._x = _root.cyclonespell31008._x;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
movmentspeed = 0.2;
}
if ((!this.hitTest(_root.firetrapspell320052.firetrapdamage)) && (!gpause)) {
movmentspeed = 1;
}
}
Instance of Symbol 1330 MovieClip "ninja" in Frame 2
onClipEvent (load) {
castlepositionrandomiser = Math.random(200) * 200;
charboundry = false;
letmove = true;
randomnumber = 0;
v = _root.potnum;
gpause = false;
ctime = 0;
c = _root.crystalstally;
exphits = false;
movmentspeed = 10;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.stoper) && (!gpause)) {
letmove = false;
}
if ((this.ninjainside.ninjafrozen.frozentimer < 99) && (!gpause)) {
letmove = false;
}
if ((this.ninjainside.ninjafrozen.frozentimer > 99) && (!gpause)) {
letmove = true;
}
if (_root.char.hitTest(this) && (!gpause)) {
charboundry = true;
}
if ((!_root.char.hitTest(this)) && (!gpause)) {
charboundry = false;
}
if ((((this._x < _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -75;
}
if ((((this._x > _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 75;
}
if ((((this._y < _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._x;
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((((this._x < (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -75;
}
if ((((this._x > (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 75;
}
if ((((this._y < _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((this.ninjainside.health < 1) && (!gpause)) {
this.gotoAndStop(2);
_root.meat = _root.meat + 7;
_root.enemys = _root.enemys - 1;
_root.enemys.text = _root.enemys.text - 1;
_root.expbar.bar._x = _root.expbar.bar._x + 10;
}
if (this.bloodexploasion._currentframe > 12) {
removeMovieClip(this);
}
if (this.hitTest(_root.deathscreen)) {
removeMovieClip(this);
}
if ((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation < 1)) && (!gpause)) {
this._y = this._y + 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 89)) && (_root.leafcutspell340031.rotation < 91)) && (!gpause)) {
this._x = this._x - 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 179)) && (_root.leafcutspell340031.rotation < 181)) && (!gpause)) {
this._y = this._y - 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 269)) && (_root.leafcutspell340031.rotation < 271)) && (!gpause)) {
this._x = this._x + 4;
}
if ((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation < 1)) && (!gpause)) {
this._y = this._y + 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 89)) && (_root.crushspell31002.rotation < 91)) && (!gpause)) {
this._x = this._x - 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 179)) && (_root.crushspell31002.rotation < 181)) && (!gpause)) {
this._y = this._y - 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 269)) && (_root.crushspell31002.rotation < 271)) && (!gpause)) {
this._x = this._x + 4;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this._y = this._y + 3;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this._y = _root.cyclonespell31008._y;
this._x = _root.cyclonespell31008._x;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
movmentspeed = 0.2;
}
if ((!this.hitTest(_root.firetrapspell320052.firetrapdamage)) && (!gpause)) {
movmentspeed = 1;
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 1354 MovieClip "babytroll" in Frame 2
onClipEvent (load) {
dead = false;
castlepositionrandomiser = Math.random(200) * 200;
charboundry = false;
letmove = true;
randomnumber = 0;
v = _root.potnum;
gpause = false;
ctime = 0;
c = _root.crystalstally;
exphits = false;
movmentspeed = 1;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.stoper) && (!gpause)) {
letmove = false;
}
if ((this.babytrollinside.babytrollfrozen.frozentimer < 99) && (!gpause)) {
letmove = false;
}
if ((this.babytrollinside.babytrollfrozen.frozentimer > 99) && (!gpause)) {
letmove = true;
}
if (_root.char.hitTest(this) && (!gpause)) {
charboundry = true;
}
if ((!_root.char.hitTest(this)) && (!gpause)) {
charboundry = false;
}
if ((((this._x < _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -10;
}
if ((((this._x > _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 10;
}
if ((((this._y < _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._x;
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((((this._x < (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -10;
}
if ((((this._x > (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 10;
}
if ((((this._y < _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((this.babytrollinside.health < 1) && (!gpause)) {
this.gotoAndStop(2);
_root.meat = _root.meat + 2;
_root.enemys = _root.enemys - 1;
_root.enemys.text = _root.enemys.text - 1;
_root.expbar.bar._x = _root.expbar.bar._x + 6;
}
if (this.bloodexploasion._currentframe > 12) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
if ((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation < 1)) && (!gpause)) {
this._y = this._y + 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 89)) && (_root.leafcutspell340031.rotation < 91)) && (!gpause)) {
this._x = this._x - 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 179)) && (_root.leafcutspell340031.rotation < 181)) && (!gpause)) {
this._y = this._y - 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 269)) && (_root.leafcutspell340031.rotation < 271)) && (!gpause)) {
this._x = this._x + 4;
}
if ((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation < 1)) && (!gpause)) {
this._y = this._y + 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 89)) && (_root.crushspell31002.rotation < 91)) && (!gpause)) {
this._x = this._x - 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 179)) && (_root.crushspell31002.rotation < 181)) && (!gpause)) {
this._y = this._y - 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 269)) && (_root.crushspell31002.rotation < 271)) && (!gpause)) {
this._x = this._x + 4;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this._y = this._y + 3;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this._y = _root.cyclonespell31008._y;
this._x = _root.cyclonespell31008._x;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
movmentspeed = 0.2;
}
if ((!this.hitTest(_root.firetrapspell320052.firetrapdamage)) && (!gpause)) {
movmentspeed = 1;
}
}
Instance of Symbol 1359 MovieClip "grave" in Frame 2
onClipEvent (load) {
this.deathclocker = 30;
}
onClipEvent (enterFrame) {
this.swapDepths(_root.getNextHighestDepth());
if (((_root.timingdevice._currentframe > 19) && (!this.hitTest(_root.stoper))) && (_root.pausegame._currentframe < 2)) {
this.deathclocker = this.deathclocker - 1;
}
if (this.hitTest(_root.stoper)) {
this.gotoAndStop(1);
}
if (this.hitTest(_root.char) && (this._currentframe > 8)) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 1376 MovieClip "magespell" in Frame 2
onClipEvent (load) {
adjside = _root.char._x - this._x;
oppside = -1 * (_root.char._y - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
damagetimer = 20;
gpause = false;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 1)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 1)) {
this.play();
}
if ((this.hitTest(_root.char) && ((!this.damagetimer) < 1)) && (!gpause)) {
_root.charhealth = _root.charhealth - 3;
this.damagetimer = 0;
}
if (this._currentframe > 38) {
removeMovieClip(this);
}
if (this.hitTest(_root.stoper)) {
this.gotoAndStop(1);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 1408 MovieClip "witch" in Frame 2
onClipEvent (load) {
randomnumber = 0;
castlepositionrandomiser = Math.random(200) * 198;
charboundry = false;
letmove = true;
randomnumber = 9;
gpause = false;
ctime = 0;
c = _root.crystalstally;
exphits = false;
movmentspeed = 1;
hittinggerm = false;
}
onClipEvent (enterFrame) {
i = randomnumber;
this.swapDepths(_y);
if (this.hitTest(_root.char) && (!gpause)) {
hittinggerm = true;
this.witchinside.gotoAndStop(2);
}
if (((!this.hitTest(_root.char)) && (!this.hitTest(_root.jellycastle))) && (!gpause)) {
hittinggerm = false;
this.witchinside.gotoAndStop(1);
}
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.stoper) && (!gpause)) {
letmove = false;
}
if ((this.witchinside.witchfrozen.frozentimer < 99) && (!gpause)) {
letmove = false;
}
if ((this.witchinside.witchfrozen.frozentimer > 99) && (!gpause)) {
letmove = true;
}
if (_root.char.hitTest(this) && (!gpause)) {
charboundry = true;
}
if ((!_root.char.hitTest(this)) && (!gpause)) {
charboundry = false;
}
if ((((this._x < _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._xscale = -10;
}
if ((((this._x > _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._xscale = 10;
}
if ((((this._y < _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
}
if ((((this._y > _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
}
if ((((this._x < (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -10;
}
if ((((this._x > (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 10;
}
if ((((this._y < _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((this.witchinside.health < 1) && (!gpause)) {
this.gotoAndStop(2);
_root.meat = _root.meat + 2;
_root.enemys = _root.enemys - 1;
_root.enemys.text = _root.enemys.text - 1;
_root.expbar.bar._x = _root.expbar.bar._x + 5;
}
if (this.bloodexploasion._currentframe > 12) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
if ((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation < 1)) && (!gpause)) {
this._y = this._y + 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 89)) && (_root.leafcutspell340031.rotation < 91)) && (!gpause)) {
this._x = this._x - 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 179)) && (_root.leafcutspell340031.rotation < 181)) && (!gpause)) {
this._y = this._y - 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 269)) && (_root.leafcutspell340031.rotation < 271)) && (!gpause)) {
this._x = this._x + 0;
}
if ((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation < 1)) && (!gpause)) {
this._y = this._y + 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 89)) && (_root.crushspell31002.rotation < 91)) && (!gpause)) {
this._x = this._x - 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 179)) && (_root.crushspell31002.rotation < 181)) && (!gpause)) {
this._y = this._y - 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 269)) && (_root.crushspell31002.rotation < 271)) && (!gpause)) {
this._x = this._x + 0;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this._y = this._y + 3;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this._y = _root.cyclonespell31008._y;
this._x = _root.cyclonespell31008._x;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
movmentspeed = 0.2;
}
if ((!this.hitTest(_root.firetrapspell320052.firetrapdamage)) && (!gpause)) {
movmentspeed = 1;
}
if ((this.witchinside.witchattack._currentframe > 30) && (this.witchinside.witchattack._currentframe < 32)) {
randomnumber = Math.round(Math.random(3000) * 4000);
}
if ((this.witchinside.witchattack._currentframe > 51) && (this.witchinside.witchattack._currentframe < 53)) {
_root.witchspell.duplicateMovieClip("witchspell" + i, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
}
Instance of Symbol 1433 MovieClip "witchspell" in Frame 2
onClipEvent (load) {
adjside = _root.char._x - this._x;
oppside = -1 * (_root.char._y - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
damagetimer = 20;
gpause = false;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 1)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 1)) {
this.play();
}
if ((this.hitTest(_root.char) && ((!this.damagetimer) < 1)) && (!gpause)) {
_root.charhealth = _root.charhealth - 6;
this.damagetimer = 0;
}
if (this._currentframe > 38) {
removeMovieClip(this);
}
if (this.hitTest(_root.stoper)) {
this.gotoAndStop(1);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 1463 MovieClip "slime" in Frame 2
onClipEvent (load) {
dead = false;
castlepositionrandomiser = Math.random(200) * 200;
charboundry = false;
letmove = true;
randomnumber = 0;
v = _root.potnum;
gpause = false;
ctime = 0;
c = _root.crystalstally;
exphits = false;
movmentspeed = 1;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.stoper) && (!gpause)) {
letmove = false;
}
if ((this.slimeinside.slimefrozen.frozentimer < 99) && (!gpause)) {
letmove = false;
}
if ((this.slimeinside.slimefrozen.frozentimer > 99) && (!gpause)) {
letmove = true;
}
if (_root.char.hitTest(this) && (!gpause)) {
charboundry = true;
}
if ((!_root.char.hitTest(this)) && (!gpause)) {
charboundry = false;
}
if ((((this._x < _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -10;
}
if ((((this._x > _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 10;
}
if ((((this._y < _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._x;
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((((this._x < (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -10;
}
if ((((this._x > (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 10;
}
if ((((this._y < _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((this.slimeinside.health < 1) && (!gpause)) {
this.gotoAndStop(2);
_root.meat = _root.meat + 2;
_root.expbar.bar._x = _root.expbar.bar._x + 6;
}
if (this.bloodexploasion._currentframe > 12) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
if ((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation < 1)) && (!gpause)) {
this._y = this._y + 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 89)) && (_root.leafcutspell340031.rotation < 91)) && (!gpause)) {
this._x = this._x - 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 179)) && (_root.leafcutspell340031.rotation < 181)) && (!gpause)) {
this._y = this._y - 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 269)) && (_root.leafcutspell340031.rotation < 271)) && (!gpause)) {
this._x = this._x + 4;
}
if ((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation < 1)) && (!gpause)) {
this._y = this._y + 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 89)) && (_root.crushspell31002.rotation < 91)) && (!gpause)) {
this._x = this._x - 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 179)) && (_root.crushspell31002.rotation < 181)) && (!gpause)) {
this._y = this._y - 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 269)) && (_root.crushspell31002.rotation < 271)) && (!gpause)) {
this._x = this._x + 4;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this._y = this._y + 3;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this._y = _root.cyclonespell31008._y;
this._x = _root.cyclonespell31008._x;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
movmentspeed = 0.2;
}
if ((!this.hitTest(_root.firetrapspell320052.firetrapdamage)) && (!gpause)) {
movmentspeed = 1;
}
}
Instance of Symbol 1492 MovieClip "papaslime" in Frame 2
onClipEvent (load) {
dead = false;
castlepositionrandomiser = Math.random(200) * 200;
charboundry = false;
letmove = true;
randomnumber = 0;
v = _root.potnum;
gpause = false;
ctime = 0;
c = _root.crystalstally;
exphits = false;
movmentspeed = 1;
randomnumber = 0;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
i = randomnumber;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.stoper) && (!gpause)) {
letmove = false;
}
if ((this.papaslimeinside.papaslimefrozen.frozentimer < 99) && (!gpause)) {
letmove = false;
}
if ((this.papaslimeinside.papaslimefrozen.frozentimer > 99) && (!gpause)) {
letmove = true;
}
if (_root.char.hitTest(this) && (!gpause)) {
charboundry = true;
}
if ((!_root.char.hitTest(this)) && (!gpause)) {
charboundry = false;
}
if ((((this._x < _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -10;
}
if ((((this._x > _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 10;
}
if ((((this._y < _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._x;
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((((this._x < (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -10;
}
if ((((this._x > (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 10;
}
if ((((this._y < _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((this.papaslimeinside.health < 1) && (!gpause)) {
randomnumber = Math.round(Math.random(8000) * 9000);
_root.slime.duplicateMovieClip("slime" + i, _root.getNextHighestDepth(), {_x:this._x + 20, _y:this._y});
this.gotoAndStop(2);
_root.meat = _root.meat + 2;
_root.enemys = _root.enemys - 1;
_root.enemys.text = _root.enemys.text - 1;
_root.expbar.bar._x = _root.expbar.bar._x + 6;
}
if (this.bloodexploasion._currentframe > 12) {
randomnumber = Math.round(Math.random(8000) * 9000);
_root.slime.duplicateMovieClip("slime" + i, _root.getNextHighestDepth(), {_x:this._x - 20, _y:this._y});
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
if ((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation < 1)) && (!gpause)) {
this._y = this._y + 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 89)) && (_root.leafcutspell340031.rotation < 91)) && (!gpause)) {
this._x = this._x - 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 179)) && (_root.leafcutspell340031.rotation < 181)) && (!gpause)) {
this._y = this._y - 4;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 269)) && (_root.leafcutspell340031.rotation < 271)) && (!gpause)) {
this._x = this._x + 4;
}
if ((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation < 1)) && (!gpause)) {
this._y = this._y + 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 89)) && (_root.crushspell31002.rotation < 91)) && (!gpause)) {
this._x = this._x - 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 179)) && (_root.crushspell31002.rotation < 181)) && (!gpause)) {
this._y = this._y - 4;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 269)) && (_root.crushspell31002.rotation < 271)) && (!gpause)) {
this._x = this._x + 4;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this._y = this._y + 3;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this._y = _root.cyclonespell31008._y;
this._x = _root.cyclonespell31008._x;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
movmentspeed = 0.2;
}
if ((!this.hitTest(_root.firetrapspell320052.firetrapdamage)) && (!gpause)) {
movmentspeed = 1;
}
}
Instance of Symbol 1500 MovieClip in Frame 2
on (rollOver) {
_root.spelltext.gotoAndStop(24);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.deathscreen._currentframe > 1) {
unloadMovie (this);
removeMovieClip(this);
}
}
Instance of Symbol 1500 MovieClip in Frame 2
on (rollOver) {
_root.spelltext.gotoAndStop(20);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.deathscreen._currentframe > 1) {
unloadMovie (this);
removeMovieClip(this);
}
}
Instance of Symbol 1500 MovieClip in Frame 2
on (rollOver) {
_root.spelltext.gotoAndStop(21);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.deathscreen._currentframe > 1) {
unloadMovie (this);
removeMovieClip(this);
}
}
Instance of Symbol 1500 MovieClip in Frame 2
on (rollOver) {
_root.spelltext.gotoAndStop(22);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.deathscreen._currentframe > 1) {
unloadMovie (this);
removeMovieClip(this);
}
}
Instance of Symbol 1500 MovieClip in Frame 2
on (rollOver) {
_root.spelltext.gotoAndStop(23);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.deathscreen._currentframe > 1) {
unloadMovie (this);
removeMovieClip(this);
}
}
Instance of Symbol 1500 MovieClip in Frame 2
on (rollOver) {
_root.spelltext.gotoAndStop(25);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.deathscreen._currentframe > 1) {
unloadMovie (this);
removeMovieClip(this);
}
}
Instance of Symbol 1500 MovieClip in Frame 2
on (rollOver) {
_root.spelltext.gotoAndStop(26);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.deathscreen._currentframe > 1) {
unloadMovie (this);
removeMovieClip(this);
}
}
Instance of Symbol 1500 MovieClip in Frame 2
on (rollOver) {
_root.spelltext.gotoAndStop(27);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.deathscreen._currentframe > 1) {
unloadMovie (this);
removeMovieClip(this);
}
}
Instance of Symbol 1530 MovieClip "slimelord" in Frame 2
onClipEvent (load) {
dead = false;
castlepositionrandomiser = Math.random(200) * 198;
charboundry = false;
letmove = true;
randomnumber = 0;
v = _root.potnum;
gpause = false;
ctime = 0;
c = _root.crystalstally;
exphits = false;
movmentspeed = 1;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
i = slimebabys;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.stoper) && (!gpause)) {
letmove = false;
}
if ((this.slimelordinside.slimelordfrozen.frozentimer < 99) && (!gpause)) {
letmove = false;
}
if ((this.slimelordinside.slimelordfrozen.frozentimer > 99) && (!gpause)) {
letmove = true;
}
if (_root.char.hitTest(this) && (!gpause)) {
charboundry = true;
}
if ((!_root.char.hitTest(this)) && (!gpause)) {
charboundry = false;
}
if ((((this._x < _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -80;
}
if ((((this._x > _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 80;
}
if ((((this._y < _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._x;
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((((this._x < (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -80;
}
if ((((this._x > (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 80;
}
if ((((this._y < _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((this.slimelordinside.health < 1) && (!gpause)) {
this.gotoAndStop(2);
_root.meat = _root.meat + 2;
_root.enemys = _root.enemys - 1;
_root.enemys.text = _root.enemys.text - 1;
_root.expbar.bar._x = _root.expbar.bar._x + 6;
}
if (this.bloodexploasion._currentframe > 12) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
if ((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation < 1)) && (!gpause)) {
this._y = this._y + 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 89)) && (_root.leafcutspell340031.rotation < 91)) && (!gpause)) {
this._x = this._x - 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 179)) && (_root.leafcutspell340031.rotation < 181)) && (!gpause)) {
this._y = this._y - 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 269)) && (_root.leafcutspell340031.rotation < 271)) && (!gpause)) {
this._x = this._x + 0;
}
if ((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation < 1)) && (!gpause)) {
this._y = this._y + 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 89)) && (_root.crushspell31002.rotation < 91)) && (!gpause)) {
this._x = this._x - 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 179)) && (_root.crushspell31002.rotation < 181)) && (!gpause)) {
this._y = this._y - 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 269)) && (_root.crushspell31002.rotation < 271)) && (!gpause)) {
this._x = this._x + 0;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this._y = this._y + 3;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this._y = _root.cyclonespell31008._y;
this._x = _root.cyclonespell31008._x;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
movmentspeed = 0.2;
}
if ((!this.hitTest(_root.firetrapspell320052.firetrapdamage)) && (!gpause)) {
movmentspeed = 1;
}
}
Instance of Symbol 1604 MovieClip "greenfist" in Frame 2
onClipEvent (load) {
regen = false;
castlepositionrandomiser = Math.random(200) * 198;
charboundry = false;
letmove = true;
randomnumber = 7;
v = _root.potnum;
gpause = false;
ctime = 0;
c = _root.crystalstally;
exphits = false;
movmentspeed = 1;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.stoper) && (!gpause)) {
letmove = false;
}
if ((this.greenfistinside.greenfistfrozen.frozentimer < 99) && (!gpause)) {
letmove = false;
}
if ((this.greenfistinside.greenfistfrozen.frozentimer > 99) && (!gpause)) {
letmove = true;
}
if (_root.char.hitTest(this) && (!gpause)) {
charboundry = true;
}
if ((!_root.char.hitTest(this)) && (!gpause)) {
charboundry = false;
}
if ((((this._x < _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -90;
}
if ((((this._x > _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 90;
}
if ((((this._y < _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._x;
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((((this._x < (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -90;
}
if ((((this._x > (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 90;
}
if ((((this._y < _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if (((this.greenfistinside.health < 1) && (!regen)) && (!gpause)) {
this.gotoAndStop(3);
}
if ((this.greenfistregen._currentframe > 53) && (!gpause)) {
this.gotoAndStop(1);
regen = true;
}
if (((this.greenfistinside.health < 1) && (regen)) && (!gpause)) {
_root.deathscreen.gotoAndStop(3);
this.gotoAndStop(2);
_root.meat = _root.meat + 200;
_root.enemys = _root.enemys - 1;
_root.enemys.text = _root.enemys.text - 1;
_root.expbar.bar._x = _root.expbar.bar._x + 40;
}
if (this.bloodexploasion._currentframe > 12) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
if ((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation < 1)) && (!gpause)) {
this._y = this._y + 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 89)) && (_root.leafcutspell340031.rotation < 91)) && (!gpause)) {
this._x = this._x - 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 179)) && (_root.leafcutspell340031.rotation < 181)) && (!gpause)) {
this._y = this._y - 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 269)) && (_root.leafcutspell340031.rotation < 271)) && (!gpause)) {
this._x = this._x + 0;
}
if ((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation < 1)) && (!gpause)) {
this._y = this._y + 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 89)) && (_root.crushspell31002.rotation < 91)) && (!gpause)) {
this._x = this._x - 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 179)) && (_root.crushspell31002.rotation < 181)) && (!gpause)) {
this._y = this._y - 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 269)) && (_root.crushspell31002.rotation < 271)) && (!gpause)) {
this._x = this._x + 0;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this._y = this._y + 3;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this._y = _root.cyclonespell31008._y;
this._x = _root.cyclonespell31008._x;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
movmentspeed = 0.2;
}
if ((!this.hitTest(_root.firetrapspell320052.firetrapdamage)) && (!gpause)) {
movmentspeed = 1;
}
if ((this.greenfistinside.greenfistturretattack._currentframe > 30) && (this.greenfistinside.greenfistturretattack._currentframe < 32)) {
randomnumber = Math.round(Math.random(4001) * 5000);
}
if ((this.greenfistinside.greenfistturretattack._currentframe > 57) && (this.greenfistinside.greenfistturretattack._currentframe < 59)) {
_root.greenfistspell.duplicateMovieClip("greenfistspell" + i, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
}
if (this.hitTest(_root.char)) {
this.greenfistinside.greenfistturretattack.play();
}
if (!this.hitTest(_root.char)) {
this.greenfistinside.greenfistturretattack.stop();
this.greenfistinside.greenfistturretattack.gotoAndStop(1);
}
}
Instance of Symbol 1622 MovieClip "greenfistspell" in Frame 2
onClipEvent (load) {
adjside = _root.char._x - this._x;
oppside = -1 * (_root.char._y - this._y);
angle = Math.atan2(oppside, adjside);
angle = Math.round((angle / Math.PI) * 180);
this._rotation = -1 * angle;
damagetimer = 20;
gpause = false;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if ((_root.pausegame._currentframe > 1) && (this._currentframe > 1)) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.pausegame._currentframe < 2) && (this._currentframe > 1)) {
this.play();
}
if ((this.hitTest(_root.char) && ((!this.damagetimer) < 1)) && (!gpause)) {
_root.charhealth = _root.charhealth - 10;
this.damagetimer = 0;
}
if (this._currentframe > 52) {
removeMovieClip(this);
}
if (this.hitTest(_root.stoper)) {
this.gotoAndStop(1);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
}
Instance of Symbol 1124 MovieClip "pointer" in Frame 2
onClipEvent (load) {
pointertimer = false;
}
onClipEvent (enterFrame) {
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
if ((_root.upgradespage._currentframe < 2) && (!pointertimer)) {
this.play();
}
if (_root.upgradespage._currentframe > 1) {
pointertimer = true;
this.stop();
this.gotoAndStop(1);
}
}
Instance of Symbol 1673 MovieClip "jellycake" in Frame 2
onClipEvent (load) {
castlepositionrandomiser = Math.random(200) * 198;
charboundry = false;
letmove = true;
randomnumber = 0;
v = _root.potnum;
gpause = false;
ctime = 0;
c = _root.crystalstally;
exphits = false;
movmentspeed = 1;
}
onClipEvent (enterFrame) {
this.swapDepths(_y);
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.stoper) && (!gpause)) {
letmove = false;
}
if ((this.jellycakeinside.jellycakefrozen.frozentimer < 99) && (!gpause)) {
letmove = false;
}
if ((this.jellycakeinside.jellycakefrozen.frozentimer > 99) && (!gpause)) {
letmove = true;
}
if (_root.char.hitTest(this) && (!gpause)) {
charboundry = true;
}
if ((!_root.char.hitTest(this)) && (!gpause)) {
charboundry = false;
}
if ((((this._x < _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -50;
}
if ((((this._x > _root.char._x) && (charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 50;
}
if ((((this._y < _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._x;
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.char._y) && (charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((((this._x < (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x + movmentspeed;
this._xscale = -50;
}
if ((((this._x > (_root.jellycastle._x + castlepositionrandomiser)) && (!charboundry)) && (letmove)) && (!gpause)) {
this._x = this._x - movmentspeed;
this._xscale = 50;
}
if ((((this._y < _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y + movmentspeed;
}
if ((((this._y > _root.jellycastle._y) && (!charboundry)) && (letmove)) && (!gpause)) {
this._y = this._y - movmentspeed;
}
if ((this.jellycakeinside.health < 1) && (!gpause)) {
this.gotoAndStop(2);
_root.meat = _root.meat + 200;
_root.enemys = _root.enemys - 1;
_root.enemys.text = _root.enemys.text - 1;
_root.expbar.bar._x = _root.expbar.bar._x + 40;
}
if (this.bloodexploasion._currentframe > 12) {
removeMovieClip(this);
}
if (_root.deathscreen._currentframe > 1) {
removeMovieClip(this);
unloadMovie (this);
}
if ((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation < 1)) && (!gpause)) {
this._y = this._y + 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 89)) && (_root.leafcutspell340031.rotation < 91)) && (!gpause)) {
this._x = this._x - 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 179)) && (_root.leafcutspell340031.rotation < 181)) && (!gpause)) {
this._y = this._y - 0;
}
if (((this.hitTest(_root.leafcutspell340031) && (_root.leafcutspell340031.rotation > 269)) && (_root.leafcutspell340031.rotation < 271)) && (!gpause)) {
this._x = this._x + 0;
}
if ((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation < 1)) && (!gpause)) {
this._y = this._y + 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 89)) && (_root.crushspell31002.rotation < 91)) && (!gpause)) {
this._x = this._x - 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 179)) && (_root.crushspell31002.rotation < 181)) && (!gpause)) {
this._y = this._y - 0;
}
if (((this.hitTest(_root.crushspell31002) && (_root.crushspell31002.rotation > 269)) && (_root.crushspell31002.rotation < 271)) && (!gpause)) {
this._x = this._x + 0;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this._y = this._y + 3;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this._y = _root.cyclonespell31008._y;
this._x = _root.cyclonespell31008._x;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
movmentspeed = 0.2;
}
if ((!this.hitTest(_root.firetrapspell320052.firetrapdamage)) && (!gpause)) {
movmentspeed = 1;
}
}
Instance of Symbol 1686 MovieClip "deathscreen" in Frame 2
onClipEvent (enterFrame) {
_root.getNextHighestDepth();
}
Instance of Symbol 1690 MovieClip in Frame 2
on (press) {
_root._quality = "LOW";
}
Instance of Symbol 1692 MovieClip in Frame 2
on (press) {
_root._quality = "MEDIUM";
}
Instance of Symbol 1694 MovieClip in Frame 2
on (press) {
_root._quality = "HIGH";
}
Instance of Symbol 1785 MovieClip "char" in Frame 2
onClipEvent (load) {
i = 1;
dead = false;
yspeed = 0;
xspeed = 0;
maxmove = 5;
attackdamge = 1;
health = 10;
attacking = false;
_root.meat.text = 0;
_root.hqpoints.text = 0;
gpause = false;
this.respawntimer = 30;
}
onClipEvent (enterFrame) {
this.charhealthbar.charhealthbarinside._width = _root.charhealth;
maxmove = _root.speed;
_root.char._x = _root.char._x - xspeed;
_root.char._y = _root.char._y - yspeed;
if (gpause or dead) {
xspeed = 0;
yspeed = 0;
}
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((Key.isDown(87) && (!gpause)) && (!dead)) {
yspeed++;
_root.directions.gotoAndStop(2);
}
if ((((Key.isDown(87) && (!Key.isDown(68))) && (!Key.isDown(65))) && (!gpause)) && (!dead)) {
_root.char.gotoAndStop(2);
}
if ((((Key.isDown(83) && (!Key.isDown(68))) && (!Key.isDown(65))) && (!gpause)) && (!dead)) {
_root.char.gotoAndStop(1);
}
if ((Key.isDown(83) && (!gpause)) && (!dead)) {
yspeed--;
_root.directions.gotoAndStop(1);
}
if ((Key.isDown(68) && (!gpause)) && (!dead)) {
xspeed--;
_root.char.gotoAndStop(3);
_root.directions.gotoAndStop(4);
}
if ((Key.isDown(65) && (!gpause)) && (!dead)) {
xspeed++;
_root.char.gotoAndStop(4);
_root.directions.gotoAndStop(3);
}
if ((((!Key.isDown(68)) && (xspeed < 0)) && (!gpause)) && (!dead)) {
xspeed++;
}
if ((((!Key.isDown(65)) && (xspeed > 0)) && (!gpause)) && (!dead)) {
xspeed--;
}
if (((xspeed < (-maxmove)) && (!gpause)) && (!dead)) {
xspeed = -maxmove;
}
if (((xspeed > maxmove) && (!gpause)) && (!dead)) {
xspeed = maxmove;
}
if ((((!Key.isDown(83)) && (yspeed < 0)) && (!gpause)) && (!dead)) {
yspeed++;
}
if ((((!Key.isDown(87)) && (yspeed > 0)) && (!gpause)) && (!dead)) {
yspeed--;
}
if (((yspeed < (-maxmove)) && (!gpause)) && (!dead)) {
yspeed = -maxmove;
}
if (((yspeed > maxmove) && (!gpause)) && (!dead)) {
yspeed = maxmove;
}
if ((_root.boundry.hitTest(this._x - 20, this._y, true) && (!gpause)) && (!dead)) {
xspeed = xspeed - 15;
}
if ((_root.boundry.hitTest(this._x + 20, this._y, true) && (!gpause)) && (!dead)) {
xspeed = xspeed + 15;
}
if ((_root.boundry.hitTest(this._x, this._y - 20, true) && (!gpause)) && (!dead)) {
yspeed = yspeed - 15;
}
if ((_root.boundry.hitTest(this._x, this._y + 20, true) && (!gpause)) && (!dead)) {
yspeed = yspeed + 15;
}
if ((Key.isDown(32) && (!gpause)) && (!dead)) {
_root.char.chardown.gotoAndStop(3);
_root.char.charup.gotoAndStop(3);
_root.char.charright.gotoAndStop(3);
_root.char.charleft.gotoAndStop(3);
}
if (((!Key.isDown(32)) && (!gpause)) && (!dead)) {
_root.char.chardown.gotoAndStop(2);
_root.char.charup.gotoAndStop(2);
_root.char.charright.gotoAndStop(2);
_root.char.charleft.gotoAndStop(2);
}
if ((((((!Key.isDown(32)) && (xspeed < 1)) && (yspeed < 1)) && (!attacking)) && (!gpause)) && (!dead)) {
_root.char.charleft.gotoAndStop(1);
_root.char.charup.gotoAndStop(1);
}
if ((((((!Key.isDown(32)) && (xspeed > -1)) && (yspeed > -1)) && (!attacking)) && (!gpause)) && (!dead)) {
_root.char.chardown.gotoAndStop(1);
_root.char.charright.gotoAndStop(1);
}
if ((((_root.char1.chardown._currentframe > 2) or (_root.char1.charup._currentframe > 2)) or (_root.char1.charright._currentframe > 2)) or (((_root.char1.charleft._currentframe > 2) && (!gpause)) && (!dead))) {
attacking = true;
}
if ((((_root.char1.chardown._currentframe < 3) or (_root.char1.charup._currentframe < 3)) or (_root.char1.charright._currentframe < 3)) or (((_root.char1.charleft._currentframe < 3) && (!gpause)) && (!dead))) {
attacking = false;
}
if ((this.hitTest(_root.minorhealspell340067.healer) && (!gpause)) && (!dead)) {
_root.charhealth = _root.charhealth + 18;
}
if ((this.hitTest(_root.lifetreespell340084.lifetreebuff) && (!gpause)) && (!dead)) {
_root.charhealth = _root.charhealth + 4;
}
if ((_root.charhealth < 1) && (!dead)) {
_root.grave.duplicateMovieClip("grave" + i, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
this._x = -231;
this._y = -393;
dead = true;
this.gotoAndStop(5);
}
if (this._currentframe > 4) {
_root.charhealth = 0;
}
if (((this._currentframe > 4) && (_root.timingdevice._currentframe > 19)) && (!gpause)) {
this.respawntimer = this.respawntimer - 1;
}
if ((this._currentframe > 4) && (this.respawntimer < 1)) {
this.gotoAndStop(1);
_root.charhealth = 100;
_root.dead = 0;
dead = false;
this._x = _root.grave1._x;
this._y = _root.grave1._y;
this.respawntimer = 30;
}
if (_root.deathscreen._currentframe > 1) {
unloadMovie (this);
removeMovieClip(this);
}
if (_root.charhealth > _root.maxhealth) {
_root.charhealth = _root.maxhealth;
}
}
Symbol 18 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 1
stop();
Instance of Symbol 18 MovieClip in Symbol 19 MovieClip Frame 1
on (press) {
getURL ("http://www.arcadetown.com/index.asp?gameid=jellycastle", "blank");
}
Symbol 31 Button
on (press) {
_root.mainmenu.gotoAndStop(2);
}
Symbol 33 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 2
stop();
Symbol 87 MovieClip Frame 121
stop();
Symbol 87 MovieClip Frame 122
stop();
Instance of Symbol 18 MovieClip in Symbol 101 MovieClip Frame 41
on (press) {
getURL ("http://www.arcadetown.com/index.asp?gameid=jellycastle", "blank");
}
Symbol 101 MovieClip Frame 95
_root.mainmenu.nextFrame();
Instance of Symbol 117 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 129 MovieClip "charrightattack" in Symbol 134 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 134 MovieClip Frame 56
stop();
Symbol 138 Button
on (press) {
_root.mainmenu.gotoAndStop(5);
}
Instance of Symbol 117 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 148 MovieClip "charrightmove" in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 117 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 117 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 117 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 117 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 117 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 117 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 117 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 117 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 117 MovieClip in Symbol 152 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 152 MovieClip Frame 60
stop();
Symbol 155 Button
on (press) {
_root.mainmenu.gotoAndStop(7);
}
Symbol 162 Button
on (press) {
getURL ("http://www.arcadetown.com/index.asp?gameid=jellycastle", "blank");
}
Symbol 167 Button
on (release) {
getURL ("http://www.newgrounds.com", "blank");
}
Symbol 168 MovieClip Frame 1
stop();
Instance of Symbol 18 MovieClip "arcadetownsymbol" in Symbol 168 MovieClip Frame 1
on (press) {
getURL ("http://www.arcadetown.com/index.asp?gameid=jellycastle", "blank");
}
Symbol 168 MovieClip Frame 2
stop();
Symbol 172 MovieClip Frame 1
stop();
Instance of Symbol 171 MovieClip in Symbol 172 MovieClip Frame 1
on (press) {
getURL ("http://www.arcadetown.com/free_content/index.asp ", "blank");
}
Symbol 172 MovieClip Frame 2
stop();
Symbol 178 Button
on (press) {
_root.mainmenu.gotoAndStop(6);
}
Symbol 181 Button
on (press) {
_root.gotoAndStop(2);
}
Symbol 189 Button
on (press) {
_root.mainmenu.gotoAndStop(4);
}
Symbol 190 MovieClip Frame 1
loadingbar._width = 1;
this.onEnterFrame = function () {
var _local3 = this.getBytesLoaded();
var _local4 = this.getBytesTotal();
var _local5 = Math.round((_local3 / _local4) * 100);
loadingbar._xscale = _local5;
if (_local3 >= _local4) {
_root.mainmenu.playerer.gotoAndStop(2);
delete this.onEnterFrame;
}
};
stop();
Symbol 190 MovieClip Frame 2
stop();
Instance of Symbol 87 MovieClip in Symbol 190 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this._currentframe > 120) {
_root.mainmenu.nextFrame();
}
}
Symbol 190 MovieClip Frame 3
stop();
Symbol 190 MovieClip Frame 4
stop();
Instance of Symbol 168 MovieClip in Symbol 190 MovieClip Frame 4
onClipEvent (enterFrame) {
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
pfixEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(pfixEnd, domain.length);
if (domain == "http://www.newgrounds.com") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
stop();
}
Symbol 190 MovieClip Frame 5
stop();
Symbol 190 MovieClip Frame 6
stop();
Symbol 190 MovieClip Frame 7
stop();
Symbol 194 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 2
stop();
Symbol 275 MovieClip Frame 1
stop();
Instance of Symbol 275 MovieClip "babytrollswipe" in Symbol 285 MovieClip Frame 32
onClipEvent (load) {
gpause = false;
enemyattack = 10;
}
onClipEvent (enterFrame) {
damage = enemyattack;
dodge = _root.dodgechance;
dodgerating = 0;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((damage < 0) && (!gpause)) {
damage = 0;
}
if (_root.char.hitTest(this) && (!gpause)) {
dodgerating = Math.random(100) * 99;
}
if ((_root.char.hitTest(this) && (dodgerating < dodge)) && (!gpause)) {
this.gotoAndPlay(2);
}
if ((dodgerating > dodge) && (!gpause)) {
_root.charhealth = _root.charhealth - damage;
dodgerating = 0;
}
if (_root.jellycastle.hitTest(this) && (!gpause)) {
_root.jellycastlehealth = _root.jellycastlehealth - damage;
_root.castlehealthbar.castlebar._x = _root.castlehealthbar.castlebar._x - damage;
}
}
Symbol 290 MovieClip Frame 1
stop();
Instance of Symbol 226 MovieClip "cupcakelordwalk" in Symbol 290 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 232 MovieClip "fireeffect" in Symbol 290 MovieClip Frame 1
onClipEvent (load) {
this.burntimer = 0;
}
onClipEvent (enterFrame) {
if (this.burntimer < 2) {
this.gotoAndStop(1);
this.stop();
}
if (this.burntimer > 1) {
this.play();
this.burntimer = this.burntimer - 1;
}
}
Symbol 290 MovieClip Frame 2
stop();
Instance of Symbol 285 MovieClip "cupcakelordattack" in Symbol 290 MovieClip Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 290 MovieClip Frame 3
stop();
Instance of Symbol 289 MovieClip "cupcakelordfrozen" in Symbol 290 MovieClip Frame 3
onClipEvent (load) {
this.frozentimer = 100;
}
onClipEvent (enterFrame) {
this.frozentimer = this.frozentimer - 1;
}
Symbol 316 MovieClip Frame 1
stop();
Instance of Symbol 290 MovieClip "cupcakelordinside" in Symbol 316 MovieClip Frame 1
onClipEvent (load) {
hittinggerm = false;
f = 8000;
gpause = false;
frozen = false;
this.health = 2000;
}
onClipEvent (enterFrame) {
attackpoweramp = _root.attackpower;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.char) or (this.hitTest(_root.jellycastle) && (!gpause))) {
hittinggerm = true;
this.gotoAndStop(2);
}
if (((!this.hitTest(_root.char)) && (!this.hitTest(_root.jellycastle))) && (!gpause)) {
hittinggerm = false;
this.gotoAndStop(1);
}
if (this.hitTest(_root.char.charup.charupattack.swipe) && (!gpause)) {
f++;
_root.bloodup.duplicateMovieClip("bloodup" + f, f, {_x:_root.char._x, _y:_root.char._y - 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.chardown.chardownattack.swipe) && (!gpause)) {
f++;
_root.blooddown.duplicateMovieClip("blooddown" + f, f, {_x:_root.char._x, _y:_root.char._y + 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charright.charrightattack.swipe) && (!gpause)) {
f++;
_root.bloodright.duplicateMovieClip("bloodright" + f, f, {_x:_root.char._x + 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charleft.charleftattack.swipe) && (!gpause)) {
f++;
_root.bloodleft.duplicateMovieClip("bloodleft" + f, f, {_x:_root.char._x - 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.squirtspell50000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 30;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 30;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.crushspell31002) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.blizzardspell31004.blizzarddamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.icespikespell31000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 5;
}
if (this.hitTest(_root.typhoonspell310058.typhoondamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if ((this.cupcakelordfrozen.frozentimer < 0) && (frozen)) {
this.cupcakelordfrozen.frozentimer = 115;
this.gotoAndStop(1);
frozen = false;
}
if (this.fireeffect.burntimer > 2) {
this.health = this.health - 2.5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2.5;
}
if (this.hitTest(_root.fireburstspell320034) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 2;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.firewalkspell320047) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 8;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.flamelancespell320036) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.firerainspell320038.fireraindamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 10;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if (this.hitTest(_root.lustspell320097.lustdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
_root.charhealth = _root.charhealth + 1;
this.health = this.health - 1;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 1;
}
if (this.hitTest(_root.leafcutspell340031) && (!gpause)) {
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.vinewhipspell340096) && (!gpause)) {
this.health = this.health - 7;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 7;
}
if (this.hitTest(_root.thornsspell340011)) {
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
}
Symbol 316 MovieClip Frame 2
stop();
Instance of Symbol 275 MovieClip "trifullordswipe" in Symbol 403 MovieClip Frame 22
onClipEvent (load) {
gpause = false;
enemyattack = 15;
}
onClipEvent (enterFrame) {
damage = enemyattack;
dodge = _root.dodgechance;
dodgerating = 0;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((damage < 0) && (!gpause)) {
damage = 0;
}
if (_root.char.hitTest(this) && (!gpause)) {
dodgerating = Math.random(100) * 99;
}
if ((_root.char.hitTest(this) && (dodgerating < dodge)) && (!gpause)) {
this.gotoAndPlay(2);
}
if ((dodgerating > dodge) && (!gpause)) {
_root.charhealth = _root.charhealth - damage;
dodgerating = 0;
}
if (_root.jellycastle.hitTest(this) && (!gpause)) {
_root.jellycastlehealth = _root.jellycastlehealth - damage;
_root.castlehealthbar.castlebar._x = _root.castlehealthbar.castlebar._x - damage;
}
}
Symbol 407 MovieClip Frame 1
stop();
Instance of Symbol 340 MovieClip "trifullordwalk" in Symbol 407 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 232 MovieClip "fireeffect" in Symbol 407 MovieClip Frame 1
onClipEvent (load) {
this.burntimer = 0;
}
onClipEvent (enterFrame) {
if (this.burntimer < 2) {
this.gotoAndStop(1);
this.stop();
}
if (this.burntimer > 1) {
this.play();
this.burntimer = this.burntimer - 1;
}
}
Symbol 407 MovieClip Frame 2
stop();
Instance of Symbol 403 MovieClip "trifullordattack" in Symbol 407 MovieClip Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 407 MovieClip Frame 3
stop();
Instance of Symbol 406 MovieClip "trifullordfrozen" in Symbol 407 MovieClip Frame 3
onClipEvent (load) {
this.frozentimer = 100;
}
onClipEvent (enterFrame) {
this.frozentimer = this.frozentimer - 1;
}
Symbol 408 MovieClip Frame 1
stop();
Instance of Symbol 407 MovieClip "trifullordinside" in Symbol 408 MovieClip Frame 1
onClipEvent (load) {
hittinggerm = false;
f = 8000;
gpause = false;
frozen = false;
this.health = 4000;
}
onClipEvent (enterFrame) {
attackpoweramp = _root.attackpower;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.char) or (this.hitTest(_root.jellycastle) && (!gpause))) {
hittinggerm = true;
this.gotoAndStop(2);
}
if (((!this.hitTest(_root.char)) && (!this.hitTest(_root.jellycastle))) && (!gpause)) {
hittinggerm = false;
this.gotoAndStop(1);
}
if (this.hitTest(_root.char.charup.charupattack.swipe) && (!gpause)) {
f++;
_root.bloodup.duplicateMovieClip("bloodup" + f, f, {_x:_root.char._x, _y:_root.char._y - 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.chardown.chardownattack.swipe) && (!gpause)) {
f++;
_root.blooddown.duplicateMovieClip("blooddown" + f, f, {_x:_root.char._x, _y:_root.char._y + 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charright.charrightattack.swipe) && (!gpause)) {
f++;
_root.bloodright.duplicateMovieClip("bloodright" + f, f, {_x:_root.char._x + 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charleft.charleftattack.swipe) && (!gpause)) {
f++;
_root.bloodleft.duplicateMovieClip("bloodleft" + f, f, {_x:_root.char._x - 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.squirtspell50000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 30;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 30;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.crushspell31002) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.blizzardspell31004.blizzarddamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.icespikespell31000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 5;
}
if (this.hitTest(_root.typhoonspell310058.typhoondamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if ((this.trifullordfrozen.frozentimer < 0) && (frozen)) {
this.trifullordfrozen.frozentimer = 115;
this.gotoAndStop(1);
frozen = false;
}
if (this.fireeffect.burntimer > 2) {
this.health = this.health - 2.5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2.5;
}
if (this.hitTest(_root.fireburstspell320034) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 2;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.firewalkspell320047) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 8;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.flamelancespell320036) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.firerainspell320038.fireraindamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 10;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if (this.hitTest(_root.lustspell320097.lustdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
_root.charhealth = _root.charhealth + 1;
this.health = this.health - 1;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 1;
}
if (this.hitTest(_root.leafcutspell340031) && (!gpause)) {
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.vinewhipspell340096) && (!gpause)) {
this.health = this.health - 7;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 7;
}
if (this.hitTest(_root.thornsspell340011)) {
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
}
Symbol 408 MovieClip Frame 2
stop();
Symbol 412 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 2
stop();
Symbol 412 MovieClip Frame 3
stop();
Symbol 440 MovieClip Frame 1
stop();
Instance of Symbol 420 MovieClip "magemove" in Symbol 440 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 232 MovieClip "fireeffect" in Symbol 440 MovieClip Frame 1
onClipEvent (load) {
this.burntimer = 0;
}
onClipEvent (enterFrame) {
if (this.burntimer < 2) {
this.gotoAndStop(1);
this.stop();
}
if (this.burntimer > 1) {
this.play();
this.burntimer = this.burntimer - 1;
}
}
Symbol 440 MovieClip Frame 2
stop();
Instance of Symbol 436 MovieClip "mageattack" in Symbol 440 MovieClip Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 440 MovieClip Frame 3
stop();
Instance of Symbol 439 MovieClip "magefrozen" in Symbol 440 MovieClip Frame 3
onClipEvent (load) {
this.frozentimer = 100;
}
onClipEvent (enterFrame) {
this.frozentimer = this.frozentimer - 1;
}
Symbol 441 MovieClip Frame 1
stop();
Instance of Symbol 440 MovieClip "mageinside" in Symbol 441 MovieClip Frame 1
onClipEvent (load) {
hittinggerm = false;
f = 8000;
attackpoweramp = _root.attackpower;
gpause = false;
frozen = false;
if (_root.wave < 25) {
this.healthbar.gotoAndStop(1);
this.health = 100;
}
if ((_root.wave > 24) && (_root.wave < 35)) {
this.healthbar.gotoAndStop(2);
this.health = 200;
this.death = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 10, 0, 68);
this.tranz = new flash.geom.Transform(this);
this.tranz.colorTransform = this.death;
}
if ((_root.wave > 34) && (_root.wave)) {
this.healthbar.gotoAndStop(3);
this.health = 300;
this.death = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 20, 0, 68);
this.tranz = new flash.geom.Transform(this);
this.tranz.colorTransform = this.death;
}
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.char.charup.charupattack.swipe) && (!gpause)) {
f++;
_root.bloodup.duplicateMovieClip("bloodup" + f, f, {_x:_root.char._x, _y:_root.char._y - 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.chardown.chardownattack.swipe) && (!gpause)) {
f++;
_root.blooddown.duplicateMovieClip("blooddown" + f, f, {_x:_root.char._x, _y:_root.char._y + 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charright.charrightattack.swipe) && (!gpause)) {
f++;
_root.bloodright.duplicateMovieClip("bloodright" + f, f, {_x:_root.char._x + 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charleft.charleftattack.swipe) && (!gpause)) {
f++;
_root.bloodleft.duplicateMovieClip("bloodleft" + f, f, {_x:_root.char._x - 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.squirtspell50000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 30;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 30;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.crushspell31002) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.blizzardspell31004.blizzarddamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.icespikespell31000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 5;
}
if (this.hitTest(_root.typhoonspell310058.typhoondamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if ((this.magefrozen.frozentimer < 0) && (frozen)) {
this.magefrozen.frozentimer = 115;
this.gotoAndStop(1);
frozen = false;
}
if (this.fireeffect.burntimer > 2) {
this.health = this.health - 2.5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2.5;
}
if (this.hitTest(_root.fireburstspell320034) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 2;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.firewalkspell320047) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 8;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.flamelancespell320036) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.firerainspell320038.fireraindamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 10;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if (this.hitTest(_root.lustspell320097.lustdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
_root.charhealth = _root.charhealth + 1;
this.health = this.health - 1;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 1;
}
if (this.hitTest(_root.leafcutspell340031) && (!gpause)) {
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.vinewhipspell340096) && (!gpause)) {
this.health = this.health - 7;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 7;
}
if (this.hitTest(_root.thornsspell340011)) {
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
}
Symbol 441 MovieClip Frame 2
stop();
Symbol 455 MovieClip Frame 1
stop();
Symbol 455 MovieClip Frame 2
stop();
Symbol 455 MovieClip Frame 3
stop();
Instance of Symbol 275 MovieClip "cupcakeriderswipe" in Symbol 504 MovieClip Frame 23
onClipEvent (load) {
gpause = false;
enemyattack = 5;
}
onClipEvent (enterFrame) {
damage = enemyattack;
dodge = _root.dodgechance;
dodgerating = 0;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((damage < 0) && (!gpause)) {
damage = 0;
}
if (_root.char.hitTest(this) && (!gpause)) {
dodgerating = Math.random(100) * 99;
}
if ((_root.char.hitTest(this) && (dodgerating < dodge)) && (!gpause)) {
this.gotoAndPlay(2);
}
if ((dodgerating > dodge) && (!gpause)) {
_root.charhealth = _root.charhealth - damage;
dodgerating = 0;
}
if (_root.jellycastle.hitTest(this) && (!gpause)) {
_root.jellycastlehealth = _root.jellycastlehealth - damage;
_root.castlehealthbar.castlebar._x = _root.castlehealthbar.castlebar._x - damage;
}
}
Symbol 509 MovieClip Frame 1
stop();
Instance of Symbol 480 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 232 MovieClip "fireeffect" in Symbol 509 MovieClip Frame 1
onClipEvent (load) {
this.burntimer = 0;
}
onClipEvent (enterFrame) {
if (this.burntimer < 2) {
this.gotoAndStop(1);
this.stop();
}
if (this.burntimer > 1) {
this.play();
this.burntimer = this.burntimer - 1;
}
}
Symbol 509 MovieClip Frame 2
stop();
Instance of Symbol 504 MovieClip in Symbol 509 MovieClip Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 509 MovieClip Frame 3
stop();
Instance of Symbol 508 MovieClip "cupcakeriderfrozen" in Symbol 509 MovieClip Frame 3
onClipEvent (load) {
this.frozentimer = 100;
}
onClipEvent (enterFrame) {
this.frozentimer = this.frozentimer - 1;
}
Symbol 510 MovieClip Frame 1
stop();
Instance of Symbol 509 MovieClip "cupcakeriderinside" in Symbol 510 MovieClip Frame 1
onClipEvent (load) {
hittinggerm = false;
f = 8000;
gpause = false;
frozen = false;
if (_root.wave < 30) {
this.healthbar.gotoAndStop(1);
this.health = 350;
}
if ((_root.wave > 29) && (_root.wave < 41)) {
this.healthbar.gotoAndStop(2);
this.health = 500;
this.death = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 10, 0, 68);
this.tranz = new flash.geom.Transform(this);
this.tranz.colorTransform = this.death;
}
if ((_root.wave > 40) && (_root.wave)) {
this.healthbar.gotoAndStop(3);
this.health = 700;
this.death = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 20, 0, 68);
this.tranz = new flash.geom.Transform(this);
this.tranz.colorTransform = this.death;
}
}
onClipEvent (enterFrame) {
attackpoweramp = _root.attackpower;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.char) or (this.hitTest(_root.jellycastle) && (!gpause))) {
hittinggerm = true;
this.gotoAndStop(2);
}
if (((!this.hitTest(_root.char)) && (!this.hitTest(_root.jellycastle))) && (!gpause)) {
hittinggerm = false;
this.gotoAndStop(1);
}
if (this.hitTest(_root.char.charup.charupattack.swipe) && (!gpause)) {
f++;
_root.bloodup.duplicateMovieClip("bloodup" + f, f, {_x:_root.char._x, _y:_root.char._y - 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.chardown.chardownattack.swipe) && (!gpause)) {
f++;
_root.blooddown.duplicateMovieClip("blooddown" + f, f, {_x:_root.char._x, _y:_root.char._y + 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charright.charrightattack.swipe) && (!gpause)) {
f++;
_root.bloodright.duplicateMovieClip("bloodright" + f, f, {_x:_root.char._x + 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charleft.charleftattack.swipe) && (!gpause)) {
f++;
_root.bloodleft.duplicateMovieClip("bloodleft" + f, f, {_x:_root.char._x - 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.squirtspell50000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 30;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 30;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.crushspell31002) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.blizzardspell31004.blizzarddamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.icespikespell31000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 5;
}
if (this.hitTest(_root.typhoonspell310058.typhoondamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if ((this.cupcakeriderfrozen.frozentimer < 0) && (frozen)) {
this.cupcakeriderfrozen.frozentimer = 115;
this.gotoAndStop(1);
frozen = false;
}
if (this.fireeffect.burntimer > 2) {
this.health = this.health - 2.5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2.5;
}
if (this.hitTest(_root.fireburstspell320034) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 2;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.firewalkspell320047) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 8;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.flamelancespell320036) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.firerainspell320038.fireraindamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 10;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if (this.hitTest(_root.lustspell320097.lustdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
_root.charhealth = _root.charhealth + 1;
this.health = this.health - 1;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 1;
}
if (this.hitTest(_root.leafcutspell340031) && (!gpause)) {
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.vinewhipspell340096) && (!gpause)) {
this.health = this.health - 7;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 7;
}
if (this.hitTest(_root.thornsspell340011)) {
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
}
Symbol 510 MovieClip Frame 2
stop();
Symbol 513 MovieClip Frame 45
stop();
Symbol 517 MovieClip Frame 1
stop();
Instance of Symbol 516 MovieClip in Symbol 517 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 528 MovieClip Frame 1
stop();
Symbol 535 MovieClip Frame 1
stop();
Symbol 535 MovieClip Frame 2
stop();
Symbol 535 MovieClip Frame 3
stop();
Symbol 535 MovieClip Frame 4
stop();
Symbol 561 MovieClip Frame 27
stop();
Symbol 593 MovieClip Frame 1
stop();
Symbol 593 MovieClip Frame 2
stop();
Symbol 593 MovieClip Frame 46
stop();
Symbol 635 MovieClip Frame 1
stop();
Symbol 635 MovieClip Frame 2
stop();
Symbol 635 MovieClip Frame 153
stop();
Symbol 652 MovieClip Frame 1
stop();
Symbol 652 MovieClip Frame 2
stop();
Instance of Symbol 650 MovieClip "cycloneinside" in Symbol 652 MovieClip Frame 3
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 650 MovieClip "cycloneinside" in Symbol 652 MovieClip Frame 20
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 660 MovieClip Frame 26
stop();
Symbol 679 MovieClip Frame 57
stop();
Symbol 686 MovieClip Frame 42
stop();
Symbol 696 MovieClip Frame 117
stop();
Symbol 724 MovieClip Frame 1
stop();
Symbol 724 MovieClip Frame 2
stop();
Symbol 724 MovieClip Frame 80
stop();
Symbol 746 MovieClip Frame 21
stop();
Symbol 757 MovieClip Frame 118
stop();
Symbol 766 MovieClip Frame 12
stop();
Instance of Symbol 774 MovieClip "squirtspellinside" in Symbol 776 MovieClip Frame 1
/* no clip actions */
Symbol 786 MovieClip Frame 1
stop();
Instance of Symbol 781 MovieClip in Symbol 786 MovieClip Frame 1
on (press) {
_root.pausegame.gotoAndStop(2);
}
Symbol 786 MovieClip Frame 2
stop();
Instance of Symbol 785 MovieClip in Symbol 786 MovieClip Frame 2
on (press) {
if ((_root.magicmenu.coverformagicmenu._currentframe != 2) && (_root.upgradespage._currentframe != 2)) {
_root.pausegame.gotoAndStop(1);
}
}
Instance of Symbol 785 MovieClip in Symbol 786 MovieClip Frame 2
on (press) {
_root.pausegame.gotoAndStop(1);
}
Symbol 799 MovieClip Frame 1
stop();
Symbol 799 MovieClip Frame 2
stop();
Symbol 799 MovieClip Frame 3
stop();
Symbol 799 MovieClip Frame 4
stop();
Symbol 799 MovieClip Frame 5
stop();
Symbol 799 MovieClip Frame 6
stop();
Symbol 799 MovieClip Frame 7
stop();
Instance of Symbol 806 MovieClip "manabarinside" in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
manamax = false;
mana = _root.mana;
pokemon = true;
manaamount = _root.manatotal;
manarate = _root.manarate;
}
onClipEvent (enterFrame) {
if ((!manafinal) < manaamount) {
manamax = false;
}
if (manafinal > manaamount) {
manamax = true;
}
if (this.hitTest(_root.manabar.manabarend) && (_root.pausegame._currentframe < 2)) {
this._y = this._y - manarate;
_root.manafinal = _root.manafinal - manarate;
}
if ((pokemon && (_root.pausegame._currentframe < 2)) && (!manamax)) {
this._y = this._y + manarate;
_root.manafinal = _root.manafinal + manarate;
}
}
Symbol 828 MovieClip Frame 1
stop();
Instance of Symbol 818 MovieClip in Symbol 828 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 828 MovieClip Frame 2
stop();
Symbol 828 MovieClip Frame 3
stop();
Symbol 828 MovieClip Frame 4
stop();
Symbol 828 MovieClip Frame 5
stop();
Instance of Symbol 832 MovieClip "castlebar" in Symbol 835 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.castlehealthbar.castlebarend)) {
_root.deathscreen.gotoAndStop(2);
}
}
Instance of Symbol 841 MovieClip "bar" in Symbol 843 MovieClip Frame 1
onClipEvent (enterFrame) {
h = 80909 /* 0x013C0D */;
if (this.hitTest(_root.expbar.expbarend)) {
this._x = this._x - 200;
_root.lv = _root.lv + 1;
_root.maxhealth = _root.maxhealth + 2;
_root.statpoints = _root.statpoints + 1;
_root.char.levelup.gotoAndPlay(2);
}
}
Symbol 860 MovieClip Frame 1
stop();
Instance of Symbol 855 MovieClip in Symbol 860 MovieClip Frame 1
on (press) {
_root.music.gotoAndStop(2);
}
Symbol 860 MovieClip Frame 2
stop();
Instance of Symbol 859 MovieClip in Symbol 860 MovieClip Frame 2
on (press) {
_root.music.gotoAndStop(1);
}
Symbol 865 MovieClip Frame 1
stop();
Symbol 865 MovieClip Frame 2
stop();
Instance of Symbol 864 MovieClip in Symbol 865 MovieClip Frame 2
on (release) {
if (_root.magicmenu.coverformagicmenu._currentframe > 1) {
if (_root.upgradespage._currentframe != 2) {
_root.pausegame.gotoAndStop(1);
}
_root.magicmenu.coverformagicmenu.gotoAndStop(1);
}
}
Symbol 869 MovieClip Frame 1
stop();
Symbol 869 MovieClip Frame 2
stop();
Symbol 872 MovieClip Frame 1
stop();
Symbol 872 MovieClip Frame 2
stop();
Symbol 875 MovieClip Frame 1
stop();
Symbol 875 MovieClip Frame 2
stop();
Symbol 879 MovieClip Frame 1
stop();
Symbol 879 MovieClip Frame 5
stop();
Symbol 883 MovieClip Frame 1
stop();
Symbol 883 MovieClip Frame 6
stop();
Symbol 891 MovieClip Frame 1
stop();
Symbol 891 MovieClip Frame 6
stop();
Symbol 894 MovieClip Frame 1
stop();
Symbol 894 MovieClip Frame 2
stop();
Symbol 897 MovieClip Frame 1
stop();
Symbol 897 MovieClip Frame 2
stop();
Symbol 900 MovieClip Frame 1
stop();
Symbol 900 MovieClip Frame 2
stop();
Symbol 903 MovieClip Frame 1
stop();
Symbol 903 MovieClip Frame 2
stop();
Symbol 906 MovieClip Frame 1
stop();
Symbol 906 MovieClip Frame 2
stop();
Symbol 909 MovieClip Frame 1
stop();
Symbol 909 MovieClip Frame 2
stop();
Symbol 913 MovieClip Frame 1
stop();
Symbol 913 MovieClip Frame 2
stop();
Symbol 913 MovieClip Frame 3
stop();
Symbol 916 MovieClip Frame 1
stop();
Symbol 916 MovieClip Frame 2
stop();
Symbol 919 MovieClip Frame 1
stop();
Symbol 919 MovieClip Frame 2
stop();
Symbol 923 MovieClip Frame 1
stop();
Symbol 923 MovieClip Frame 2
stop();
Symbol 923 MovieClip Frame 3
stop();
Symbol 927 MovieClip Frame 1
stop();
Symbol 927 MovieClip Frame 2
stop();
Symbol 927 MovieClip Frame 3
stop();
Symbol 930 MovieClip Frame 1
stop();
Symbol 930 MovieClip Frame 2
stop();
Symbol 933 MovieClip Frame 1
stop();
Symbol 933 MovieClip Frame 2
stop();
Symbol 936 MovieClip Frame 1
stop();
Symbol 936 MovieClip Frame 2
stop();
Symbol 939 MovieClip Frame 1
stop();
Symbol 939 MovieClip Frame 2
stop();
Instance of Symbol 869 MovieClip "fireburst" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
baught = false;
}
on (release) {
if ((_root.statpoints > 0) && (!baught)) {
this.gotoAndStop(2);
_root.statpoints = _root.statpoints - 1;
_root.fire.fireburstslot.gotoAndStop(2);
baught = true;
}
}
Instance of Symbol 872 MovieClip "squirt" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
baught = false;
}
on (release) {
if ((_root.statpoints > 0) && (!baught)) {
this.gotoAndStop(2);
_root.statpoints = _root.statpoints - 1;
_root.water.squirtslot.gotoAndStop(2);
baught = true;
}
}
Instance of Symbol 875 MovieClip "leafcut" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
baught = false;
}
on (release) {
if ((_root.statpoints > 0) && (!baught)) {
this.gotoAndStop(2);
_root.statpoints = _root.statpoints - 1;
_root.nature.leafcutslot.gotoAndStop(2);
baught = true;
}
}
Instance of Symbol 879 MovieClip in Symbol 943 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 883 MovieClip in Symbol 943 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 891 MovieClip in Symbol 943 MovieClip Frame 1
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 894 MovieClip "firewalk" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
baught = false;
}
on (release) {
if (((_root.statpoints > 0) && (_root.magicmenu.fireburst._currentframe > 1)) && (!baught)) {
this.gotoAndStop(2);
_root.statpoints = _root.statpoints - 1;
_root.fire.firewalkslot.gotoAndStop(2);
baught = true;
}
}
Instance of Symbol 897 MovieClip "flamelance" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
baught = false;
}
on (release) {
if (((_root.statpoints > 0) && (_root.magicmenu.fireburst._currentframe > 1)) && (!baught)) {
this.gotoAndStop(2);
_root.statpoints = _root.statpoints - 1;
_root.fire.flamelanceslot.gotoAndStop(2);
baught = true;
}
}
Instance of Symbol 900 MovieClip "crushingwave" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
baught = false;
}
on (release) {
if (((_root.statpoints > 0) && (_root.magicmenu.squirt._currentframe > 1)) && (!baught)) {
this.gotoAndStop(2);
_root.statpoints = _root.statpoints - 1;
_root.water.crushslot.gotoAndStop(2);
baught = true;
}
}
Instance of Symbol 903 MovieClip "icespike" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
baught = false;
}
on (release) {
if (((_root.statpoints > 0) && (_root.magicmenu.squirt._currentframe > 1)) && (!baught)) {
this.gotoAndStop(2);
_root.statpoints = _root.statpoints - 1;
_root.water.icespikeslot.gotoAndStop(2);
baught = true;
}
}
Instance of Symbol 906 MovieClip "minorheal" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
baught = false;
}
on (release) {
if (((_root.statpoints > 0) && (_root.magicmenu.leafcut._currentframe > 1)) && (!baught)) {
this.gotoAndStop(2);
_root.statpoints = _root.statpoints - 1;
_root.nature.minorhealslot.gotoAndStop(2);
baught = true;
}
}
Instance of Symbol 909 MovieClip "vinewhip" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
baught = false;
}
on (release) {
if (((_root.statpoints > 0) && (_root.magicmenu.leafcut._currentframe > 1)) && (!baught)) {
this.gotoAndStop(2);
_root.statpoints = _root.statpoints - 1;
_root.nature.vinewhipslot.gotoAndStop(2);
baught = true;
}
}
Instance of Symbol 913 MovieClip "firerain" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
baught = false;
}
onClipEvent (enterFrame) {
if ((_root.magicmenu.firetrap._currentframe > 1) && (this._currentframe > 1)) {
this.gotoAndStop(3);
}
}
on (release) {
if (((_root.statpoints > 0) && (_root.magicmenu.firewalk._currentframe > 1)) && (!baught)) {
this.gotoAndStop(2);
_root.statpoints = _root.statpoints - 1;
_root.fire.firerainslot.gotoAndStop(2);
baught = true;
}
}
Instance of Symbol 916 MovieClip "firetrap" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
baught = false;
}
on (release) {
if (((_root.statpoints > 0) && (_root.magicmenu.flamelance._currentframe > 1)) && (!baught)) {
this.gotoAndStop(2);
_root.statpoints = _root.statpoints - 1;
_root.fire.firetrapslot.gotoAndStop(2);
baught = true;
}
}
Instance of Symbol 919 MovieClip "typhoon" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
baught = false;
}
on (release) {
if (((_root.statpoints > 0) && (_root.magicmenu.crushingwave._currentframe > 1)) && (!baught)) {
this.gotoAndStop(2);
_root.statpoints = _root.statpoints - 1;
_root.water.typhoonslot.gotoAndStop(2);
baught = true;
}
}
Instance of Symbol 923 MovieClip "blizzard" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
baught = false;
}
onClipEvent (enterFrame) {
if ((_root.magicmenu.typhoon._currentframe > 1) && (this._currentframe > 1)) {
this.gotoAndStop(3);
}
}
on (release) {
if (((_root.statpoints > 0) && (_root.magicmenu.icespike._currentframe > 1)) && (!baught)) {
this.gotoAndStop(2);
_root.statpoints = _root.statpoints - 1;
_root.water.blizzardslot.gotoAndStop(2);
baught = true;
}
}
Instance of Symbol 927 MovieClip "barkarmor" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
baught = false;
}
onClipEvent (enterFrame) {
if ((_root.magicmenu.thorns._currentframe > 1) && (this._currentframe > 1)) {
this.gotoAndStop(3);
}
}
on (release) {
if (((_root.statpoints > 0) && (_root.magicmenu.minorheal._currentframe > 1)) && (!baught)) {
this.gotoAndStop(2);
_root.statpoints = _root.statpoints - 1;
_root.nature.barkarmorslot.gotoAndStop(2);
baught = true;
}
}
Instance of Symbol 930 MovieClip "thorns" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
baught = false;
}
on (release) {
if (((_root.statpoints > 0) && (_root.magicmenu.vinewhip._currentframe > 1)) && (!baught)) {
this.gotoAndStop(2);
_root.statpoints = _root.statpoints - 1;
_root.nature.thornsslot.gotoAndStop(2);
baught = true;
}
}
Instance of Symbol 933 MovieClip "firesummon" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
baught = false;
}
on (release) {
if ((((_root.statpoints > 0) && (_root.magicmenu.firewalk._currentframe > 1)) && (_root.magicmenu.firetrap._currentframe > 1)) && (!baught)) {
this.gotoAndStop(2);
_root.statpoints = _root.statpoints - 1;
_root.fire.lustslot.gotoAndStop(2);
baught = true;
}
}
Instance of Symbol 936 MovieClip "tornado" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
baught = false;
}
on (release) {
if ((((_root.statpoints > 0) && (_root.magicmenu.typhoon._currentframe > 1)) && (_root.magicmenu.blizzard._currentframe > 1)) && (!baught)) {
this.gotoAndStop(2);
_root.statpoints = _root.statpoints - 1;
_root.water.cycloneslot.gotoAndStop(2);
baught = true;
}
}
Instance of Symbol 939 MovieClip "tree of life" in Symbol 943 MovieClip Frame 1
onClipEvent (load) {
baught = false;
}
on (release) {
if ((((_root.statpoints > 0) && (_root.magicmenu.barkarmor._currentframe > 1)) && (_root.magicmenu.thorns._currentframe > 1)) && (!baught)) {
this.gotoAndStop(2);
_root.statpoints = _root.statpoints - 1;
_root.nature.lifetreeslot.gotoAndStop(2);
baught = true;
}
}
Instance of Symbol 941 MovieClip in Symbol 943 MovieClip Frame 1
on (release) {
if (_root.magicmenu.coverformagicmenu._currentframe < 2) {
_root.pausegame.gotoAndStop(2);
_root.magicmenu.coverformagicmenu.gotoAndStop(2);
}
}
Symbol 956 MovieClip Frame 1
stop();
Symbol 956 MovieClip Frame 15
stop();
Symbol 960 MovieClip Frame 1
stop();
Symbol 960 MovieClip Frame 3
stop();
Symbol 966 MovieClip Frame 1
stop();
Symbol 966 MovieClip Frame 3
stop();
Symbol 971 MovieClip Frame 1
stop();
Symbol 971 MovieClip Frame 3
stop();
Symbol 977 MovieClip Frame 1
stop();
Symbol 977 MovieClip Frame 3
stop();
Symbol 984 MovieClip Frame 1
stop();
Symbol 984 MovieClip Frame 3
stop();
Symbol 990 MovieClip Frame 1
stop();
Symbol 990 MovieClip Frame 3
stop();
Symbol 995 MovieClip Frame 1
stop();
Symbol 995 MovieClip Frame 3
stop();
Symbol 1000 MovieClip Frame 1
stop();
Symbol 1000 MovieClip Frame 3
stop();
Symbol 1008 MovieClip Frame 1
stop();
Symbol 1008 MovieClip Frame 3
stop();
Symbol 1012 MovieClip Frame 1
stop();
Instance of Symbol 945 MovieClip in Symbol 1012 MovieClip Frame 1
on (release) {
_root.pausegame.gotoAndStop(2);
_root.upgradespage.gotoAndStop(2);
}
Symbol 1012 MovieClip Frame 2
stop();
Instance of Symbol 945 MovieClip in Symbol 1012 MovieClip Frame 2
on (release) {
if (_root.magicmenu.coverformagicmenu._currentframe != 2) {
_root.pausegame.gotoAndStop(1);
}
_root.upgradespage.gotoAndStop(1);
}
Instance of Symbol 960 MovieClip "charbutton" in Symbol 1012 MovieClip Frame 2
on (release) {
if (((_root.meat > 49) && (_root.charhealth < _root.maxhealth)) && (_root.char._currentframe < 5)) {
_root.charhealth = _root.charhealth + 10;
_root.meat = _root.meat - 50;
_root.charbutton.yesandno.gotoAndPlay(16);
}
if (_root.charhealth > _root.maxhealth) {
_root.charhealth = _root.maxhealth;
}
}
on (press) {
if (_root.meat < 49) {
_root.charbutton.yesandno.gotoAndPlay(2);
}
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 966 MovieClip "hqbutton" in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
}
on (release) {
if (((_root.meat > 49) && (_root.char._currentframe < 5)) and (_root.castlehealthbar.castlebar._x < -5)) {
_root.jellycastlehealth = _root.jellycastlehealth + 10;
_root.castlehealthbar.castlebar._x = _root.castlehealthbar.castlebar._x + 10;
_root.meat = _root.meat - 50;
_root.hqbutton.yesandno.gotoAndPlay(16);
}
}
on (press) {
if (_root.meat < 49) {
_root.hqbutton.yesandno.gotoAndPlay(2);
}
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 971 MovieClip "workerbutton" in Symbol 1012 MovieClip Frame 2
onClipEvent (load) {
hp = 7000 + _root.workerlimit;
}
on (release) {
if (((_root.meat > 99) && (_root.workerlimit < _root.workercap)) && (_root.char._currentframe < 5)) {
hp++;
_root.meat = _root.meat - 100;
_root.workerbutton.yesandno.gotoAndPlay(16);
_root.workerbutton.gotoAndStop(16);
_root.worker.duplicateMovieClip("worker" + hp, _root.getNextHighestDepth(), {_x:(Math.random() * 20) + 288, _y:(Math.random() * 20) + 265});
_root.workerlimit = _root.workerlimit + 1;
}
}
on (press) {
if ((_root.meat < 49) or (_root.workerlimit > 5)) {
_root.workerbutton.yesandno.gotoAndPlay(2);
}
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 977 MovieClip "workercap" in Symbol 1012 MovieClip Frame 2
on (release) {
if (((_root.workercap < 6) && (_root.meat > 299)) && (_root.char._currentframe < 5)) {
_root.meat = _root.meat - 300;
_root.workercap = _root.workercap + 1;
}
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 984 MovieClip "attackpowerbutton" in Symbol 1012 MovieClip Frame 2
on (release) {
if ((_root.meat > 149) && (_root.char._currentframe < 5)) {
_root.attackpower = _root.attackpower + 2;
_root.attackpowersecond = _root.attackpowersecond + 2;
_root.meat = _root.meat - 150;
_root.attackpowerbutton.yesandno.gotoAndPlay(16);
}
}
on (press) {
if (_root.meat < 149) {
_root.attackpowerbutton.yesandno.gotoAndPlay(2);
}
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 990 MovieClip "deffencebutton" in Symbol 1012 MovieClip Frame 2
on (release) {
if (((_root.meat > 299) && (_root.dodgechance < 50)) && (_root.char._currentframe < 5)) {
_root.dodgechance = _root.dodgechance + 5;
_root.meat = _root.meat - 300;
_root.deffencebutton.yesandno.gotoAndPlay(16);
}
}
on (press) {
if (_root.meat < 79) {
_root.deffencebutton.yesandno.gotoAndPlay(2);
}
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 995 MovieClip "healthboosterbutton" in Symbol 1012 MovieClip Frame 2
on (release) {
if (((_root.meat > 599) && (_root.char._currentframe < 5)) and (_root.maxhealth < 900)) {
_root.maxhealth = _root.maxhealth + 25;
_root.charhealth = _root.charhealth + 25;
_root.meat = _root.meat - 600;
_root.deffencebutton.yesandno.gotoAndPlay(16);
}
}
on (press) {
if (_root.meat < 599) {
_root.deffencebutton.yesandno.gotoAndPlay(2);
}
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 1000 MovieClip "speed button" in Symbol 1012 MovieClip Frame 2
on (release) {
if (((_root.meat > 399) && (_root.speed < 11)) && (_root.char._currentframe < 5)) {
_root.speed = _root.speed + 1;
_root.meat = _root.meat - 400;
_root.deffencebutton.yesandno.gotoAndPlay(16);
}
}
on (press) {
if (_root.meat < 399) {
_root.deffencebutton.yesandno.gotoAndPlay(2);
}
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Instance of Symbol 1008 MovieClip "manaboosterbutton" in Symbol 1012 MovieClip Frame 2
on (release) {
if (((_root.meat > 599) && (_root.manatotal < 600)) && (_root.char._currentframe < 5)) {
_root.manatotal = _root.manatotal + 50;
_root.manarate = _root.manarate + 0.2;
_root.manabar.manabarmask.nextFrame();
_root.manabar.manabarend._y = _root.manabar.manabarend._y + 50;
_root.meat = _root.meat - 600;
_root.deffencebutton.yesandno.gotoAndPlay(16);
}
}
on (press) {
if (_root.meat < 599) {
_root.deffencebutton.yesandno.gotoAndPlay(2);
}
}
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
Symbol 1024 MovieClip Frame 1
stop();
Symbol 1024 MovieClip Frame 2
stop();
Instance of Symbol 1023 MovieClip in Symbol 1024 MovieClip Frame 2
onClipEvent (load) {
this.timer = 15;
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
this.timer = this.timer - 1;
}
if (this.timer < 1) {
_root.water.icespikeslot.icespikebutton.gotoAndStop(1);
}
}
Symbol 1025 MovieClip Frame 1
stop();
Symbol 1025 MovieClip Frame 2
stop();
Instance of Symbol 1024 MovieClip "icespikebutton" in Symbol 1025 MovieClip Frame 2
onClipEvent (load) {
v = 31000;
}
on (rollOver) {
_root.spelltext.gotoAndStop(3);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
on (press) {
if ((((this._currentframe < 2) && (_root.manafinal > 19)) && (_root.pausegame._currentframe < 2)) && (_root.char._currentframe < 5)) {
_root.spelltext.gotoAndStop(1);
_root.manabar.manabarinside._y = _root.manabar.manabarinside._y - 20;
_root.manafinal = _root.manafinal - 20;
_root.icespikespell.duplicateMovieClip("icespikespell" + v, _root.getNextHighestDepth(), {_x:_root.char._x, _y:_root.char._y});
this.gotoAndStop(2);
}
}
Symbol 1030 MovieClip Frame 1
stop();
Symbol 1030 MovieClip Frame 2
stop();
Instance of Symbol 1023 MovieClip in Symbol 1030 MovieClip Frame 2
onClipEvent (load) {
this.timer = 20;
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
this.timer = this.timer - 1;
}
if (this.timer < 1) {
_root.water.crushslot.crushbutton.gotoAndStop(1);
}
}
Symbol 1031 MovieClip Frame 1
stop();
Symbol 1031 MovieClip Frame 2
stop();
Instance of Symbol 1030 MovieClip "crushbutton" in Symbol 1031 MovieClip Frame 2
onClipEvent (load) {
v = 31002;
}
on (rollOver) {
_root.spelltext.gotoAndStop(4);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
on (press) {
if ((((this._currentframe < 2) && (_root.manafinal > 69)) && (_root.pausegame._currentframe < 2)) && (_root.char._currentframe < 5)) {
_root.spelltext.gotoAndStop(1);
_root.manabar.manabarinside._y = _root.manabar.manabarinside._y - 70;
_root.manafinal = _root.manafinal - 70;
_root.crushspell.duplicateMovieClip("crushspell" + v, _root.getNextHighestDepth(), {_x:_root.char._x, _y:_root.char._y});
this.gotoAndStop(2);
}
}
Symbol 1035 MovieClip Frame 1
stop();
Symbol 1035 MovieClip Frame 2
stop();
Instance of Symbol 1023 MovieClip in Symbol 1035 MovieClip Frame 2
onClipEvent (load) {
this.timer = 19;
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
this.timer = this.timer - 1;
}
if (this.timer < 1) {
_root.water.blizzardslot.blizzardbutton.gotoAndStop(1);
}
}
Symbol 1036 MovieClip Frame 1
stop();
Symbol 1036 MovieClip Frame 2
stop();
Instance of Symbol 1035 MovieClip "blizzardbutton" in Symbol 1036 MovieClip Frame 2
onClipEvent (load) {
v = 31004;
}
on (rollOver) {
_root.spelltext.gotoAndStop(5);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
on (press) {
if ((((this._currentframe < 2) && (_root.manafinal > 149)) && (_root.pausegame._currentframe < 2)) && (_root.char._currentframe < 5)) {
_root.spelltext.gotoAndStop(1);
_root.manabar.manabarinside._y = _root.manabar.manabarinside._y - 150;
_root.manafinal = _root.manafinal - 150;
_root.blizzardspell.duplicateMovieClip("blizzardspell" + v, _root.getNextHighestDepth(), {_x:_root.char._x, _y:_root.char._y});
this.gotoAndStop(2);
}
}
Symbol 1040 MovieClip Frame 1
stop();
Symbol 1040 MovieClip Frame 2
stop();
Instance of Symbol 1023 MovieClip in Symbol 1040 MovieClip Frame 2
onClipEvent (load) {
this.timer = 30;
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
this.timer = this.timer - 1;
}
if (this.timer < 1) {
_root.water.typhoonslot.typhoonbutton.gotoAndStop(1);
}
}
Symbol 1041 MovieClip Frame 1
stop();
Symbol 1041 MovieClip Frame 2
stop();
Instance of Symbol 1040 MovieClip "typhoonbutton" in Symbol 1041 MovieClip Frame 2
onClipEvent (load) {
v = 310058 /* 0x04BB2A */;
}
on (rollOver) {
_root.spelltext.gotoAndStop(6);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
on (press) {
if ((((this._currentframe < 2) && (_root.manafinal > 129)) && (_root.pausegame._currentframe < 2)) && (_root.char._currentframe < 5)) {
_root.spelltext.gotoAndStop(1);
_root.manabar.manabarinside._y = _root.manabar.manabarinside._y - 130;
_root.manafinal = _root.manafinal - 130;
_root.typhoonspell.duplicateMovieClip("typhoonspell" + v, _root.getNextHighestDepth(), {_x:_root.char._x, _y:_root.char._y});
this.gotoAndStop(2);
}
}
Symbol 1045 MovieClip Frame 1
stop();
Symbol 1045 MovieClip Frame 2
stop();
Instance of Symbol 1023 MovieClip in Symbol 1045 MovieClip Frame 2
onClipEvent (load) {
this.timer = 60;
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
this.timer = this.timer - 1;
}
if (this.timer < 1) {
_root.water.cycloneslot.cyclonebutton.gotoAndStop(1);
}
}
Symbol 1046 MovieClip Frame 1
stop();
Symbol 1046 MovieClip Frame 2
stop();
Instance of Symbol 1045 MovieClip "cyclonebutton" in Symbol 1046 MovieClip Frame 2
onClipEvent (load) {
v = 31008;
}
on (rollOver) {
_root.spelltext.gotoAndStop(7);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
on (press) {
if ((((this._currentframe < 2) && (_root.manafinal > 198)) && (_root.pausegame._currentframe < 2)) && (_root.char._currentframe < 5)) {
_root.spelltext.gotoAndStop(1);
_root.manabar.manabarinside._y = _root.manabar.manabarinside._y - 199;
_root.manafinal = _root.manafinal - 199;
_root.cyclonespell.duplicateMovieClip("cyclonespell" + v, _root.getNextHighestDepth(), {_x:_root.char._x, _y:_root.char._y});
this.gotoAndStop(2);
}
}
Symbol 1050 MovieClip Frame 1
stop();
Symbol 1050 MovieClip Frame 2
stop();
Instance of Symbol 1023 MovieClip in Symbol 1050 MovieClip Frame 2
onClipEvent (load) {
this.timer = 30;
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
this.timer = this.timer - 1;
}
if (this.timer < 1) {
_root.water.squirtslot.squirtbutton.gotoAndStop(1);
}
}
Symbol 1051 MovieClip Frame 1
stop();
Symbol 1051 MovieClip Frame 2
stop();
Instance of Symbol 1050 MovieClip "squirtbutton" in Symbol 1051 MovieClip Frame 2
onClipEvent (load) {
v = 50000;
}
on (rollOver) {
_root.spelltext.gotoAndStop(2);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
on (press) {
if ((((this._currentframe < 2) && (_root.manafinal > 49)) && (_root.pausegame._currentframe < 2)) && (_root.char._currentframe < 5)) {
_root.spelltext.gotoAndStop(1);
_root.manabar.manabarinside._y = _root.manabar.manabarinside._y - 50;
_root.manafinal = _root.manafinal - 50;
_root.squirtspell.duplicateMovieClip("squirtspell" + v, _root.getNextHighestDepth(), {_x:_root.char._x, _y:_root.char._y});
this.gotoAndStop(2);
}
}
Symbol 1058 MovieClip Frame 1
stop();
Symbol 1058 MovieClip Frame 2
stop();
Instance of Symbol 1023 MovieClip in Symbol 1058 MovieClip Frame 2
onClipEvent (load) {
this.timer = 8;
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
this.timer = this.timer - 1;
}
if (this.timer < 1) {
_root.fire.fireburstslot.fireburstbutton.gotoAndStop(1);
}
}
Symbol 1059 MovieClip Frame 1
stop();
Symbol 1059 MovieClip Frame 2
stop();
Instance of Symbol 1058 MovieClip "fireburstbutton" in Symbol 1059 MovieClip Frame 2
onClipEvent (load) {
v = 320034 /* 0x04E222 */;
}
on (rollOver) {
_root.spelltext.gotoAndStop(8);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
on (press) {
if ((((this._currentframe < 2) && (_root.manafinal > 49)) && (_root.pausegame._currentframe < 2)) && (_root.char._currentframe < 5)) {
_root.spelltext.gotoAndStop(1);
_root.manabar.manabarinside._y = _root.manabar.manabarinside._y - 50;
_root.manafinal = _root.manafinal - 50;
_root.fireburstspell.duplicateMovieClip("fireburstspell" + v, _root.getNextHighestDepth(), {_x:_root.char._x, _y:_root.char._y});
this.gotoAndStop(2);
}
}
Symbol 1063 MovieClip Frame 1
stop();
Symbol 1063 MovieClip Frame 2
stop();
Instance of Symbol 1023 MovieClip in Symbol 1063 MovieClip Frame 2
onClipEvent (load) {
this.timer = 40;
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
this.timer = this.timer - 1;
}
if (this.timer < 1) {
_root.fire.flamelanceslot.flamelancebutton.gotoAndStop(1);
}
}
Symbol 1064 MovieClip Frame 1
stop();
Symbol 1064 MovieClip Frame 2
stop();
Instance of Symbol 1063 MovieClip "flamelancebutton" in Symbol 1064 MovieClip Frame 2
onClipEvent (load) {
v = 320036 /* 0x04E224 */;
}
on (rollOver) {
_root.spelltext.gotoAndStop(10);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
on (press) {
if ((((this._currentframe < 2) && (_root.manafinal > 109)) && (_root.pausegame._currentframe < 2)) && (_root.char._currentframe < 5)) {
_root.spelltext.gotoAndStop(1);
_root.manabar.manabarinside._y = _root.manabar.manabarinside._y - 110;
_root.manafinal = _root.manafinal - 110;
_root.flamelancespell.duplicateMovieClip("flamelancespell" + v, _root.getNextHighestDepth(), {_x:_root.char._x, _y:_root.char._y});
this.gotoAndStop(2);
}
}
Symbol 1067 MovieClip Frame 1
stop();
Symbol 1067 MovieClip Frame 2
stop();
Instance of Symbol 1023 MovieClip in Symbol 1067 MovieClip Frame 2
onClipEvent (load) {
this.timer = 30;
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
this.timer = this.timer - 1;
}
if (this.timer < 1) {
_root.fire.firerainslot.firerainbutton.gotoAndStop(1);
}
}
Symbol 1068 MovieClip Frame 1
stop();
Symbol 1068 MovieClip Frame 2
stop();
Instance of Symbol 1067 MovieClip "firerainbutton" in Symbol 1068 MovieClip Frame 2
onClipEvent (load) {
v = 320038 /* 0x04E226 */;
}
on (rollOver) {
_root.spelltext.gotoAndStop(11);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
on (press) {
if ((((this._currentframe < 2) && (_root.manafinal > 179)) && (_root.pausegame._currentframe < 2)) && (_root.char._currentframe < 5)) {
_root.spelltext.gotoAndStop(1);
_root.manabar.manabarinside._y = _root.manabar.manabarinside._y - 180;
_root.manafinal = _root.manafinal - 180;
_root.firerainspell.duplicateMovieClip("firerainspell" + v, _root.getNextHighestDepth(), {_x:_root.char._x, _y:_root.char._y});
this.gotoAndStop(2);
}
}
Symbol 1071 MovieClip Frame 1
stop();
Symbol 1071 MovieClip Frame 2
stop();
Instance of Symbol 1023 MovieClip in Symbol 1071 MovieClip Frame 2
onClipEvent (load) {
this.timer = 20;
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
this.timer = this.timer - 1;
}
if (this.timer < 1) {
_root.fire.firewalkslot.firewalkbutton.gotoAndStop(1);
}
}
Symbol 1072 MovieClip Frame 1
stop();
Symbol 1072 MovieClip Frame 2
stop();
Instance of Symbol 1071 MovieClip "firewalkbutton" in Symbol 1072 MovieClip Frame 2
onClipEvent (load) {
v = 320047 /* 0x04E22F */;
}
on (rollOver) {
_root.spelltext.gotoAndStop(9);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
on (press) {
if ((((this._currentframe < 2) && (_root.manafinal > 59)) && (_root.pausegame._currentframe < 2)) && (_root.char._currentframe < 5)) {
_root.spelltext.gotoAndStop(1);
_root.manabar.manabarinside._y = _root.manabar.manabarinside._y - 60;
_root.manafinal = _root.manafinal - 60;
_root.firewalkspell.duplicateMovieClip("firewalkspell" + v, _root.getNextHighestDepth(), {_x:_root.char._x, _y:_root.char._y});
this.gotoAndStop(2);
}
}
Symbol 1075 MovieClip Frame 1
stop();
Symbol 1075 MovieClip Frame 2
stop();
Instance of Symbol 1023 MovieClip in Symbol 1075 MovieClip Frame 2
onClipEvent (load) {
this.timer = 35;
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
this.timer = this.timer - 1;
}
if (this.timer < 1) {
_root.fire.firetrapslot.firetrapbutton.gotoAndStop(1);
}
}
Symbol 1076 MovieClip Frame 1
stop();
Symbol 1076 MovieClip Frame 2
stop();
Instance of Symbol 1075 MovieClip "firetrapbutton" in Symbol 1076 MovieClip Frame 2
onClipEvent (load) {
v = 320052 /* 0x04E234 */;
}
on (rollOver) {
_root.spelltext.gotoAndStop(12);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
on (press) {
if ((((this._currentframe < 2) && (_root.manafinal > 149)) && (_root.pausegame._currentframe < 2)) && (_root.char._currentframe < 5)) {
_root.spelltext.gotoAndStop(1);
_root.manabar.manabarinside._y = _root.manabar.manabarinside._y - 150;
_root.manafinal = _root.manafinal - 150;
_root.firetrapspell.duplicateMovieClip("firetrapspell" + v, _root.getNextHighestDepth(), {_x:_root.char._x, _y:_root.char._y});
this.gotoAndStop(2);
}
}
Symbol 1079 MovieClip Frame 1
stop();
Symbol 1079 MovieClip Frame 2
stop();
Instance of Symbol 1023 MovieClip in Symbol 1079 MovieClip Frame 2
onClipEvent (load) {
this.timer = 60;
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
this.timer = this.timer - 1;
}
if (this.timer < 1) {
_root.fire.lustslot.lustbutton.gotoAndStop(1);
}
}
Symbol 1080 MovieClip Frame 1
stop();
Symbol 1080 MovieClip Frame 2
stop();
Instance of Symbol 1079 MovieClip "lustbutton" in Symbol 1080 MovieClip Frame 2
onClipEvent (load) {
v = 320097 /* 0x04E261 */;
}
on (rollOver) {
_root.spelltext.gotoAndStop(13);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
on (press) {
if ((((this._currentframe < 2) && (_root.manafinal > 199)) && (_root.pausegame._currentframe < 2)) && (_root.char._currentframe < 5)) {
_root.spelltext.gotoAndStop(1);
_root.manabar.manabarinside._y = _root.manabar.manabarinside._y - 200;
_root.manafinal = _root.manafinal - 200;
_root.lustspell.duplicateMovieClip("lustspell" + v, _root.getNextHighestDepth(), {_x:_root.char._x, _y:_root.char._y});
this.gotoAndStop(2);
}
}
Symbol 1086 MovieClip Frame 1
stop();
Symbol 1086 MovieClip Frame 2
stop();
Instance of Symbol 1023 MovieClip in Symbol 1086 MovieClip Frame 2
onClipEvent (load) {
this.timer = 8;
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
this.timer = this.timer - 1;
}
if (this.timer < 1) {
_root.nature.leafcutslot.leafcutbutton.gotoAndStop(1);
}
}
Symbol 1087 MovieClip Frame 1
stop();
Symbol 1087 MovieClip Frame 2
stop();
Instance of Symbol 1086 MovieClip "leafcutbutton" in Symbol 1087 MovieClip Frame 2
onClipEvent (load) {
v = 340031 /* 0x05303F */;
}
on (rollOver) {
_root.spelltext.gotoAndStop(14);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
on (press) {
if ((((this._currentframe < 2) && (_root.manafinal > 19)) && (_root.pausegame._currentframe < 2)) && (_root.char._currentframe < 5)) {
_root.spelltext.gotoAndStop(1);
_root.manabar.manabarinside._y = _root.manabar.manabarinside._y - 20;
_root.manafinal = _root.manafinal - 20;
_root.leafcutspell.duplicateMovieClip("leafcutspell" + v, _root.getNextHighestDepth(), {_x:_root.char._x, _y:_root.char._y});
this.gotoAndStop(2);
}
}
Symbol 1089 MovieClip Frame 1
stop();
Symbol 1089 MovieClip Frame 2
stop();
Instance of Symbol 1023 MovieClip in Symbol 1089 MovieClip Frame 2
onClipEvent (load) {
this.timer = 40;
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
this.timer = this.timer - 1;
}
if (this.timer < 1) {
_root.nature.minorhealslot.minorhealbutton.gotoAndStop(1);
}
}
Symbol 1090 MovieClip Frame 1
stop();
Symbol 1090 MovieClip Frame 2
stop();
Instance of Symbol 1089 MovieClip "minorhealbutton" in Symbol 1090 MovieClip Frame 2
onClipEvent (load) {
v = 340067 /* 0x053063 */;
}
on (rollOver) {
_root.spelltext.gotoAndStop(15);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
on (press) {
if ((((this._currentframe < 2) && (_root.manafinal > 44)) && (_root.pausegame._currentframe < 2)) && (_root.char._currentframe < 5)) {
_root.spelltext.gotoAndStop(1);
_root.manabar.manabarinside._y = _root.manabar.manabarinside._y - 45;
_root.manafinal = _root.manafinal - 45;
_root.minorhealspell.duplicateMovieClip("minorhealspell" + v, _root.getNextHighestDepth(), {_x:_root.char._x, _y:_root.char._y});
this.gotoAndStop(2);
}
}
Symbol 1093 MovieClip Frame 1
stop();
Symbol 1093 MovieClip Frame 2
stop();
Instance of Symbol 1023 MovieClip in Symbol 1093 MovieClip Frame 2
onClipEvent (load) {
this.timer = 15;
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
this.timer = this.timer - 1;
}
if (this.timer < 1) {
_root.nature.vinewhipslot.vinewhipbutton.gotoAndStop(1);
}
}
Symbol 1094 MovieClip Frame 1
stop();
Symbol 1094 MovieClip Frame 2
stop();
Instance of Symbol 1093 MovieClip "vinewhipbutton" in Symbol 1094 MovieClip Frame 2
onClipEvent (load) {
v = 340096 /* 0x053080 */;
}
on (rollOver) {
_root.spelltext.gotoAndStop(16);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
on (press) {
if ((((this._currentframe < 2) && (_root.manafinal > 29)) && (_root.pausegame._currentframe < 2)) && (_root.char._currentframe < 5)) {
_root.spelltext.gotoAndStop(1);
_root.manabar.manabarinside._y = _root.manabar.manabarinside._y - 30;
_root.manafinal = _root.manafinal - 30;
_root.vinewhipspell.duplicateMovieClip("vinewhipspell" + v, _root.getNextHighestDepth(), {_x:_root.char._x, _y:_root.char._y});
this.gotoAndStop(2);
}
}
Symbol 1096 MovieClip Frame 1
stop();
Symbol 1096 MovieClip Frame 2
stop();
Instance of Symbol 1023 MovieClip in Symbol 1096 MovieClip Frame 2
onClipEvent (load) {
this.timer = 45;
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
this.timer = this.timer - 1;
}
if (this.timer < 1) {
_root.nature.thornsslot.thornsbutton.gotoAndStop(1);
}
}
Symbol 1097 MovieClip Frame 1
stop();
Symbol 1097 MovieClip Frame 2
stop();
Instance of Symbol 1096 MovieClip "thornsbutton" in Symbol 1097 MovieClip Frame 2
onClipEvent (load) {
v = 340011 /* 0x05302B */;
}
on (rollOver) {
_root.spelltext.gotoAndStop(18);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
on (press) {
if ((((this._currentframe < 2) && (_root.manafinal > 99)) && (_root.pausegame._currentframe < 2)) && (_root.char._currentframe < 5)) {
_root.spelltext.gotoAndStop(1);
_root.manabar.manabarinside._y = _root.manabar.manabarinside._y - 100;
_root.manafinal = _root.manafinal - 100;
_root.thornsspell.duplicateMovieClip("thornsspell" + v, _root.getNextHighestDepth(), {_x:_root.char._x, _y:_root.char._y});
this.gotoAndStop(2);
}
}
Symbol 1099 MovieClip Frame 1
stop();
Symbol 1099 MovieClip Frame 2
stop();
Instance of Symbol 1023 MovieClip in Symbol 1099 MovieClip Frame 2
onClipEvent (load) {
this.timer = 20;
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
this.timer = this.timer - 1;
}
if (this.timer < 1) {
_root.nature.barkarmorslot.barkarmorbutton.gotoAndStop(1);
}
}
Symbol 1100 MovieClip Frame 1
stop();
Symbol 1100 MovieClip Frame 2
stop();
Instance of Symbol 1099 MovieClip "barkarmorbutton" in Symbol 1100 MovieClip Frame 2
onClipEvent (load) {
v = 340026 /* 0x05303A */;
}
on (rollOver) {
_root.spelltext.gotoAndStop(17);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
on (press) {
if ((((this._currentframe < 2) && (_root.manafinal > 79)) && (_root.pausegame._currentframe < 2)) && (_root.char._currentframe < 5)) {
_root.spelltext.gotoAndStop(1);
_root.manabar.manabarinside._y = _root.manabar.manabarinside._y - 80;
_root.manafinal = _root.manafinal - 80;
_root.barkarmorspell.duplicateMovieClip("barkarmorspell" + v, _root.getNextHighestDepth(), {_x:_root.char._x, _y:_root.char._y});
this.gotoAndStop(2);
}
}
Symbol 1103 MovieClip Frame 1
stop();
Symbol 1103 MovieClip Frame 2
stop();
Instance of Symbol 1023 MovieClip in Symbol 1103 MovieClip Frame 2
onClipEvent (load) {
this.timer = 45;
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((_root.timingdevice._currentframe > 19) && (!gpause)) {
this.timer = this.timer - 1;
}
if (this.timer < 1) {
_root.nature.lifetreeslot.lifetreebutton.gotoAndStop(1);
}
}
Symbol 1104 MovieClip Frame 1
stop();
Symbol 1104 MovieClip Frame 2
stop();
Instance of Symbol 1103 MovieClip "lifetreebutton" in Symbol 1104 MovieClip Frame 2
onClipEvent (load) {
v = 340084 /* 0x053074 */;
}
on (rollOver) {
_root.spelltext.gotoAndStop(19);
}
on (rollOut) {
_root.spelltext.gotoAndStop(1);
}
on (press) {
if ((((this._currentframe < 2) && (_root.manafinal > 179)) && (_root.pausegame._currentframe < 2)) && (_root.char._currentframe < 5)) {
_root.spelltext.gotoAndStop(1);
_root.manabar.manabarinside._y = _root.manabar.manabarinside._y - 180;
_root.manafinal = _root.manafinal - 180;
_root.lifetreespell.duplicateMovieClip("lifetreespell" + v, _root.getNextHighestDepth(), {_x:_root.char._x, _y:_root.char._y});
this.gotoAndStop(2);
}
}
Symbol 1152 MovieClip Frame 1
stop();
Symbol 1152 MovieClip Frame 2
stop();
Symbol 1152 MovieClip Frame 3
stop();
Symbol 1152 MovieClip Frame 4
stop();
Symbol 1152 MovieClip Frame 5
stop();
Symbol 1152 MovieClip Frame 6
stop();
Symbol 1152 MovieClip Frame 7
stop();
Symbol 1152 MovieClip Frame 8
stop();
Symbol 1152 MovieClip Frame 9
stop();
Symbol 1152 MovieClip Frame 10
stop();
Symbol 1152 MovieClip Frame 11
stop();
Symbol 1152 MovieClip Frame 12
stop();
Symbol 1152 MovieClip Frame 13
stop();
Symbol 1152 MovieClip Frame 14
stop();
Symbol 1152 MovieClip Frame 15
stop();
Symbol 1152 MovieClip Frame 16
stop();
Symbol 1152 MovieClip Frame 17
stop();
Symbol 1152 MovieClip Frame 18
stop();
Symbol 1152 MovieClip Frame 19
stop();
Symbol 1152 MovieClip Frame 20
stop();
Symbol 1152 MovieClip Frame 21
stop();
Symbol 1152 MovieClip Frame 22
stop();
Symbol 1152 MovieClip Frame 23
stop();
Symbol 1152 MovieClip Frame 24
stop();
Symbol 1152 MovieClip Frame 25
stop();
Symbol 1152 MovieClip Frame 26
stop();
Symbol 1152 MovieClip Frame 27
stop();
Symbol 1170 MovieClip Frame 21
stop();
Symbol 1194 MovieClip Frame 1
stop();
Symbol 1194 MovieClip Frame 2
stop();
Symbol 1194 MovieClip Frame 140
stop();
Symbol 1205 MovieClip Frame 10
stop();
Symbol 1224 MovieClip Frame 1
stop();
Symbol 1224 MovieClip Frame 2
stop();
Symbol 1237 MovieClip Frame 1
stop();
Symbol 1237 MovieClip Frame 2
stop();
Symbol 1237 MovieClip Frame 282
stop();
Symbol 1246 MovieClip Frame 1
stop();
Symbol 1246 MovieClip Frame 2
stop();
Symbol 1246 MovieClip Frame 3
stop();
Instance of Symbol 275 MovieClip "trollswipe" in Symbol 1264 MovieClip Frame 21
onClipEvent (load) {
gpause = false;
enemyattack = 5;
}
onClipEvent (enterFrame) {
damage = enemyattack;
dodge = _root.dodgechance;
dodgerating = 0;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((damage < 0) && (!gpause)) {
damage = 0;
}
if (_root.char.hitTest(this) && (!gpause)) {
dodgerating = Math.random(100) * 99;
}
if ((_root.char.hitTest(this) && (dodgerating < dodge)) && (!gpause)) {
this.gotoAndPlay(2);
}
if ((dodgerating > dodge) && (!gpause)) {
_root.charhealth = _root.charhealth - damage;
dodgerating = 0;
}
if (_root.jellycastle.hitTest(this) && (!gpause)) {
_root.jellycastlehealth = _root.jellycastlehealth - damage;
_root.castlehealthbar.castlebar._x = _root.castlehealthbar.castlebar._x - damage;
}
}
Symbol 1268 MovieClip Frame 1
stop();
Instance of Symbol 1255 MovieClip "trollwalk" in Symbol 1268 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 232 MovieClip "fireeffect" in Symbol 1268 MovieClip Frame 1
onClipEvent (load) {
this.burntimer = 0;
}
onClipEvent (enterFrame) {
if (this.burntimer < 2) {
this.gotoAndStop(1);
this.stop();
}
if (this.burntimer > 1) {
this.play();
this.burntimer = this.burntimer - 1;
}
}
Symbol 1268 MovieClip Frame 2
stop();
Instance of Symbol 1264 MovieClip "trollattack" in Symbol 1268 MovieClip Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1268 MovieClip Frame 3
stop();
Instance of Symbol 1267 MovieClip "trollfrozen" in Symbol 1268 MovieClip Frame 3
onClipEvent (load) {
this.frozentimer = 100;
}
onClipEvent (enterFrame) {
this.frozentimer = this.frozentimer - 1;
}
Symbol 1269 MovieClip Frame 1
stop();
Instance of Symbol 1268 MovieClip "trollinside" in Symbol 1269 MovieClip Frame 1
onClipEvent (load) {
hittinggerm = false;
f = 8000;
gpause = false;
frozen = false;
if (_root.wave < 30) {
this.healthbar.gotoAndStop(1);
this.health = 200;
}
if ((_root.wave > 29) && (_root.wave < 41)) {
this.healthbar.gotoAndStop(2);
this.health = 350;
this.death = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 10, 0, 68);
this.tranz = new flash.geom.Transform(this);
this.tranz.colorTransform = this.death;
}
if ((_root.wave > 40) && (_root.wave)) {
this.healthbar.gotoAndStop(3);
this.health = 500;
this.death = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 20, 0, 68);
this.tranz = new flash.geom.Transform(this);
this.tranz.colorTransform = this.death;
}
}
onClipEvent (enterFrame) {
attackpoweramp = _root.attackpower;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.char) or (this.hitTest(_root.jellycastle) && (!gpause))) {
hittinggerm = true;
this.gotoAndStop(2);
}
if (((!this.hitTest(_root.char)) && (!this.hitTest(_root.jellycastle))) && (!gpause)) {
hittinggerm = false;
this.gotoAndStop(1);
}
if (this.hitTest(_root.char.charup.charupattack.swipe) && (!gpause)) {
f++;
_root.bloodup.duplicateMovieClip("bloodup" + f, f, {_x:_root.char._x, _y:_root.char._y - 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.chardown.chardownattack.swipe) && (!gpause)) {
f++;
_root.blooddown.duplicateMovieClip("blooddown" + f, f, {_x:_root.char._x, _y:_root.char._y + 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charright.charrightattack.swipe) && (!gpause)) {
f++;
_root.bloodright.duplicateMovieClip("bloodright" + f, f, {_x:_root.char._x + 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charleft.charleftattack.swipe) && (!gpause)) {
f++;
_root.bloodleft.duplicateMovieClip("bloodleft" + f, f, {_x:_root.char._x - 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.squirtspell50000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 30;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 30;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.crushspell31002) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.blizzardspell31004.blizzarddamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.icespikespell31000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 5;
}
if (this.hitTest(_root.typhoonspell310058.typhoondamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if ((this.trollfrozen.frozentimer < 0) && (frozen)) {
this.trollfrozen.frozentimer = 115;
this.gotoAndStop(1);
frozen = false;
}
if (this.fireeffect.burntimer > 2) {
this.health = this.health - 2.5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2.5;
}
if (this.hitTest(_root.fireburstspell320034) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 2;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.firewalkspell320047) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 8;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.flamelancespell320036) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.firerainspell320038.fireraindamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 10;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if (this.hitTest(_root.lustspell320097.lustdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
_root.charhealth = _root.charhealth + 1;
this.health = this.health - 1;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 1;
}
if (this.hitTest(_root.leafcutspell340031) && (!gpause)) {
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.vinewhipspell340096) && (!gpause)) {
this.health = this.health - 7;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 7;
}
if (this.hitTest(_root.thornsspell340011)) {
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
}
Symbol 1269 MovieClip Frame 2
stop();
Symbol 1272 MovieClip Frame 1
stop();
Symbol 1272 MovieClip Frame 2
stop();
Symbol 1272 MovieClip Frame 3
stop();
Symbol 1292 MovieClip Frame 1
stop();
Instance of Symbol 1292 MovieClip "troll2swipe" in Symbol 1295 MovieClip Frame 31
onClipEvent (load) {
gpause = false;
enemyattack = 7;
}
onClipEvent (enterFrame) {
damage = enemyattack;
dodge = _root.dodgechance;
dodgerating = 0;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((damage < 0) && (!gpause)) {
damage = 0;
}
if (_root.char.hitTest(this) && (!gpause)) {
dodgerating = Math.random(100) * 99;
}
if ((_root.char.hitTest(this) && (dodgerating < dodge)) && (!gpause)) {
this.gotoAndPlay(2);
}
if ((dodgerating > dodge) && (!gpause)) {
_root.charhealth = _root.charhealth - damage;
dodgerating = 0;
}
if (_root.jellycastle.hitTest(this) && (!gpause)) {
_root.jellycastlehealth = _root.jellycastlehealth - damage;
_root.castlehealthbar.castlebar._x = _root.castlehealthbar.castlebar._x - damage;
}
}
Symbol 1299 MovieClip Frame 1
stop();
Instance of Symbol 1280 MovieClip in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 232 MovieClip "fireeffect" in Symbol 1299 MovieClip Frame 1
onClipEvent (load) {
this.burntimer = 0;
}
onClipEvent (enterFrame) {
if (this.burntimer < 2) {
this.gotoAndStop(1);
this.stop();
}
if (this.burntimer > 1) {
this.play();
this.burntimer = this.burntimer - 1;
}
}
Symbol 1299 MovieClip Frame 2
stop();
Instance of Symbol 1295 MovieClip in Symbol 1299 MovieClip Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1299 MovieClip Frame 3
stop();
Instance of Symbol 1298 MovieClip "troll2frozen" in Symbol 1299 MovieClip Frame 3
onClipEvent (load) {
this.frozentimer = 100;
}
onClipEvent (enterFrame) {
this.frozentimer = this.frozentimer - 1;
}
Symbol 1300 MovieClip Frame 1
stop();
Instance of Symbol 1299 MovieClip "troll2inside" in Symbol 1300 MovieClip Frame 1
onClipEvent (load) {
hittinggerm = false;
f = 8000;
gpause = false;
frozen = false;
if (_root.wave < 27) {
this.healthbar.gotoAndStop(1);
this.health = 250;
}
if ((_root.wave > 26) && (_root.wave < 41)) {
this.healthbar.gotoAndStop(2);
this.health = 450;
this.death = new flash.geom.ColorTransform(1, 1, 1, 1, 43, 114, 94, 68);
this.tranz = new flash.geom.Transform(this);
this.tranz.colorTransform = this.death;
}
if ((_root.wave > 40) && (_root.wave)) {
this.healthbar.gotoAndStop(3);
this.health = 650;
this.death = new flash.geom.ColorTransform(1, 1, 1, 1, 35, 35, 35, 68);
this.tranz = new flash.geom.Transform(this);
this.tranz.colorTransform = this.death;
}
}
onClipEvent (enterFrame) {
attackpoweramp = _root.attackpower;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.char) or (this.hitTest(_root.jellycastle) && (!gpause))) {
hittinggerm = true;
this.gotoAndStop(2);
}
if (((!this.hitTest(_root.char)) && (!this.hitTest(_root.jellycastle))) && (!gpause)) {
hittinggerm = false;
this.gotoAndStop(1);
}
if (this.hitTest(_root.char.charup.charupattack.swipe) && (!gpause)) {
f++;
_root.bloodup.duplicateMovieClip("bloodup" + f, f, {_x:_root.char._x, _y:_root.char._y - 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.chardown.chardownattack.swipe) && (!gpause)) {
f++;
_root.blooddown.duplicateMovieClip("blooddown" + f, f, {_x:_root.char._x, _y:_root.char._y + 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charright.charrightattack.swipe) && (!gpause)) {
f++;
_root.bloodright.duplicateMovieClip("bloodright" + f, f, {_x:_root.char._x + 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charleft.charleftattack.swipe) && (!gpause)) {
f++;
_root.bloodleft.duplicateMovieClip("bloodleft" + f, f, {_x:_root.char._x - 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.squirtspell50000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 30;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 30;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.crushspell31002) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.blizzardspell31004.blizzarddamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.icespikespell31000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 5;
}
if (this.hitTest(_root.typhoonspell310058.typhoondamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if ((this.troll2frozen.frozentimer < 0) && (frozen)) {
this.troll2frozen.frozentimer = 115;
this.gotoAndStop(1);
frozen = false;
}
if (this.fireeffect.burntimer > 2) {
this.health = this.health - 2.5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2.5;
}
if (this.hitTest(_root.fireburstspell320034) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 2;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.firewalkspell320047) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 8;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.flamelancespell320036) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.firerainspell320038.fireraindamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 10;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if (this.hitTest(_root.lustspell320097.lustdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
_root.charhealth = _root.charhealth + 1;
this.health = this.health - 1;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 1;
}
if (this.hitTest(_root.leafcutspell340031) && (!gpause)) {
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.vinewhipspell340096) && (!gpause)) {
this.health = this.health - 7;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 7;
}
if (this.hitTest(_root.thornsspell340011)) {
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
}
Symbol 1300 MovieClip Frame 2
stop();
Symbol 1302 MovieClip Frame 1
stop();
Symbol 1302 MovieClip Frame 2
stop();
Symbol 1302 MovieClip Frame 3
stop();
Instance of Symbol 275 MovieClip "ninjaswipe" in Symbol 1325 MovieClip Frame 4
onClipEvent (load) {
gpause = false;
enemyattack = 1;
}
onClipEvent (enterFrame) {
damage = enemyattack;
dodge = _root.dodgechance;
dodgerating = 0;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((damage < 0) && (!gpause)) {
damage = 0;
}
if (_root.char.hitTest(this) && (!gpause)) {
dodgerating = Math.random(100) * 99;
}
if ((_root.char.hitTest(this) && (dodgerating < dodge)) && (!gpause)) {
this.gotoAndPlay(2);
}
if ((dodgerating > dodge) && (!gpause)) {
_root.charhealth = _root.charhealth - damage;
dodgerating = 0;
}
if (_root.jellycastle.hitTest(this) && (!gpause)) {
_root.jellycastlehealth = _root.jellycastlehealth - damage;
_root.castlehealthbar.castlebar._x = _root.castlehealthbar.castlebar._x - damage;
}
}
Instance of Symbol 275 MovieClip "ninjaswipe" in Symbol 1325 MovieClip Frame 8
onClipEvent (load) {
gpause = false;
enemyattack = 1;
}
onClipEvent (enterFrame) {
damage = enemyattack;
dodge = _root.dodgechance;
dodgerating = 0;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((damage < 0) && (!gpause)) {
damage = 0;
}
if (_root.char.hitTest(this) && (!gpause)) {
dodgerating = Math.random(100) * 99;
}
if ((_root.char.hitTest(this) && (dodgerating < dodge)) && (!gpause)) {
this.gotoAndPlay(2);
}
if ((dodgerating > dodge) && (!gpause)) {
_root.charhealth = _root.charhealth - damage;
dodgerating = 0;
}
if (_root.jellycastle.hitTest(this) && (!gpause)) {
_root.jellycastlehealth = _root.jellycastlehealth - damage;
_root.castlehealthbar.castlebar._x = _root.castlehealthbar.castlebar._x - damage;
}
}
Instance of Symbol 275 MovieClip "ninjaswipe" in Symbol 1325 MovieClip Frame 12
onClipEvent (load) {
gpause = false;
enemyattack = 1;
}
onClipEvent (enterFrame) {
damage = enemyattack;
dodge = _root.dodgechance;
dodgerating = 0;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((damage < 0) && (!gpause)) {
damage = 0;
}
if (_root.char.hitTest(this) && (!gpause)) {
dodgerating = Math.random(100) * 99;
}
if ((_root.char.hitTest(this) && (dodgerating < dodge)) && (!gpause)) {
this.gotoAndPlay(2);
}
if ((dodgerating > dodge) && (!gpause)) {
_root.charhealth = _root.charhealth - damage;
dodgerating = 0;
}
if (_root.jellycastle.hitTest(this) && (!gpause)) {
_root.jellycastlehealth = _root.jellycastlehealth - damage;
_root.castlehealthbar.castlebar._x = _root.castlehealthbar.castlebar._x - damage;
}
}
Symbol 1329 MovieClip Frame 1
stop();
Instance of Symbol 1309 MovieClip "ninjawalk" in Symbol 1329 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 232 MovieClip "fireeffect" in Symbol 1329 MovieClip Frame 1
onClipEvent (load) {
this.burntimer = 0;
}
onClipEvent (enterFrame) {
if (this.burntimer < 2) {
this.gotoAndStop(1);
this.stop();
}
if (this.burntimer > 1) {
this.play();
this.burntimer = this.burntimer - 1;
}
}
Symbol 1329 MovieClip Frame 2
stop();
Instance of Symbol 1325 MovieClip "ninjaattack" in Symbol 1329 MovieClip Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1329 MovieClip Frame 3
stop();
Instance of Symbol 1328 MovieClip "ninjafrozen" in Symbol 1329 MovieClip Frame 3
onClipEvent (load) {
this.frozentimer = 100;
}
onClipEvent (enterFrame) {
this.frozentimer = this.frozentimer - 1;
}
Symbol 1330 MovieClip Frame 1
stop();
Instance of Symbol 1329 MovieClip "ninjainside" in Symbol 1330 MovieClip Frame 1
onClipEvent (load) {
hittinggerm = false;
f = 8000;
gpause = false;
frozen = false;
if (_root.wave < 31) {
this.healthbar.gotoAndStop(1);
this.health = 100;
}
if ((_root.wave > 30) && (_root.wave < 41)) {
this.healthbar.gotoAndStop(2);
this.health = 200;
this.death = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 10, 0, 68);
this.tranz = new flash.geom.Transform(this);
this.tranz.colorTransform = this.death;
}
if ((_root.wave > 40) && (_root.wave)) {
this.healthbar.gotoAndStop(3);
this.health = 300;
this.death = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 20, 0, 68);
this.tranz = new flash.geom.Transform(this);
this.tranz.colorTransform = this.death;
}
}
onClipEvent (enterFrame) {
attackpoweramp = _root.attackpower;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.char) or (this.hitTest(_root.jellycastle) && (!gpause))) {
hittinggerm = true;
this.gotoAndStop(2);
}
if (((!this.hitTest(_root.char)) && (!this.hitTest(_root.jellycastle))) && (!gpause)) {
hittinggerm = false;
this.gotoAndStop(1);
}
if (this.hitTest(_root.char.charup.charupattack.swipe) && (!gpause)) {
f++;
_root.bloodup.duplicateMovieClip("bloodup" + f, f, {_x:_root.char._x, _y:_root.char._y - 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.chardown.chardownattack.swipe) && (!gpause)) {
f++;
_root.blooddown.duplicateMovieClip("blooddown" + f, f, {_x:_root.char._x, _y:_root.char._y + 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charright.charrightattack.swipe) && (!gpause)) {
f++;
_root.bloodright.duplicateMovieClip("bloodright" + f, f, {_x:_root.char._x + 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charleft.charleftattack.swipe) && (!gpause)) {
f++;
_root.bloodleft.duplicateMovieClip("bloodleft" + f, f, {_x:_root.char._x - 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.squirtspell50000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 30;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 30;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.crushspell31002) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.blizzardspell31004.blizzarddamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.icespikespell31000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 5;
}
if (this.hitTest(_root.typhoonspell310058.typhoondamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if ((this.ninjafrozen.frozentimer < 0) && (frozen)) {
this.ninjafrozen.frozentimer = 115;
this.gotoAndStop(1);
frozen = false;
}
if (this.fireeffect.burntimer > 2) {
this.health = this.health - 2.5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2.5;
}
if (this.hitTest(_root.fireburstspell320034) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 2;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.firewalkspell320047) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 8;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.flamelancespell320036) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.firerainspell320038.fireraindamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 10;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if (this.hitTest(_root.lustspell320097.lustdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
_root.charhealth = _root.charhealth + 1;
this.health = this.health - 1;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 1;
}
if (this.hitTest(_root.leafcutspell340031) && (!gpause)) {
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.vinewhipspell340096) && (!gpause)) {
this.health = this.health - 7;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 7;
}
if (this.hitTest(_root.thornsspell340011)) {
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
}
Symbol 1330 MovieClip Frame 2
stop();
Instance of Symbol 275 MovieClip "babytrollswipe" in Symbol 1349 MovieClip Frame 14
onClipEvent (load) {
gpause = false;
if (_root.wave < 11) {
enemyattack = 2;
}
if ((_root.wave > 10) && (_root.wave < 21)) {
enemyattack = 4;
}
if (_root.wave > 20) {
enemyattack = 8;
}
}
onClipEvent (enterFrame) {
damage = enemyattack;
dodge = _root.dodgechance;
dodgerating = 0;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((damage < 0) && (!gpause)) {
damage = 0;
}
if (_root.char.hitTest(this) && (!gpause)) {
dodgerating = Math.random(100) * 99;
}
if ((_root.char.hitTest(this) && (dodgerating < dodge)) && (!gpause)) {
this.gotoAndPlay(2);
}
if ((dodgerating > dodge) && (!gpause)) {
_root.charhealth = _root.charhealth - damage;
dodgerating = 0;
}
if (_root.jellycastle.hitTest(this) && (!gpause)) {
_root.jellycastlehealth = _root.jellycastlehealth - damage;
_root.castlehealthbar.castlebar._x = _root.castlehealthbar.castlebar._x - damage;
}
}
Symbol 1353 MovieClip Frame 1
stop();
Instance of Symbol 1337 MovieClip "babytrollmove" in Symbol 1353 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 232 MovieClip "fireeffect" in Symbol 1353 MovieClip Frame 1
onClipEvent (load) {
this.burntimer = 0;
}
onClipEvent (enterFrame) {
if (this.burntimer < 2) {
this.gotoAndStop(1);
this.stop();
}
if (this.burntimer > 1) {
this.play();
this.burntimer = this.burntimer - 1;
}
}
Symbol 1353 MovieClip Frame 2
stop();
Instance of Symbol 1349 MovieClip "babytrollattack" in Symbol 1353 MovieClip Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1353 MovieClip Frame 3
stop();
Instance of Symbol 1352 MovieClip "babytrollfrozen" in Symbol 1353 MovieClip Frame 3
onClipEvent (load) {
this.frozentimer = 100;
}
onClipEvent (enterFrame) {
this.frozentimer = this.frozentimer - 1;
}
Symbol 1354 MovieClip Frame 1
stop();
Instance of Symbol 1353 MovieClip "babytrollinside" in Symbol 1354 MovieClip Frame 1
onClipEvent (load) {
hittinggerm = false;
f = 8000;
gpause = false;
frozen = false;
if (_root.wave < 27) {
this.healthbar.gotoAndStop(1);
this.health = 100;
}
if ((_root.wave > 26) && (_root.wave < 37)) {
this.healthbar.gotoAndStop(2);
this.health = 200;
this.death = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 10, 0, 68);
this.tranz = new flash.geom.Transform(this);
this.tranz.colorTransform = this.death;
}
if ((_root.wave > 36) && (_root.wave)) {
this.healthbar.gotoAndStop(3);
this.health = 300;
this.death = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 20, 0, 68);
this.tranz = new flash.geom.Transform(this);
this.tranz.colorTransform = this.death;
}
}
onClipEvent (enterFrame) {
attackpoweramp = _root.attackpower;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.char) or (this.hitTest(_root.jellycastle) && (!gpause))) {
hittinggerm = true;
this.gotoAndStop(2);
}
if (((!this.hitTest(_root.char)) && (!this.hitTest(_root.jellycastle))) && (!gpause)) {
hittinggerm = false;
this.gotoAndStop(1);
}
if (this.hitTest(_root.char.charup.charupattack.swipe) && (!gpause)) {
f++;
_root.bloodup.duplicateMovieClip("bloodup" + f, f, {_x:_root.char._x, _y:_root.char._y - 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.chardown.chardownattack.swipe) && (!gpause)) {
f++;
_root.blooddown.duplicateMovieClip("blooddown" + f, f, {_x:_root.char._x, _y:_root.char._y + 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charright.charrightattack.swipe) && (!gpause)) {
f++;
_root.bloodright.duplicateMovieClip("bloodright" + f, f, {_x:_root.char._x + 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charleft.charleftattack.swipe) && (!gpause)) {
f++;
_root.bloodleft.duplicateMovieClip("bloodleft" + f, f, {_x:_root.char._x - 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.squirtspell50000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 30;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 30;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.crushspell31002) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.blizzardspell31004.blizzarddamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.icespikespell31000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 5;
}
if (this.hitTest(_root.typhoonspell310058.typhoondamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if ((this.babytrollfrozen.frozentimer < 0) && (frozen)) {
this.babytrollfrozen.frozentimer = 115;
this.gotoAndStop(1);
frozen = false;
}
if (this.fireeffect.burntimer > 2) {
this.health = this.health - 2.5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2.5;
}
if (this.hitTest(_root.fireburstspell320034) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 2;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.firewalkspell320047) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 8;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.flamelancespell320036) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.firerainspell320038.fireraindamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 10;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if (this.hitTest(_root.lustspell320097.lustdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
_root.charhealth = _root.charhealth + 1;
this.health = this.health - 1;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 1;
}
if (this.hitTest(_root.leafcutspell340031) && (!gpause)) {
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.vinewhipspell340096) && (!gpause)) {
this.health = this.health - 7;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 7;
}
if (this.hitTest(_root.thornsspell340011)) {
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
}
Symbol 1354 MovieClip Frame 2
stop();
Symbol 1359 MovieClip Frame 31
stop();
Symbol 1370 MovieClip Frame 16
stop();
Symbol 1376 MovieClip Frame 40
stop();
Symbol 1407 MovieClip Frame 1
stop();
Instance of Symbol 1385 MovieClip "witchmove" in Symbol 1407 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 232 MovieClip "fireeffect" in Symbol 1407 MovieClip Frame 1
onClipEvent (load) {
this.burntimer = 0;
}
onClipEvent (enterFrame) {
if (this.burntimer < 2) {
this.gotoAndStop(1);
this.stop();
}
if (this.burntimer > 1) {
this.play();
this.burntimer = this.burntimer - 1;
}
}
Symbol 1407 MovieClip Frame 2
stop();
Instance of Symbol 1403 MovieClip "witchattack" in Symbol 1407 MovieClip Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1407 MovieClip Frame 3
stop();
Instance of Symbol 1406 MovieClip "witchfrozen" in Symbol 1407 MovieClip Frame 3
onClipEvent (load) {
this.frozentimer = 100;
}
onClipEvent (enterFrame) {
this.frozentimer = this.frozentimer - 1;
}
Symbol 1408 MovieClip Frame 1
stop();
Instance of Symbol 1407 MovieClip "witchinside" in Symbol 1408 MovieClip Frame 1
onClipEvent (load) {
hittinggerm = false;
f = 8000;
gpause = false;
frozen = false;
if (_root.wave < 35) {
this.healthbar.gotoAndStop(1);
this.health = 100;
}
if ((_root.wave > 34) && (_root.wave < 42)) {
this.healthbar.gotoAndStop(2);
this.health = 200;
this.death = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 10, 0, 68);
this.tranz = new flash.geom.Transform(this);
this.tranz.colorTransform = this.death;
}
if ((_root.wave > 41) && (_root.wave)) {
this.healthbar.gotoAndStop(3);
this.health = 300;
this.death = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 20, 0, 68);
this.tranz = new flash.geom.Transform(this);
this.tranz.colorTransform = this.death;
}
}
onClipEvent (enterFrame) {
attackpoweramp = _root.attackpower;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.char.charup.charupattack.swipe) && (!gpause)) {
f++;
_root.bloodup.duplicateMovieClip("bloodup" + f, f, {_x:_root.char._x, _y:_root.char._y - 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.chardown.chardownattack.swipe) && (!gpause)) {
f++;
_root.blooddown.duplicateMovieClip("blooddown" + f, f, {_x:_root.char._x, _y:_root.char._y + 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charright.charrightattack.swipe) && (!gpause)) {
f++;
_root.bloodright.duplicateMovieClip("bloodright" + f, f, {_x:_root.char._x + 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charleft.charleftattack.swipe) && (!gpause)) {
f++;
_root.bloodleft.duplicateMovieClip("bloodleft" + f, f, {_x:_root.char._x - 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.squirtspell50000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 30;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 30;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.crushspell31002) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.blizzardspell31004.blizzarddamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.icespikespell31000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 5;
}
if (this.hitTest(_root.typhoonspell310058.typhoondamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if ((this.witchfrozen.frozentimer < 0) && (frozen)) {
this.witchfrozen.frozentimer = 115;
this.gotoAndStop(1);
frozen = false;
}
if (this.fireeffect.burntimer > 2) {
this.health = this.health - 2.5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2.5;
}
if (this.hitTest(_root.fireburstspell320034) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 2;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.firewalkspell320047) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 8;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.flamelancespell320036) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.firerainspell320038.fireraindamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 10;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if (this.hitTest(_root.lustspell320097.lustdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
_root.charhealth = _root.charhealth + 1;
this.health = this.health - 1;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 1;
}
if (this.hitTest(_root.leafcutspell340031) && (!gpause)) {
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.vinewhipspell340096) && (!gpause)) {
this.health = this.health - 7;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 7;
}
if (this.hitTest(_root.thornsspell340011)) {
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
}
Symbol 1408 MovieClip Frame 2
stop();
Symbol 1430 MovieClip Frame 16
stop();
Symbol 1433 MovieClip Frame 40
stop();
Instance of Symbol 275 MovieClip "slimeswipe" in Symbol 1458 MovieClip Frame 13
onClipEvent (load) {
gpause = false;
enemyattack = 1;
}
onClipEvent (enterFrame) {
damage = enemyattack;
dodge = _root.dodgechance;
dodgerating = 0;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((damage < 0) && (!gpause)) {
damage = 0;
}
if (_root.char.hitTest(this) && (!gpause)) {
dodgerating = Math.random(100) * 99;
}
if ((_root.char.hitTest(this) && (dodgerating < dodge)) && (!gpause)) {
this.gotoAndPlay(2);
}
if ((dodgerating > dodge) && (!gpause)) {
_root.charhealth = _root.charhealth - damage;
dodgerating = 0;
}
if (_root.jellycastle.hitTest(this) && (!gpause)) {
_root.jellycastlehealth = _root.jellycastlehealth - damage;
_root.castlehealthbar.castlebar._x = _root.castlehealthbar.castlebar._x - damage;
}
}
Symbol 1462 MovieClip Frame 1
stop();
Instance of Symbol 1447 MovieClip "slimemove" in Symbol 1462 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 232 MovieClip "fireeffect" in Symbol 1462 MovieClip Frame 1
onClipEvent (load) {
this.burntimer = 0;
}
onClipEvent (enterFrame) {
if (this.burntimer < 2) {
this.gotoAndStop(1);
this.stop();
}
if (this.burntimer > 1) {
this.play();
this.burntimer = this.burntimer - 1;
}
}
Symbol 1462 MovieClip Frame 2
stop();
Instance of Symbol 1458 MovieClip "slimeattack" in Symbol 1462 MovieClip Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1462 MovieClip Frame 3
stop();
Instance of Symbol 1461 MovieClip "slimefrozen" in Symbol 1462 MovieClip Frame 3
onClipEvent (load) {
this.frozentimer = 100;
}
onClipEvent (enterFrame) {
this.frozentimer = this.frozentimer - 1;
}
Symbol 1463 MovieClip Frame 1
stop();
Instance of Symbol 1462 MovieClip "slimeinside" in Symbol 1463 MovieClip Frame 1
onClipEvent (load) {
hittinggerm = false;
f = 8000;
gpause = false;
frozen = false;
this.health = 100;
}
onClipEvent (enterFrame) {
attackpoweramp = _root.attackpower;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.char) or (this.hitTest(_root.jellycastle) && (!gpause))) {
hittinggerm = true;
this.gotoAndStop(2);
}
if (((!this.hitTest(_root.char)) && (!this.hitTest(_root.jellycastle))) && (!gpause)) {
hittinggerm = false;
this.gotoAndStop(1);
}
if (this.hitTest(_root.char.charup.charupattack.swipe) && (!gpause)) {
f++;
_root.bloodup.duplicateMovieClip("bloodup" + f, f, {_x:_root.char._x, _y:_root.char._y - 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.chardown.chardownattack.swipe) && (!gpause)) {
f++;
_root.blooddown.duplicateMovieClip("blooddown" + f, f, {_x:_root.char._x, _y:_root.char._y + 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charright.charrightattack.swipe) && (!gpause)) {
f++;
_root.bloodright.duplicateMovieClip("bloodright" + f, f, {_x:_root.char._x + 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charleft.charleftattack.swipe) && (!gpause)) {
f++;
_root.bloodleft.duplicateMovieClip("bloodleft" + f, f, {_x:_root.char._x - 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.squirtspell50000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 30;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 30;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.crushspell31002) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.blizzardspell31004.blizzarddamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.icespikespell31000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 5;
}
if (this.hitTest(_root.typhoonspell310058.typhoondamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if ((this.slimefrozen.frozentimer < 0) && (frozen)) {
this.slimefrozen.frozentimer = 115;
this.gotoAndStop(1);
frozen = false;
}
if (this.fireeffect.burntimer > 2) {
this.health = this.health - 2.5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2.5;
}
if (this.hitTest(_root.fireburstspell320034) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 2;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.firewalkspell320047) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 8;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.flamelancespell320036) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.firerainspell320038.fireraindamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 10;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if (this.hitTest(_root.lustspell320097.lustdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
_root.charhealth = _root.charhealth + 1;
this.health = this.health - 1;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 1;
}
if (this.hitTest(_root.leafcutspell340031) && (!gpause)) {
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.vinewhipspell340096) && (!gpause)) {
this.health = this.health - 7;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 7;
}
if (this.hitTest(_root.thornsspell340011)) {
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
}
Symbol 1463 MovieClip Frame 2
stop();
Symbol 1464 MovieClip Frame 1
stop();
Symbol 1464 MovieClip Frame 2
stop();
Symbol 1464 MovieClip Frame 3
stop();
Instance of Symbol 275 MovieClip "slimeswipe" in Symbol 1487 MovieClip Frame 13
onClipEvent (load) {
gpause = false;
enemyattack = 2;
}
onClipEvent (enterFrame) {
damage = enemyattack;
dodge = _root.dodgechance;
dodgerating = 0;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((damage < 0) && (!gpause)) {
damage = 0;
}
if (_root.char.hitTest(this) && (!gpause)) {
dodgerating = Math.random(100) * 99;
}
if ((_root.char.hitTest(this) && (dodgerating < dodge)) && (!gpause)) {
this.gotoAndPlay(2);
}
if ((dodgerating > dodge) && (!gpause)) {
_root.charhealth = _root.charhealth - damage;
dodgerating = 0;
}
if (_root.jellycastle.hitTest(this) && (!gpause)) {
_root.jellycastlehealth = _root.jellycastlehealth - damage;
_root.castlehealthbar.castlebar._x = _root.castlehealthbar.castlebar._x - damage;
}
}
Symbol 1491 MovieClip Frame 1
stop();
Instance of Symbol 1476 MovieClip "papaslimemove" in Symbol 1491 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 232 MovieClip "fireeffect" in Symbol 1491 MovieClip Frame 1
onClipEvent (load) {
this.burntimer = 0;
}
onClipEvent (enterFrame) {
if (this.burntimer < 2) {
this.gotoAndStop(1);
this.stop();
}
if (this.burntimer > 1) {
this.play();
this.burntimer = this.burntimer - 1;
}
}
Symbol 1491 MovieClip Frame 2
stop();
Instance of Symbol 1487 MovieClip "papaslimeattack" in Symbol 1491 MovieClip Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1491 MovieClip Frame 3
stop();
Instance of Symbol 1490 MovieClip "papaslimefrozen" in Symbol 1491 MovieClip Frame 3
onClipEvent (load) {
this.frozentimer = 100;
}
onClipEvent (enterFrame) {
this.frozentimer = this.frozentimer - 1;
}
Symbol 1492 MovieClip Frame 1
stop();
Instance of Symbol 1491 MovieClip "papaslimeinside" in Symbol 1492 MovieClip Frame 1
onClipEvent (load) {
hittinggerm = false;
f = 8000;
attackpoweramp = _root.attackpower;
gpause = false;
frozen = false;
this.health = 300;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.char) or (this.hitTest(_root.jellycastle) && (!gpause))) {
hittinggerm = true;
this.gotoAndStop(2);
}
if (((!this.hitTest(_root.char)) && (!this.hitTest(_root.jellycastle))) && (!gpause)) {
hittinggerm = false;
this.gotoAndStop(1);
}
if (this.hitTest(_root.char.charup.charupattack.swipe) && (!gpause)) {
f++;
_root.bloodup.duplicateMovieClip("bloodup" + f, f, {_x:_root.char._x, _y:_root.char._y - 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.chardown.chardownattack.swipe) && (!gpause)) {
f++;
_root.blooddown.duplicateMovieClip("blooddown" + f, f, {_x:_root.char._x, _y:_root.char._y + 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charright.charrightattack.swipe) && (!gpause)) {
f++;
_root.bloodright.duplicateMovieClip("bloodright" + f, f, {_x:_root.char._x + 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charleft.charleftattack.swipe) && (!gpause)) {
f++;
_root.bloodleft.duplicateMovieClip("bloodleft" + f, f, {_x:_root.char._x - 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.squirtspell50000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 30;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 30;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.crushspell31002) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.blizzardspell31004.blizzarddamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.icespikespell31000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 5;
}
if (this.hitTest(_root.typhoonspell310058.typhoondamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if ((this.cupcakelordfrozen.frozentimer < 0) && (frozen)) {
this.cupcakelordfrozen.frozentimer = 115;
this.gotoAndStop(1);
frozen = false;
}
if (this.fireeffect.burntimer > 2) {
this.health = this.health - 2.5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2.5;
}
if (this.hitTest(_root.fireburstspell320034) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 2;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.firewalkspell320047) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 8;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.flamelancespell320036) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.firerainspell320038.fireraindamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 10;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if (this.hitTest(_root.lustspell320097.lustdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
_root.charhealth = _root.charhealth + 1;
this.health = this.health - 1;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 1;
}
if (this.hitTest(_root.leafcutspell340031) && (!gpause)) {
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.vinewhipspell340096) && (!gpause)) {
this.health = this.health - 7;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 7;
}
if (this.hitTest(_root.thornsspell340011)) {
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
}
Symbol 1492 MovieClip Frame 2
stop();
Symbol 1501 MovieClip Frame 1
stop();
Instance of Symbol 275 MovieClip "slimeswipe" in Symbol 1525 MovieClip Frame 20
onClipEvent (load) {
gpause = false;
enemyattack = 10;
}
onClipEvent (enterFrame) {
damage = enemyattack;
dodge = _root.dodgechance;
dodgerating = 0;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((damage < 0) && (!gpause)) {
damage = 0;
}
if (_root.char.hitTest(this) && (!gpause)) {
dodgerating = Math.random(100) * 99;
}
if ((_root.char.hitTest(this) && (dodgerating < dodge)) && (!gpause)) {
this.gotoAndPlay(2);
}
if ((dodgerating > dodge) && (!gpause)) {
_root.charhealth = _root.charhealth - damage;
dodgerating = 0;
}
if (_root.jellycastle.hitTest(this) && (!gpause)) {
_root.jellycastlehealth = _root.jellycastlehealth - damage;
_root.castlehealthbar.castlebar._x = _root.castlehealthbar.castlebar._x - damage;
}
}
Symbol 1529 MovieClip Frame 1
stop();
Instance of Symbol 1514 MovieClip "slimelordmove" in Symbol 1529 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 232 MovieClip "fireeffect" in Symbol 1529 MovieClip Frame 1
onClipEvent (load) {
this.burntimer = 0;
}
onClipEvent (enterFrame) {
if (this.burntimer < 2) {
this.gotoAndStop(1);
this.stop();
}
if (this.burntimer > 1) {
this.play();
this.burntimer = this.burntimer - 1;
}
}
Symbol 1529 MovieClip Frame 2
stop();
Instance of Symbol 1525 MovieClip "slimelordattack" in Symbol 1529 MovieClip Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1529 MovieClip Frame 3
stop();
Instance of Symbol 1528 MovieClip "slimelordfrozen" in Symbol 1529 MovieClip Frame 3
onClipEvent (load) {
this.frozentimer = 100;
}
onClipEvent (enterFrame) {
this.frozentimer = this.frozentimer - 1;
}
Symbol 1530 MovieClip Frame 1
stop();
Instance of Symbol 1529 MovieClip "slimelordinside" in Symbol 1530 MovieClip Frame 1
onClipEvent (load) {
hittinggerm = false;
f = 8000;
gpause = false;
frozen = false;
this.health = 5000;
}
onClipEvent (enterFrame) {
attackpoweramp = _root.attackpower;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.char) or (this.hitTest(_root.jellycastle) && (!gpause))) {
hittinggerm = true;
this.gotoAndStop(2);
}
if (((!this.hitTest(_root.char)) && (!this.hitTest(_root.jellycastle))) && (!gpause)) {
hittinggerm = false;
this.gotoAndStop(1);
}
if (this.hitTest(_root.char.charup.charupattack.swipe) && (!gpause)) {
f++;
_root.bloodup.duplicateMovieClip("bloodup" + f, f, {_x:_root.char._x, _y:_root.char._y - 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.chardown.chardownattack.swipe) && (!gpause)) {
f++;
_root.blooddown.duplicateMovieClip("blooddown" + f, f, {_x:_root.char._x, _y:_root.char._y + 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charright.charrightattack.swipe) && (!gpause)) {
f++;
_root.bloodright.duplicateMovieClip("bloodright" + f, f, {_x:_root.char._x + 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charleft.charleftattack.swipe) && (!gpause)) {
f++;
_root.bloodleft.duplicateMovieClip("bloodleft" + f, f, {_x:_root.char._x - 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.squirtspell50000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 30;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 30;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.crushspell31002) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.blizzardspell31004.blizzarddamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.icespikespell31000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 5;
}
if (this.hitTest(_root.typhoonspell310058.typhoondamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if ((this.slimelordfrozen.frozentimer < 0) && (frozen)) {
this.slimelordfrozen.frozentimer = 115;
this.gotoAndStop(1);
frozen = false;
}
if (this.fireeffect.burntimer > 2) {
this.health = this.health - 2.5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2.5;
}
if (this.hitTest(_root.fireburstspell320034) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 2;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.firewalkspell320047) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 8;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.flamelancespell320036) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.firerainspell320038.fireraindamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 10;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if (this.hitTest(_root.lustspell320097.lustdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
_root.charhealth = _root.charhealth + 1;
this.health = this.health - 1;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 1;
}
if (this.hitTest(_root.leafcutspell340031) && (!gpause)) {
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.vinewhipspell340096) && (!gpause)) {
this.health = this.health - 7;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 7;
}
if (this.hitTest(_root.thornsspell340011)) {
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
}
Symbol 1530 MovieClip Frame 2
stop();
Instance of Symbol 275 MovieClip "babytrollswipe" in Symbol 1572 MovieClip Frame 32
onClipEvent (load) {
gpause = false;
enemyattack = 10;
}
onClipEvent (enterFrame) {
damage = enemyattack;
dodge = _root.dodgechance;
dodgerating = 0;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((damage < 0) && (!gpause)) {
damage = 0;
}
if (_root.char.hitTest(this) && (!gpause)) {
dodgerating = Math.random(100) * 99;
}
if ((_root.char.hitTest(this) && (dodgerating < dodge)) && (!gpause)) {
this.gotoAndPlay(2);
}
if ((dodgerating > dodge) && (!gpause)) {
_root.charhealth = _root.charhealth - damage;
dodgerating = 0;
}
if (_root.jellycastle.hitTest(this) && (!gpause)) {
_root.jellycastlehealth = _root.jellycastlehealth - damage;
_root.castlehealthbar.castlebar._x = _root.castlehealthbar.castlebar._x - damage;
}
}
Instance of Symbol 1572 MovieClip "greenfistattack" in Symbol 1575 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1576 MovieClip Frame 1
stop();
Instance of Symbol 1539 MovieClip "greenfistmove" in Symbol 1576 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 232 MovieClip "fireeffect" in Symbol 1576 MovieClip Frame 1
onClipEvent (load) {
this.burntimer = 0;
}
onClipEvent (enterFrame) {
if (this.burntimer < 2) {
this.gotoAndStop(1);
this.stop();
}
if (this.burntimer > 1) {
this.play();
this.burntimer = this.burntimer - 1;
}
}
Symbol 1576 MovieClip Frame 2
stop();
Instance of Symbol 1572 MovieClip "greenfistattack" in Symbol 1576 MovieClip Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1576 MovieClip Frame 3
stop();
Instance of Symbol 1575 MovieClip "greenfistfrozen" in Symbol 1576 MovieClip Frame 3
onClipEvent (load) {
this.frozentimer = 100;
}
onClipEvent (enterFrame) {
this.frozentimer = this.frozentimer - 1;
}
Instance of Symbol 232 MovieClip "fireeffect" in Symbol 1603 MovieClip Frame 1
onClipEvent (load) {
this.burntimer = 0;
}
onClipEvent (enterFrame) {
if (this.burntimer < 2) {
this.gotoAndStop(1);
this.stop();
}
if (this.burntimer > 1) {
this.play();
this.burntimer = this.burntimer - 1;
}
}
Symbol 1604 MovieClip Frame 1
stop();
Instance of Symbol 1576 MovieClip "greenfistinside" in Symbol 1604 MovieClip Frame 1
onClipEvent (load) {
hittinggerm = false;
f = 8000;
gpause = false;
frozen = false;
this.health = 5500;
}
onClipEvent (enterFrame) {
attackpoweramp = _root.attackpower;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.char) or (this.hitTest(_root.jellycastle) && (!gpause))) {
hittinggerm = true;
this.gotoAndStop(2);
}
if (((!this.hitTest(_root.char)) && (!this.hitTest(_root.jellycastle))) && (!gpause)) {
hittinggerm = false;
this.gotoAndStop(1);
}
if (this.hitTest(_root.char.charup.charupattack.swipe) && (!gpause)) {
f++;
_root.bloodup.duplicateMovieClip("bloodup" + f, f, {_x:_root.char._x, _y:_root.char._y - 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.chardown.chardownattack.swipe) && (!gpause)) {
f++;
_root.blooddown.duplicateMovieClip("blooddown" + f, f, {_x:_root.char._x, _y:_root.char._y + 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charright.charrightattack.swipe) && (!gpause)) {
f++;
_root.bloodright.duplicateMovieClip("bloodright" + f, f, {_x:_root.char._x + 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charleft.charleftattack.swipe) && (!gpause)) {
f++;
_root.bloodleft.duplicateMovieClip("bloodleft" + f, f, {_x:_root.char._x - 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.squirtspell50000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 30;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 30;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.crushspell31002) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.blizzardspell31004.blizzarddamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.icespikespell31000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 5;
}
if (this.hitTest(_root.typhoonspell310058.typhoondamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if ((this.greenfistfrozen.frozentimer < 0) && (frozen)) {
this.greenfistfrozen.frozentimer = 115;
this.gotoAndStop(1);
frozen = false;
}
if (this.fireeffect.burntimer > 2) {
this.health = this.health - 2.5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2.5;
}
if (this.hitTest(_root.fireburstspell320034) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 2;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.firewalkspell320047) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 8;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.flamelancespell320036) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.firerainspell320038.fireraindamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 10;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if (this.hitTest(_root.lustspell320097.lustdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
_root.charhealth = _root.charhealth + 1;
this.health = this.health - 1;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 1;
}
if (this.hitTest(_root.leafcutspell340031) && (!gpause)) {
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.vinewhipspell340096) && (!gpause)) {
this.health = this.health - 7;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 7;
}
if (this.hitTest(_root.thornsspell340011)) {
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
}
Symbol 1604 MovieClip Frame 2
stop();
Symbol 1604 MovieClip Frame 3
stop();
Symbol 1618 MovieClip Frame 21
stop();
Symbol 1622 MovieClip Frame 53
stop();
Instance of Symbol 275 MovieClip "jellycakeswipe" in Symbol 1667 MovieClip Frame 14
onClipEvent (load) {
gpause = false;
enemyattack = 20;
}
onClipEvent (enterFrame) {
damage = enemyattack;
dodge = _root.dodgechance;
dodgerating = 0;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if ((damage < 0) && (!gpause)) {
damage = 0;
}
if (_root.char.hitTest(this) && (!gpause)) {
dodgerating = Math.random(100) * 99;
}
if ((_root.char.hitTest(this) && (dodgerating < dodge)) && (!gpause)) {
this.gotoAndPlay(2);
}
if ((dodgerating > dodge) && (!gpause)) {
_root.charhealth = _root.charhealth - damage;
dodgerating = 0;
}
if (_root.jellycastle.hitTest(this) && (!gpause)) {
_root.jellycastlehealth = _root.jellycastlehealth - damage;
_root.castlehealthbar.castlebar._x = _root.castlehealthbar.castlebar._x - damage;
}
}
Symbol 1672 MovieClip Frame 1
stop();
Instance of Symbol 1638 MovieClip "jellycakewalk" in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Instance of Symbol 232 MovieClip "fireeffect" in Symbol 1672 MovieClip Frame 1
onClipEvent (load) {
this.burntimer = 0;
}
onClipEvent (enterFrame) {
if (this.burntimer < 2) {
this.gotoAndStop(1);
this.stop();
}
if (this.burntimer > 1) {
this.play();
this.burntimer = this.burntimer - 1;
}
}
Symbol 1672 MovieClip Frame 2
stop();
Instance of Symbol 1667 MovieClip "jellycakeattack" in Symbol 1672 MovieClip Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1672 MovieClip Frame 3
stop();
Instance of Symbol 1671 MovieClip "jellycakefrozen" in Symbol 1672 MovieClip Frame 3
onClipEvent (load) {
this.frozentimer = 100;
}
onClipEvent (enterFrame) {
this.frozentimer = this.frozentimer - 1;
}
Symbol 1673 MovieClip Frame 1
stop();
Instance of Symbol 1672 MovieClip "jellycakeinside" in Symbol 1673 MovieClip Frame 1
onClipEvent (load) {
hittinggerm = false;
f = 8000;
gpause = false;
frozen = false;
this.health = 5500;
}
onClipEvent (enterFrame) {
attackpoweramp = _root.attackpower;
if (_root.pausegame._currentframe > 1) {
gpause = true;
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
}
if (this.hitTest(_root.char) or (this.hitTest(_root.jellycastle) && (!gpause))) {
hittinggerm = true;
this.gotoAndStop(2);
}
if (((!this.hitTest(_root.char)) && (!this.hitTest(_root.jellycastle))) && (!gpause)) {
hittinggerm = false;
this.gotoAndStop(1);
}
if (this.hitTest(_root.char.charup.charupattack.swipe) && (!gpause)) {
f++;
_root.bloodup.duplicateMovieClip("bloodup" + f, f, {_x:_root.char._x, _y:_root.char._y - 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.chardown.chardownattack.swipe) && (!gpause)) {
f++;
_root.blooddown.duplicateMovieClip("blooddown" + f, f, {_x:_root.char._x, _y:_root.char._y + 30});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charright.charrightattack.swipe) && (!gpause)) {
f++;
_root.bloodright.duplicateMovieClip("bloodright" + f, f, {_x:_root.char._x + 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.char.charleft.charleftattack.swipe) && (!gpause)) {
f++;
_root.bloodleft.duplicateMovieClip("bloodleft" + f, f, {_x:_root.char._x - 30, _y:_root.char._y});
this.health = this.health - attackpoweramp;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - attackpoweramp;
}
if (this.hitTest(_root.squirtspell50000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 30;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 30;
}
if (this.hitTest(_root.cyclonespell31008.cycloneinside.tornadodamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.crushspell31002) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.blizzardspell31004.blizzarddamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.icespikespell31000) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 5;
}
if (this.hitTest(_root.typhoonspell310058.typhoondamage) && (!gpause)) {
this.gotoAndStop(3);
frozen = true;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if ((this.jellycakefrozen.frozentimer < 0) && (frozen)) {
this.jellycakefrozen.frozentimer = 115;
this.gotoAndStop(1);
frozen = false;
}
if (this.fireeffect.burntimer > 2) {
this.health = this.health - 2.5;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2.5;
}
if (this.hitTest(_root.fireburstspell320034) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 2;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.firewalkspell320047) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 8;
this.health = this.health - 3;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 3;
}
if (this.hitTest(_root.flamelancespell320036) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
if (this.hitTest(_root.firerainspell320038.fireraindamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.firetrapspell320052.firetrapdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 10;
this.health = this.health - 2;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 2;
}
if (this.hitTest(_root.lustspell320097.lustdamage) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 3;
this.health = this.health - 100;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 100;
}
if (this.hitTest(_root.lustspell320097.sun) && (!gpause)) {
this.fireeffect.burntimer = this.fireeffect.burntimer + 5;
_root.charhealth = _root.charhealth + 1;
this.health = this.health - 1;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 1;
}
if (this.hitTest(_root.leafcutspell340031) && (!gpause)) {
this.health = this.health - 10;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 10;
}
if (this.hitTest(_root.vinewhipspell340096) && (!gpause)) {
this.health = this.health - 7;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 7;
}
if (this.hitTest(_root.thornsspell340011)) {
this.health = this.health - 50;
this.healthbar.healthbarinside._width = this.healthbar.healthbarinside._width - 50;
}
}
Symbol 1673 MovieClip Frame 2
stop();
Symbol 1676 Button
on (press) {
_root.gotoAndStop(1);
}
Symbol 1686 MovieClip Frame 1
stop();
Symbol 1686 MovieClip Frame 2
stop();
Symbol 1686 MovieClip Frame 3
stop();
Symbol 1720 MovieClip Frame 1
stop();
Instance of Symbol 1702 MovieClip "chardownstand" in Symbol 1720 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1720 MovieClip Frame 2
stop();
Instance of Symbol 1711 MovieClip "chardownmove" in Symbol 1720 MovieClip Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1720 MovieClip Frame 3
stop();
Instance of Symbol 1719 MovieClip "chardownattack" in Symbol 1720 MovieClip Frame 3
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1739 MovieClip Frame 1
stop();
Symbol 1760 MovieClip Frame 1
stop();
Instance of Symbol 1741 MovieClip "charupstand" in Symbol 1760 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1760 MovieClip Frame 2
stop();
Instance of Symbol 1750 MovieClip "charupmove" in Symbol 1760 MovieClip Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1760 MovieClip Frame 3
stop();
Instance of Symbol 1759 MovieClip "charupattack" in Symbol 1760 MovieClip Frame 3
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1763 MovieClip Frame 1
stop();
Instance of Symbol 1762 MovieClip "charrightstand" in Symbol 1763 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1763 MovieClip Frame 2
stop();
Instance of Symbol 148 MovieClip "charrightmove" in Symbol 1763 MovieClip Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1763 MovieClip Frame 3
stop();
Instance of Symbol 129 MovieClip "charrightattack" in Symbol 1763 MovieClip Frame 3
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1783 MovieClip Frame 1
stop();
Instance of Symbol 1765 MovieClip "charleftstand" in Symbol 1783 MovieClip Frame 1
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1783 MovieClip Frame 2
stop();
Instance of Symbol 1774 MovieClip "charleftmove" in Symbol 1783 MovieClip Frame 2
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1783 MovieClip Frame 3
stop();
Instance of Symbol 1782 MovieClip "charleftattack" in Symbol 1783 MovieClip Frame 3
onClipEvent (load) {
gpause = false;
}
onClipEvent (enterFrame) {
if (_root.pausegame._currentframe > 1) {
gpause = true;
this.stop();
}
if (_root.pausegame._currentframe < 2) {
gpause = false;
this.play();
}
}
Symbol 1785 MovieClip Frame 1
stop();
Symbol 1785 MovieClip Frame 2
stop();
Symbol 1785 MovieClip Frame 3
stop();
Symbol 1785 MovieClip Frame 4
stop();
Symbol 1785 MovieClip Frame 5
stop();