﻿ACTIONSCRIPT (AS1/AS2) FOR FLASH #268025
https://swfchan.com/54/268025/

	frame 1 {
		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) ? /:$version : 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);
				}
				return res;
			}
			res = mc.createEmptyMovieClip(mb + swfid, lv);
			res.loadMovie(u);
			return res;
		}
		stop();
		__com_mochibot__('43381923', this, 10301, true);
		Stage.showMenu = false;
		_root.hero.sword.gotoAndStop(1);
		_root.hero.shield.gotoAndStop(1);
		_root.hero.shield2.gotoAndStop(1);
		_root.hero.leg1.gotoAndStop(1);
		_root.hero.leg2.gotoAndStop(1);
		_root.hero.foot1.gotoAndStop(1);
		_root.hero.foot2.gotoAndStop(1);
		_root.hero.cloth1.gotoAndStop(1);
		_root.hero.cloth2.gotoAndStop(1);
		_root.hero.arm1.gotoAndStop(1);
		_root.hero.arm2.gotoAndStop(1);
		_root.hero.torso.gotoAndStop(1);
		_root.hero.head.helm.gotoAndStop(1);
		_root.chestappear = new Sound(this);
		_root.chestappear.attachSound('chestappear');
	}
	movieClip 88	{
	}
	movieClip 90	{
	}
	movieClip 94	{
	}
	movieClip 95	{
	}
	
	// unknown tag 88 length 99
	movieClip 107	{
	}
	movieClip 113	{
	}
	movieClip 115	{
	}
	movieClip 116	{
		frame 1 {
			_root.stop();
			PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
			if (PercentLoaded != 100) {
				eval(bar.bar)._xscale = PercentLoaded;
			} else {
				gotoAndPlay('loaded');
			}
		}
		frame 2 {
			gotoAndPlay(1);
		}
		frame 3 {
			stop();
			onEnterFrame = function () {
				if (Key.isDown(65) && !plays) {
					_root.tra.play();
					_root.removeMovieClip(adBox);
					plays = true;
				}
			};
		}
	}
	movieClip 118	{
	}
	movieClip 123	{
		frame 1 {
			stop();
		}
	}
	movieClip 128	{
	}
	movieClip 132	{
	}
	movieClip 136	{
	}
	movieClip 141	{
	}
	movieClip 146	{
	}
	movieClip 159	{
	}
	movieClip 164	{
	}
	movieClip 165	{
	}
	movieClip 169	{
	}
	movieClip 171	{
		frame 1 {
			stop();
		}
	}
	movieClip 172	{
		frame 2 {
			_root.walks = true;
		}
		frame 3 {
			_root.walks = false;
		}
		frame 10 {
			_root.walks = true;
		}
		frame 11 {
			_root.walks = false;
		}
	}
	button 174 {
		on (press) {
			getURL('http://armorgames.com', '_blank');
		}
	}
	movieClip 178	{
	}
	movieClip 185	{
		frame 1 {
			stop();
		}
		frame 20 {
			_root.enemies = 0;
		}
		frame 35 {
			_root.warping = false;
		}
	}
	instance tra of movieClip 185	{
		onClipEvent (enterFrame) {
			if (this._currentframe >= 20 && !this.plays) {
				_root.play();
				this.plays = true;
			}
			if (this._currentframe == 1 && this.plays) {
				this.plays = false;
			}
		}
	}
	frame 2 {
		function sitelock(urls_allowed) {
			lock = true;
			domain_parts = _url.split('://');
			real_domain = domain_parts[1].split('/');
			domain.text = real_domain[0];
			for (x in urls_allowed) {
				if (urls_allowed[x] == real_domain[0]) {
					lock = false;
					_root.lockage = false;
				}
			}
			if (lock) {
				_root.lockage = true;
				_root.stop();
				_root.sitelocks._x = 334.85;
				_root.sitelocks._y = 258.8;
			}
		}
		stop();
		removeMovieClip(adBox);
		urls_allowed = ['games.armorgames.com', 'cache.armorgames.com', 'cdn.armorgames.com', '*.armorgames.com', 'ArmorGames.com', 'www.ArmorGames.com', 'http://www.armorgames.com', 'http://armorgames.com'];
		sitelock(urls_allowed);
	}
	button 189 {
		on (release) {
			getURL('http://www.nextplay.com/?utm_medium=brandedgames_external&utm_campaign=guardian-2&utm_source=ingame&utm_content=ingame', '_blank');
		}
	}
	movieClip 190	{
	}
	movieClip 193	{
	}
	movieClip 198	{
	}
	button 203 {
		on (press) {
			getURL('http://www.armorgames.com', '_blank');
		}
	}
	movieClip 206	{
		frame 1 {
			_root.stop();
			gotoAndPlay(2);
		}
		frame 218 {
			stop();
			if (!_root.lockage) {
				_root.tra.play();
			}
		}
	}
	frame 3 {
		stop();
	}
	movieClip 209	{
		frame 110 {
			stop();
			_root.tra.play();
		}
	}
	frame 4 {
		stop();
	}
	movieClip 214	{
	}
	movieClip 215	{
		frame 81 {
			stop();
			_root.tra.play();
		}
	}
	button 216 {
		on (release) {
			getURL('http://www.berzerkstudio.com', '_blank');
		}
	}
	frame 5 {
		stop();
		Mouse.show();
		_root.menuscreenarrows = new Sound(this);
		_root.menuscreenarrows.attachSound('menuscreenarrows');
		_root.plays = false;
		_root.neveah.stop();
		_root.shop1.stop();
		_root.graveyardmusic.stop();
		_root.nightloop.stop();
		_root.stormloop.stop();
		_root.startmusic = new Sound(this);
		_root.startmusic.attachSound('startmusic');
		_root.startmusic.start(0, 99999999);
		this.currentslot = 1;
		onEnterFrame = function () {
			if (_root.tra._currentframe == 1 && _root._currentframe == 5) {
				if (Key.isDown(65) && this.currentslot == 1 && !_root.apush) {
					_root.apush = true;
					_root.tra.play();
					_root.chestappear.start(0, 1);
				}
				if (!Key.isDown(65) && _root.apush) {
					_root.apush = false;
				}
				if (_root.icons._currentframe !== this.currentslot) {
					_root.icons.gotoAndStop(this.currentslot);
				}
				if (this.currentslot > 3) {
					this.currentslot = 1;
				}
				if (this.currentslot < 1) {
					this.currentslot = 3;
				}
				if (Key.isDown(40) && !keypush3) {
					this.currentslot += 1;
					keypush3 = true;
					_root.menuscreenarrows.start(0, 1);
				}
				if (Key.isDown(38) && !keypush4) {
					this.currentslot -= 1;
					_root.menuscreenarrows.start(0, 1);
					keypush4 = true;
				}
				if (!Key.isDown(40) && keypush3) {
					keypush3 = false;
				}
				if (!Key.isDown(38) && keypush4) {
					keypush4 = false;
				}
			}
		};
	}
	movieClip 220	{
	}
	movieClip 222	{
	}
	movieClip 225	{
	}
	movieClip 228	{
		frame 1 {
			stop();
		}
	}
	button 229 {
		on (press) {
			getURL('http://armorgames.com', '_blank');
		}
	}
	movieClip 230	{
	}
	movieClip 234	{
	}
	movieClip 236	{
	}
	movieClip 237	{
	}
	movieClip 238	{
	}
	movieClip 239	{
	}
	movieClip 240	{
		frame 1 {
			stop();
		}
		instance of movieClip 238	{
			onClipEvent (keyDown) {
				if (Key.isDown(65) && !this.apush) {
					getURL('http://armorgames.com', '_blank');
					this.apush = false;
				}
				if (!Key.isDown(65) && this.apush) {
					this.apush = false;
				}
			}
		}
		instance of movieClip 239	{
			onClipEvent (keyDown) {
				if (Key.isDown(65) && !this.apush) {
					getURL('http://armorgames.com', '_blank');
					this.apush = false;
				}
				if (!Key.isDown(65) && this.apush) {
					this.apush = false;
				}
			}
		}
	}
	button 243 {
		on (press) {
			getURL('http://twitter.com/armorgames', '_blank');
		}
	}
	button 246 {
		on (press) {
			getURL('http://www.facebook.com/pages/Armor-Games/19522089061', '_blank');
		}
	}
	frame 6 {
		stop();
		_root.gamesave1 = SharedObject.getLocal('slot1');
		_root.gamesave2 = SharedObject.getLocal('slot2');
		_root.gamesave3 = SharedObject.getLocal('slot3');
		if (_root.gamesave1.data.gamesaved1 == true) {
			_root.game1.slot.gotoAndStop(1);
			_root.game1.slot.moneyholder.money = _root.gamesave1.data.money;
			_root.game1.slot.moneyholder.money2 = _root.gamesave1.data.money;
			_root.name1 = _root.gamesave1.data.name;
			_root.game1.slot.name = _root.gamesave1.data.name;
			_root.game1.slot.hero.sword.gotoAndStop(_root.gamesave1.data.sword);
			_root.game1.slot.hero.shield.gotoAndStop(_root.gamesave1.data.shield);
			_root.game1.slot.hero.leg1.gotoAndStop(_root.gamesave1.data.armor);
			_root.game1.slot.hero.leg2.gotoAndStop(_root.gamesave1.data.armor);
			_root.game1.slot.hero.torso.gotoAndStop(_root.gamesave1.data.armor);
			_root.game1.slot.hero.cloth1.gotoAndStop(_root.gamesave1.data.armor);
			_root.game1.slot.hero.cloth2.gotoAndStop(_root.gamesave1.data.armor);
			_root.game1.slot.hero.arm1.gotoAndStop(_root.gamesave1.data.armor);
			_root.game1.slot.hero.arm2.gotoAndStop(_root.gamesave1.data.armor);
			_root.game1.slot.hero.foot1.gotoAndStop(_root.gamesave1.data.armor);
			_root.game1.slot.hero.foot2.gotoAndStop(_root.gamesave1.data.armor);
			_root.game1.slot.hero.head.helm.gotoAndStop(_root.gamesave1.data.helmet);
			healthdisplay = _root.gamesave1.data.maxhealth;
			if (healthdisplay == 13) {
				_root.game1.slot.health.gotoAndStop(1);
			}
			if (healthdisplay == 17) {
				_root.game1.slot.health.gotoAndStop(2);
			}
			if (healthdisplay == 21) {
				_root.game1.slot.health.gotoAndStop(3);
			}
			if (healthdisplay == 25) {
				_root.game1.slot.health.gotoAndStop(4);
			}
			if (healthdisplay == 29) {
				_root.game1.slot.health.gotoAndStop(5);
			}
			if (healthdisplay == 33) {
				_root.game1.slot.health.gotoAndStop(6);
			}
			if (healthdisplay == 37) {
				_root.game1.slot.health.gotoAndStop(7);
			}
			if (healthdisplay == 41) {
				_root.game1.slot.health.gotoAndStop(8);
			}
			_root.game1.slot.health.container.gotoAndStop(healthdisplay);
		} else {
			if (_root.gamesave1.data.gamesaved1 !== true) {
				_root.game1.slot.gotoAndStop(2);
			}
		}
		if (_root.gamesave2.data.gamesaved2 == true) {
			_root.game2.slot.gotoAndStop(1);
			_root.game2.slot.moneyholder.money = _root.gamesave2.data.money;
			_root.game2.slot.moneyholder.money2 = _root.gamesave2.data.money;
			_root.name1 = _root.gamesave2.data.name;
			_root.game2.slot.name = _root.gamesave2.data.name;
			_root.game2.slot.hero.sword.gotoAndStop(_root.gamesave2.data.sword);
			_root.game2.slot.hero.shield.gotoAndStop(_root.gamesave2.data.shield);
			_root.game2.slot.hero.leg1.gotoAndStop(_root.gamesave2.data.armor);
			_root.game2.slot.hero.leg2.gotoAndStop(_root.gamesave2.data.armor);
			_root.game2.slot.hero.torso.gotoAndStop(_root.gamesave2.data.armor);
			_root.game2.slot.hero.cloth1.gotoAndStop(_root.gamesave2.data.armor);
			_root.game2.slot.hero.cloth2.gotoAndStop(_root.gamesave2.data.armor);
			_root.game2.slot.hero.arm1.gotoAndStop(_root.gamesave2.data.armor);
			_root.game2.slot.hero.arm2.gotoAndStop(_root.gamesave2.data.armor);
			_root.game2.slot.hero.foot1.gotoAndStop(_root.gamesave2.data.armor);
			_root.game2.slot.hero.foot2.gotoAndStop(_root.gamesave2.data.armor);
			_root.game2.slot.hero.head.helm.gotoAndStop(_root.gamesave2.data.helmet);
			healthdisplay2 = _root.gamesave2.data.maxhealth;
			if (healthdisplay2 == 13) {
				_root.game2.slot.health.gotoAndStop(1);
			}
			if (healthdisplay2 == 17) {
				_root.game2.slot.health.gotoAndStop(2);
			}
			if (healthdisplay2 == 21) {
				_root.game2.slot.health.gotoAndStop(3);
			}
			if (healthdisplay2 == 25) {
				_root.game2.slot.health.gotoAndStop(4);
			}
			if (healthdisplay2 == 29) {
				_root.game2.slot.health.gotoAndStop(5);
			}
			if (healthdisplay2 == 33) {
				_root.game2.slot.health.gotoAndStop(6);
			}
			if (healthdisplay2 == 37) {
				_root.game2.slot.health.gotoAndStop(7);
			}
			if (healthdisplay2 == 41) {
				_root.game2.slot.health.gotoAndStop(8);
			}
			_root.game2.slot.health.container.gotoAndStop(healthdisplay2);
		} else {
			if (_root.gamesave2.data.gamesaved2 !== true) {
				_root.game2.slot.gotoAndStop(2);
			}
		}
		if (_root.gamesave3.data.gamesaved3 == true) {
			_root.game3.slot.gotoAndStop(1);
			_root.game3.slot.moneyholder.money = _root.gamesave3.data.money;
			_root.game3.slot.moneyholder.money2 = _root.gamesave3.data.money;
			_root.name1 = _root.gamesave3.data.name;
			_root.game3.slot.name = _root.gamesave3.data.name;
			_root.game3.slot.hero.sword.gotoAndStop(_root.gamesave3.data.sword);
			_root.game3.slot.hero.shield.gotoAndStop(_root.gamesave3.data.shield);
			_root.game3.slot.hero.leg1.gotoAndStop(_root.gamesave3.data.armor);
			_root.game3.slot.hero.leg2.gotoAndStop(_root.gamesave3.data.armor);
			_root.game3.slot.hero.torso.gotoAndStop(_root.gamesave3.data.armor);
			_root.game3.slot.hero.cloth1.gotoAndStop(_root.gamesave3.data.armor);
			_root.game3.slot.hero.cloth2.gotoAndStop(_root.gamesave3.data.armor);
			_root.game3.slot.hero.arm1.gotoAndStop(_root.gamesave3.data.armor);
			_root.game3.slot.hero.arm2.gotoAndStop(_root.gamesave3.data.armor);
			_root.game3.slot.hero.foot1.gotoAndStop(_root.gamesave3.data.armor);
			_root.game3.slot.hero.foot2.gotoAndStop(_root.gamesave3.data.armor);
			_root.game3.slot.hero.head.helm.gotoAndStop(_root.gamesave3.data.helmet);
			healthdisplay3 = _root.gamesave3.data.maxhealth;
			if (healthdisplay3 == 13) {
				_root.game3.slot.health.gotoAndStop(1);
			}
			if (healthdisplay3 == 17) {
				_root.game3.slot.health.gotoAndStop(2);
			}
			if (healthdisplay3 == 21) {
				_root.game3.slot.health.gotoAndStop(3);
			}
			if (healthdisplay3 == 25) {
				_root.game3.slot.health.gotoAndStop(4);
			}
			if (healthdisplay3 == 29) {
				_root.game3.slot.health.gotoAndStop(5);
			}
			if (healthdisplay3 == 33) {
				_root.game3.slot.health.gotoAndStop(6);
			}
			if (healthdisplay3 == 37) {
				_root.game3.slot.health.gotoAndStop(7);
			}
			if (healthdisplay3 == 41) {
				_root.game3.slot.health.gotoAndStop(8);
			}
			_root.game3.slot.health.container.gotoAndStop(healthdisplay3);
		} else {
			if (_root.gamesave3.data.gamesaved3 !== true) {
				_root.game3.slot.gotoAndStop(2);
			}
		}
		this.currentslot = 1;
		onEnterFrame = function () {
			if (_root.tra._currentframe == 1 && _root._currentframe == 6) {
				if (Key.isDown(65) && this.currentslot == 1 && !this.apush && _root.game1.slot._currentframe == 2 && !this.deciding) {
					_root.game1.slot.gotoAndStop(3);
					_root.game1.slot.nameentry = 'ENTER NAME';
					Selection.setFocus('_root.game1.slot.nameentry');
					this.apush = true;
					_root.chestappear.start(0, 1);
				}
				if (Key.isDown(13) && this.currentslot == 1 && !this.apush && _root.game1.slot._currentframe == 3 && _root.game1.slot.nameentry !== 'ENTER NAME' && !this.deciding) {
					this.apush = true;
					_root.name1 = _root.game1.slot.nameentry;
					_root.game1.slot.gotoAndStop(1);
					_root.game1.slot.health.container.gotoAndStop(13);
					_root.game1.slot.moneyholder.money = 0;
					_root.game1.slot.moneyholder.money2 = 0;
					_root.game1.slot.name = _root.name1;
					_root.game1.slot.hero.sword.gotoAndStop(1);
					_root.game1.slot.hero.shield.gotoAndStop(1);
					_root.game1.slot.hero.leg1.gotoAndStop(1);
					_root.game1.slot.hero.leg2.gotoAndStop(1);
					_root.game1.slot.hero.torso.gotoAndStop(1);
					_root.game1.slot.hero.cloth1.gotoAndStop(1);
					_root.game1.slot.hero.cloth2.gotoAndStop(1);
					_root.game1.slot.hero.arm1.gotoAndStop(1);
					_root.game1.slot.hero.arm2.gotoAndStop(1);
					_root.game1.slot.hero.foot1.gotoAndStop(1);
					_root.game1.slot.hero.foot2.gotoAndStop(1);
					_root.game1.slot.hero.head.helm.gotoAndStop(1);
					_root.chestappear.start(0, 1);
				}
				if (Key.isDown(65) && this.currentslot == 1 && !this.apush && _root.game1.slot._currentframe == 1 && !this.deciding) {
					this.apush = true;
					this.deciding = true;
					_root.gameslot = 1;
					_root.chestappear.start(0, 1);
				}
				if (Key.isDown(65) && this.currentslot == 2 && !this.apush && _root.game2.slot._currentframe == 2 && !this.deciding) {
					_root.game2.slot.gotoAndStop(3);
					_root.game2.slot.nameentry = 'ENTER NAME';
					Selection.setFocus('_root.game2.slot.nameentry');
					this.apush = true;
					_root.chestappear.start(0, 1);
				}
				if (Key.isDown(13) && this.currentslot == 2 && !this.apush && _root.game2.slot._currentframe == 3 && _root.game2.slot.nameentry !== 'ENTER NAME' && !this.deciding) {
					this.apush = true;
					_root.name2 = _root.game2.slot.nameentry;
					_root.game2.slot.gotoAndStop(1);
					_root.game2.slot.health.container.gotoAndStop(13);
					_root.game2.slot.moneyholder.money = 0;
					_root.game2.slot.moneyholder.money2 = 0;
					_root.game2.slot.name = _root.name2;
					_root.game2.slot.hero.sword.gotoAndStop(1);
					_root.game2.slot.hero.shield.gotoAndStop(1);
					_root.game2.slot.hero.leg1.gotoAndStop(1);
					_root.game2.slot.hero.leg2.gotoAndStop(1);
					_root.game2.slot.hero.torso.gotoAndStop(1);
					_root.game2.slot.hero.cloth1.gotoAndStop(1);
					_root.game2.slot.hero.cloth2.gotoAndStop(1);
					_root.game2.slot.hero.arm1.gotoAndStop(1);
					_root.game2.slot.hero.arm2.gotoAndStop(1);
					_root.game2.slot.hero.foot1.gotoAndStop(1);
					_root.game2.slot.hero.foot2.gotoAndStop(1);
					_root.game2.slot.hero.head.helm.gotoAndStop(1);
					_root.chestappear.start(0, 1);
				}
				if (Key.isDown(65) && this.currentslot == 2 && !this.apush && _root.game2.slot._currentframe == 1 && !this.deciding) {
					this.apush = true;
					this.deciding = true;
					_root.gameslot = 2;
					_root.chestappear.start(0, 1);
				}
				if (Key.isDown(65) && this.currentslot == 3 && !this.apush && _root.game3.slot._currentframe == 2 && !this.deciding) {
					_root.game3.slot.gotoAndStop(3);
					_root.game3.slot.nameentry = 'ENTER NAME';
					Selection.setFocus('_root.game3.slot.nameentry');
					this.apush = true;
					_root.chestappear.start(0, 1);
				}
				if (Key.isDown(13) && this.currentslot == 3 && !this.apush && _root.game3.slot._currentframe == 3 && _root.game3.slot.nameentry !== 'ENTER NAME' && !this.deciding) {
					this.apush = true;
					_root.name3 = _root.game3.slot.nameentry;
					_root.game3.slot.gotoAndStop(1);
					_root.game3.slot.health.container.gotoAndStop(13);
					_root.game3.slot.moneyholder.money = 0;
					_root.game3.slot.moneyholder.money2 = 0;
					_root.game3.slot.name = _root.name3;
					_root.game3.slot.hero.sword.gotoAndStop(1);
					_root.game3.slot.hero.shield.gotoAndStop(1);
					_root.game3.slot.hero.leg1.gotoAndStop(1);
					_root.game3.slot.hero.leg2.gotoAndStop(1);
					_root.game3.slot.hero.torso.gotoAndStop(1);
					_root.game3.slot.hero.cloth1.gotoAndStop(1);
					_root.game3.slot.hero.cloth2.gotoAndStop(1);
					_root.game3.slot.hero.arm1.gotoAndStop(1);
					_root.game3.slot.hero.arm2.gotoAndStop(1);
					_root.game3.slot.hero.foot1.gotoAndStop(1);
					_root.game3.slot.hero.foot2.gotoAndStop(1);
					_root.game3.slot.hero.head.helm.gotoAndStop(1);
					_root.chestappear.start(0, 1);
				}
				if (Key.isDown(65) && this.currentslot == 3 && !this.apush && _root.game3.slot._currentframe == 1 && !this.deciding) {
					this.apush = true;
					this.deciding = true;
					_root.gameslot = 3;
					_root.chestappear.start(0, 1);
				}
				if (!Key.isDown(65) && this.apush) {
					this.apush = false;
				}
				if (_root.icons._currentframe !== this.currentslot) {
					_root.icons.gotoAndStop(this.currentslot);
				}
				if (this.currentslot > 4 && !this.deciding) {
					this.currentslot = 1;
				}
				if (this.currentslot < 1 && !this.deciding) {
					this.currentslot = 4;
				}
				if (Key.isDown(40) && !keypush3 && !this.deciding) {
					this.currentslot += 1;
					keypush3 = true;
					_root.menuscreenarrows.start(0, 1);
				}
				if (Key.isDown(38) && !keypush4 && !this.deciding) {
					this.currentslot -= 1;
					keypush4 = true;
					_root.menuscreenarrows.start(0, 1);
				}
				if (this.deciding) {
					_root.sel2.gotoAndStop(spot);
					if (!_root.sel2._visible) {
						spot = 1;
						_root.sel2._visible = true;
					}
					if (Key.isDown(40) && !keypush3) {
						spot += 1;
						keypush3 = true;
						_root.menuscreenarrows.start(0, 1);
					}
					if (Key.isDown(38) && !keypush4) {
						spot -= 1;
						keypush4 = true;
						_root.menuscreenarrows.start(0, 1);
					}
					if (spot == 1 && !this.apush && Key.isDown(65)) {
						this.apush = true;
						_root.tra.play();
						_root.startmusic.stop();
						this.deciding = false;
						_root.chestappear.start(0, 1);
						if (_root.gameslot == 1) {
							_root.name = _root.name1;
							if (_root.gamesave1.data.gamesaved1 == true) {
								_root.loadoldgame = true;
							}
						}
						if (_root.gameslot == 2) {
							_root.name = _root.name2;
							if (_root.gamesave2.data.gamesaved2 == true) {
								_root.loadoldgame = true;
							}
						}
						if (_root.gameslot == 3) {
							_root.name = _root.name3;
							if (_root.gamesave3.data.gamesaved3 == true) {
								_root.loadoldgame = true;
							}
						}
					}
					if (spot == 2 && !this.apush && Key.isDown(65)) {
						this.apush = true;
						_root.chestappear.start(0, 1);
						if (_root.gameslot == 1) {
							_root.game1.slot.gotoAndStop(2);
							this.deciding = false;
							if (_root.gamesave1.data.gamesaved1 == true) {
								_root.gamesave1.data.gamesaved1 = false;
							}
						}
						if (_root.gameslot == 2) {
							_root.game2.slot.gotoAndStop(2);
							this.deciding = false;
							if (_root.gamesave2.data.gamesaved2 == true) {
								_root.gamesave2.data.gamesaved2 = false;
							}
						}
						if (_root.gameslot == 3) {
							_root.game3.slot.gotoAndStop(2);
							this.deciding = false;
							if (_root.gamesave3.data.gamesaved3 == true) {
								_root.gamesave3.data.gamesaved3 = false;
							}
						}
					}
					if (spot == 3 && !this.apush && Key.isDown(65)) {
						this.apush = true;
						_root.chestappear.start(0, 1);
						_root.sel2.gotoAndStop(1);
						this.deciding = false;
					}
					if (spot > 3) {
						spot = 1;
					}
					if (spot < 1) {
						spot = 3;
					}
				}
				if (_root.sel2._visible && !this.deciding) {
					_root.sel2._visible = false;
				}
				if (!Key.isDown(40) && keypush3) {
					keypush3 = false;
				}
				if (!Key.isDown(38) && keypush4) {
					keypush4 = false;
				}
			}
		};
	}
	movieClip 250	{
	}
	
	// unknown tag 88 length 31
	movieClip 255	{
	}
	movieClip 258	{
	}
	movieClip 260	{
	}
	movieClip 263	{
		frame 1 {
			stop();
		}
	}
	movieClip 265	{
		frame 1 {
			stop();
		}
	}
	movieClip 267	{
		frame 1 {
			stop();
		}
	}
	movieClip 269	{
		frame 1 {
			stop();
		}
	}
	movieClip 270	{
		frame 1 {
			stop();
		}
		frame 13 {
			stop();
		}
	}
	movieClip 271	{
		frame 1 {
			stop();
		}
		frame 17 {
			stop();
		}
	}
	movieClip 272	{
		frame 1 {
			stop();
		}
		frame 21 {
			stop();
		}
	}
	movieClip 273	{
		frame 1 {
			stop();
		}
		frame 25 {
			stop();
		}
	}
	movieClip 274	{
		frame 1 {
			stop();
		}
		frame 29 {
			stop();
		}
	}
	movieClip 275	{
		frame 1 {
			stop();
		}
	}
	movieClip 276	{
		frame 1 {
			stop();
		}
		frame 37 {
			stop();
		}
	}
	movieClip 277	{
		frame 1 {
			stop();
		}
		frame 41 {
			stop();
		}
	}
	movieClip 278	{
		frame 1 {
			stop();
		}
	}
	movieClip 283	{
	}
	movieClip 288	{
	}
	movieClip 298	{
	}
	movieClip 304	{
	}
	movieClip 305	{
	}
	movieClip 306	{
	}
	movieClip 310	{
	}
	movieClip 311	{
	}
	movieClip 314	{
	}
	movieClip 317	{
	}
	movieClip 320	{
	}
	movieClip 321	{
	}
	movieClip 322	{
		frame 1 {
			stop();
		}
		instance of movieClip 239	{
			onClipEvent (keyDown) {
				if (Key.isDown(65) && !this.apush) {
					getURL('http://armorgames.com', '_blank');
					this.apush = false;
				}
				if (!Key.isDown(65) && this.apush) {
					this.apush = false;
				}
			}
		}
		frame 5 {
			stop();
		}
	}
	movieClip 323	{
		frame 1 {
			stop();
		}
	}
	instance sel2 of movieClip 323	{
		onClipEvent (load) {
			this._visible = false;
		}
	}
	frame 7 {
		if (!_root.loadoldgame) {
			_root.intromus = new Sound(this);
			_root.intromus.attachSound('intromus');
			_root.intromus.start(0, 99999999);
			this.stop();
		}
	}
	movieClip 325	{
	}
	
	// unknown tag 88 length 63
	movieClip 360	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 5 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 8 {
			stop();
		}
		frame 9 {
			stop();
		}
	}
	movieClip 362	{
	}
	instance of movieClip 362	{
		onClipEvent (enterFrame) {
			if (!this.apush && Key.isDown(65) && this.intro._currentframe !== 8) {
				this.intro.play();
				this.apush = true;
			}
			if (!this.apush && Key.isDown(65) && this.intro._currentframe == 8) {
				_root.tra.play();
				this.apush = true;
			}
			if (this.apush && !Key.isDown(65)) {
				this.apush = false;
			}
		}
	}
	movieClip 366	{
	}
	movieClip 367	{
	}
	instance of movieClip 367	{
		onClipEvent (enterFrame) {
			if (_root.shield !== 1 && this.hitTest(_root.box)) {
				_root.shield = 1;
			}
		}
	}
	
	// unknown tag 88 length 105
	instance of movieClip 367	{
		onClipEvent (enterFrame) {
			if (_root.shield !== 2 && this.hitTest(_root.box)) {
				_root.shield = 2;
			}
		}
	}
	instance of movieClip 367	{
		onClipEvent (enterFrame) {
			if (_root.shield !== 3 && this.hitTest(_root.box)) {
				_root.shield = 3;
			}
		}
	}
	instance of movieClip 367	{
		onClipEvent (enterFrame) {
			if (_root.shield !== 4 && this.hitTest(_root.box)) {
				_root.shield = 4;
			}
		}
	}
	instance of movieClip 367	{
		onClipEvent (enterFrame) {
			if (_root.sword !== 1 && this.hitTest(_root.box)) {
				_root.sword = 1;
			}
		}
	}
	instance of movieClip 367	{
		onClipEvent (enterFrame) {
			if (_root.sword !== 2 && this.hitTest(_root.box)) {
				_root.sword = 2;
			}
		}
	}
	instance of movieClip 367	{
		onClipEvent (enterFrame) {
			if (_root.sword !== 3 && this.hitTest(_root.box)) {
				_root.sword = 3;
			}
		}
	}
	instance of movieClip 367	{
		onClipEvent (enterFrame) {
			if (_root.sword !== 4 && this.hitTest(_root.box)) {
				_root.sword = 4;
			}
		}
	}
	movieClip 376	{
	}
	movieClip 378	{
	}
	movieClip 380	{
	}
	movieClip 381	{
		frame 1 {
			stop();
		}
		frame 3 {
			stop();
		}
	}
	movieClip 382	{
		frame 1 {
			stop();
		}
	}
	movieClip 383	{
		instance of movieClip 382	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 1;
					_root.pickup = true;
					_root.carry = true;
				}
			}
		}
	}
	instance of movieClip 367	{
		onClipEvent (enterFrame) {
			if (_root.armor !== 1 && this.hitTest(_root.box)) {
				_root.armor = 1;
			}
		}
	}
	instance of movieClip 367	{
		onClipEvent (enterFrame) {
			if (_root.armor !== 2 && this.hitTest(_root.box)) {
				_root.armor = 2;
			}
		}
	}
	instance of movieClip 367	{
		onClipEvent (enterFrame) {
			if (_root.armor !== 3 && this.hitTest(_root.box)) {
				_root.armor = 3;
			}
		}
	}
	instance of movieClip 367	{
		onClipEvent (enterFrame) {
			if (_root.armor !== 4 && this.hitTest(_root.box)) {
				_root.armor = 4;
			}
		}
	}
	instance of movieClip 367	{
		onClipEvent (enterFrame) {
			if (_root.helmet !== 1 && this.hitTest(_root.box)) {
				_root.helmet = 1;
			}
		}
	}
	instance of movieClip 367	{
		onClipEvent (enterFrame) {
			if (_root.helmet !== 2 && this.hitTest(_root.box)) {
				_root.helmet = 2;
			}
		}
	}
	instance of movieClip 367	{
		onClipEvent (enterFrame) {
			if (_root.helmet !== 3 && this.hitTest(_root.box)) {
				_root.helmet = 3;
			}
		}
	}
	instance of movieClip 367	{
		onClipEvent (enterFrame) {
			if (_root.helmet !== 4 && this.hitTest(_root.box)) {
				_root.helmet = 4;
			}
		}
	}
	instance of movieClip 367	{
		onClipEvent (enterFrame) {
			if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
				if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
					_root.hurt = true;
					_root.hurted = true;
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
			}
		}
	}
	instance of movieClip 367	{
		onClipEvent (enterFrame) {
			if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
				_root.hurt = true;
				_root.hurted = true;
				_root.health += 4;
				_root.maxhealth += 4;
			}
		}
	}
	movieClip 391	{
	}
	movieClip 393	{
	}
	movieClip 394	{
		frame 7 {
			stop();
		}
	}
	movieClip 395	{
		frame 1 {
			stop();
		}
	}
	instance of movieClip 395	{
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero) && this._currentframe == 1) {
				_root.aicon = 4;
			}
			if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup)) {
				_root.newitem = 4;
				_root.chatting = true;
				_root.cam.textbox.play();
				_root.cam.textbox.text = 'Wow, you got 5 bombs! You can equip these to the D key from the menu screen!';
				_root.bombs += 5;
				_root.getItems = true;
				_root.c1open = true;
			}
			if (_root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
				_root.cam.textbox.text = ' ';
				_root.newitem = 0;
				_root.chatting = false;
				_root.cam.textbox.play();
				_root.getItems = false;
			}
			if (_root.c1open) {
				this.gotoAndStop(2);
			} else {
				this.gotoAndStop(1);
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65)) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 395	{
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero) && this._currentframe == 1) {
				_root.aicon = 4;
			}
			if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup)) {
				_root.newitem = 1;
				_root.chatting = true;
				_root.cam.textbox.play();
				_root.cam.textbox.text = 'You got a small potion! These can be equipped to the D key and used when your health is running low to restore health!';
				_root.getItems = true;
				_root.c2open = true;
			}
			if (_root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
				_root.cam.textbox.text = ' ';
				_root.newitem = 0;
				_root.chatting = false;
				_root.cam.textbox.play();
				_root.getItems = false;
			}
			if (_root.c2open) {
				this.gotoAndStop(2);
			} else {
				this.gotoAndStop(1);
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65)) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 395	{
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero) && this._currentframe == 1) {
				_root.aicon = 4;
			}
			if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup)) {
				_root.newitem = 2;
				_root.chatting = true;
				_root.cam.textbox.play();
				_root.cam.textbox.text = 'You got a medium sized potion! These can be equipped to the D key and used when your health is running low to restore 5 hearts!';
				_root.getItems = true;
				_root.c3open = true;
			}
			if (_root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
				_root.cam.textbox.text = ' ';
				_root.newitem = 0;
				_root.chatting = false;
				_root.cam.textbox.play();
				_root.getItems = false;
			}
			if (_root.c3open) {
				this.gotoAndStop(2);
			} else {
				this.gotoAndStop(1);
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65)) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 395	{
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero) && this._currentframe == 1) {
				_root.aicon = 4;
			}
			if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup)) {
				_root.newitem = 3;
				_root.chatting = true;
				_root.cam.textbox.play();
				_root.cam.textbox.text = 'You got a Large Potion! These can be equipped to the D key and used to replenish all of your health!';
				_root.getItems = true;
				_root.c4open = true;
			}
			if (_root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
				_root.cam.textbox.text = ' ';
				_root.newitem = 0;
				_root.chatting = false;
				_root.cam.textbox.play();
				_root.getItems = false;
			}
			if (_root.c4open) {
				this.gotoAndStop(2);
			} else {
				this.gotoAndStop(1);
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65)) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 395	{
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero) && this._currentframe == 1) {
				_root.aicon = 4;
			}
			if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup)) {
				_root.newitem = 3;
				_root.chatting = true;
				_root.cam.textbox.play();
				_root.cam.textbox.text = 'You got a Large Potion! These can be equipped to the D key and used to replenish all of your health!';
				_root.getItems = true;
				_root.c5open = true;
			}
			if (_root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
				_root.cam.textbox.text = ' ';
				_root.newitem = 0;
				_root.chatting = false;
				_root.cam.textbox.play();
				_root.getItems = false;
			}
			if (_root.c5open) {
				this.gotoAndStop(2);
			} else {
				this.gotoAndStop(1);
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65)) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 395	{
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero) && this._currentframe == 1) {
				_root.aicon = 4;
			}
			if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup)) {
				_root.newitem = 1;
				_root.chatting = true;
				_root.cam.textbox.play();
				_root.cam.textbox.text = 'You got a small potion! These can be equipped to the D key and used when your health is running low to restore 3 heart containers!';
				_root.getItems = true;
				_root.c6open = true;
			}
			if (_root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
				_root.cam.textbox.text = ' ';
				_root.newitem = 0;
				_root.chatting = false;
				_root.cam.textbox.play();
				_root.getItems = false;
			}
			if (_root.c6open) {
				this.gotoAndStop(2);
			} else {
				this.gotoAndStop(1);
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65)) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 395	{
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero) && this._currentframe == 1) {
				_root.aicon = 4;
			}
			if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup)) {
				_root.newitem = 1;
				_root.chatting = true;
				_root.cam.textbox.play();
				_root.cam.textbox.text = 'You got a small potion! These can be equipped to the D key and used when your health is running low to restore health!';
				_root.getItems = true;
				_root.c7open = true;
			}
			if (_root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
				_root.cam.textbox.text = ' ';
				_root.newitem = 0;
				_root.chatting = false;
				_root.cam.textbox.play();
				_root.getItems = false;
			}
			if (_root.c7open) {
				this.gotoAndStop(2);
			} else {
				this.gotoAndStop(1);
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65)) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 395	{
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero) && this._currentframe == 1) {
				_root.aicon = 4;
			}
			if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup)) {
				_root.newitem = 5;
				_root.chatting = true;
				_root.cam.textbox.play();
				_root.cam.textbox.text = 'Awesome you got the crossbow! Just aim and shoot at whatever you want! You can equip this to the D key from the menu screen!';
				_root.arrows += 20;
				_root.getItems = true;
				_root.havecrossbow = true;
			}
			if (_root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
				_root.cam.textbox.text = ' ';
				_root.newitem = 0;
				_root.chatting = false;
				_root.cam.textbox.play();
				_root.getItems = false;
			}
			if (_root.havecrossbow) {
				this.gotoAndStop(2);
			} else {
				this.gotoAndStop(1);
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65)) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 395	{
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero) && this._currentframe == 1) {
				_root.aicon = 4;
			}
			if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup)) {
				_root.newitem = 6;
				_root.chatting = true;
				_root.cam.textbox.play();
				_root.cam.textbox.text = 'You got the boomerang! You can equip this to the D key from the menu screen by pressing A! While equipped you can throw it with the D key.';
				_root.getItems = true;
				_root.haveboomerang = true;
			}
			if (_root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
				_root.cam.textbox.text = ' ';
				_root.newitem = 0;
				_root.chatting = false;
				_root.cam.textbox.play();
				_root.getItems = false;
			}
			if (_root.haveboomerang) {
				this.gotoAndStop(2);
			} else {
				this.gotoAndStop(1);
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65)) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 395	{
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero) && this._currentframe == 1) {
				_root.aicon = 4;
			}
			if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup)) {
				_root.newitem = 7;
				_root.chatting = true;
				_root.cam.textbox.play();
				_root.cam.textbox.text = 'You got the Giant Hammer! You can equip this to the D key from the menu screen by pressing A! While equipped you can press D to use the hammer.';
				_root.getItems = true;
				_root.havehammer = true;
				if (_root.sfx) {
					_root.openchest.start(0, 1);
				}
			}
			if (_root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
				_root.cam.textbox.text = ' ';
				_root.newitem = 0;
				_root.chatting = false;
				_root.cam.textbox.play();
				_root.getItems = false;
				if (_root.sfx) {
					_root.chatwindorclose.start(0, 1);
				}
			}
			if (_root.havehammer) {
				this.gotoAndStop(2);
			} else {
				this.gotoAndStop(1);
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65)) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 395	{
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero) && this._currentframe == 1) {
				_root.aicon = 4;
			}
			if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup)) {
				_root.newitem = 8;
				_root.chatting = true;
				_root.cam.textbox.play();
				_root.cam.textbox.text = 'You got the Blauncher! You can equip this to the D key from the menu screen by pressing A! While equipped you can press D to fire bombs.';
				_root.getItems = true;
				_root.blauncher = true;
				if (_root.sfx) {
					_root.openchest.start(0, 1);
				}
			}
			if (_root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
				_root.cam.textbox.text = ' ';
				_root.newitem = 0;
				_root.chatting = false;
				_root.cam.textbox.play();
				_root.getItems = false;
				if (_root.sfx) {
					_root.chatwindorclose.start(0, 1);
				}
			}
			if (_root.blauncher) {
				this.gotoAndStop(2);
			} else {
				this.gotoAndStop(1);
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65)) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 395	{
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero) && this._currentframe == 1) {
				_root.aicon = 4;
			}
			if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup)) {
				_root.newitem = 9;
				_root.chatting = true;
				_root.cam.textbox.play();
				_root.cam.textbox.text = 'You got the Flame Ring! You can equip this to the D key from the menu screen by pressing A! While equipped you can press D to launch fire in any direction.';
				_root.getItems = true;
				_root.havefirering = true;
				if (_root.sfx) {
					_root.openchest.start(0, 1);
				}
			}
			if (_root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
				_root.cam.textbox.text = ' ';
				_root.newitem = 0;
				_root.chatting = false;
				_root.cam.textbox.play();
				_root.getItems = false;
				if (_root.sfx) {
					_root.chatwindorclose.start(0, 1);
				}
			}
			if (_root.havefirering) {
				this.gotoAndStop(2);
			} else {
				this.gotoAndStop(1);
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65)) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	movieClip 396	{
	}
	movieClip 404	{
	}
	movieClip 407	{
	}
	movieClip 408	{
	}
	movieClip 409	{
	}
	movieClip 410	{
	}
	movieClip 411	{
	}
	movieClip 413	{
	}
	movieClip 415	{
	}
	movieClip 416	{
		frame 10 {
			stop();
		}
	}
	movieClip 417	{
		frame 1 {
			stop();
		}
		instance of movieClip 416	{
			onClipEvent (enterFrame) {
				if (!itemdropped && this._currentframe == 10) {
					dropped = _root.dropitem.duplicateMovieClip('newdrop' + _root.ar, _root.getNextHighestDepth());
					++_root.ar;
					dropped._x = _parent._x;
					dropped._y = _parent._y;
					dropped.placed = true;
					itemdropped = true;
					loadMovie('', _parent);
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 419	{
	}
	movieClip 420	{
	}
	movieClip 421	{
	}
	movieClip 422	{
		frame 6 {
			stop();
		}
	}
	movieClip 424	{
	}
	movieClip 425	{
	}
	movieClip 426	{
		frame 10 {
			stop();
		}
	}
	movieClip 427	{
	}
	movieClip 428	{
		frame 1 {
			stop();
		}
		instance of movieClip 426	{
			onClipEvent (enterFrame) {
				if (!itemdropped && this._currentframe == 10) {
					dropped = _root.dropitem.duplicateMovieClip('newdrop' + _root.ar, _root.getNextHighestDepth());
					++_root.ar;
					dropped._x = _parent._x;
					dropped._y = _parent._y;
					dropped.placed = true;
					itemdropped = true;
					loadMovie('', _parent);
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 430	{
	}
	movieClip 432	{
	}
	movieClip 434	{
	}
	movieClip 435	{
	}
	movieClip 437	{
	}
	movieClip 438	{
		frame 14 {
			_parent.wingsout = true;
		}
	}
	movieClip 439	{
	}
	movieClip 440	{
		frame 7 {
			stop();
		}
	}
	movieClip 441	{
		frame 16 {
			_parent.wingsout = false;
		}
	}
	movieClip 442	{
		frame 10 {
			stop();
		}
	}
	movieClip 443	{
		frame 1 {
			stop();
		}
		instance of movieClip 442	{
			onClipEvent (enterFrame) {
				if (!itemdropped && this._currentframe == 10) {
					dropped = _root.dropitem.duplicateMovieClip('newdrop' + _root.ar, _root.getNextHighestDepth());
					++_root.ar;
					dropped._x = _parent._x;
					dropped._y = _parent._y;
					dropped.placed = true;
					itemdropped = true;
					loadMovie('', _parent);
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemeis -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 444	{
	}
	movieClip 446	{
	}
	movieClip 448	{
	}
	movieClip 450	{
	}
	movieClip 452	{
	}
	movieClip 454	{
	}
	movieClip 456	{
	}
	movieClip 458	{
	}
	movieClip 460	{
	}
	movieClip 461	{
	}
	movieClip 462	{
	}
	movieClip 463	{
		frame 8 {
			stop();
		}
	}
	movieClip 468	{
		instance of movieClip 446	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 3;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 3;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		frame 13 {
			stop();
		}
	}
	movieClip 469	{
	}
	movieClip 470	{
		frame 1 {
			stop();
		}
	}
	movieClip 472	{
	}
	movieClip 474	{
	}
	movieClip 476	{
	}
	movieClip 477	{
	}
	movieClip 478	{
	}
	movieClip 479	{
		frame 8 {
			stop();
		}
	}
	movieClip 482	{
		instance of movieClip 446	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 3;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 3;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 446	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 3;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 3;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		frame 13 {
			stop();
		}
	}
	movieClip 483	{
	}
	movieClip 484	{
		frame 1 {
			stop();
		}
	}
	movieClip 486	{
	}
	movieClip 488	{
	}
	movieClip 490	{
	}
	movieClip 491	{
	}
	movieClip 492	{
	}
	movieClip 493	{
		frame 8 {
			stop();
		}
	}
	movieClip 496	{
		instance of movieClip 446	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 3;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 3;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		frame 13 {
			stop();
		}
	}
	movieClip 497	{
	}
	movieClip 498	{
		frame 1 {
			stop();
		}
	}
	movieClip 500	{
	}
	movieClip 501	{
	}
	movieClip 502	{
		frame 10 {
			stop();
		}
	}
	movieClip 503	{
		frame 1 {
			stop();
		}
		instance of movieClip 502	{
			onClipEvent (enterFrame) {
				if (!itemdropped && this._currentframe == 10) {
					dropped = _root.dropitem.duplicateMovieClip('newdrop' + _root.ar, _root.getNextHighestDepth());
					++_root.ar;
					dropped._x = _parent._x;
					dropped._y = _parent._y;
					dropped.placed = true;
					itemdropped = true;
					loadMovie('', _parent);
				}
			}
		}
	}
	instance of movieClip 503	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.skeleton.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.skeleton.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.skeleton.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.skeleton.gotoAndStop(4);
			}
			if (this.swordslash && this.skeleton.attack._currentframe == 13) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.skeleton.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.skeleton.gotoAndStop(3);
			}
			if (this.skeleton._currentframe == 3 && this.skeleton.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 504	{
	}
	movieClip 506	{
	}
	movieClip 508	{
	}
	movieClip 509	{
	}
	movieClip 511	{
	}
	movieClip 513	{
	}
	movieClip 515	{
	}
	movieClip 517	{
	}
	movieClip 519	{
	}
	movieClip 520	{
	}
	movieClip 521	{
	}
	movieClip 522	{
	}
	movieClip 523	{
		instance of movieClip 506	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 2;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 1;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 524	{
	}
	movieClip 525	{
		frame 1 {
			stop();
		}
	}
	movieClip 527	{
	}
	movieClip 529	{
	}
	movieClip 531	{
	}
	movieClip 532	{
	}
	movieClip 533	{
	}
	movieClip 534	{
	}
	movieClip 535	{
		instance of movieClip 506	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 2;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 1;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 506	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 2;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 1;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 536	{
	}
	movieClip 537	{
		frame 1 {
			stop();
		}
	}
	movieClip 539	{
	}
	movieClip 541	{
	}
	movieClip 543	{
	}
	movieClip 544	{
	}
	movieClip 545	{
	}
	movieClip 546	{
	}
	movieClip 547	{
		instance of movieClip 506	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 2;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 1;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 548	{
	}
	movieClip 549	{
		frame 1 {
			stop();
		}
	}
	movieClip 551	{
	}
	movieClip 552	{
	}
	movieClip 553	{
		frame 10 {
			stop();
		}
	}
	movieClip 554	{
	}
	movieClip 555	{
	}
	movieClip 556	{
		frame 1 {
			stop();
		}
		instance of movieClip 553	{
			onClipEvent (enterFrame) {
				if (!itemdropped && this._currentframe == 10) {
					dropped = _root.dropitem.duplicateMovieClip('newdrop' + _root.ar, _root.getNextHighestDepth());
					++_root.ar;
					dropped._x = _parent._x;
					dropped._y = _parent._y;
					dropped.placed = true;
					itemdropped = true;
					loadMovie('', _parent);
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 557	{
	}
	movieClip 559	{
	}
	movieClip 561	{
	}
	movieClip 563	{
	}
	movieClip 565	{
	}
	movieClip 567	{
	}
	movieClip 569	{
	}
	movieClip 570	{
	}
	movieClip 571	{
	}
	movieClip 572	{
	}
	movieClip 573	{
		instance of movieClip 559	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 3;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 559	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 3;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 574	{
		frame 1 {
			stop();
		}
	}
	movieClip 576	{
	}
	movieClip 578	{
	}
	movieClip 580	{
	}
	movieClip 581	{
	}
	movieClip 582	{
	}
	movieClip 583	{
	}
	movieClip 584	{
		instance of movieClip 559	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 3;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 585	{
		frame 1 {
			stop();
		}
	}
	movieClip 587	{
	}
	movieClip 589	{
	}
	movieClip 591	{
	}
	movieClip 592	{
	}
	movieClip 593	{
	}
	movieClip 594	{
	}
	movieClip 595	{
		instance of movieClip 559	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 3;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 596	{
		frame 1 {
			stop();
		}
	}
	movieClip 597	{
		frame 10 {
			stop();
		}
	}
	movieClip 598	{
	}
	movieClip 599	{
	}
	movieClip 600	{
		frame 1 {
			stop();
		}
		instance wizard of movieClip 597	{
			onClipEvent (enterFrame) {
				if (!itemdropped && this._currentframe == 10) {
					dropped = _root.dropitem.duplicateMovieClip('newdrop' + _root.ar, _root.getNextHighestDepth());
					++_root.ar;
					dropped._x = _parent._x;
					dropped._y = _parent._y;
					dropped.placed = true;
					itemdropped = true;
					loadMovie('', _parent);
				}
			}
		}
	}
	instance of movieClip 600	{
		onClipEvent (load) {
			this.health = 8;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wolf.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wolf.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.wolf.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.wolf.gotoAndStop(4);
				}
				if (this.swordslash && this.wolf.attack._currentframe == 17) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.wolf.gotoAndStop(3);
			}
			if (this.wolf._currentframe == 3 && this.wolf.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 601	{
	}
	movieClip 603	{
	}
	movieClip 605	{
	}
	movieClip 607	{
	}
	movieClip 609	{
	}
	movieClip 611	{
	}
	movieClip 613	{
	}
	movieClip 614	{
	}
	movieClip 615	{
	}
	movieClip 616	{
		frame 8 {
			stop();
		}
	}
	movieClip 619	{
	}
	movieClip 623	{
	}
	movieClip 624	{
		frame 1 {
			stop();
		}
	}
	movieClip 626	{
	}
	movieClip 628	{
	}
	movieClip 630	{
	}
	movieClip 631	{
	}
	movieClip 632	{
	}
	movieClip 633	{
		frame 8 {
			stop();
		}
	}
	movieClip 637	{
	}
	movieClip 638	{
		frame 1 {
			stop();
		}
	}
	movieClip 640	{
	}
	movieClip 642	{
	}
	movieClip 644	{
	}
	movieClip 645	{
	}
	movieClip 646	{
	}
	movieClip 647	{
		frame 8 {
			stop();
		}
	}
	movieClip 651	{
	}
	movieClip 652	{
		frame 1 {
			stop();
		}
	}
	movieClip 653	{
		frame 10 {
			stop();
		}
	}
	movieClip 654	{
		frame 1 {
			stop();
		}
		instance wizard of movieClip 653	{
			onClipEvent (enterFrame) {
				if (!itemdropped && this._currentframe == 10) {
					dropped = _root.dropitem.duplicateMovieClip('newdrop' + _root.ar, _root.getNextHighestDepth());
					++_root.ar;
					dropped._x = _parent._x;
					dropped._y = _parent._y;
					dropped.placed = true;
					itemdropped = true;
					loadMovie('', _parent);
				}
			}
		}
	}
	instance of movieClip 654	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.throwfire = false;
			this.atktime = random(30) + 40;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 400;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wizard.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wizard.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				--this.atktime;
				this.wizard.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 20 && this._y < _root.box._y + 80) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.hitTest(_root.hero) && !this.throwfire && this.alive && !this.hurt && !this.hurted) {
				this.wizard.gotoAndStop(2);
			}
			if (this.atktime <= 0) {
				this.throwfire = true;
			}
			if (this.throwfire && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.wizard.gotoAndStop(4);
			}
			if (this.throwfire && this.wizard.throws._currentframe == 10) {
				this.atktime = random(30) + 40;
				this.throwfire = false;
			}
			if (this.wizard.throws._currentframe == 6) {
				firess = _root.fireen.duplicateMovieClip('fireen_' + _root.ar, _root.getNextHighestDepth());
				firess.fired = true;
				firess.dir = this.dir;
				++_root.ar;
				firess._x = this._x;
				firess._y = this._y;
				_root.flamesoundpl = true;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.wizard.gotoAndStop(3);
			}
			if (this.wizard._currentframe == 3 && this.wizard.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 656	{
	}
	movieClip 658	{
	}
	movieClip 663	{
	}
	movieClip 664	{
	}
	movieClip 666	{
	}
	movieClip 668	{
	}
	movieClip 670	{
	}
	movieClip 671	{
	}
	movieClip 672	{
	}
	movieClip 673	{
	}
	movieClip 674	{
		frame 9 {
			stop();
		}
	}
	movieClip 675	{
		frame 10 {
			stop();
		}
	}
	movieClip 677	{
	}
	movieClip 678	{
	}
	movieClip 679	{
	}
	movieClip 680	{
		frame 1 {
			stop();
		}
		instance dead of movieClip 675	{
			onClipEvent (enterFrame) {
				if (!itemdropped && this._currentframe == 10) {
					dropped = _root.dropitem.duplicateMovieClip('newdrop' + _root.ar, _root.getNextHighestDepth());
					++_root.ar;
					dropped._x = _parent._x + 40;
					dropped._y = _parent._y + 40;
					dropped.placed = true;
					itemdropped = true;
					loadMovie('', _parent);
				}
			}
		}
	}
	instance of movieClip 680	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x + 55;
				flashes._y = this._y + 40;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 9 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 681	{
	}
	movieClip 683	{
	}
	movieClip 685	{
	}
	movieClip 687	{
	}
	movieClip 689	{
	}
	movieClip 691	{
	}
	movieClip 693	{
	}
	movieClip 695	{
	}
	movieClip 697	{
	}
	movieClip 698	{
	}
	movieClip 699	{
	}
	movieClip 700	{
	}
	movieClip 702	{
	}
	movieClip 704	{
	}
	movieClip 705	{
	}
	movieClip 706	{
		instance of movieClip 685	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 4;
					}
					if (_root.armor == 2) {
						_root.health -= 3;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 4;
					}
					if (_root.helmet == 2) {
						_root.health -= 3;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block && _root.shield == 3) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 685	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 4;
					}
					if (_root.armor == 2) {
						_root.health -= 3;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 4;
					}
					if (_root.helmet == 2) {
						_root.health -= 3;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block && _root.shield == 3) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 707	{
		frame 1 {
			stop();
		}
	}
	movieClip 709	{
	}
	movieClip 711	{
	}
	movieClip 713	{
	}
	movieClip 714	{
	}
	movieClip 715	{
	}
	movieClip 716	{
	}
	movieClip 717	{
		instance of movieClip 685	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 4;
					}
					if (_root.armor == 2) {
						_root.health -= 3;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 4;
					}
					if (_root.helmet == 2) {
						_root.health -= 3;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block && _root.shield == 3) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 718	{
		frame 1 {
			stop();
		}
	}
	movieClip 720	{
	}
	movieClip 722	{
	}
	movieClip 724	{
	}
	movieClip 725	{
	}
	movieClip 726	{
	}
	movieClip 727	{
	}
	movieClip 728	{
		instance of movieClip 685	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 4;
					}
					if (_root.armor == 2) {
						_root.health -= 3;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 4;
					}
					if (_root.helmet == 2) {
						_root.health -= 3;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block && _root.shield == 3) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 685	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 4;
					}
					if (_root.armor == 2) {
						_root.health -= 3;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 4;
					}
					if (_root.helmet == 2) {
						_root.health -= 3;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block && _root.shield == 3) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 729	{
		frame 1 {
			stop();
		}
	}
	movieClip 734	{
	}
	movieClip 737	{
	}
	movieClip 738	{
	}
	movieClip 739	{
		frame 10 {
			stop();
		}
	}
	movieClip 740	{
		frame 1 {
			stop();
		}
		instance of movieClip 739	{
			onClipEvent (enterFrame) {
				if (!itemdropped && this._currentframe == 10) {
					dropped = _root.dropitem.duplicateMovieClip('newdrop' + _root.ar, _root.getNextHighestDepth());
					++_root.ar;
					dropped._x = _parent._x;
					dropped._y = _parent._y;
					dropped.placed = true;
					itemdropped = true;
					loadMovie('', _parent);
				}
			}
		}
	}
	instance of movieClip 740	{
		onClipEvent (load) {
			this.health = 12;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 28) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 741	{
	}
	movieClip 743	{
	}
	movieClip 745	{
	}
	movieClip 746	{
	}
	movieClip 748	{
	}
	movieClip 749	{
	}
	movieClip 751	{
	}
	movieClip 753	{
	}
	movieClip 755	{
	}
	movieClip 756	{
	}
	movieClip 757	{
	}
	movieClip 758	{
	}
	movieClip 759	{
		instance of movieClip 743	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 4;
					}
					if (_root.armor == 2) {
						_root.health -= 3;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 4;
					}
					if (_root.helmet == 2) {
						_root.health -= 3;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		frame 20 {
			stop();
		}
	}
	movieClip 760	{
	}
	movieClip 761	{
		frame 1 {
			stop();
		}
	}
	movieClip 762	{
	}
	movieClip 764	{
	}
	movieClip 766	{
	}
	movieClip 767	{
	}
	movieClip 768	{
	}
	movieClip 769	{
	}
	movieClip 770	{
		instance of movieClip 743	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 4;
					}
					if (_root.armor == 2) {
						_root.health -= 3;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 4;
					}
					if (_root.helmet == 2) {
						_root.health -= 3;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 743	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 4;
					}
					if (_root.armor == 2) {
						_root.health -= 3;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 4;
					}
					if (_root.helmet == 2) {
						_root.health -= 3;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		frame 20 {
			stop();
		}
	}
	movieClip 771	{
	}
	movieClip 772	{
		frame 1 {
			stop();
		}
	}
	movieClip 773	{
	}
	movieClip 775	{
	}
	movieClip 777	{
	}
	movieClip 778	{
	}
	movieClip 779	{
	}
	movieClip 780	{
	}
	movieClip 781	{
		instance of movieClip 743	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 4;
					}
					if (_root.armor == 2) {
						_root.health -= 3;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 4;
					}
					if (_root.helmet == 2) {
						_root.health -= 3;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		frame 20 {
			stop();
		}
	}
	movieClip 782	{
	}
	movieClip 783	{
		frame 1 {
			stop();
		}
	}
	movieClip 784	{
		frame 10 {
			stop();
		}
	}
	movieClip 785	{
		frame 1 {
			stop();
		}
		instance of movieClip 784	{
			onClipEvent (enterFrame) {
				if (!itemdropped && this._currentframe == 10) {
					dropped = _root.dropitem.duplicateMovieClip('newdrop' + _root.ar, _root.getNextHighestDepth());
					++_root.ar;
					dropped._x = _parent._x;
					dropped._y = _parent._y;
					dropped.placed = true;
					itemdropped = true;
					loadMovie('', _parent);
				}
			}
		}
	}
	instance of movieClip 785	{
		onClipEvent (load) {
			this.health = 13;
			this.spd = 5;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 786	{
	}
	movieClip 788	{
	}
	movieClip 790	{
	}
	movieClip 792	{
	}
	movieClip 794	{
	}
	movieClip 796	{
	}
	movieClip 798	{
	}
	movieClip 800	{
	}
	movieClip 802	{
	}
	movieClip 803	{
	}
	movieClip 804	{
	}
	movieClip 805	{
	}
	movieClip 806	{
		instance of movieClip 788	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 4;
					}
					if (_root.armor == 2) {
						_root.health -= 3;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 4;
					}
					if (_root.helmet == 2) {
						_root.health -= 3;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 807	{
	}
	movieClip 808	{
		frame 1 {
			stop();
		}
	}
	movieClip 810	{
	}
	movieClip 812	{
	}
	movieClip 814	{
	}
	movieClip 815	{
	}
	movieClip 816	{
	}
	movieClip 817	{
	}
	movieClip 818	{
		instance of movieClip 788	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 4;
					}
					if (_root.armor == 2) {
						_root.health -= 3;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 4;
					}
					if (_root.helmet == 2) {
						_root.health -= 3;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 788	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 4;
					}
					if (_root.armor == 2) {
						_root.health -= 3;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 4;
					}
					if (_root.helmet == 2) {
						_root.health -= 3;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 819	{
	}
	movieClip 820	{
		frame 1 {
			stop();
		}
	}
	movieClip 822	{
	}
	movieClip 824	{
	}
	movieClip 826	{
	}
	movieClip 827	{
	}
	movieClip 828	{
	}
	movieClip 829	{
	}
	movieClip 830	{
		instance of movieClip 788	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 4;
					}
					if (_root.armor == 2) {
						_root.health -= 3;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 4;
					}
					if (_root.helmet == 2) {
						_root.health -= 3;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 831	{
	}
	movieClip 832	{
		frame 1 {
			stop();
		}
	}
	movieClip 834	{
	}
	movieClip 835	{
	}
	movieClip 836	{
		frame 10 {
			stop();
		}
	}
	movieClip 837	{
		frame 1 {
			stop();
		}
		instance of movieClip 836	{
			onClipEvent (enterFrame) {
				if (!itemdropped && this._currentframe == 10) {
					dropped = _root.dropitem.duplicateMovieClip('newdrop' + _root.ar, _root.getNextHighestDepth());
					++_root.ar;
					dropped._x = _parent._x;
					dropped._y = _parent._y;
					dropped.placed = true;
					itemdropped = true;
					loadMovie('', _parent);
				}
			}
		}
	}
	instance of movieClip 837	{
		onClipEvent (load) {
			this.health = 14;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance box of movieClip 367	{
		onClipEvent (load) {
			_root.RUN = 9;
			_root.alive = true;
			_root.dir = 3;
			_root.roll = false;
			_root.attack = false;
			_root.defend = false;
			_root.rolling = 30;
			_root.hurt = false;
			_root.hurtbounce = 13;
			this._visible = false;
			_root.atk = 0;
			_root.atktimer = 5.5;
			this.i = 0;
		}
		onClipEvent (enterFrame) {
			function canpl() {
				if (Key.isDown(39) && !Key.isDown(37)) {
					if (!_root.BG.hitTest(this._x + 20, _y, true)) {
						this._x += _root.RUN;
						_root.aicon = 1;
					}
				} else {
					if (Key.isDown(37) && !Key.isDown(39)) {
						if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
							this._x -= _root.RUN;
							_root.aicon = 1;
						}
					}
				}
				if (Key.isDown(38) && !Key.isDown(40)) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= _root.RUN;
						_root.aicon = 1;
					}
				} else {
					if (Key.isDown(40) && !Key.isDown(38)) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += _root.RUN;
							_root.aicon = 1;
						}
						if (Key.isDown(40) && Key.isDown(39) && Key.isDown(37)) {
							this._y -= _root.RUN;
						}
					}
				}
				if (!Key.isDown(40) && !Key.isDown(38) && !Key.isDown(37) && !Key.isDown(39) && _root.aicon == 1 or _root.aicon == 3 && _root.equipped == 2) {
					_root.aicon = 0;
				}
				if (_root.equipped == 2 && _root.aicon == 0) {
					_root.aicon = 3;
				}
			}
			if (!_root.pause && !_root.getItems && !_root.chatting && !_root.roll && !_root.hurt && !_root.pickup && !_root.firing && !_root.throwboomerang && !_root.throwfire) {
				if (!_root.pause && _root.alive && !_root.attack && !_root.hammerattack) {
					canpl();
				}
			}
			if (Key.isDown(65) && !_root.roll && !_root.pause && !_root.getItems && !_root.hurt && !_root.block && !_root.attack && _root.alive && !_root.defend && !_root.carry && !_root.chatting && !_root.firing && !_root.throwboomerang && !_root.throwfire) {
				if (Key.isDown(38)) {
					_root.roll = true;
				}
				if (Key.isDown(39)) {
					_root.roll = true;
				}
				if (Key.isDown(40)) {
					_root.roll = true;
				}
				if (Key.isDown(37)) {
					_root.roll = true;
				}
				if (_root.sfx && _root.roll) {
					_root.rolls.start(0, 1);
				}
			}
			if (_root.roll && _root.rolling > 0 && !_root.pause && !_root.getItems && !_root.hurt && !_root.attack) {
				_root.rolling -= 2;
				if (_root.dir == 1) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= _root.rolling;
					}
				}
				if (_root.dir == 2) {
					if (!_root.BG.hitTest(this._x + 20, _y, true)) {
						this._x += _root.rolling;
					}
				}
				if (_root.dir == 3) {
					if (!_root.BG.hitTest(this._x, _y + 20, true)) {
						this._y += _root.rolling;
					}
				}
				if (_root.dir == 4) {
					if (!_root.BG.hitTest(this._x - 20, _y, true)) {
						this._x -= _root.rolling;
					}
				}
				if (_root.roll && _root.rolling <= 0) {
					_root.roll = false;
				}
				if (!_root.roll or _root.hurt) {
					_root.rolling = 30;
				}
			}
			if (!_root.pause && !_root.getItems && !_root.chatting && !_root.roll && !_root.hurt && !_root.block && Key.isDown(83) && _root.equipped == 1 && !Key.isDown(65) && !_root.carry && !_root.firing && !_root.throwboomerang && !_root.hammerattack && _root.alive && !_root.throwfire && !_root.firing) {
				this.slet = true;
				_root.sicon = 1;
				_root.equipped = 2;
				if (_root.sfx) {
					_root.swordout.start(0, 1);
				}
			}
			if (!_root.pause && !_root.attack && !_root.getItems && !_root.chatting && !_root.roll && !_root.hurt && !_root.block && !this.slet && Key.isDown(65) && _root.equipped == 2 && !_root.hammerattack && _root.alive && !_root.throwfire && !_root.firing) {
				_root.sicon = 0;
				_root.dicon = 0;
				_root.equipped = 1;
				if (_root.sfx) {
					_root.swordin.start(0, 1);
				}
			}
			if (_root.hurt && _root.hurtbounce > 0 && !_root.pause && !_root.getItems or _root.block && _root.hurtbounce > 0 && !_root.pause && !_root.getItems) {
				_root.fires = false;
				_root.firing = false;
				_root.rolling = 20;
				_root.roll = false;
				_root.hurtbounce -= 1;
				if (_root.dir == 1) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += _root.hurtbounce;
					}
				}
				if (_root.dir == 2) {
					if (!_root.BG.hitTest(this._x - 20, _y, true)) {
						this._x -= _root.hurtbounce;
					}
				}
				if (_root.dir == 3) {
					if (!_root.BG.hitTest(this._x, _y - 20, true)) {
						this._y -= _root.hurtbounce;
					}
				}
				if (_root.dir == 4) {
					if (!_root.BG.hitTest(this._x + 20, _y, true)) {
						this._x += _root.hurtbounce;
					}
				}
				if (_root.hurt && _root.hurtbounce <= 0) {
					_root.hurt = false;
				}
				if (_root.block && _root.hurtbounce <= 0) {
					_root.block = false;
				}
				if (!_root.block && _root.hurtbounce == 0) {
					_root.hurtbounce = 13;
				}
				if (!_root.hurt && _root.hurtbounce == 0) {
					_root.hurtbounce = 13;
				}
			}
			if (!_root.attack && !_root.hurt && !_root.roll && !_root.pause && !_root.getItems && !_root.chatting && Key.isDown(83) && _root.equipped == 2 && !this.slet && !_root.defend && _root.alive) {
				_root.swings = true;
				moved = false;
				_root.atktimer = 5;
				++_root.atk;
				_root.attack = true;
				this.slet = true;
				at = 4;
			}
			if (!Key.isDown(83) or _root.defend) {
				this.slet = false;
			}
			if (_root.attack && !_root.pause && !_root.getItems && _root.equipped == 2 && !_root.chatting && _root.alive) {
				_root.atktimer -= 0.5;
			}
			if (_root.atktimer <= 0 or _root.defend or _root.hurt) {
				_root.attack = false;
				_root.atktimer = 5;
			}
			if (!_root.attack && _root.atktimer == 5 && _root.atk !== 0 && at > 0 && _root.alive) {
				at -= 0.5;
			}
			if (at <= 0) {
				_root.atk = 0;
				at = 10;
			}
			if (!moved && _root.attack && !_root.pause && !_root.getItems && _root.equipped == 2 && !_root.chatting && _root.alive) {
				if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
					if (_root.dir == 1 && _root.atk == 1) {
						this._y -= 0;
						moved = true;
					}
					if (_root.dir == 1 && _root.atk == 2) {
						this._y -= 20;
						moved = true;
					}
					if (_root.dir == 1 && _root.atk == 3) {
						this._y -= 30;
						moved = true;
					}
				}
				if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
					if (_root.dir == 2 && _root.atk == 1) {
						this._x += 0;
						moved = true;
					}
					if (_root.dir == 2 && _root.atk == 2) {
						this._x += 20;
						moved = true;
					}
					if (_root.dir == 2 && _root.atk == 3) {
						this._x += 30;
						moved = true;
					}
				}
				if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
					if (_root.dir == 3 && _root.atk == 1) {
						this._y += 0;
						moved = true;
					}
					if (_root.dir == 3 && _root.atk == 2) {
						this._y += 20;
						moved = true;
					}
					if (_root.dir == 3 && _root.atk == 3) {
						this._y += 30;
						moved = true;
					}
				}
				if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
					if (_root.dir == 4 && _root.atk == 1) {
						this._x -= 0;
						moved = true;
					}
					if (_root.dir == 4 && _root.atk == 2) {
						this._x -= 20;
						moved = true;
					}
					if (_root.dir == 4 && _root.atk == 3) {
						this._x -= 30;
						moved = true;
					}
				}
			}
			if (_root.atk > 3) {
				_root.atk = 1;
			}
			if (Key.isDown(68) && !_root.defend && _root.equipped == 2 && !_root.pause && !_root.chatting && _root.alive && !_root.hurt && !_root.attack && !_root.roll && !_root.firing && !_root.throwboomerang) {
				_root.dicon = 0;
				_root.defend = true;
				_root.RUN = 2;
				_root.played1 = false;
			}
			if (!Key.isDown(68) && _root.defend && !_root.firing && !_root.throwboomerang or _root.equipped !== 2 or _root.pause or _root.chatting or !_root.alive or _root.hurt or _root.attack) {
				_root.defend = false;
				_root.RUN = 7;
				_root.played2 = false;
			}
			if (_root.equipped == 2 && _root.dicon !== 1 && !_root.defend) {
				_root.dicon = 1;
			}
			if (_root.sfx && _root.defend && !_root.played2) {
				_root.shieldout.start(0, 1);
				_root.played2 = true;
			}
			if (_root.sfx && !_root.defend && !_root.played1) {
				_root.shieldin.start(0, 1);
				_root.played1 = true;
			}
			if (_root.dicon == 2) {
				if (_root.ditem !== 2 or _root.pause) {
					_root.dicon = 0;
				}
			}
			if (_root.equipped == 1 && !_root.pause && !_root.carry && _root.rolling == 30 && !_root.getItems && _root.ditem !== 0) {
				_root.dicon = 2;
			}
			if (_root.equipped == 1 && !_root.pause && !_root.carry && !_root.roll && !_root.getItems) {
				if (_root.ditem == 1 && _root.bombs > 0 && Key.isDown(68)) {
					_root.pickobject = 1;
					_root.carry = true;
					_root.bombs -= 1;
				}
				if (_root.ditem == 2 && _root.arrows > 0 && Key.isDown(68) && !_root.firing && !_root.throwboomerang) {
					_root.firing = true;
				}
				if (_root.ditem == 2 && _root.fires) {
					_root.arrows -= 1;
					arrowfire = _root.arrowdups.duplicateMovieClip('arrowdup_' + _root.ar, _root.getNextHighestDepth());
					arrowfire.fired = true;
					++_root.ar;
					arrowfire._x = this._x;
					arrowfire._y = this._y;
					if (_root.sfx) {
						_root.arrowshoot.start(0, 1);
					}
					_root.fires = false;
				}
				if (_root.ditem == 3 && Key.isDown(68) && !_root.throwboomerang && !_root.boomthrown && !_root.floating) {
					_root.throwboomerang = true;
				}
				if (_root.ditem == 3 && _root.boomthrown && !_root.floating) {
					bm = _root.boomer.duplicateMovieClip('newboom', _root.getNextHighestDepth());
					bm.fired = true;
					bm._x = this._x;
					bm._y = this._y;
					bm.duped = true;
					if (_root.sfx) {
						_root.boomerswish.start(0, 1);
					}
					_root.floating = true;
					_root.boomthrown = false;
				}
				if (_root.ditem == 4 && Key.isDown(68) && !_root.pause && !_root.carry && !_root.roll && !_root.getItems && !_root.hammerattack && _root.alive && !_root.hurt) {
					_root.hammerattack = true;
				}
				if (_root.ditem == 5 && Key.isDown(68) && !_root.pause && !_root.carry && !_root.roll && !_root.getItems && !_root.firing && _root.alive && !_root.hurt && _root.bombs > 0) {
					_root.bombs -= 1;
					_root.cfire = true;
					_root.firing = true;
				}
				if (_root.ditem == 5 && _root.fires) {
					bombel = _root.bombsh.duplicateMovieClip('bombel_' + _root.ar, _root.getNextHighestDepth());
					bombel._x = this._x;
					bombel._y = this._y;
					bombel.thrown = true;
					++_root.ar;
					_root.fires = false;
				}
				if (_root.ditem == 6 && Key.isDown(68) && !_root.pause && !_root.carry && !_root.roll && !_root.getItems && !_root.throwfire && _root.alive && !_root.hurt) {
					_root.throwfire = true;
				}
				if (_root.ditem == 6 && _root.fires) {
					firess = _root.firedupe.duplicateMovieClip('firedup_' + _root.ar, _root.getNextHighestDepth());
					firess.fired = true;
					++_root.ar;
					firess._x = this._x;
					firess._y = this._y;
					_root.walks = false;
					_root.flamesoundpl = true;
					_root.fires = false;
				}
				if (_root.ditem == 7 && Key.isDown(68) && _root.health < _root.maxhealth) {
					_root.health += 13;
					if (_root.sfx) {
						_root.healthup.start();
					}
					if (_root.pslot1 == 1) {
						_root.pslot1 = 4;
						_root.ditem = 0;
					} else {
						if (_root.pslot2 == 1) {
							_root.pslot2 = 4;
							_root.ditem = 0;
						} else {
							if (_root.pslot3 == 1) {
								_root.pslot3 = 4;
								_root.ditem = 0;
							} else {
								if (_root.pslot4 == 1) {
									_root.pslot4 = 4;
									_root.ditem = 0;
								} else {
									if (_root.pslot5 == 1) {
										_root.pslot5 = 4;
										_root.ditem = 0;
									} else {
										if (_root.pslot6 == 1) {
											_root.pslot6 = 4;
											_root.ditem = 0;
										}
									}
								}
							}
						}
					}
				}
				if (_root.ditem == 8 && Key.isDown(68) && _root.health < _root.maxhealth) {
					_root.health += 21;
					if (_root.sfx) {
						_root.healthup.start();
					}
					if (_root.pslot1 == 2) {
						_root.pslot1 = 4;
						_root.ditem = 0;
					} else {
						if (_root.pslot2 == 2) {
							_root.pslot2 = 4;
							_root.ditem = 0;
						} else {
							if (_root.pslot3 == 2) {
								_root.pslot3 = 4;
								_root.ditem = 0;
							} else {
								if (_root.pslot4 == 2) {
									_root.pslot4 = 4;
									_root.ditem = 0;
								} else {
									if (_root.pslot5 == 2) {
										_root.pslot5 = 4;
										_root.ditem = 0;
									} else {
										if (_root.pslot6 == 2) {
											_root.pslot6 = 4;
											_root.ditem = 0;
										}
									}
								}
							}
						}
					}
				}
				if (_root.ditem == 9 && Key.isDown(68) && _root.health < _root.maxhealth) {
					_root.alive = true;
					_root.health += 41;
					if (_root.sfx) {
						_root.healthup.start();
					}
					if (_root.pslot1 == 3) {
						_root.pslot1 = 4;
						_root.ditem = 0;
					} else {
						if (_root.pslot2 == 3) {
							_root.pslot2 = 4;
							_root.ditem = 0;
						} else {
							if (_root.pslot3 == 3) {
								_root.pslot3 = 4;
								_root.ditem = 0;
							} else {
								if (_root.pslot4 == 3) {
									_root.pslot4 = 4;
									_root.ditem = 0;
								} else {
									if (_root.pslot5 == 3) {
										_root.pslot5 = 4;
										_root.ditem = 0;
									} else {
										if (_root.pslot6 == 3) {
											_root.pslot6 = 4;
											_root.ditem = 0;
										}
									}
								}
							}
						}
					}
				}
			}
			if (_root.health <= 1) {
				if (_root.pslot1 == 3) {
					_root.pslot1 = 4;
					_root.alive = true;
					_root.health += 41;
					if (_root.sfx) {
						_root.healthup.start();
					}
				} else {
					if (_root.pslot2 == 3) {
						_root.pslot2 = 4;
						_root.alive = true;
						_root.health += 41;
						if (_root.sfx) {
							_root.healthup.start();
						}
					} else {
						if (_root.pslot3 == 3) {
							_root.pslot3 = 4;
							_root.alive = true;
							_root.health += 41;
							if (_root.sfx) {
								_root.healthup.start();
							}
						} else {
							if (_root.pslot4 == 3) {
								_root.pslot4 = 4;
								_root.alive = true;
								_root.health += 41;
								if (_root.sfx) {
									_root.healthup.start();
								}
							} else {
								if (_root.pslot5 == 3) {
									_root.pslot5 = 4;
									_root.alive = true;
									_root.health += 41;
									if (_root.sfx) {
										_root.healthup.start();
									}
								} else {
									if (_root.pslot6 == 3) {
										_root.pslot6 = 4;
										_root.alive = true;
										_root.health += 41;
										if (_root.sfx) {
											_root.healthup.start();
										}
									}
								}
							}
						}
					}
				}
			}
			if (!_root.pause && !_root.getItems && !_root.chatting && !_root.roll && !_root.hurt && _root.alive && !_root.defend && !_root.pickup && !_root.firing && !_root.throwboomerang) {
				if (Key.isDown(40) && !Key.isDown(39) && !Key.isDown(37) or Key.isDown(40) && _root.dir == 1) {
					_root.dir = 3;
				}
				if (Key.isDown(38) && !Key.isDown(39) && !Key.isDown(37) or Key.isDown(38) && _root.dir == 3) {
					_root.dir = 1;
				}
				if (Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40) or Key.isDown(39) && _root.dir == 4) {
					_root.dir = 2;
				}
				if (Key.isDown(37) && !Key.isDown(38) && !Key.isDown(40) or Key.isDown(37) && _root.dir == 2) {
					_root.dir = 4;
				}
			}
		}
	}
	movieClip 838	{
		frame 1 {
			_root.walks = true;
		}
		frame 2 {
			_root.walks = false;
		}
		frame 9 {
			_root.walks = true;
		}
		frame 10 {
			_root.walks = false;
		}
	}
	movieClip 844	{
	}
	movieClip 850	{
	}
	movieClip 851	{
	}
	movieClip 852	{
		frame 3 {
			_root.smokey = true;
		}
		frame 4 {
			_root.smokey = false;
		}
		frame 16 {
			stop();
		}
	}
	movieClip 854	{
	}
	movieClip 855	{
		frame 8 {
			stop();
		}
	}
	movieClip 857	{
	}
	movieClip 858	{
		frame 15 {
			stop();
		}
	}
	movieClip 859	{
		frame 1 {
			stop();
		}
	}
	movieClip 860	{
	}
	movieClip 861	{
		frame 2 {
			_root.walks = true;
		}
		frame 3 {
			_root.walks = false;
		}
		frame 10 {
			_root.walks = true;
		}
		frame 11 {
			_root.walks = false;
		}
	}
	movieClip 862	{
		frame 3 {
			_root.smokey = true;
		}
		frame 4 {
			_root.smokey = false;
		}
		frame 16 {
			stop();
		}
	}
	movieClip 864	{
	}
	movieClip 865	{
		frame 8 {
			stop();
		}
	}
	movieClip 866	{
		frame 1 {
			stop();
		}
	}
	movieClip 871	{
	}
	movieClip 872	{
	}
	movieClip 873	{
		frame 1 {
			_root.walks = true;
		}
		frame 2 {
			_root.walks = false;
		}
		frame 9 {
			_root.walks = true;
		}
		frame 10 {
			_root.walks = false;
		}
	}
	movieClip 874	{
		frame 3 {
			_root.smokey = true;
		}
		frame 4 {
			_root.smokey = true;
		}
		frame 16 {
			stop();
		}
	}
	movieClip 875	{
		frame 8 {
			stop();
		}
	}
	movieClip 876	{
		frame 1 {
			stop();
		}
	}
	movieClip 877	{
		frame 1 {
			stop();
		}
		instance hero of movieClip 859	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive) {
					if (Key.isDown(40) && !Key.isDown(38) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack) {
						this.gotoAndStop(2);
					}
					if (!Key.isDown(40) && !_root.roll && !_root.hurt && !_root.attack or Key.isDown(38) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
					if (_root.roll && !_root.hurt) {
						this.gotoAndStop(3);
					}
					if (_root.hurt) {
						this.gotoAndStop(4);
					}
					if (_root.attack && !_root.hurt && !_root.roll) {
						this.gotoAndStop(5);
					}
				}
				if (!_root.alive) {
					this.gotoAndStop(6);
				}
			}
		}
		instance hero of movieClip 866	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive) {
					if (Key.isDown(37) && !Key.isDown(39) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack) {
						this.gotoAndStop(2);
					}
					if (!Key.isDown(37) && !_root.roll && !_root.attack && !_root.hurt or Key.isDown(39) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
					if (_root.roll && !_root.hurt) {
						this.gotoAndStop(3);
					}
					if (_root.hurt) {
						this.gotoAndStop(4);
					}
					if (_root.attack && !_root.hurt && !_root.roll) {
						this.gotoAndStop(5);
					}
				}
				if (!_root.alive) {
					this.gotoAndStop(6);
				}
			}
		}
		instance hero of movieClip 866	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive) {
					if (Key.isDown(39) && !Key.isDown(37) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack) {
						this.gotoAndStop(2);
					}
					if (!Key.isDown(39) && !_root.roll && !_root.hurt && !_root.attack or Key.isDown(37) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
					if (_root.roll && !_root.hurt) {
						this.gotoAndStop(3);
					}
					if (_root.hurt) {
						this.gotoAndStop(4);
					}
					if (_root.attack && !_root.hurt && !_root.roll) {
						this.gotoAndStop(5);
					}
				}
				if (!_root.alive) {
					this.gotoAndStop(6);
				}
			}
		}
		instance hero of movieClip 876	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive) {
					if (Key.isDown(38) && !Key.isDown(40) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack) {
						this.gotoAndStop(2);
					}
					if (!Key.isDown(38) && !_root.roll && !_root.hurt && !_root.attack or Key.isDown(40) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
					if (_root.roll && !_root.hurt) {
						this.gotoAndStop(3);
					}
					if (_root.hurt) {
						this.gotoAndStop(4);
					}
					if (_root.attack && !_root.hurt && !_root.roll) {
						this.gotoAndStop(5);
					}
				}
				if (!_root.alive) {
					this.gotoAndStop(6);
				}
			}
		}
	}
	movieClip 878	{
		frame 1 {
			stop();
			_root.hurted = false;
			_root.hero._visible = true;
		}
		frame 2 {
			if (_root.sfx) {
				_root.hurts.start(0, 1);
			}
		}
		frame 10 {
			_root.hero._visible = false;
		}
		frame 14 {
			_root.hero._visible = true;
		}
		frame 18 {
			_root.hero._visible = false;
		}
		frame 21 {
			_root.hero._visible = true;
		}
		frame 24 {
			_root.hero._visible = false;
		}
		frame 26 {
			_root.hero._visible = true;
		}
		frame 28 {
			_root.hero._visible = false;
		}
		frame 30 {
			_root.hero._visible = true;
		}
		frame 32 {
			_root.hero._visible = false;
		}
		frame 34 {
			_root.hero._visible = true;
		}
		frame 36 {
			_root.hero._visible = false;
		}
		frame 38 {
			_root.hero._visible = true;
		}
		frame 40 {
			_root.hero._visible = false;
		}
		frame 42 {
			_root.hero._visible = true;
		}
		frame 44 {
			_root.hero._visible = false;
		}
		frame 46 {
			_root.hero._visible = true;
		}
		frame 48 {
			_root.hero._visible = false;
		}
		frame 50 {
			_root.hero._visible = true;
		}
		frame 52 {
			_root.hero._visible = false;
		}
	}
	movieClip 879	{
	}
	movieClip 880	{
		frame 1 {
			_root.walks = true;
		}
		frame 2 {
			_root.walks = false;
		}
		frame 9 {
			_root.walks = true;
		}
		frame 10 {
			_root.walks = false;
		}
	}
	movieClip 881	{
		frame 6 {
			stop();
		}
	}
	movieClip 886	{
	}
	movieClip 892	{
	}
	movieClip 893	{
		frame 1 {
			stop();
		}
	}
	movieClip 894	{
		frame 1 {
			stop();
		}
		instance hero of movieClip 893	{
			onClipEvent (enterFrame) {
				if (_root.atk == 1) {
					this.gotoAndStop(1);
				}
				if (_root.atk == 2) {
					this.gotoAndStop(2);
				}
				if (_root.atk == 3) {
					this.gotoAndStop(3);
				}
			}
		}
	}
	movieClip 895	{
	}
	movieClip 896	{
		frame 6 {
			stop();
		}
	}
	movieClip 900	{
	}
	movieClip 904	{
	}
	movieClip 905	{
		frame 1 {
			stop();
		}
	}
	movieClip 906	{
		frame 1 {
			stop();
		}
		instance hero of movieClip 905	{
			onClipEvent (enterFrame) {
				if (_root.atk == 1) {
					this.gotoAndStop(1);
				}
				if (_root.atk == 2) {
					this.gotoAndStop(2);
				}
				if (_root.atk == 3) {
					this.gotoAndStop(3);
				}
			}
		}
	}
	movieClip 907	{
	}
	movieClip 908	{
		frame 1 {
			_root.walks = true;
		}
		frame 2 {
			_root.walks = false;
		}
		frame 9 {
			_root.walks = true;
		}
		frame 10 {
			_root.walks = false;
		}
	}
	movieClip 909	{
		frame 6 {
			stop();
		}
	}
	movieClip 913	{
	}
	movieClip 917	{
	}
	movieClip 918	{
		frame 1 {
			stop();
		}
	}
	movieClip 919	{
		frame 1 {
			stop();
		}
		instance hero of movieClip 918	{
			onClipEvent (enterFrame) {
				if (_root.atk == 1) {
					this.gotoAndStop(1);
				}
				if (_root.atk == 2) {
					this.gotoAndStop(2);
				}
				if (_root.atk == 3) {
					this.gotoAndStop(3);
				}
			}
		}
	}
	movieClip 920	{
		frame 1 {
			stop();
		}
		instance hero of movieClip 894	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive) {
					if (Key.isDown(40) && !Key.isDown(38) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack) {
						this.gotoAndStop(2);
					}
					if (!Key.isDown(40) && !_root.roll && !_root.hurt && !_root.attack or Key.isDown(38) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
					if (_root.roll && !_root.hurt) {
						this.gotoAndStop(3);
					}
					if (_root.hurt) {
						this.gotoAndStop(4);
					}
					if (_root.attack && !_root.hurt && !_root.roll) {
						this.gotoAndStop(5);
					}
				}
				if (!_root.alive) {
					this.gotoAndStop(6);
				}
			}
		}
		instance hero of movieClip 906	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive) {
					if (Key.isDown(37) && !Key.isDown(39) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack) {
						this.gotoAndStop(2);
					}
					if (!Key.isDown(37) && !_root.roll && !_root.attack && !_root.hurt or Key.isDown(39) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
					if (_root.roll && !_root.hurt) {
						this.gotoAndStop(3);
					}
					if (_root.hurt) {
						this.gotoAndStop(4);
					}
					if (_root.attack && !_root.hurt && !_root.roll) {
						this.gotoAndStop(5);
					}
				}
				if (!_root.alive) {
					this.gotoAndStop(6);
				}
			}
		}
		instance hero of movieClip 906	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive) {
					if (Key.isDown(39) && !Key.isDown(37) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack) {
						this.gotoAndStop(2);
					}
					if (!Key.isDown(39) && !_root.roll && !_root.hurt && !_root.attack or Key.isDown(37) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
					if (_root.roll && !_root.hurt) {
						this.gotoAndStop(3);
					}
					if (_root.hurt) {
						this.gotoAndStop(4);
					}
					if (_root.attack && !_root.hurt && !_root.roll) {
						this.gotoAndStop(5);
					}
				}
				if (!_root.alive) {
					this.gotoAndStop(6);
				}
			}
		}
		instance hero of movieClip 919	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive) {
					if (Key.isDown(38) && !Key.isDown(40) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack) {
						this.gotoAndStop(2);
					}
					if (!Key.isDown(38) && !_root.roll && !_root.hurt && !_root.attack or Key.isDown(40) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
					if (_root.roll && !_root.hurt) {
						this.gotoAndStop(3);
					}
					if (_root.hurt) {
						this.gotoAndStop(4);
					}
					if (_root.attack && !_root.hurt && !_root.roll) {
						this.gotoAndStop(5);
					}
				}
				if (!_root.alive) {
					this.gotoAndStop(6);
				}
			}
		}
	}
	movieClip 921	{
	}
	movieClip 922	{
	}
	movieClip 923	{
		frame 1 {
			stop();
		}
	}
	movieClip 924	{
	}
	movieClip 925	{
	}
	movieClip 926	{
		frame 1 {
			stop();
		}
	}
	movieClip 927	{
	}
	movieClip 928	{
	}
	movieClip 929	{
		frame 1 {
			stop();
		}
	}
	movieClip 930	{
		frame 1 {
			stop();
		}
		instance hero of movieClip 923	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive) {
					if (Key.isDown(40) or Key.isDown(38) or Key.isDown(39) or Key.isDown(37)) {
						if (!_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack) {
							this.gotoAndStop(2);
						}
					}
				}
				if (!Key.isDown(40) && !Key.isDown(38) && !Key.isDown(39) && !Key.isDown(37)) {
					if (!_root.roll && !_root.hurt && !_root.attack or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
				}
			}
		}
		instance hero of movieClip 926	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive) {
					if (Key.isDown(40) or Key.isDown(38) or Key.isDown(39) or Key.isDown(37)) {
						if (!_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack) {
							this.gotoAndStop(2);
						}
					}
				}
				if (!Key.isDown(40) && !Key.isDown(38) && !Key.isDown(39) && !Key.isDown(37)) {
					if (!_root.roll && !_root.hurt && !_root.attack or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
				}
			}
		}
		instance hero of movieClip 929	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive) {
					if (Key.isDown(40) or Key.isDown(38) or Key.isDown(39) or Key.isDown(37)) {
						if (!_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack) {
							this.gotoAndStop(2);
						}
					}
				}
				if (!Key.isDown(40) && !Key.isDown(38) && !Key.isDown(39) && !Key.isDown(37)) {
					if (!_root.roll && !_root.hurt && !_root.attack or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
				}
			}
		}
	}
	movieClip 940	{
	}
	movieClip 942	{
	}
	movieClip 944	{
	}
	movieClip 945	{
		frame 2 {
			stop();
		}
	}
	movieClip 947	{
	}
	movieClip 949	{
	}
	movieClip 952	{
	}
	movieClip 953	{
	}
	movieClip 955	{
	}
	movieClip 957	{
	}
	movieClip 959	{
	}
	movieClip 961	{
	}
	movieClip 963	{
	}
	movieClip 965	{
	}
	movieClip 967	{
	}
	movieClip 969	{
	}
	movieClip 971	{
	}
	movieClip 973	{
	}
	movieClip 975	{
		frame 1 {
			stop();
		}
	}
	movieClip 977	{
	}
	movieClip 978	{
		frame 1 {
			stop();
		}
	}
	movieClip 980	{
	}
	movieClip 982	{
	}
	movieClip 983	{
	}
	movieClip 984	{
		frame 1 {
			stop();
		}
	}
	movieClip 986	{
	}
	movieClip 987	{
		frame 1 {
			stop();
		}
	}
	movieClip 989	{
		frame 1 {
			stop();
		}
	}
	movieClip 991	{
	}
	movieClip 992	{
		frame 1 {
			stop();
		}
	}
	movieClip 994	{
		frame 1 {
			stop();
		}
	}
	movieClip 996	{
	}
	movieClip 997	{
		frame 1 {
			stop();
		}
	}
	movieClip 999	{
		frame 1 {
			stop();
		}
	}
	movieClip 1001	{
	}
	movieClip 1002	{
		frame 1 {
			stop();
		}
	}
	movieClip 1004	{
	}
	movieClip 1005	{
		frame 1 {
			stop();
		}
	}
	movieClip 1006	{
		frame 4 {
			stop();
		}
	}
	movieClip 1007	{
	}
	movieClip 1008	{
		frame 12 {
			stop();
		}
	}
	movieClip 1009	{
	}
	movieClip 1010	{
		frame 1 {
			_root.walks = true;
		}
		frame 2 {
			_root.walks = false;
		}
		frame 9 {
			_root.walks = true;
		}
		frame 10 {
			_root.walks = false;
		}
	}
	movieClip 1011	{
		frame 5 {
			_root.throwing = true;
		}
		frame 6 {
			_root.throwing = false;
		}
	}
	movieClip 1012	{
		frame 1 {
			stop();
		}
	}
	movieClip 1013	{
	}
	movieClip 1014	{
	}
	movieClip 1015	{
		frame 2 {
			_root.walks = true;
		}
		frame 3 {
			_root.walks = false;
		}
		frame 10 {
			_root.walks = true;
		}
		frame 11 {
			_root.walks = false;
		}
	}
	movieClip 1016	{
	}
	movieClip 1017	{
		frame 1 {
			stop();
		}
	}
	movieClip 1018	{
	}
	movieClip 1019	{
	}
	movieClip 1020	{
		frame 1 {
			_root.walks = true;
		}
		frame 2 {
			_root.walks = false;
		}
		frame 9 {
			_root.walks = true;
		}
		frame 10 {
			_root.walks = false;
		}
	}
	movieClip 1021	{
	}
	movieClip 1022	{
		frame 1 {
			stop();
		}
	}
	movieClip 1023	{
		frame 1 {
			stop();
		}
		instance hero of movieClip 1012	{
			onClipEvent (enterFrame) {
				_root.swings = false;
				if (this._currentframe !== 3 && _root.walks) {
					_root.walks = false;
				}
				if (_root.pickup && !_root.pause && !_root.chatting) {
					this.gotoAndStop(1);
					if (this._currentframe == 1 && this.hero._currentframe >= 12) {
						_root.pickup = false;
					}
				}
				if (_root.alive && !_root.pickup && !_root.throws) {
					if (Key.isDown(40) && !Key.isDown(38) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack && !_root.throws) {
						this.gotoAndStop(3);
					}
					if (!Key.isDown(40) && !_root.roll && !_root.hurt && !_root.attack or Key.isDown(38) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(2);
					}
				}
				if (_root.alive && !_root.pickup) {
					if (_root.throws) {
						this.gotoAndStop(4);
						if (this.hero._currentframe >= 7) {
							_root.throws = false;
							_root.carry = false;
							_root.pickup = false;
						}
					}
				}
			}
		}
		instance hero of movieClip 1017	{
			onClipEvent (enterFrame) {
				_root.swings = false;
				if (this._currentframe !== 3 && _root.walks) {
					_root.walks = false;
				}
				if (_root.pickup && !_root.pause && !_root.chatting) {
					this.gotoAndStop(1);
					if (this._currentframe == 1 && this.hero._currentframe >= 12) {
						_root.pickup = false;
					}
				}
				if (_root.alive && !_root.pickup && !_root.throws) {
					if (Key.isDown(37) && !Key.isDown(39) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack && !_root.throws) {
						this.gotoAndStop(3);
					}
					if (!Key.isDown(37) && !_root.roll && !_root.hurt && !_root.attack or Key.isDown(39) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(2);
					}
				}
				if (_root.alive && !_root.pickup) {
					if (_root.throws) {
						this.gotoAndStop(4);
						if (this.hero._currentframe >= 7) {
							_root.throws = false;
							_root.carry = false;
							_root.pickup = false;
						}
					}
				}
			}
		}
		instance hero of movieClip 1017	{
			onClipEvent (enterFrame) {
				_root.swings = false;
				if (this._currentframe !== 3 && _root.walks) {
					_root.walks = false;
				}
				if (_root.pickup && !_root.pause && !_root.chatting) {
					this.gotoAndStop(1);
					if (this._currentframe == 1 && this.hero._currentframe >= 12) {
						_root.pickup = false;
					}
				}
				if (_root.alive && !_root.pickup && !_root.throws) {
					if (Key.isDown(39) && !Key.isDown(37) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack && !_root.throws) {
						this.gotoAndStop(3);
					}
					if (!Key.isDown(39) && !_root.roll && !_root.hurt && !_root.attack or Key.isDown(37) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(2);
					}
				}
				if (_root.alive && !_root.pickup) {
					if (_root.throws) {
						this.gotoAndStop(4);
						if (this.hero._currentframe >= 7) {
							_root.throws = false;
							_root.carry = false;
							_root.pickup = false;
						}
					}
				}
			}
		}
		instance hero of movieClip 1022	{
			onClipEvent (enterFrame) {
				_root.swings = false;
				if (this._currentframe !== 3 && _root.walks) {
					_root.walks = false;
				}
				if (_root.pickup && !_root.pause && !_root.chatting) {
					this.gotoAndStop(1);
					if (this._currentframe == 1 && this.hero._currentframe >= 12) {
						_root.pickup = false;
					}
				}
				if (_root.alive && !_root.pickup && !_root.throws) {
					if (Key.isDown(38) && !Key.isDown(40) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack && !_root.throws) {
						this.gotoAndStop(3);
					}
					if (!Key.isDown(38) && !_root.roll && !_root.hurt && !_root.attack or Key.isDown(40) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(2);
					}
				}
				if (_root.alive && !_root.pickup) {
					if (_root.throws) {
						this.gotoAndStop(4);
						if (this.hero._currentframe >= 7) {
							_root.throws = false;
							_root.carry = false;
							_root.pickup = false;
						}
					}
				}
			}
		}
	}
	movieClip 1024	{
	}
	movieClip 1027	{
	}
	movieClip 1028	{
	}
	movieClip 1029	{
	}
	movieClip 1030	{
	}
	movieClip 1033	{
	}
	movieClip 1037	{
	}
	movieClip 1040	{
	}
	movieClip 1041	{
	}
	movieClip 1043	{
	}
	movieClip 1044	{
		frame 1 {
			stop();
		}
	}
	movieClip 1053	{
	}
	movieClip 1055	{
	}
	movieClip 1056	{
	}
	movieClip 1057	{
	}
	movieClip 1058	{
		frame 1 {
			_root.walks = true;
		}
		frame 2 {
			_root.walks = false;
		}
		frame 9 {
			_root.walks = true;
		}
		frame 10 {
			_root.walks = false;
		}
	}
	movieClip 1059	{
	}
	movieClip 1064	{
		frame 5 {
			_root.fires = true;
		}
		frame 9 {
			stop();
			_root.firing = false;
		}
	}
	movieClip 1066	{
	}
	movieClip 1067	{
		frame 2 {
			_root.fires = true;
		}
		frame 15 {
			_root.firing = false;
			stop();
		}
	}
	movieClip 1068	{
		frame 1 {
			stop();
		}
	}
	movieClip 1069	{
	}
	movieClip 1073	{
	}
	movieClip 1085	{
	}
	movieClip 1088	{
	}
	movieClip 1089	{
	}
	movieClip 1091	{
		frame 1 {
			stop();
		}
	}
	movieClip 1092	{
	}
	movieClip 1093	{
		frame 2 {
			_root.walks = true;
		}
		frame 3 {
			_root.walks = false;
		}
		frame 10 {
			_root.walks = true;
		}
		frame 11 {
			_root.walks = false;
		}
	}
	movieClip 1094	{
	}
	movieClip 1099	{
		frame 5 {
			_root.fires = true;
		}
		frame 9 {
			stop();
			_root.firing = false;
		}
	}
	movieClip 1100	{
		frame 2 {
			_root.fires = true;
		}
		frame 15 {
			_root.firing = false;
			stop();
		}
	}
	movieClip 1101	{
		frame 1 {
			stop();
		}
	}
	movieClip 1102	{
	}
	movieClip 1104	{
	}
	movieClip 1107	{
	}
	movieClip 1108	{
	}
	movieClip 1109	{
	}
	movieClip 1110	{
		frame 1 {
			_root.walks = true;
		}
		frame 2 {
			_root.walks = false;
		}
		frame 9 {
			_root.walks = true;
		}
		frame 10 {
			_root.walks = false;
		}
	}
	movieClip 1111	{
	}
	movieClip 1116	{
		frame 5 {
			_root.fires = true;
		}
		frame 9 {
			stop();
			_root.firing = false;
		}
	}
	movieClip 1117	{
		frame 2 {
			_root.fires = true;
		}
		frame 15 {
			_root.firing = false;
			stop();
		}
	}
	movieClip 1118	{
		frame 1 {
			stop();
		}
	}
	movieClip 1119	{
		frame 1 {
			stop();
		}
		instance hero of movieClip 1068	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive && !_root.firing) {
					if (Key.isDown(40) && !Key.isDown(38) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack && !_root.firing) {
						this.gotoAndStop(2);
					}
					if (!Key.isDown(40) && !_root.roll && !_root.hurt && !_root.attack && !_root.firing or Key.isDown(38) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
					if (_root.roll && !_root.hurt) {
						this.gotoAndStop(3);
					}
					if (_root.hurt) {
						this.gotoAndStop(4);
					}
				}
				if (!_root.alive) {
					this.gotoAndStop(6);
				}
				if (_root.ditem == 2 && _root.firing && _root.alive && !_root.pause && !_root.roll && !_root.chatting && !_root.getItems && !_root.roll && !_root.hurt) {
					this.gotoAndStop(5);
				}
				if (_root.ditem == 5 && _root.firing && _root.alive && !_root.pause && !_root.roll && !_root.chatting && !_root.getItems && !_root.roll && !_root.hurt) {
					this.gotoAndStop(7);
				}
			}
		}
		instance hero of movieClip 1101	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive && !_root.firing) {
					if (Key.isDown(37) && !Key.isDown(39) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack && !_root.firing) {
						this.gotoAndStop(2);
					}
					if (!Key.isDown(37) && !_root.roll && !_root.hurt && !_root.attack && !_root.firing or Key.isDown(39) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
					if (_root.roll && !_root.hurt) {
						this.gotoAndStop(3);
					}
					if (_root.hurt) {
						this.gotoAndStop(4);
					}
				}
				if (!_root.alive) {
					this.gotoAndStop(6);
				}
				if (_root.ditem == 2 && _root.firing && _root.alive && !_root.pause && !_root.roll && !_root.chatting && !_root.getItems && !_root.roll && !_root.hurt) {
					this.gotoAndStop(5);
				}
				if (_root.ditem == 5 && _root.firing && _root.alive && !_root.pause && !_root.roll && !_root.chatting && !_root.getItems && !_root.roll && !_root.hurt) {
					this.gotoAndStop(7);
				}
			}
		}
		instance hero of movieClip 1101	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive && !_root.firing) {
					if (Key.isDown(39) && !Key.isDown(37) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack && !_root.firing) {
						this.gotoAndStop(2);
					}
					if (!Key.isDown(39) && !_root.roll && !_root.hurt && !_root.attack && !_root.firing or Key.isDown(37) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
					if (_root.roll && !_root.hurt) {
						this.gotoAndStop(3);
					}
					if (_root.hurt) {
						this.gotoAndStop(4);
					}
				}
				if (!_root.alive) {
					this.gotoAndStop(6);
				}
				if (_root.ditem == 2 && _root.firing && _root.alive && !_root.pause && !_root.roll && !_root.chatting && !_root.getItems && !_root.roll && !_root.hurt) {
					this.gotoAndStop(5);
				}
				if (_root.ditem == 5 && _root.firing && _root.alive && !_root.pause && !_root.roll && !_root.chatting && !_root.getItems && !_root.roll && !_root.hurt) {
					this.gotoAndStop(7);
				}
			}
		}
		instance hero of movieClip 1118	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive && !_root.firing) {
					if (Key.isDown(38) && !Key.isDown(40) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt && !_root.attack && !_root.firing) {
						this.gotoAndStop(2);
					}
					if (!Key.isDown(38) && !_root.roll && !_root.hurt && !_root.attack && !_root.firing or Key.isDown(40) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
					if (_root.roll && !_root.hurt) {
						this.gotoAndStop(3);
					}
					if (_root.hurt) {
						this.gotoAndStop(4);
					}
				}
				if (!_root.alive) {
					this.gotoAndStop(6);
				}
				if (_root.ditem == 2 && _root.firing && _root.alive && !_root.pause && !_root.roll && !_root.chatting && !_root.getItems && !_root.roll && !_root.hurt) {
					this.gotoAndStop(5);
				}
				if (_root.ditem == 5 && _root.firing && _root.alive && !_root.pause && !_root.roll && !_root.chatting && !_root.getItems && !_root.roll && !_root.hurt) {
					this.gotoAndStop(7);
				}
			}
		}
	}
	movieClip 1120	{
		frame 5 {
			_root.boomthrown = true;
		}
		frame 6 {
			_root.throwboomerang = false;
		}
	}
	movieClip 1121	{
		frame 4 {
			_root.boomthrown = true;
		}
		frame 6 {
			_root.throwboomerang = false;
		}
	}
	movieClip 1122	{
		frame 5 {
			_root.boomthrown = true;
		}
		frame 6 {
			_root.throwboomerang = false;
		}
	}
	movieClip 1123	{
		frame 1 {
			stop();
		}
	}
	movieClip 1124	{
	}
	movieClip 1125	{
		frame 1 {
			_root.walks = true;
		}
		frame 2 {
			_root.walks = false;
		}
		frame 9 {
			_root.walks = true;
		}
		frame 10 {
			_root.walks = false;
		}
	}
	movieClip 1126	{
	}
	movieClip 1128	{
	}
	movieClip 1130	{
	}
	movieClip 1131	{
	}
	movieClip 1132	{
	}
	movieClip 1133	{
		frame 15 {
			_root.shake = true;
			_root.hammers = true;
		}
		frame 28 {
			_root.hammerattack = false;
		}
	}
	movieClip 1134	{
		frame 1 {
			stop();
		}
	}
	movieClip 1135	{
	}
	movieClip 1136	{
		frame 2 {
			_root.walks = true;
		}
		frame 3 {
			_root.walks = false;
		}
		frame 10 {
			_root.walks = true;
		}
		frame 11 {
			_root.walks = false;
		}
	}
	movieClip 1137	{
	}
	movieClip 1138	{
		frame 15 {
			_root.shake = true;
			_root.hammers = true;
		}
		frame 28 {
			_root.hammerattack = false;
		}
	}
	movieClip 1139	{
		frame 1 {
			stop();
		}
	}
	movieClip 1140	{
	}
	movieClip 1141	{
		frame 1 {
			_root.walks = true;
		}
		frame 2 {
			_root.walks = false;
		}
		frame 9 {
			_root.walks = true;
		}
		frame 10 {
			_root.walks = false;
		}
	}
	movieClip 1142	{
	}
	movieClip 1143	{
		frame 14 {
			_root.shake = true;
			_root.hammers = true;
		}
		frame 28 {
			_root.hammerattack = false;
		}
	}
	movieClip 1144	{
		frame 1 {
			stop();
		}
	}
	movieClip 1145	{
		frame 1 {
			stop();
		}
		instance hero of movieClip 1134	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive && !_root.hammerattack) {
					if (Key.isDown(40) && !Key.isDown(38) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt) {
						this.gotoAndStop(2);
					}
					if (!Key.isDown(40) && !_root.roll && !_root.hurt && !_root.hammerattack or Key.isDown(38) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
					if (_root.roll && !_root.hurt) {
						this.gotoAndStop(3);
					}
					if (_root.hurt) {
						this.gotoAndStop(4);
					}
				}
				if (_root.hammerattack && !_root.hurt && !_root.roll) {
					this.gotoAndStop(5);
				}
				if (!_root.alive) {
					this.gotoAndStop(6);
				}
			}
		}
		instance hero of movieClip 1139	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive && !_root.hammerattack) {
					if (Key.isDown(37) && !Key.isDown(39) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt) {
						this.gotoAndStop(2);
					}
					if (!Key.isDown(37) && !_root.roll && !_root.hurt && !_root.hammerattack or Key.isDown(39) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
					if (_root.roll && !_root.hurt) {
						this.gotoAndStop(3);
					}
					if (_root.hurt) {
						this.gotoAndStop(4);
					}
				}
				if (_root.hammerattack && !_root.hurt && !_root.roll) {
					this.gotoAndStop(5);
				}
				if (!_root.alive) {
					this.gotoAndStop(6);
				}
			}
		}
		instance hero of movieClip 1139	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive && !_root.hammerattack) {
					if (Key.isDown(39) && !Key.isDown(37) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt) {
						this.gotoAndStop(2);
					}
					if (!Key.isDown(39) && !_root.roll && !_root.hurt && !_root.hammerattack or Key.isDown(37) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
					if (_root.roll && !_root.hurt) {
						this.gotoAndStop(3);
					}
					if (_root.hurt) {
						this.gotoAndStop(4);
					}
				}
				if (_root.hammerattack && !_root.hurt && !_root.roll) {
					this.gotoAndStop(5);
				}
				if (!_root.alive) {
					this.gotoAndStop(6);
				}
			}
		}
		instance hero of movieClip 1144	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== 2 && _root.walks) {
					_root.walks = false;
				}
				if (this._currentframe !== 5 && _root.swings) {
					_root.swings = false;
				}
				if (_root.alive && !_root.hammerattack) {
					if (Key.isDown(38) && !Key.isDown(40) && !_root.pause && !_root.chatting && !_root.roll && !_root.hurt) {
						this.gotoAndStop(2);
					}
					if (!Key.isDown(38) && !_root.roll && !_root.hurt && !_root.hammerattack or Key.isDown(40) && !_root.roll or _root.pause or _root.chatting) {
						this.gotoAndStop(1);
					}
					if (_root.roll && !_root.hurt) {
						this.gotoAndStop(3);
					}
					if (_root.hurt) {
						this.gotoAndStop(4);
					}
				}
				if (_root.hammerattack && !_root.hurt && !_root.roll) {
					this.gotoAndStop(5);
				}
				if (!_root.alive) {
					this.gotoAndStop(6);
				}
			}
		}
	}
	movieClip 1148	{
		frame 6 {
			_root.fires = true;
		}
		frame 10 {
			_root.throwfire = false;
		}
	}
	movieClip 1152	{
		frame 6 {
			_root.fires = true;
		}
		frame 10 {
			_root.throwfire = false;
		}
	}
	movieClip 1155	{
		frame 6 {
			_root.fires = true;
		}
		frame 10 {
			_root.throwfire = false;
		}
	}
	movieClip 1156	{
		frame 1 {
			stop();
		}
	}
	movieClip 1157	{
		frame 1 {
			stop();
		}
		instance hero of movieClip 877	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.getItems && !_root.chatting) {
					if (_root.dir == 1 && this._currentframe !== 4) {
						this.gotoAndStop(4);
					}
					if (_root.dir == 2 && this._currentframe !== 3) {
						this.gotoAndStop(3);
					}
					if (_root.dir == 3 && this._currentframe !== 1) {
						this.gotoAndStop(1);
					}
					if (_root.dir == 4 && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
			}
		}
		instance of movieClip 878	{
			onClipEvent (enterFrame) {
				if (_root.alive && _root.hurted && !_root.pause && this._currentframe == 1) {
					this.play();
				}
			}
		}
	}
	instance hero of movieClip 1157	{
		onClipEvent (enterFrame) {
			this._x = _root.box._x;
			this._y = _root.box._y;
			if (!_root.getItems && !_root.pause && !_root.defend && !_root.carry) {
				if (_root.equipped == 1 && this._currentframe !== 1 && _root.ditem !== 2 && _root.ditem !== 4 && _root.ditem !== 5 && !_root.throwfire && !_root.throwboomerang && !_root.firing) {
					_root.swings = false;
					this.gotoAndStop(1);
					if (!_root.pause && !_root.getItems && !_root.chatting && !_root.warping) {
						if (_root.dir == 1 && this.hero._currentframe !== 4) {
							this.hero.gotoAndStop(4);
						}
						if (_root.dir == 2 && this.hero._currentframe !== 3) {
							this.hero.gotoAndStop(3);
						}
						if (_root.dir == 3 && this.hero._currentframe !== 1) {
							this.hero.gotoAndStop(1);
						}
						if (_root.dir == 4 && this.hero._currentframe !== 2) {
							this.hero.gotoAndStop(2);
						}
					}
				}
				if (_root.equipped == 2 && this._currentframe !== 2 && !_root.carry) {
					this.gotoAndStop(2);
				}
			}
			if (_root.equipped == 2) {
				if (!_root.pause && !_root.getItems && !_root.chatting) {
					if (_root.dir == 1 && this.hero._currentframe !== 4) {
						this.hero.gotoAndStop(4);
					}
					if (_root.dir == 2 && this.hero._currentframe !== 3) {
						this.hero.gotoAndStop(3);
					}
					if (_root.dir == 3 && this.hero._currentframe !== 1) {
						this.hero.gotoAndStop(1);
					}
					if (_root.dir == 4 && this.hero._currentframe !== 2) {
						this.hero.gotoAndStop(2);
					}
				}
			}
			if (_root.defend && _root.equipped == 2 && !_root.pause && !_root.chatting && !_root.hurt && !_root.carry) {
				this.gotoAndStop(3);
				if (!_root.getItems && !_root.chatting) {
					if (_root.dir == 1 && this.hero._currentframe !== 4) {
						this.hero.gotoAndStop(4);
					}
					if (_root.dir == 2 && this.hero._currentframe !== 3) {
						this.hero.gotoAndStop(3);
					}
					if (_root.dir == 3 && this.hero._currentframe !== 1) {
						this.hero.gotoAndStop(1);
					}
					if (_root.dir == 4 && this.hero._currentframe !== 2) {
						this.hero.gotoAndStop(2);
					}
				}
			}
			if (_root.carry && !_root.pause && !_root.pickup && !_root.throws && !_root.roll) {
				if (Key.isDown(65) or Key.isDown(83) or _root.hurt) {
					_root.throws = true;
					bombed = _root.bombdupe.duplicateMovieClip('bombnew' + _root.ar, _root.getNextHighestDepth());
					bombed.thrown = true;
					++_root.ar;
					if (_root.sfx) {
						_root.throwsound.start(0, 1);
					}
					if (_root.dir == 1) {
						bombed._x = _root.box._x;
						bombed._y = _root.box._y;
					}
					if (_root.dir == 2) {
						bombed._x = _root.box._x;
						bombed._y = _root.box._y;
					}
					if (_root.dir == 3) {
						bombed._x = _root.box._x;
						bombed._y = _root.box._y;
					}
					if (_root.dir == 4) {
						bombed._x = _root.box._x;
						bombed._y = _root.box._y;
					}
				}
			}
			if (_root.carry && !_root.pause && !_root.hurt && !_root.throws) {
				this.gotoAndStop(5);
				if (!_root.getItems && !_root.chatting) {
					if (_root.dir == 1) {
						this.hero.gotoAndStop(4);
					}
					if (_root.dir == 2) {
						this.hero.gotoAndStop(3);
					}
					if (_root.dir == 3) {
						this.hero.gotoAndStop(1);
					}
					if (_root.dir == 4) {
						this.hero.gotoAndStop(2);
					}
					if (!_root.pickup && !_root.roll && !_root.pause) {
						if (Key.isDown(40) or Key.isDown(38) or Key.isDown(39) or Key.isDown(37)) {
							this.hero.hero.gotoAndStop(3);
						}
					}
				}
			}
			if (_root.ditem == 2 && _root.equipped == 1 && !_root.carry && !_root.pickup && _root.alive && !_root.pause && !_root.throws && !_root.getItems) {
				this.gotoAndStop(6);
				if (!_root.firing && !_root.carry && !_root.pickup && _root.alive && !_root.pause && !_root.throws && !_root.roll && !_root.chatting && !_root.getItems) {
					if (_root.dir == 1) {
						this.hero.gotoAndStop(4);
					}
					if (_root.dir == 2) {
						this.hero.gotoAndStop(3);
					}
					if (_root.dir == 3) {
						this.hero.gotoAndStop(1);
					}
					if (_root.dir == 4) {
						this.hero.gotoAndStop(2);
					}
				}
			}
			if (_root.equipped == 1 && _root.throwboomerang && !_root.carry && !_root.pickup && _root.alive && !_root.hurt && !_root.pause && !_root.throws && !_root.roll && !_root.chatting && !_root.getItems) {
				if (_root.ditem == 3) {
					this.gotoAndStop(7);
					if (_root.dir == 1) {
						this.hero.gotoAndStop(4);
					}
					if (_root.dir == 2) {
						this.hero.gotoAndStop(3);
					}
					if (_root.dir == 3) {
						this.hero.gotoAndStop(1);
					}
					if (_root.dir == 4) {
						this.hero.gotoAndStop(2);
					}
				}
			}
			if (!_root.hammerattack && _root.equipped == 1 && !_root.carry && !_root.pickup && _root.alive && !_root.hurt && !_root.pause && !_root.throws && !_root.roll && !_root.chatting && !_root.getItems) {
				if (_root.ditem == 4) {
					this.gotoAndStop(8);
					if (_root.dir == 1) {
						this.hero.gotoAndStop(4);
					}
					if (_root.dir == 2) {
						this.hero.gotoAndStop(3);
					}
					if (_root.dir == 3) {
						this.hero.gotoAndStop(1);
					}
					if (_root.dir == 4) {
						this.hero.gotoAndStop(2);
					}
				}
			}
			if (_root.ditem == 5 && _root.equipped == 1 && !_root.carry && !_root.pickup && _root.alive && !_root.pause && !_root.throws && !_root.getItems) {
				this.gotoAndStop(6);
				if (!_root.firing && !_root.carry && !_root.pickup && _root.alive && !_root.pause && !_root.throws && !_root.roll && !_root.chatting && !_root.getItems) {
					if (_root.dir == 1) {
						this.hero.gotoAndStop(4);
					}
					if (_root.dir == 2) {
						this.hero.gotoAndStop(3);
					}
					if (_root.dir == 3) {
						this.hero.gotoAndStop(1);
					}
					if (_root.dir == 4) {
						this.hero.gotoAndStop(2);
					}
				}
			}
			if (_root.equipped == 1 && _root.throwfire && !_root.carry && !_root.pickup && _root.alive && !_root.hurt && !_root.pause && !_root.throws && !_root.roll && !_root.chatting && !_root.getItems) {
				if (_root.ditem == 6) {
					this.gotoAndStop(9);
					if (_root.dir == 1) {
						this.hero.gotoAndStop(4);
					}
					if (_root.dir == 2) {
						this.hero.gotoAndStop(3);
					}
					if (_root.dir == 3) {
						this.hero.gotoAndStop(1);
					}
					if (_root.dir == 4) {
						this.hero.gotoAndStop(2);
					}
				}
			}
		}
	}
	movieClip 1159	{
	}
	movieClip 1166	{
	}
	movieClip 1170	{
		frame 20 {
			_parent.gotoAndStop(3);
		}
	}
	movieClip 1173	{
	}
	movieClip 1178	{
		frame 1 {
			_root.shake = true;
		}
		frame 24 {
			stop();
		}
	}
	movieClip 1179	{
		frame 1 {
			stop();
		}
		instance of movieClip 1159	{
			onClipEvent (load) {
				timer = 20;
			}
			onClipEvent (enterFrame) {
				if (_parent._parent.thrown) {
					timest = true;
				}
				if (timer > 0 && timest) {
					--timer;
				}
				if (timer <= 0 && timest) {
					_parent.gotoAndStop(2);
				}
			}
		}
		frame 2 {
			if (_root.sfx) {
				_root.bombfuse.start(0, 2);
			}
		}
		frame 3 {
			if (_root.sfx) {
				_root.explosions.start(0, 1);
			}
		}
		instance explode of movieClip 1178	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.defend) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 4;
					}
					if (_root.armor == 2) {
						_root.health -= 3;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 4;
					}
					if (_root.helmet == 2) {
						_root.health -= 3;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
	}
	movieClip 1181	{
	}
	movieClip 1189	{
		frame 8 {
			stop();
		}
	}
	movieClip 1190	{
		frame 1 {
			stop();
		}
	}
	movieClip 1192	{
	}
	movieClip 1204	{
	}
	movieClip 1206	{
	}
	movieClip 1207	{
		frame 21 {
			stop();
		}
	}
	movieClip 1208	{
		frame 1 {
			stop();
		}
	}
	movieClip 1211	{
	}
	movieClip 1216	{
	}
	movieClip 1217	{
	}
	movieClip 1218	{
		frame 17 {
			stop();
		}
	}
	movieClip 1219	{
		frame 1 {
			stop();
		}
	}
	movieClip 1220	{
	}
	movieClip 1221	{
		frame 12 {
			stop();
		}
	}
	movieClip 1222	{
		frame 1 {
			stop();
		}
	}
	movieClip 1224	{
	}
	movieClip 1229	{
	}
	movieClip 1230	{
		frame 17 {
			stop();
		}
	}
	movieClip 1231	{
		frame 1 {
			stop();
		}
	}
	movieClip 1234	{
	}
	movieClip 1239	{
	}
	movieClip 1240	{
		frame 18 {
			stop();
		}
	}
	movieClip 1241	{
		frame 1 {
			stop();
		}
	}
	movieClip 1246	{
	}
	movieClip 1247	{
		frame 14 {
			stop();
		}
	}
	movieClip 1248	{
		frame 1 {
			stop();
		}
	}
	movieClip 1249	{
	}
	movieClip 1250	{
		frame 18 {
			stop();
		}
	}
	movieClip 1251	{
		frame 1 {
			stop();
		}
	}
	movieClip 1256	{
	}
	movieClip 1257	{
		frame 17 {
			stop();
		}
	}
	movieClip 1258	{
		frame 1 {
			stop();
		}
	}
	movieClip 1263	{
	}
	movieClip 1267	{
		frame 17 {
			stop();
		}
	}
	movieClip 1268	{
		frame 1 {
			stop();
		}
	}
	movieClip 1272	{
	}
	movieClip 1276	{
		frame 17 {
			stop();
		}
	}
	movieClip 1277	{
		frame 1 {
			stop();
		}
	}
	movieClip 1278	{
		frame 1 {
			stop();
		}
		instance of movieClip 1241	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					this.gotoAndStop(2);
					_root.health += 2;
					if (_root.sfx) {
						_root.smallitem.start(0, 1);
					}
				}
				if (this.dis._currentframe == 18) {
					_parent._parent.removeMovieClip();
				}
			}
		}
		instance of movieClip 1248	{
			onClipEvent (enterFrame) {
				if (!_root.getItems) {
					_root.newitem = 0;
					_root.addpotion = false;
				}
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					this.gotoAndStop(2);
					_root.newitem = 3;
					_root.addpotion = true;
					if (_root.sfx) {
						_root.smallitem.start(0, 1);
					}
				}
				if (this.dis._currentframe == 14) {
					_root.newitem = 0;
					_parent._parent.removeMovieClip();
				}
			}
		}
		instance of movieClip 1251	{
			onClipEvent (enterFrame) {
				if (!_root.getItems) {
					_root.newitem = 0;
					_root.addpotion = false;
				}
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					this.gotoAndStop(2);
					_root.newitem = 2;
					_root.addpotion = true;
					if (_root.sfx) {
						_root.smallitem.start(0, 1);
					}
				}
				if (this.dis._currentframe == 18) {
					_root.newitem = 0;
					_parent._parent.removeMovieClip();
				}
			}
		}
		instance of movieClip 1258	{
			onClipEvent (enterFrame) {
				if (!_root.getItems) {
					_root.newitem = 0;
					_root.addpotion = false;
				}
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					this.gotoAndStop(2);
					_root.newitem = 1;
					_root.addpotion = true;
					if (_root.sfx) {
						_root.smallitem.start(0, 1);
					}
				}
				if (this.dis._currentframe == 18) {
					_root.newitem = 0;
					_parent._parent.removeMovieClip();
				}
			}
		}
		instance of movieClip 1268	{
			onClipEvent (load) {
				if (!_root.havecrossbow) {
					_parent.removeMovieClip();
				}
				this.amount = random(15) + 1;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					this.gotoAndStop(2);
					_root.arrows += this.amount;
					if (_root.sfx) {
						_root.smallitem.start(0, 1);
					}
				}
				if (this.dis._currentframe == 17) {
					_parent._parent.removeMovieClip();
				}
			}
		}
		instance of movieClip 1277	{
			onClipEvent (load) {
				this.amount = random(10) + 1;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					this.gotoAndStop(2);
					_root.bombs += this.amount;
					if (_root.sfx) {
						_root.smallitem.start(0, 1);
					}
				}
				if (this.dis._currentframe == 17) {
					_parent._parent.removeMovieClip();
				}
			}
		}
	}
	movieClip 1279	{
		frame 1 {
			stop();
		}
		instance of movieClip 1208	{
			onClipEvent (load) {
				this.amount = random(10) + 1;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.money += this.amount;
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.getmoney.start(0, 1);
					}
				}
				if (this.dis._currentframe == 21) {
					_parent.removeMovieClip();
				}
			}
		}
		instance of movieClip 1219	{
			onClipEvent (load) {
				this.amount = random(15) + 10;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.money += this.amount;
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.getmoney.start(0, 1);
					}
				}
				if (this.dis._currentframe == 17) {
					_parent.removeMovieClip();
				}
			}
		}
		instance of movieClip 1222	{
			onClipEvent (load) {
				this.amount = random(30) + 20;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					this.gotoAndStop(2);
					_root.money += this.amount;
					if (_root.sfx) {
						_root.getmoney.start(0, 1);
					}
				}
				if (this.dis._currentframe == 12) {
					_parent.removeMovieClip();
				}
			}
		}
		instance of movieClip 1231	{
			onClipEvent (load) {
				this.amount = random(60) + 20;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					this.gotoAndStop(2);
					_root.money += this.amount;
					if (_root.sfx) {
						_root.getmoney.start(0, 1);
					}
				}
				if (this.dis._currentframe == 17) {
					_parent.removeMovieClip();
				}
			}
		}
		instance of movieClip 1278	{
			onClipEvent (load) {
				this.item = random(6) + 1;
				this.gotoAndStop(this.item);
			}
		}
		frame 6 {
			stop();
		}
		instance of movieClip 1208	{
			onClipEvent (load) {
				this.amount = random(10) + 1;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.money += this.amount;
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.getmoney.start(0, 1);
					}
				}
				if (this.dis._currentframe == 21) {
					_parent.removeMovieClip();
				}
			}
		}
		instance of movieClip 1219	{
			onClipEvent (load) {
				this.amount = random(15) + 10;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.money += this.amount;
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.getmoney.start(0, 1);
					}
				}
				if (this.dis._currentframe == 17) {
					_parent.removeMovieClip();
				}
			}
		}
		instance of movieClip 1222	{
			onClipEvent (load) {
				this.amount = random(30) + 20;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					this.gotoAndStop(2);
					_root.money += this.amount;
					if (_root.sfx) {
						_root.getmoney.start(0, 1);
					}
				}
				if (this.dis._currentframe == 12) {
					_parent.removeMovieClip();
				}
			}
		}
		instance of movieClip 1268	{
			onClipEvent (load) {
				if (!_root.havecrossbow) {
					_parent.removeMovieClip();
				}
				this.amount = random(15) + 1;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					this.gotoAndStop(2);
					_root.arrows += this.amount;
					if (_root.sfx) {
						_root.smallitem.start(0, 1);
					}
				}
				if (this.dis._currentframe == 17) {
					_parent.removeMovieClip();
				}
			}
		}
		instance of movieClip 1231	{
			onClipEvent (load) {
				this.amount = random(60) + 20;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					this.gotoAndStop(2);
					_root.money += this.amount;
					if (_root.sfx) {
						_root.getmoney.start(0, 1);
					}
				}
				if (this.dis._currentframe == 17) {
					_parent.removeMovieClip();
				}
			}
		}
	}
	movieClip 1283	{
		instance dropitem of movieClip 1279	{
			onClipEvent (load) {
				this.placed = true;
				if (this.placed) {
					this.item = random(100) + 1;
					this.gotoAndStop(this.item);
				}
				if (this.item > 10) {
					this.gotoAndStop(11);
					this.removeMovieClip();
				}
			}
			onClipEvent (enterFrame) {
				if (_root.warps) {
					this.removeMovieClip();
				}
				if (_root.pause && this._visible) {
					this._visible = false;
				}
				if (!_root.pause && !this._visible) {
					this._visible = true;
				}
			}
		}
		frame 8 {
			stop();
		}
	}
	movieClip 1284	{
		frame 1 {
			stop();
		}
	}
	movieClip 1285	{
		frame 1 {
			stop();
		}
		instance of movieClip 381	{
			onClipEvent (load) {
				this.dir = 3;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this._currentframe !== this.dir && !_root.pickup) {
					this.gotoAndStop(this.dir);
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 4;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i])) {
						_root['arrowdup_' + i].removeMovieClip();
						arrowfire = _root.arrowdups.duplicateMovieClip('arrowdup_' + _root.ar, _root.getNextHighestDepth());
						arrowfire.fired = true;
						_root.pickobject = 4;
						arrowfire.dir = this.dir;
						++_root.ar;
						arrowfire._x = this._x;
						arrowfire._y = this._y;
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hit) {
					++this.dir;
					this.hit = true;
					timer = 10;
				}
				if (this.hit && timer <= 0) {
					this.hit = false;
				}
				if (this.hit && timer > 0) {
					--timer;
				}
				if (this.dir > 4) {
					this.dir = 1;
				}
			}
		}
		frame 6 {
			stop();
		}
	}
	instance bombdupe of movieClip 1285	{
		onClipEvent (load) {
			this.throwspeed = 20;
			this.fallspeed = -20;
			this.limy = _root.box._y;
			this.dir = _root.dir;
			if (_root.pickobject !== 4) {
				if (_root.days or _root.walking == 2 && !_root.days) {
					this.gotoAndStop(_root.pickobject);
				}
				if (!_root.days && _root.walking !== 2) {
					this.gotoAndStop(_root.pickobject + 5);
				}
			} else {
				this.gotoAndStop(_root.pickobject);
			}
		}
		onClipEvent (enterFrame) {
			if (_root.pause && this._visible) {
				this._visible = false;
			}
			if (!_root.pause && !this._visible) {
				this._visible = true;
			}
			if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup && _root.pickobject !== 1) {
				this.swapDepths(this.getNextHighestDepth());
				_root.pickobject = 1;
				_root.pickup = true;
				_root.carry = true;
				this.removeMovieClip();
			}
			if (this.bomb.explode._currentframe == 24) {
				this.removeMovieClip();
			}
			if (_root.warps) {
				this.removeMovieClip();
			}
			if (!this.throws && this._alpha == 0) {
				this._alpha = 100;
			}
			if (this.dir == 2 or this.dir == 4) {
				if (this.thrown && this.fallspeed < 10 && this._y < this.limy) {
					this.fallspeed += 5;
				}
				if (this._y > this.limy && this.thrown) {
					this.fallspeed = 0;
					this.thrown = false;
					if (_root.pickobject == 2 or _root.pickobject == 3) {
						this.rock.gotoAndStop(2);
						if (_root.sfx && _root.pickobject == 2) {
							_root.rockbreak.start(0, 1);
						}
						if (_root.sfx && _root.pickobject == 3) {
							_root.potshatter.start(0, 1);
						}
					}
					if (_root.pickobject == 4) {
						_root.BG.arrowshooter.gotoAndStop(_root.BG.arrowshooter.dir);
						_root.BG.arrowshooter._x = this._x;
						_root.BG.arrowshooter._y = this._y;
						_root.BG.arrowshooter.pickedup = false;
						_root.pickobject = 1;
						this.removeMovieClip();
					}
				}
			}
			if (this.thrown && this.throwspeed > 0) {
				this.throwspeed -= 1;
			}
			if (this.thrown) {
				if (this.dir == 1) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.throwspeed;
					}
				}
				if (this.dir == 2) {
					this._y += this.fallspeed;
					if (!_root.BG.hitTest(this._x + 20, _y, true)) {
						this._x += this.throwspeed * 1.5;
					}
				}
				if (this.dir == 3) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.throwspeed;
					}
				}
				if (this.dir == 4) {
					this._y += this.fallspeed;
					if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
						this._x -= this.throwspeed * 1.5;
					}
				}
			}
			if (_root.BG.hitTest(this._x, this._y, true)) {
				if (_root.pickobject == 2 or _root.pickobject == 3) {
					this.rock.gotoAndStop(2);
				}
				if (_root.pickobject == 4) {
					_root.BG.arrowshooter.gotoAndStop(_root.BG.arrowshooter.dir);
					_root.BG.arrowshooter._x = this._x;
					_root.BG.arrowshooter._y = this._y;
					_root.BG.arrowshooter.pickedup = false;
					_root.pickobject = 1;
					this.removeMovieClip();
				}
			}
			if (this.throwspeed <= 0) {
				_root.throws = false;
				this.throwspeed = 0;
				if (_root.pickobject == 2 && this.rock._currentframe !== 2 or _root.pickobject == 3 && this.rock._currentframe !== 2) {
					this.rock.gotoAndStop(2);
					if (_root.sfx && _root.pickobject == 2) {
						_root.rockbreak.start(0, 1);
					}
					if (_root.sfx && _root.pickobject == 3) {
						_root.potshatter.start(0, 1);
					}
				}
				if (_root.pickobject == 4) {
					_root.BG.arrowshooter.gotoAndStop(_root.BG.arrowshooter.dir);
					_root.BG.arrowshooter._x = this._x;
					_root.BG.arrowshooter._y = this._y;
					_root.BG.arrowshooter.pickedup = false;
					_root.pickobject = 1;
					this.removeMovieClip();
				}
			}
			if (this.rock.rock._currentframe == 8) {
				if (!itemdropped) {
					dropped = _root.dropitem.duplicateMovieClip('newdrop' + _root.ar, _root.getNextHighestDepth());
					++_root.ar;
					dropped._x = this._x;
					dropped._y = this._y;
					dropped.placed = true;
					itemdropped = true;
				}
				this.removeMovieClip();
			}
		}
	}
	movieClip 1294	{
	}
	movieClip 1295	{
		frame 1 {
			stop();
		}
	}
	movieClip 1298	{
		frame 1 {
			stop();
		}
	}
	instance arrowdups of movieClip 1298	{
		onClipEvent (load) {
			if (_root.pickobject !== 4) {
				this.dir = _root.dir;
				this.gotoAndStop(this.dir);
				arsp = 25;
				timer = 0;
				timestart = false;
				if (this.dir == 1) {
					this._y -= 70;
					this._x -= 2;
				}
				if (this.dir == 2) {
					this._y -= 10;
				}
				if (this.dir == 4) {
					this._y -= 10;
				}
			} else {
				if (_root.pickobject == 4) {
					this.dir = _root.BG.arrowshooter.dir;
					this.gotoAndStop(this.dir);
					_root.pickobject = 1;
					arsp = 25;
					timer = 0;
					timestart = false;
					if (this.dir == 1) {
						this._y -= 80;
						this._x -= 2;
					}
					if (this.dir == 2) {
						this._y -= 25;
						this._x += 35;
					}
					if (this.dir == 3) {
						this._y += 30;
						this._x -= 2;
					}
					if (this.dir == 4) {
						this._y -= 25;
						this._x -= 35;
					}
				}
			}
		}
		onClipEvent (enterFrame) {
			if (_root.warps or _root.pause) {
				this.removeMovieClip();
			}
			if (this.flamed) {
				this.flame.gotoAndStop(2);
			}
			if (fired && !_root.BG.hitTest(this._x, this._y, true) && !_root.pause) {
				if (this.dir == 1) {
					this._y -= arsp;
				}
				if (this.dir == 2) {
					this._x += arsp;
				}
				if (this.dir == 3) {
					this._y += arsp;
				}
				if (this.dir == 4) {
					this._x -= arsp;
				}
			}
			if (_root.BG.hitTest(this._x, this._y, true) && !timestart) {
				timer = 200;
				timestart = true;
				if (_root.sfx) {
					_root.arrowhit.start(0, 1);
				}
			}
			if (timer > 0 && timestart) {
				--timer;
			}
			if (timer <= 0 && timestart) {
				this.removeMovieClip();
			}
		}
	}
	movieClip 1300	{
		frame 1 {
			stop();
		}
	}
	instance boomer of movieClip 1300	{
		onClipEvent (load) {
			this.dir = _root.dir;
			cycle = 1;
			timestart = false;
			boomsp = 20;
			if (this.dir == 1) {
				this._y -= 30;
			}
			if (this.dir == 2) {
				this._y -= 10;
			}
			if (this.dir == 4) {
				this._y -= 10;
			}
		}
		onClipEvent (enterFrame) {
			if (this.duped) {
				this.play();
				if (_root.warps or _root.pause) {
					_root.floating = false;
					this.removeMovieClip();
				}
				if (!_root.pause && boomsp > 0 && cycle !== 2) {
					boomsp -= 1;
				}
				if (!_root.pause && boomsp <= 0 && cycle !== 2) {
					cycle = 2;
				}
				if (!_root.pause && boomsp < 15 && cycle == 2) {
					boomsp += 1;
				}
				if (!_root.pause && cycle == 2) {
					if (!this.hitTest(_root.box)) {
						if (_root.box._x < this._x) {
							this._x -= boomsp;
						}
						if (_root.box._x > this._x) {
							this._x += boomsp;
						}
						if (_root.box._y < this._y) {
							this._y -= boomsp;
						}
						if (_root.box._y > this._y) {
							this._y += boomsp;
						}
					}
				}
				if (this.hitTest(_root.box) && cycle == 2 && !_root.pause) {
					_root.floating = false;
					this.removeMovieClip();
				}
				if (!_root.pause && cycle == 1) {
					if (this.dir == 1) {
						this._y -= boomsp;
					}
					if (this.dir == 2) {
						this._x += boomsp;
					}
					if (this.dir == 3) {
						this._y += boomsp;
					}
					if (this.dir == 4) {
						this._x -= boomsp;
					}
				}
			}
		}
	}
	movieClip 1301	{
		frame 1 {
			stop();
		}
	}
	instance bombsh of movieClip 1301	{
		onClipEvent (load) {
			this.throwspeed = 25;
			this.fallspeed = -20;
			this.limy = _root.box._y;
			this.dir = _root.dir;
			if (this.dir == 1) {
				this._y -= 70;
			}
			if (this.dir == 2) {
				this._x += 10;
			}
			if (this.dir == 3) {
				this._y += 10;
			}
			if (this.dir == 4) {
				this._x -= 20;
			}
		}
		onClipEvent (enterFrame) {
			if (_root.pause && this._visible) {
				this._visible = false;
			}
			if (!_root.pause && !this._visible) {
				this._visible = true;
			}
			if (this.bomb.explode._currentframe == 24) {
				this.removeMovieClip();
			}
			if (_root.warps) {
				this.removeMovieClip();
			}
			if (this.dir == 2 or this.dir == 4) {
				if (this.thrown && this.fallspeed < 10 && this._y < this.limy) {
					this.fallspeed += 5;
				}
				if (this._y > this.limy && this.thrown) {
					this.bomb.gotoAndStop(3);
					this.fallspeed = 0;
					this.thrown = false;
				}
			}
			if (this.throwspeed <= 0) {
				this.bomb.gotoAndStop(3);
				_root.throws = false;
				this.throwspeed = 0;
			}
			if (this.thrown && this.throwspeed > 0) {
				this.throwspeed -= 1;
			}
			if (this.thrown) {
				if (this.dir == 1) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.throwspeed;
					}
				}
				if (this.dir == 2) {
					this._y += this.fallspeed;
					if (!_root.BG.hitTest(this._x + 20, _y, true)) {
						this._x += this.throwspeed * 1.5;
					}
				}
				if (this.dir == 3) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.throwspeed;
					}
				}
				if (this.dir == 4) {
					this._y += this.fallspeed;
					if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
						this._x -= this.throwspeed * 1.5;
					}
				}
				if (_root.BG.hitTest(this._x, this._y - 20, true)) {
					this.bomb.gotoAndStop(3);
				}
			}
		}
	}
	movieClip 1305	{
	}
	movieClip 1310	{
		frame 6 {
			stop();
		}
	}
	movieClip 1311	{
		frame 1 {
			stop();
		}
	}
	instance firedupe of movieClip 1311	{
		onClipEvent (load) {
			this.dir = _root.dir;
			this.gotoAndStop(this.dir);
			arsp = 25;
			timer = 0;
			timestart = false;
			if (this.dir == 1) {
				this._y -= 120;
				this._x -= 2;
			}
			if (this.dir == 2) {
				this._x += 60;
				this._y -= 10;
			}
			if (this.dir == 3) {
				this._y += 10;
			}
			if (this.dir == 4) {
				this._x -= 70;
				this._y -= 10;
			}
		}
		onClipEvent (enterFrame) {
			if (_root.warps or _root.pause) {
				this.removeMovieClip();
			}
			if (fired && !_root.BG.hitTest(this._x, this._y, true) && !_root.pause && this._currentframe !== 5) {
				if (this.dir == 1) {
					this._y -= arsp;
				}
				if (this.dir == 2) {
					this._x += arsp;
				}
				if (this.dir == 3) {
					this._y += arsp;
				}
				if (this.dir == 4) {
					this._x -= arsp;
				}
			}
			if (_root.BG.hitTest(this._x, this._y, true)) {
				this.gotoAndStop(5);
			}
			if (this.ex._currentframe == 6) {
				this.removeMovieClip();
			}
		}
	}
	movieClip 1315	{
		frame 1 {
			stop();
		}
		frame 6 {
			stop();
		}
	}
	instance imphit of movieClip 1315	{
		onClipEvent (enterFrame) {
			if (this.placed) {
				this.play();
			}
			if (this._currentframe == 6) {
				this.removeMovieClip();
			}
		}
	}
	instance dropitem of movieClip 1279	{
		onClipEvent (load) {
			if (this.placed) {
				this.item = random(30) + 1;
				this.gotoAndStop(this.item);
			}
			if (this.item > 10) {
				this.removeMovieClip();
			}
		}
		onClipEvent (enterFrame) {
			if (_root.warps) {
				this.removeMovieClip();
			}
			if (_root.pause && this._visible) {
				this._visible = false;
			}
			if (!_root.pause && !this._visible) {
				this._visible = true;
			}
		}
	}
	instance fireen of movieClip 1311	{
		onClipEvent (load) {
			this.gotoAndStop(this.dir);
			arsp = random(15) + 10;
			timer = 0;
			timestart = false;
			if (this.dir == 1) {
				this._y -= 120;
				this._x -= 2;
			}
			if (this.dir == 2) {
				this._x += 60;
				this._y -= 25;
			}
			if (this.dir == 3) {
				this._y += 30;
			}
			if (this.dir == 4) {
				this._x -= 60;
				this._y -= 25;
			}
		}
		onClipEvent (enterFrame) {
			if (_root.warps or _root.pause) {
				this.removeMovieClip();
			}
			if (fired && !_root.BG.hitTest(this._x, this._y, true) && !_root.pause && this._currentframe !== 5) {
				if (this.dir == 1) {
					this._y -= arsp;
				}
				if (this.dir == 2) {
					this._x += arsp;
				}
				if (this.dir == 3) {
					this._y += arsp;
				}
				if (this.dir == 4) {
					this._x -= arsp;
				}
			}
			if (_root.BG.hitTest(this._x, this._y, true)) {
				this.gotoAndStop(5);
			}
			if (this.ex._currentframe == 6) {
				this.removeMovieClip();
			}
			if (this.hitTest(_root.hero) && _root.defend && !_root.block && _root.shield == 3) {
				this.gotoAndStop(5);
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero) && _root.defend && !_root.block && _root.shield == 4 or this.hitTest(_root.hero.hero.hero.hero.hero.sword)) {
				_root.block = true;
				firess = _root.firedupe.duplicateMovieClip('firedup_' + _root.ar, _root.getNextHighestDepth());
				firess.fired = true;
				++_root.ar;
				firess._x = this._x;
				firess._y = this._y;
				this.removeMovieClip();
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
				this.removeMovieClip();
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.block) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
		}
	}
	instance keydup of movieClip 969	{
		onClipEvent (enterFrame) {
			if (_root.warping) {
				this.removeMovieClip();
			}
			if (_root.pause && this._visible) {
				this._visible = false;
			}
			if (!_root.pause && !this._visible && !this.chat) {
				this._visible = true;
			}
			if (this.hitTest(_root.hero) && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !this.chat) {
				_root.newitem = 11;
				_root.chatting = true;
				this.chat = true;
				_root.getItems = true;
				this._visible = false;
				if (key == 1) {
					_root.cam.textbox.text = 'You got a small key! You can use this to unlock doors inside this dungeon.';
					_root.keys += 1;
					if (!_root.havekey1) {
						_root.havekey1 = true;
					}
				}
				if (key == 2) {
					_root.cam.textbox.text = 'You got the goblin camp key! You can use this to release the boy from the rope.';
					if (!_root.havegoblincampkey) {
						_root.havegoblincampkey = true;
					}
				}
				if (key == 3) {
					_root.cam.textbox.text = 'You got the Mystiker Island key! You can now use this to gain entrance to the tower ruins.';
					if (!_root.havemystikerkey) {
						_root.havemystikerkey = true;
					}
				}
				if (_root.sfx) {
					_root.getkey.start(0, 1);
				}
			}
			if (this.chat && this.counter >= 1.5 && Key.isDown(65)) {
				_root.cam.textbox.text = ' ';
				_root.newitem = 0;
				_root.chatting = false;
				_root.cam.textbox.play();
				_root.getItems = false;
				if (_root.sfx) {
					_root.chatwindorclose.start(0, 1);
				}
				this.removeMovieClip();
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65)) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance bigkeydup of movieClip 971	{
		onClipEvent (enterFrame) {
			if (_root.warping) {
				this.removeMovieClip();
			}
			if (_root.pause && this._visible) {
				this._visible = false;
			}
			if (!_root.pause && !this._visible && !this.chat) {
				this._visible = true;
			}
			if (this.hitTest(_root.hero) && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !this.chat) {
				_root.newitem = 12;
				_root.chatting = true;
				this.chat = true;
				_root.cam.textbox.text = 'You got the boss room key! You can use this to unlock the final room!';
				_root.getItems = true;
				this._visible = false;
				_root.bigkeys += 1;
				if (key == 1) {
					if (!_root.havekey3) {
						_root.havekey3 = true;
					}
				}
				if (_root.sfx) {
					_root.getkey.start(0, 1);
				}
			}
			if (this.chat && this.counter >= 1.5 && Key.isDown(65)) {
				_root.cam.textbox.text = ' ';
				_root.newitem = 0;
				_root.chatting = false;
				_root.cam.textbox.play();
				_root.getItems = false;
				if (_root.sfx) {
					_root.chatwindorclose.start(0, 1);
				}
				this.removeMovieClip();
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65)) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance bossfire of movieClip 1311	{
		onClipEvent (load) {
			arsp = random(15) + 10;
			timer = 0;
			timestart = false;
			this.gotoAndStop(3);
		}
		onClipEvent (enterFrame) {
			if (_root.warps or _root.pause or !_root.alive) {
				this.removeMovieClip();
			}
			if (fired && !_root.BG.hitTest(this._x, this._y, true) && !_root.pause && this._currentframe !== 5) {
				if (_name != 'bossfire') {
					_x = _x - dirx;
					_y = _y - diry;
				}
			}
			if (_root.BG.hitTest(this._x, this._y, true)) {
				this.gotoAndStop(5);
			}
			if (this.ex._currentframe == 6) {
				this.removeMovieClip();
			}
			if (this.hitTest(_root.hero) && _root.defend && !_root.block && _root.shield == 3 or this.hitTest(_root.hero.hero.hero.hero.hero.sword)) {
				this.gotoAndStop(5);
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.block) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
		}
	}
	frame 10 {
		function walksnd() {
			if (_root.walk == 1) {
				_root.step1.start(0, 1);
			} else {
				if (_root.walk == 2) {
					_root.step2.start(0, 1);
				} else {
					if (_root.walk == 3) {
						_root.step3.start(0, 1);
					} else {
						if (_root.walk == 4) {
							_root.step5.start(0, 1);
						} else {
							if (_root.walk == 5) {
								_root.step6.start(0, 1);
							}
						}
					}
				}
			}
		}
		function walksnd2() {
			if (_root.walk == 1) {
				_root.sstep1.start(0, 1);
			} else {
				if (_root.walk == 2) {
					_root.sstep2.start(0, 1);
				} else {
					if (_root.walk == 3) {
						_root.sstep3.start(0, 1);
					} else {
						if (_root.walk == 4) {
							_root.sstep5.start(0, 1);
						} else {
							if (_root.walk == 5) {
								_root.sstep6.start(0, 1);
							} else {
								if (_root.walk == 6) {
									_root.sstep4.start(0, 1);
								}
							}
						}
					}
				}
			}
		}
		function swingsw() {
			if (_root.swingsound == 1) {
				_root.ss1.start(0, 1);
				_root.swings = false;
			} else {
				if (_root.swingsound == 2) {
					_root.ss2.start(0, 1);
					_root.swings = false;
				} else {
					if (_root.swingsound == 3) {
						_root.ss3.start(0, 1);
						_root.swings = false;
					}
				}
			}
		}
		function flamesound() {
			if (_root.flamesounds == 1) {
				_root.flame1.start(0, 1);
				_root.flamesoundpl = false;
			} else {
				if (_root.flamesounds == 2) {
					_root.flame2.start(0, 1);
					_root.flamesoundpl = false;
				} else {
					if (_root.flamesounds == 3) {
						_root.flame3.start(0, 1);
						_root.flamesoundpl = false;
					}
				}
			}
		}
		function hitsound() {
			if (_root.swordhit == 1) {
				_root.shit1.start(0, 1);
				_root.hits = false;
			} else {
				if (_root.swordhit == 2) {
					_root.shit2.start(0, 1);
					_root.hits = false;
				} else {
					if (_root.swordhit == 3) {
						_root.shit3.start(0, 1);
						_root.hits = false;
					} else {
						if (_root.swordhit == 4) {
							_root.shit4.start(0, 1);
							_root.hits = false;
						} else {
							if (_root.swordhit == 5) {
								_root.shit5.start(0, 1);
								_root.hits = false;
							}
						}
					}
				}
			}
		}
		stop();
		if (!_root.soundsloaded) {
			_root.step1 = new Sound(this);
			_root.step1.attachSound('step1');
			_root.step2 = new Sound(this);
			_root.step2.attachSound('step2');
			_root.step3 = new Sound(this);
			_root.step3.attachSound('step3');
			_root.step5 = new Sound(this);
			_root.step5.attachSound('step5');
			_root.step6 = new Sound(this);
			_root.step6.attachSound('step6');
			_root.sstep1 = new Sound(this);
			_root.sstep1.attachSound('sstep1');
			_root.sstep2 = new Sound(this);
			_root.sstep2.attachSound('sstep2');
			_root.sstep3 = new Sound(this);
			_root.sstep3.attachSound('sstep3');
			_root.sstep4 = new Sound(this);
			_root.sstep4.attachSound('sstep4');
			_root.sstep5 = new Sound(this);
			_root.sstep5.attachSound('sstep5');
			_root.sstep6 = new Sound(this);
			_root.sstep6.attachSound('sstep6');
			_root.sclang = new Sound(this);
			_root.sclang.attachSound('sclang');
			_root.ss1 = new Sound(this);
			_root.ss1.attachSound('ss1');
			_root.ss2 = new Sound(this);
			_root.ss2.attachSound('ss2');
			_root.ss3 = new Sound(this);
			_root.ss3.attachSound('ss3');
			_root.shit1 = new Sound(this);
			_root.shit1.attachSound('shit1');
			_root.shit2 = new Sound(this);
			_root.shit2.attachSound('shit2');
			_root.shit3 = new Sound(this);
			_root.shit3.attachSound('shit3');
			_root.shit4 = new Sound(this);
			_root.shit4.attachSound('shit4');
			_root.shit5 = new Sound(this);
			_root.shit5.attachSound('shit5');
			_root.swordout = new Sound(this);
			_root.swordout.attachSound('swordout');
			_root.swordin = new Sound(this);
			_root.swordin.attachSound('swordin');
			_root.stunned = new Sound(this);
			_root.stunned.attachSound('stunned');
			_root.bossgrowl = new Sound(this);
			_root.bossgrowl.attachSound('bossgrowl');
			_root.flame1 = new Sound(this);
			_root.flame1.attachSound('flame1');
			_root.flame2 = new Sound(this);
			_root.flame2.attachSound('flame2');
			_root.flame3 = new Sound(this);
			_root.flame3.attachSound('flame3');
			_root.flame1.setVolume(100);
			_root.flame2.setVolume(100);
			_root.flame3.setVolume(100);
			_root.cannonfire = new Sound(this);
			_root.cannonfire.attachSound('cannonfire');
			_root.explosions = new Sound(this);
			_root.explosions.attachSound('explosions');
			_root.bombfuse = new Sound(this);
			_root.bombfuse.attachSound('bombfuse');
			_root.arrowhit = new Sound(this);
			_root.arrowhit.attachSound('arrowhit');
			_root.arrowshoot = new Sound(this);
			_root.arrowshoot.attachSound('arrowshoot');
			_root.boomerswish = new Sound(this);
			_root.boomerswish.attachSound('boomerswish');
			_root.hammerhit = new Sound(this);
			_root.hammerhit.attachSound('hammerhit');
			_root.healthup = new Sound(this);
			_root.healthup.attachSound('healthup');
			_root.metalhit = new Sound(this);
			_root.metalhit.attachSound('metalhit');
			_root.icefreeze = new Sound(this);
			_root.icefreeze.attachSound('icefreeze');
			_root.potshatter = new Sound(this);
			_root.potshatter.attachSound('potshatter');
			_root.pickupsound = new Sound(this);
			_root.pickupsound.attachSound('pickupsound');
			_root.rockbreak = new Sound(this);
			_root.rockbreak.attachSound('rockbreak');
			_root.bushcut = new Sound(this);
			_root.bushcut.attachSound('bushcut');
			_root.rolls = new Sound(this);
			_root.rolls.attachSound('rolls');
			_root.hurts = new Sound(this);
			_root.hurts.attachSound('hurts');
			_root.throwsound = new Sound(this);
			_root.throwsound.attachSound('throwsound');
			_root.throwsound.setVolume(50);
			_root.dooropen = new Sound(this);
			_root.dooropen.attachSound('dooropen');
			_root.doorlocked = new Sound(this);
			_root.doorlocked.attachSound('doorlocked');
			_root.doorclose = new Sound(this);
			_root.doorclose.attachSound('doorclose');
			_root.openmenu = new Sound(this);
			_root.openmenu.attachSound('openmenu');
			_root.closemenu = new Sound(this);
			_root.closemenu.attachSound('closemenu');
			_root.equipitem = new Sound(this);
			_root.equipitem.attachSound('equipitem');
			_root.unequipitem = new Sound(this);
			_root.unequipitem.attachSound('unequipitem');
			_root.menuarrow = new Sound(this);
			_root.menuarrow.attachSound('menuarrow');
			_root.pageturn1 = new Sound(this);
			_root.pageturn1.attachSound('pageturn1');
			_root.pageturn2 = new Sound(this);
			_root.pageturn2.attachSound('pageturn2');
			_root.getmoney = new Sound(this);
			_root.getmoney.attachSound('getmoney');
			_root.smallitem = new Sound(this);
			_root.smallitem.attachSound('smallitem');
			_root.beginmsg = new Sound(this);
			_root.beginmsg.attachSound('beginmsg');
			_root.continuemsg = new Sound(this);
			_root.continuemsg.attachSound('continuemsg');
			_root.stopmsg = new Sound(this);
			_root.stopmsg.attachSound('stopmsg');
			_root.openchestsound = new Sound(this);
			_root.openchestsound.attachSound('openchestsound');
			_root.getkey = new Sound(this);
			_root.getkey.attachSound('getkey');
			_root.flipswitch = new Sound(this);
			_root.flipswitch.attachSound('flipswitch');
			_root.shieldin = new Sound(this);
			_root.shieldin.attachSound('shieldin');
			_root.shieldout = new Sound(this);
			_root.shieldout.attachSound('shieldout');
			_root.intromus = new Sound(this);
			_root.intromus.attachSound('intromus');
			_root.neveah = new Sound(this);
			_root.neveah.attachSound('neveah');
			_root.shop1 = new Sound(this);
			_root.shop1.attachSound('shop1');
			_root.graveyardmusic = new Sound(this);
			_root.graveyardmusic.attachSound('graveyardmusic');
			_root.scarymusic = new Sound(this);
			_root.scarymusic.attachSound('scarymusic');
			_root.stormloop = new Sound(this);
			_root.stormloop.attachSound('stormloop');
			_root.nightloop = new Sound(this);
			_root.nightloop.attachSound('nightloop');
			_root.reveriemus = new Sound(this);
			_root.reveriemus.attachSound('reveriemus');
			_root.dungeon1theme = new Sound(this);
			_root.dungeon1theme.attachSound('dungeon1theme');
			_root.dungeon2theme = new Sound(this);
			_root.dungeon2theme.attachSound('dungeon2theme');
			_root.dungeon3theme = new Sound(this);
			_root.dungeon3theme.attachSound('dungeon3theme');
			_root.nightmare = new Sound(this);
			_root.nightmare.attachSound('nightmare');
			_root.generic1 = new Sound(this);
			_root.generic1.attachSound('generic1');
			_root.boss1mus = new Sound(this);
			_root.boss1mus.attachSound('boss1mus');
			_root.boss3mus = new Sound(this);
			_root.boss3mus.attachSound('boss3mus');
			_root.finalbossmus2 = new Sound(this);
			_root.finalbossmus2.attachSound('finalbossmus2');
			_root.gameover = new Sound(this);
			_root.gameover.attachSound('gameover');
			_root.music = 1;
			_root.musicpl = true;
			_root.sfx = true;
			_root.soundsloaded = true;
		}
		_root.ds = 0;
		_root.ar = 0;
		_root.shake = false;
		_root.equipped = 1;
		_root.newitem = 0;
		_root.pickobject = 0;
		_root.dicon = 0;
		_root.alive = true;
		_root.defend = false;
		_root.carry = false;
		_root.throws = false;
		_root.pickup = false;
		_root.played1 = true;
		_root.played2 = false;
		if (!_root.gameloading) {
			_root.money = 0;
			_root.maxhealth = 13;
			_root.health = 13;
			_root.bombs = 0;
			_root.arrows = 0;
			_root.havecrossbow = false;
			_root.haveboomerang = false;
			_root.havehammer = false;
			_root.blauncher = false;
			_root.havefirering = false;
			_root.ditem = 0;
			_root.walking = 1;
			_root.sword = 1;
			_root.shield = 1;
			_root.armor = 1;
			_root.helmet = 1;
			_root.pslot1 = 4;
			_root.pslot2 = 4;
			_root.pslot3 = 4;
			_root.pslot4 = 4;
			_root.pslot5 = 4;
			_root.pslot6 = 4;
			_root.days = false;
			_root.sundown = false;
			_root.second = 0;
			_root.minute = 0;
			_root.hour = 1;
			_root.rainchance = 1;
			_root.rainstarted = false;
			_root.gamestart = false;
			_root.beginmessage = 1;
			_root.awakened = false;
			_root.quest = 0;
			_root.gtalk = false;
			_root.areacleared1 = false;
			_root.havereveriechart = false;
			_root.haveforgottenchart = false;
			_root.havelostchart = false;
			_root.haveelderchart = false;
			_root.haveeasterianchart = false;
			_root.havegoblinchart = false;
			_root.havemonstroschart = false;
			_root.havelonechart = false;
			_root.haveblacksmithchart = false;
			_root.door1locked = true;
			_root.door2locked = true;
			_root.door3locked = true;
			_root.door4locked = true;
			_root.boss1dead = false;
			_root.door5locked = true;
			_root.door6locked = true;
			_root.door7locked = true;
			_root.door8locked = true;
			_root.door9locked = true;
			_root.door10locked = true;
			_root.door11locked = true;
			_root.boss2dead = false;
			_root.door12locked = true;
			_root.door13locked = true;
			_root.door14locked = true;
			_root.door15locked = true;
			_root.door16locked = true;
			_root.door17locked = true;
			_root.door18locked = true;
			_root.door19locked = true;
			_root.door20locked = true;
			_root.door21locked = true;
			_root.door22locked = true;
			_root.door23locked = true;
			_root.door24locked = true;
			_root.goblinchest = false;
			_root.havenote = false;
			_root.healthupgrade2 = false;
			_root.door25locked = true;
			_root.havekey13 = false;
			_root.havekey14 = false;
			_root.chestappeared15 = false;
			_root.chestappeared16 = false;
			_root.door26locked = true;
			_root.door27locked = true;
			_root.girlfree = false;
			_root.havekey8 = false;
			_root.havekey9 = false;
			_root.havekey10 = false;
			_root.havekey11 = false;
			_root.havekey12 = false;
			_root.chestappeared10 = false;
			_root.chestappeared11 = false;
			_root.chestappeared12 = false;
			_root.chestappeared13 = false;
			_root.chestappearing14 = false;
			_root.chestappeared14 = false;
			_root.chestappeared1 = false;
			_root.chestappeared2 = false;
			_root.chestappeared3 = false;
			_root.chestappearing3 = false;
			_root.chestappeared4 = false;
			_root.chestappeared5 = false;
			_root.chestappeared6 = false;
			_root.chestappeared7 = false;
			_root.chestappeared8 = false;
			_root.chestappeared9 = false;
			_root.chestappearing9 = false;
			_root.havekey1 = false;
			_root.havekey2 = false;
			_root.havekey3 = false;
			_root.havekey4 = false;
			_root.havekey5 = false;
			_root.havekey6 = false;
			_root.havekey7 = false;
			_root.door28locked = true;
			_root.door29locked = true;
			_root.door30locked = true;
			_root.door31locked = true;
			_root.door32locked = true;
			_root.door33locked = true;
			_root.door34locked = true;
			_root.door35locked = true;
			_root.door36locked = true;
			_root.door37locked = true;
			_root.door38locked = true;
			_root.door39locked = true;
			_root.switchhit = false;
			_root.switchhit1 = false;
			_root.switchhit2 = false;
			_root.keys = 0;
			_root.bigkeys = 0;
			_root.gameloading = true;
			_root.autosave = true;
		}
		onEnterFrame = function () {
			if (_root.savegame && !Key.isDown(65)) {
				_root['gamesave' + _root.gameslot].data.name = _root.name;
				_root['gamesave' + _root.gameslot].data.money = _root.money;
				_root['gamesave' + _root.gameslot].data.maxhealth = _root.maxhealth;
				_root['gamesave' + _root.gameslot].data.health = _root.health;
				_root['gamesave' + _root.gameslot].data.keys = _root.keys;
				_root['gamesave' + _root.gameslot].data.bigkeys = _root.bigkeys;
				_root['gamesave' + _root.gameslot].data.beginmessage = _root.beginmessage;
				_root['gamesave' + _root.gameslot].data.awakened = _root.awakened;
				_root['gamesave' + _root.gameslot].data.gtalk = _root.gtalk;
				_root['gamesave' + _root.gameslot].data.quest = _root.quest;
				_root['gamesave' + _root.gameslot].data.areacleared1 = _root.areacleared1;
				_root['gamesave' + _root.gameslot].data.bombs = _root.bombs;
				_root['gamesave' + _root.gameslot].data.arrows = _root.arrows;
				_root['gamesave' + _root.gameslot].data.havecrossbow = _root.havecrossbow;
				_root['gamesave' + _root.gameslot].data.haveboomerang = _root.haveboomerang;
				_root['gamesave' + _root.gameslot].data.havehammer = _root.havehammer;
				_root['gamesave' + _root.gameslot].data.blauncher = _root.blauncher;
				_root['gamesave' + _root.gameslot].data.havefirering = _root.havefirering;
				_root['gamesave' + _root.gameslot].data.ditem = _root.ditem;
				_root['gamesave' + _root.gameslot].data.sword = _root.sword;
				_root['gamesave' + _root.gameslot].data.shield = _root.shield;
				_root['gamesave' + _root.gameslot].data.armor = _root.armor;
				_root['gamesave' + _root.gameslot].data.helmet = _root.helmet;
				_root['gamesave' + _root.gameslot].data.pslot1 = _root.pslot1;
				_root['gamesave' + _root.gameslot].data.pslot2 = _root.pslot2;
				_root['gamesave' + _root.gameslot].data.pslot3 = _root.pslot3;
				_root['gamesave' + _root.gameslot].data.pslot4 = _root.pslot4;
				_root['gamesave' + _root.gameslot].data.pslot5 = _root.pslot5;
				_root['gamesave' + _root.gameslot].data.pslot6 = _root.pslot6;
				_root['gamesave' + _root.gameslot].data.days = _root.days;
				_root['gamesave' + _root.gameslot].data.second = _root.second;
				_root['gamesave' + _root.gameslot].data.minute = _root.minute;
				_root['gamesave' + _root.gameslot].data.hour = _root.hour;
				_root['gamesave' + _root.gameslot].data.rainchance = _root.rainchance;
				_root['gamesave' + _root.gameslot].data.havelantern1 = _root.havelantern1;
				_root['gamesave' + _root.gameslot].data.havelantern2 = _root.havelantern2;
				_root['gamesave' + _root.gameslot].data.havelantern3 = _root.havelantern3;
				_root['gamesave' + _root.gameslot].data.havestone = _root.havestone;
				_root['gamesave' + _root.gameslot].data.havereveriechart = _root.havereveriechart;
				_root['gamesave' + _root.gameslot].data.haveforgottenchart = _root.haveforgottenchart;
				_root['gamesave' + _root.gameslot].data.havelostchart = _root.havelostchart;
				_root['gamesave' + _root.gameslot].data.haveelderchart = _root.haveelderchart;
				_root['gamesave' + _root.gameslot].data.haveeasterianchart = _root.haveeasterianchart;
				_root['gamesave' + _root.gameslot].data.havegoblinchart = _root.havegoblinchart;
				_root['gamesave' + _root.gameslot].data.havemonstroschart = _root.havemonstroschart;
				_root['gamesave' + _root.gameslot].data.havelonechart = _root.havelonechart;
				_root['gamesave' + _root.gameslot].data.haveblacksmithchart = _root.haveblacksmithchart;
				_root['gamesave' + _root.gameslot].data.haveabandonedchart = _root.haveabandonedchart;
				_root['gamesave' + _root.gameslot].data.havemystikerchart = _root.havemystikerchart;
				_root['gamesave' + _root.gameslot].data.haveset2 = _root.haveset2;
				_root['gamesave' + _root.gameslot].data.haveset3 = _root.haveset3;
				_root['gamesave' + _root.gameslot].data.haveset4 = _root.haveset4;
				_root['gamesave' + _root.gameslot].data.havehelmet2 = _root.havehelmet2;
				_root['gamesave' + _root.gameslot].data.havehelmet3 = _root.havehelmet3;
				_root['gamesave' + _root.gameslot].data.havehelmet4 = _root.havehelmet4;
				_root['gamesave' + _root.gameslot].data.havesword2 = _root.havesword2;
				_root['gamesave' + _root.gameslot].data.havesword3 = _root.havesword3;
				_root['gamesave' + _root.gameslot].data.havesword4 = _root.havesword4;
				_root['gamesave' + _root.gameslot].data.haveshield2 = _root.haveshield2;
				_root['gamesave' + _root.gameslot].data.haveshield3 = _root.haveshield3;
				_root['gamesave' + _root.gameslot].data.room = _root.room;
				_root['gamesave' + _root.gameslot].data.oldroom = _root.oldroom;
				_root['gamesave' + _root.gameslot].data['gamesaved' + _root.gameslot] = true;
				_root['gamesave' + _root.gameslot].data.door1locked = _root.door1locked;
				_root['gamesave' + _root.gameslot].data.door2locked = _root.door2locked;
				_root['gamesave' + _root.gameslot].data.door3locked = _root.door3locked;
				_root['gamesave' + _root.gameslot].data.door4locked = _root.door4locked;
				_root['gamesave' + _root.gameslot].data.healthupgrade1 = _root.healthupgrade1;
				_root['gamesave' + _root.gameslot].data.healthupgrade2 = _root.healthupgrade2;
				_root['gamesave' + _root.gameslot].data.healthupgrade3 = _root.healthupgrade3;
				_root['gamesave' + _root.gameslot].data.healthupgrade4 = _root.healthupgrade4;
				_root['gamesave' + _root.gameslot].data.chestappeared1 = _root.chestappeared1;
				_root['gamesave' + _root.gameslot].data.chestappeared2 = _root.chestappeared2;
				_root['gamesave' + _root.gameslot].data.chestappeared3 = _root.chestappeared3;
				_root['gamesave' + _root.gameslot].data.chestappearing3 = _root.chestappearing3;
				_root['gamesave' + _root.gameslot].data.havekey1 = _root.havekey1;
				_root['gamesave' + _root.gameslot].data.havekey2 = _root.havekey2;
				_root['gamesave' + _root.gameslot].data.havekey3 = _root.havekey3;
				_root['gamesave' + _root.gameslot].data.switchhit = _root.switchhit;
				_root['gamesave' + _root.gameslot].data.switchhit1 = _root.switchhit1;
				_root['gamesave' + _root.gameslot].data.door5locked = _root.door5locked;
				_root['gamesave' + _root.gameslot].data.door6locked = _root.door6locked;
				_root['gamesave' + _root.gameslot].data.door7locked = _root.door7locked;
				_root['gamesave' + _root.gameslot].data.door8locked = _root.door8locked;
				_root['gamesave' + _root.gameslot].data.door9locked = _root.door9locked;
				_root['gamesave' + _root.gameslot].data.door10locked = _root.door10locked;
				_root['gamesave' + _root.gameslot].data.door11locked = _root.door11locked;
				_root['gamesave' + _root.gameslot].data.boss2dead = _root.boss2dead;
				_root['gamesave' + _root.gameslot].data.chestappeared4 = _root.chestappeared4;
				_root['gamesave' + _root.gameslot].data.chestappeared5 = _root.chestappeared5;
				_root['gamesave' + _root.gameslot].data.chestappeared6 = _root.chestappeared6;
				_root['gamesave' + _root.gameslot].data.chestappeared7 = _root.chestappeared7;
				_root['gamesave' + _root.gameslot].data.chestappeared8 = _root.chestappeared8;
				_root['gamesave' + _root.gameslot].data.chestappeared9 = _root.chestappeared9;
				_root['gamesave' + _root.gameslot].data.chestappearing9 = _root.chestappearing9;
				_root['gamesave' + _root.gameslot].data.havekey4 = _root.havekey4;
				_root['gamesave' + _root.gameslot].data.havekey5 = _root.havekey5;
				_root['gamesave' + _root.gameslot].data.havekey6 = _root.havekey6;
				_root['gamesave' + _root.gameslot].data.havekey7 = _root.havekey7;
				_root['gamesave' + _root.gameslot].data.door12locked = _root.door12locked;
				_root['gamesave' + _root.gameslot].data.door13locked = _root.door13locked;
				_root['gamesave' + _root.gameslot].data.door14locked = _root.door14locked;
				_root['gamesave' + _root.gameslot].data.door15locked = _root.door15locked;
				_root['gamesave' + _root.gameslot].data.door16locked = _root.door16locked;
				_root['gamesave' + _root.gameslot].data.door17locked = _root.door17locked;
				_root['gamesave' + _root.gameslot].data.door18locked = _root.door18locked;
				_root['gamesave' + _root.gameslot].data.door19locked = _root.door19locked;
				_root['gamesave' + _root.gameslot].data.door20locked = _root.door20locked;
				_root['gamesave' + _root.gameslot].data.door21locked = _root.door21locked;
				_root['gamesave' + _root.gameslot].data.door22locked = _root.door22locked;
				_root['gamesave' + _root.gameslot].data.door23locked = _root.door23locked;
				_root['gamesave' + _root.gameslot].data.door24locked = _root.door24locked;
				_root['gamesave' + _root.gameslot].data.goblinchest = _root.goblinchest;
				_root['gamesave' + _root.gameslot].data.havenote = _root.havenote;
				_root['gamesave' + _root.gameslot].data.door25locked = _root.door25locked;
				_root['gamesave' + _root.gameslot].data.door26locked = _root.door26locked;
				_root['gamesave' + _root.gameslot].data.door27locked = _root.door27locked;
				_root['gamesave' + _root.gameslot].data.havekey13 = _root.havekey13;
				_root['gamesave' + _root.gameslot].data.havekey14 = _root.havekey14;
				_root['gamesave' + _root.gameslot].data.girlfree = _root.girlfree;
				_root['gamesave' + _root.gameslot].data.chestappeared15 = _root.chestappeared15;
				_root['gamesave' + _root.gameslot].data.chestappeared16 = _root.chestappeared16;
				_root['gamesave' + _root.gameslot].data.havegoblincampkey = _root.havegoblincampkey;
				_root['gamesave' + _root.gameslot].data.boyreleased = _root.boyreleased;
				_root['gamesave' + _root.gameslot].data.blacksmithfree = _root.blacksmithfree;
				_root['gamesave' + _root.gameslot].data.abandonedunlocked = _root.abandonedunlocked;
				_root['gamesave' + _root.gameslot].data.abandonedunlocked2 = _root.abandonedunlocked2;
				_root['gamesave' + _root.gameslot].data.mystikerunlocked = _root.mystikerunlocked;
				_root['gamesave' + _root.gameslot].data.mystikerunlocked2 = _root.mystikerunlocked2;
				_root['gamesave' + _root.gameslot].data.havemystikerkey = _root.havemystikerkey;
				_root['gamesave' + _root.gameslot].data.havekey8 = _root.havekey8;
				_root['gamesave' + _root.gameslot].data.havekey9 = _root.havekey9;
				_root['gamesave' + _root.gameslot].data.havekey10 = _root.havekey10;
				_root['gamesave' + _root.gameslot].data.havekey11 = _root.havekey11;
				_root['gamesave' + _root.gameslot].data.havekey12 = _root.havekey12;
				_root['gamesave' + _root.gameslot].data.chestappeared10 = _root.chestappeared10;
				_root['gamesave' + _root.gameslot].data.chestappeared11 = _root.chestappeared11;
				_root['gamesave' + _root.gameslot].data.chestappeared12 = _root.chestappeared12;
				_root['gamesave' + _root.gameslot].data.chestappeared13 = _root.chestappeared13;
				_root['gamesave' + _root.gameslot].data.chestappearing14 = _root.chestappearing14;
				_root['gamesave' + _root.gameslot].data.chestappeared14 = _root.chestappeared14;
				_root['gamesave' + _root.gameslot].data.switchhit2 = _root.switchhit2;
				_root['gamesave' + _root.gameslot].data.chestappeared17 = _root.chestappeared17;
				_root['gamesave' + _root.gameslot].data.chestappeared18 = _root.chestappeared18;
				_root['gamesave' + _root.gameslot].data.chestappeared19 = _root.chestappeared19;
				_root['gamesave' + _root.gameslot].data.chestappeared20 = _root.chestappeared20;
				_root['gamesave' + _root.gameslot].data.chestappeared21 = _root.chestappeared21;
				_root['gamesave' + _root.gameslot].data.chestappeared22 = _root.chestappeared22;
				_root['gamesave' + _root.gameslot].data.chestappeared23 = _root.chestappeared23;
				_root['gamesave' + _root.gameslot].data.chestappeared24 = _root.chestappeared24;
				_root['gamesave' + _root.gameslot].data.chestappeared25 = _root.chestappeared25;
				_root['gamesave' + _root.gameslot].data.chestappeared26 = _root.chestappeared26;
				_root['gamesave' + _root.gameslot].data.chestappeared27 = _root.chestappeared27;
				_root['gamesave' + _root.gameslot].data.havekey15 = _root.havekey15;
				_root['gamesave' + _root.gameslot].data.havekey16 = _root.havekey16;
				_root['gamesave' + _root.gameslot].data.havekey17 = _root.havekey17;
				_root['gamesave' + _root.gameslot].data.havekey18 = _root.havekey18;
				_root['gamesave' + _root.gameslot].data.havekey19 = _root.havekey19;
				_root['gamesave' + _root.gameslot].data.havekey20 = _root.havekey20;
				_root['gamesave' + _root.gameslot].data.havekey21 = _root.havekey21;
				_root['gamesave' + _root.gameslot].data.havekey22 = _root.havekey22;
				_root['gamesave' + _root.gameslot].data.havekey23 = _root.havekey23;
				_root['gamesave' + _root.gameslot].data.havekey24 = _root.havekey24;
				_root['gamesave' + _root.gameslot].data.havekey25 = _root.havekey25;
				_root['gamesave' + _root.gameslot].data.door28locked = _root.door28locked;
				_root['gamesave' + _root.gameslot].data.door29locked = _root.door29locked;
				_root['gamesave' + _root.gameslot].data.door30locked = _root.door30locked;
				_root['gamesave' + _root.gameslot].data.door31locked = _root.door31locked;
				_root['gamesave' + _root.gameslot].data.door32locked = _root.door32locked;
				_root['gamesave' + _root.gameslot].data.door33locked = _root.door33locked;
				_root['gamesave' + _root.gameslot].data.door34locked = _root.door34locked;
				_root['gamesave' + _root.gameslot].data.door35locked = _root.door35locked;
				_root['gamesave' + _root.gameslot].data.door36locked = _root.door36locked;
				_root['gamesave' + _root.gameslot].data.door37locked = _root.door37locked;
				_root['gamesave' + _root.gameslot].data.door38locked = _root.door38locked;
				_root['gamesave' + _root.gameslot].data.door39locked = _root.door39locked;
				_root['gamesave' + _root.gameslot].data.pub1saved = _root.pub1saved;
				_root['gamesave' + _root.gameslot].data.pub2saved = _root.pub2saved;
				_root['gamesave' + _root.gameslot].data.pub3saved = _root.pub3saved;
				_root['gamesave' + _root.gameslot].data.pub4saved = _root.pub4saved;
				_root['gamesave' + _root.gameslot].data.pub5saved = _root.pub5saved;
				_root['gamesave' + _root.gameslot].data.pub6saved = _root.pub6saved;
				_root['gamesave' + _root.gameslot].data.cagedown = _root.cagedown;
				_root['gamesave' + _root.gameslot].data.restartpoint = _root.restartpoint;
				_root['gamesave' + _root.gameslot].data.oldrestart = _root.oldrestart;
				_root['gamesave' + _root.gameslot].data.boss1dead = _root.boss1dead;
				_root['gamesave' + _root.gameslot].data.boss2dead = _root.boss2dead;
				_root['gamesave' + _root.gameslot].data.boss3dead = _root.boss3dead;
				_root['gamesave' + _root.gameslot].data.autosave = _root.autosave;
				_root['gamesave' + _root.gameslot].data.c5opened = _root.c5opened;
				_root.savegame = false;
			}
			if (_root.loadoldgame) {
				_root.name = _root['gamesave' + _root.gameslot].data.name;
				_root.money = _root['gamesave' + _root.gameslot].data.money;
				_root.maxhealth = _root['gamesave' + _root.gameslot].data.maxhealth;
				_root.health = _root['gamesave' + _root.gameslot].data.health;
				_root.keys = _root['gamesave' + _root.gameslot].data.keys;
				_root.bigkeys = _root['gamesave' + _root.gameslot].data.bigkeys;
				_root.beginmessage = _root['gamesave' + _root.gameslot].data.beginmessage;
				_root.awakened = _root['gamesave' + _root.gameslot].data.awakened;
				_root.gtalk = _root['gamesave' + _root.gameslot].data.gtalk;
				_root.quest = _root['gamesave' + _root.gameslot].data.quest;
				_root.areacleared1 = _root['gamesave' + _root.gameslot].data.areacleared1;
				_root.bombs = _root['gamesave' + _root.gameslot].data.bombs;
				_root.arrows = _root['gamesave' + _root.gameslot].data.arrows;
				_root.havecrossbow = _root['gamesave' + _root.gameslot].data.havecrossbow;
				_root.haveboomerang = _root['gamesave' + _root.gameslot].data.haveboomerang;
				_root.havehammer = _root['gamesave' + _root.gameslot].data.havehammer;
				_root.blauncher = _root['gamesave' + _root.gameslot].data.blauncher;
				_root.havefirering = _root['gamesave' + _root.gameslot].data.havefirering;
				_root.ditem = _root['gamesave' + _root.gameslot].data.ditem;
				_root.sword = _root['gamesave' + _root.gameslot].data.sword;
				_root.shield = _root['gamesave' + _root.gameslot].data.shield;
				_root.armor = _root['gamesave' + _root.gameslot].data.armor;
				_root.helmet = _root['gamesave' + _root.gameslot].data.helmet;
				_root.pslot1 = _root['gamesave' + _root.gameslot].data.pslot1;
				_root.pslot2 = _root['gamesave' + _root.gameslot].data.pslot2;
				_root.pslot3 = _root['gamesave' + _root.gameslot].data.pslot3;
				_root.pslot4 = _root['gamesave' + _root.gameslot].data.pslot4;
				_root.pslot5 = _root['gamesave' + _root.gameslot].data.pslot5;
				_root.pslot6 = _root['gamesave' + _root.gameslot].data.pslot6;
				_root.days = _root['gamesave' + _root.gameslot].data.days;
				_root.second = _root['gamesave' + _root.gameslot].data.second;
				_root.minute = _root['gamesave' + _root.gameslot].data.minute;
				_root.hour = _root['gamesave' + _root.gameslot].data.hour;
				_root.rainchance = _root['gamesave' + _root.gameslot].data.rainchance;
				_root.havelantern1 = _root['gamesave' + _root.gameslot].data.havelantern1;
				_root.havelantern2 = _root['gamesave' + _root.gameslot].data.havelantern2;
				_root.havelantern3 = _root['gamesave' + _root.gameslot].data.havelantern3;
				_root.havestone = _root['gamesave' + _root.gameslot].data.havestone;
				_root.havereveriechart = _root['gamesave' + _root.gameslot].data.havereveriechart;
				_root.haveforgottenchart = _root['gamesave' + _root.gameslot].data.haveforgottenchart;
				_root.havelostchart = _root['gamesave' + _root.gameslot].data.havelostchart;
				_root.haveelderchart = _root['gamesave' + _root.gameslot].data.haveelderchart;
				_root.haveeasterianchart = _root['gamesave' + _root.gameslot].data.haveeasterianchart;
				_root.havegoblinchart = _root['gamesave' + _root.gameslot].data.havegoblinchart;
				_root.havemonstroschart = _root['gamesave' + _root.gameslot].data.havemonstroschart;
				_root.havelonechart = _root['gamesave' + _root.gameslot].data.havelonechart;
				_root.haveblacksmithchart = _root['gamesave' + _root.gameslot].data.haveblacksmithchart;
				_root.haveabandonedchart = _root['gamesave' + _root.gameslot].data.haveabandonedchart;
				_root.havemystikerchart = _root['gamesave' + _root.gameslot].data.havemystikerchart;
				_root.haveset2 = _root['gamesave' + _root.gameslot].data.haveset2;
				_root.haveset3 = _root['gamesave' + _root.gameslot].data.haveset3;
				_root.haveset4 = _root['gamesave' + _root.gameslot].data.haveset4;
				_root.havehelmet2 = _root['gamesave' + _root.gameslot].data.havehelmet2;
				_root.havehelmet3 = _root['gamesave' + _root.gameslot].data.havehelmet3;
				_root.havehelmet4 = _root['gamesave' + _root.gameslot].data.havehelmet4;
				_root.havesword2 = _root['gamesave' + _root.gameslot].data.havesword2;
				_root.havesword3 = _root['gamesave' + _root.gameslot].data.havesword3;
				_root.havesword4 = _root['gamesave' + _root.gameslot].data.havesword4;
				_root.haveshield2 = _root['gamesave' + _root.gameslot].data.haveshield2;
				_root.haveshield3 = _root['gamesave' + _root.gameslot].data.haveshield3;
				_root.room = _root['gamesave' + _root.gameslot].data.room;
				_root.oldroom = _root['gamesave' + _root.gameslot].data.oldroom;
				_root.door1locked = _root['gamesave' + _root.gameslot].data.door1locked;
				_root.door2locked = _root['gamesave' + _root.gameslot].data.door2locked;
				_root.door3locked = _root['gamesave' + _root.gameslot].data.door3locked;
				_root.door4locked = _root['gamesave' + _root.gameslot].data.door4locked;
				_root.restartpoint = _root['gamesave' + _root.gameslot].data.restartpoint;
				_root.oldrestart = _root['gamesave' + _root.gameslot].data.oldrestart;
				_root.healthupgrade1 = _root['gamesave' + _root.gameslot].data.healthupgrade1;
				_root.healthupgrade2 = _root['gamesave' + _root.gameslot].data.healthupgrade2;
				_root.healthupgrade3 = _root['gamesave' + _root.gameslot].data.healthupgrade3;
				_root.healthupgrade4 = _root['gamesave' + _root.gameslot].data.healthupgrade4;
				_root.chestappeared1 = _root['gamesave' + _root.gameslot].data.chestappeared1;
				_root.chestappeared2 = _root['gamesave' + _root.gameslot].data.chestappeared2;
				_root.chestappeared3 = _root['gamesave' + _root.gameslot].data.chestappeared3;
				_root.chestappearing3 = _root['gamesave' + _root.gameslot].data.chestappearing3;
				_root.havekey1 = _root['gamesave' + _root.gameslot].data.havekey1;
				_root.havekey2 = _root['gamesave' + _root.gameslot].data.havekey2;
				_root.havekey3 = _root['gamesave' + _root.gameslot].data.havekey3;
				_root.switchhit = _root['gamesave' + _root.gameslot].data.switchhit;
				_root.switchhit1 = _root['gamesave' + _root.gameslot].data.switchhit1;
				_root.boss1dead = _root['gamesave' + _root.gameslot].data.boss1dead;
				_root.boss2dead = _root['gamesave' + _root.gameslot].data.boss2dead;
				_root.boss3dead = _root['gamesave' + _root.gameslot].data.boss3dead;
				_root.door5locked = _root['gamesave' + _root.gameslot].data.door5locked;
				_root.door6locked = _root['gamesave' + _root.gameslot].data.door6locked;
				_root.door7locked = _root['gamesave' + _root.gameslot].data.door7locked;
				_root.door8locked = _root['gamesave' + _root.gameslot].data.door8locked;
				_root.door9locked = _root['gamesave' + _root.gameslot].data.door9locked;
				_root.door10locked = _root['gamesave' + _root.gameslot].data.door10locked;
				_root.door11locked = _root['gamesave' + _root.gameslot].data.door11locked;
				_root.boss2dead = _root['gamesave' + _root.gameslot].data.boss2dead;
				_root.chestappeared4 = _root['gamesave' + _root.gameslot].data.chestappeared4;
				_root.chestappeared5 = _root['gamesave' + _root.gameslot].data.chestappeared5;
				_root.chestappeared6 = _root['gamesave' + _root.gameslot].data.chestappeared6;
				_root.chestappeared7 = _root['gamesave' + _root.gameslot].data.chestappeared7;
				_root.chestappeared8 = _root['gamesave' + _root.gameslot].data.chestappeared8;
				_root.chestappeared9 = _root['gamesave' + _root.gameslot].data.chestappeared9;
				_root.chestappearing9 = _root['gamesave' + _root.gameslot].data.chestappearing9;
				_root.havekey4 = _root['gamesave' + _root.gameslot].data.havekey4;
				_root.havekey5 = _root['gamesave' + _root.gameslot].data.havekey5;
				_root.havekey6 = _root['gamesave' + _root.gameslot].data.havekey6;
				_root.havekey7 = _root['gamesave' + _root.gameslot].data.havekey7;
				_root.door12locked = _root['gamesave' + _root.gameslot].data.door12locked;
				_root.door13locked = _root['gamesave' + _root.gameslot].data.door13locked;
				_root.door14locked = _root['gamesave' + _root.gameslot].data.door14locked;
				_root.door15locked = _root['gamesave' + _root.gameslot].data.door15locked;
				_root.door16locked = _root['gamesave' + _root.gameslot].data.door16locked;
				_root.door17locked = _root['gamesave' + _root.gameslot].data.door17locked;
				_root.door18locked = _root['gamesave' + _root.gameslot].data.door18locked;
				_root.door19locked = _root['gamesave' + _root.gameslot].data.door19locked;
				_root.door20locked = _root['gamesave' + _root.gameslot].data.door20locked;
				_root.door21locked = _root['gamesave' + _root.gameslot].data.door21locked;
				_root.door22locked = _root['gamesave' + _root.gameslot].data.door22locked;
				_root.door23locked = _root['gamesave' + _root.gameslot].data.door23locked;
				_root.door24locked = _root['gamesave' + _root.gameslot].data.door24locked;
				_root.goblinchest = _root['gamesave' + _root.gameslot].data.goblinchest;
				_root.havenote = _root['gamesave' + _root.gameslot].data.havenote;
				_root.door25locked = _root['gamesave' + _root.gameslot].data.door25locked;
				_root.door26locked = _root['gamesave' + _root.gameslot].data.door26locked;
				_root.door27locked = _root['gamesave' + _root.gameslot].data.door27locked;
				_root.havekey13 = _root['gamesave' + _root.gameslot].data.havekey13;
				_root.havekey14 = _root['gamesave' + _root.gameslot].data.havekey14;
				_root.girlfree = _root['gamesave' + _root.gameslot].data.girlfree;
				_root.chestappeared15 = _root['gamesave' + _root.gameslot].data.chestappeared15;
				_root.chestappeared16 = _root['gamesave' + _root.gameslot].data.chestappeared16;
				_root.havegoblincampkey = _root['gamesave' + _root.gameslot].data.havegoblincampkey;
				_root.boyreleased = _root['gamesave' + _root.gameslot].data.boyreleased;
				_root.blacksmithfree = _root['gamesave' + _root.gameslot].data.blacksmithfree;
				_root.abandonedunlocked = _root['gamesave' + _root.gameslot].data.abandonedunlocked;
				_root.abandonedunlocked2 = _root['gamesave' + _root.gameslot].data.abandonedunlocked2;
				_root.mystikerunlocked = _root['gamesave' + _root.gameslot].data.mystikerunlocked;
				_root.mystikerunlocked2 = _root['gamesave' + _root.gameslot].data.mystikerunlocked2;
				_root.havemystikerkey = _root['gamesave' + _root.gameslot].data.havemystikerkey;
				_root.havekey8 = _root['gamesave' + _root.gameslot].data.havekey8;
				_root.havekey9 = _root['gamesave' + _root.gameslot].data.havekey9;
				_root.havekey10 = _root['gamesave' + _root.gameslot].data.havekey10;
				_root.havekey11 = _root['gamesave' + _root.gameslot].data.havekey11;
				_root.havekey12 = _root['gamesave' + _root.gameslot].data.havekey12;
				_root.chestappeared10 = _root['gamesave' + _root.gameslot].data.chestappeared10;
				_root.chestappeared11 = _root['gamesave' + _root.gameslot].data.chestappeared11;
				_root.chestappeared12 = _root['gamesave' + _root.gameslot].data.chestappeared12;
				_root.chestappeared13 = _root['gamesave' + _root.gameslot].data.chestappeared13;
				_root.chestappearing14 = _root['gamesave' + _root.gameslot].data.chestappearing14;
				_root.chestappeared14 = _root['gamesave' + _root.gameslot].data.chestappeared14;
				_root.chestappeared17 = _root['gamesave' + _root.gameslot].data.chestappeared17;
				_root.chestappeared18 = _root['gamesave' + _root.gameslot].data.chestappeared18;
				_root.chestappeared19 = _root['gamesave' + _root.gameslot].data.chestappeared19;
				_root.chestappeared20 = _root['gamesave' + _root.gameslot].data.chestappeared20;
				_root.chestappeared21 = _root['gamesave' + _root.gameslot].data.chestappeared21;
				_root.chestappeared22 = _root['gamesave' + _root.gameslot].data.chestappeared22;
				_root.chestappeared23 = _root['gamesave' + _root.gameslot].data.chestappeared23;
				_root.chestappeared24 = _root['gamesave' + _root.gameslot].data.chestappeared24;
				_root.chestappeared25 = _root['gamesave' + _root.gameslot].data.chestappeared25;
				_root.chestappeared26 = _root['gamesave' + _root.gameslot].data.chestappeared26;
				_root.chestappeared27 = _root['gamesave' + _root.gameslot].data.chestappeared27;
				_root.havekey15 = _root['gamesave' + _root.gameslot].data.havekey15;
				_root.havekey16 = _root['gamesave' + _root.gameslot].data.havekey16;
				_root.havekey17 = _root['gamesave' + _root.gameslot].data.havekey17;
				_root.havekey18 = _root['gamesave' + _root.gameslot].data.havekey18;
				_root.havekey19 = _root['gamesave' + _root.gameslot].data.havekey19;
				_root.havekey20 = _root['gamesave' + _root.gameslot].data.havekey20;
				_root.havekey21 = _root['gamesave' + _root.gameslot].data.havekey21;
				_root.havekey22 = _root['gamesave' + _root.gameslot].data.havekey22;
				_root.havekey23 = _root['gamesave' + _root.gameslot].data.havekey23;
				_root.havekey24 = _root['gamesave' + _root.gameslot].data.havekey24;
				_root.havekey25 = _root['gamesave' + _root.gameslot].data.havekey25;
				_root.door28locked = _root['gamesave' + _root.gameslot].data.door28locked;
				_root.door29locked = _root['gamesave' + _root.gameslot].data.door29locked;
				_root.door30locked = _root['gamesave' + _root.gameslot].data.door30locked;
				_root.door31locked = _root['gamesave' + _root.gameslot].data.door31locked;
				_root.door32locked = _root['gamesave' + _root.gameslot].data.door32locked;
				_root.door33locked = _root['gamesave' + _root.gameslot].data.door33locked;
				_root.door34locked = _root['gamesave' + _root.gameslot].data.door34locked;
				_root.door35locked = _root['gamesave' + _root.gameslot].data.door35locked;
				_root.door36locked = _root['gamesave' + _root.gameslot].data.door36locked;
				_root.door37locked = _root['gamesave' + _root.gameslot].data.door37locked;
				_root.door38locked = _root['gamesave' + _root.gameslot].data.door38locked;
				_root.door39locked = _root['gamesave' + _root.gameslot].data.door39locked;
				_root.pub1saved = _root['gamesave' + _root.gameslot].data.pub1saved;
				_root.pub2saved = _root['gamesave' + _root.gameslot].data.pub2saved;
				_root.pub3saved = _root['gamesave' + _root.gameslot].data.pub3saved;
				_root.pub4saved = _root['gamesave' + _root.gameslot].data.pub4saved;
				_root.pub5saved = _root['gamesave' + _root.gameslot].data.pub5saved;
				_root.pub6saved = _root['gamesave' + _root.gameslot].data.pub6saved;
				_root.cagedown = _root['gamesave' + _root.gameslot].data.cagedown;
				_root.switchhit2 = _root['gamesave' + _root.gameslot].data.switchhit2;
				_root.c5opened = _root['gamesave' + _root.gameslot].data.c5opened;
				_root.autosave = _root['gamesave' + _root.gameslot].data.autosave;
				if (_root._currentframe !== _root.room) {
					_root.trans.gotoAndPlay(21);
					_root.warping = true;
					_root.warps = true;
				}
				_root.loadoldgame = false;
			}
			if (!_root.gamestart) {
				_root.warping = true;
				_root.warps = true;
				_root.trans.gotoAndPlay(21);
				_root.gamestart = true;
			}
			if (_root.beginmessage == 1 && !_root.chatting && !_root.warping && !_root.warps) {
				_root.chatting = true;
				_root.cam.textbox.text = 'Our hero is all alone in his small home in Neveah. You can hear the rain and thunder off in the distance. You then hear your grandfather scream for help and it seems to be coming from outside. He must be in trouble!';
				_root.intromessage = true;
				if (_root.sfx) {
					_root.beginmsg.start(0, 1);
				}
			}
			if (_root.beginmessage == 2 && _root.chatting) {
				_root.cam.textbox.text = ' ';
				_root.chatting = false;
				_root.beginmessage = 3;
				_root.intromessage = false;
				if (_root.sfx) {
					_root.stopmsg.start(0, 1);
				}
			}
			if (_root.beginmessage == 3 && !_root.chatting && _root.room == 'neveah1bg' && !_root.warping && !_root.warps) {
				_root.chatting = true;
				_root.cam.textbox.text = 'Press A to read signs, put away your sword or talk to various characters. Pressing A will also advance text while reading dialogue or close the dialogue box. Notice that your icons will light up at the top right of the screen depending on what you can do.';
				_root.intromessage = true;
				if (_root.sfx) {
					_root.beginmsg.start(0, 1);
				}
			}
			if (_root.beginmessage == 4 && _root.chatting) {
				_root.cam.textbox.text = 'Press the S key to take out your weapon or swing your sword. Press S repeatedly to cause combo slashes.';
				if (_root.sfx && !this.played) {
					_root.continuemsg.start(0, 1);
					this.played = true;
				}
			}
			if (_root.beginmessage == 5 && _root.chatting) {
				_root.cam.textbox.text = ' ';
				_root.chatting = false;
				_root.intromessage = false;
				_root.beginmessage = 6;
				this.played = false;
				if (_root.sfx) {
					_root.stopmsg.start(0, 1);
				}
			}
			if (_root.beginmessage == 6 && !_root.chatting && !_root.warping && !_root.warps && _root.enemies <= 2) {
				_root.chatting = true;
				_root.cam.textbox.text = 'Great job! Attacking can easily take out some enemies, but sometimes it is better to be quick on your feet. Press a while running to perform a roll. This is useful for evading attacks.';
				_root.intromessage = true;
				if (_root.sfx) {
					_root.beginmsg.start(0, 1);
				}
			}
			if (_root.beginmessage == 7 && _root.chatting) {
				_root.cam.textbox.text = ' ';
				_root.chatting = false;
				_root.beginmessage = 8;
				_root.intromessage = false;
				if (_root.sfx) {
					_root.stopmsg.start(0, 1);
				}
			}
			if (_root.beginmessage == 8 && !_root.chatting && !_root.warping && !_root.warps && _root.enemies == 0) {
				_root.chatting = true;
				_root.cam.textbox.text = 'Nice work! Press the space bar to open up your menu screen. Now you can move your cursor with the arrow keys. You can then select acquired swords, shields, armor and special items by pressing the A key.';
				_root.intromessage = true;
				if (_root.sfx) {
					_root.beginmsg.start(0, 1);
				}
			}
			if (_root.beginmessage == 9 && _root.chatting) {
				_root.cam.textbox.text = ' ';
				_root.chatting = false;
				_root.beginmessage = 10;
				_root.intromessage = false;
				if (_root.sfx) {
					_root.stopmsg.start(0, 1);
				}
			}
			if (Key.isDown(65) && !_root.advance && _root.chatting && _root.intromessage) {
				_root.advance = true;
				_root.beginmessage += 1;
			}
			if (!Key.isDown(65) && _root.advance) {
				_root.advance = false;
			}
			_root.hero.hero.hero.hero.sword.gotoAndStop(_root.sword);
			_root.hero.hero.hero.hero.shield.gotoAndStop(_root.shield);
			_root.hero.hero.hero.hero.shield2.gotoAndStop(_root.shield);
			_root.hero.hero.hero.hero.leg1.gotoAndStop(_root.armor);
			_root.hero.hero.hero.hero.leg2.gotoAndStop(_root.armor);
			_root.hero.hero.hero.hero.foot1.gotoAndStop(_root.armor);
			_root.hero.hero.hero.hero.foot2.gotoAndStop(_root.armor);
			_root.hero.hero.hero.hero.cloth1.gotoAndStop(_root.armor);
			_root.hero.hero.hero.hero.cloth2.gotoAndStop(_root.armor);
			_root.hero.hero.hero.hero.arm1.gotoAndStop(_root.armor);
			_root.hero.hero.hero.hero.arm2.gotoAndStop(_root.armor);
			_root.hero.hero.hero.hero.torso.gotoAndStop(_root.armor);
			_root.hero.hero.hero.hero.head.helm.gotoAndStop(_root.helmet);
			if (_root.hero._currentframe == 2) {
				_root.hero.hero.hero.hero.hero.sword.gotoAndStop(_root.sword);
				_root.hero.hero.hero.hero.hero.shield.gotoAndStop(_root.shield);
				_root.hero.hero.hero.hero.hero.leg1.gotoAndStop(_root.armor);
				_root.hero.hero.hero.hero.hero.leg2.gotoAndStop(_root.armor);
				_root.hero.hero.hero.hero.hero.foot1.gotoAndStop(_root.armor);
				_root.hero.hero.hero.hero.hero.foot2.gotoAndStop(_root.armor);
				_root.hero.hero.hero.hero.hero.cloth1.gotoAndStop(_root.armor);
				_root.hero.hero.hero.hero.hero.cloth2.gotoAndStop(_root.armor);
				_root.hero.hero.hero.hero.hero.arm1.gotoAndStop(_root.armor);
				_root.hero.hero.hero.hero.hero.arm2.gotoAndStop(_root.armor);
				_root.hero.hero.hero.hero.hero.torso.gotoAndStop(_root.armor);
				_root.hero.hero.hero.hero.hero.head.helm.gotoAndStop(_root.helmet);
				_root.hero.hero.hero.hero.hero.shield2.gotoAndStop(_root.shield);
			}
			if (_root.throwboomerang or _root.throwfire) {
				_root.hero.hero.hero.sword.gotoAndStop(_root.sword);
				_root.hero.hero.hero.shield.gotoAndStop(_root.shield);
				_root.hero.hero.hero.leg1.gotoAndStop(_root.armor);
				_root.hero.hero.hero.leg2.gotoAndStop(_root.armor);
				_root.hero.hero.hero.foot1.gotoAndStop(_root.armor);
				_root.hero.hero.hero.foot2.gotoAndStop(_root.armor);
				_root.hero.hero.hero.cloth1.gotoAndStop(_root.armor);
				_root.hero.hero.hero.cloth2.gotoAndStop(_root.armor);
				_root.hero.hero.hero.arm1.gotoAndStop(_root.armor);
				_root.hero.hero.hero.arm2.gotoAndStop(_root.armor);
				_root.hero.hero.hero.torso.gotoAndStop(_root.armor);
				_root.hero.hero.hero.head.helm.gotoAndStop(_root.helmet);
			}
			if (_root.getItems) {
				_root.hero.hero.sword.gotoAndStop(_root.sword);
				_root.hero.hero.shield.gotoAndStop(_root.shield);
				_root.hero.hero.leg1.gotoAndStop(_root.armor);
				_root.hero.hero.leg2.gotoAndStop(_root.armor);
				_root.hero.hero.foot1.gotoAndStop(_root.armor);
				_root.hero.hero.foot2.gotoAndStop(_root.armor);
				_root.hero.hero.cloth1.gotoAndStop(_root.armor);
				_root.hero.hero.cloth2.gotoAndStop(_root.armor);
				_root.hero.hero.arm1.gotoAndStop(_root.armor);
				_root.hero.hero.arm2.gotoAndStop(_root.armor);
				_root.hero.hero.torso.gotoAndStop(_root.armor);
				_root.hero.hero.head.helm.gotoAndStop(_root.helmet);
				_root.hero.hero.getitem.gotoAndStop(_root.newitem);
			}
			if (_root.carry or _root.pickup) {
				_root.hero.hero.hero.hero.carriedthing.gotoAndStop(_root.pickobject);
				_root.aicon = 6;
			}
			if (_root.ditem == 3) {
				_root.hero.hero.hero.hero.crossbow.gotoAndStop(1);
			}
			if (_root.ditem == 5) {
				_root.hero.hero.hero.hero.crossbow.gotoAndStop(2);
			}
			if (!_root.pause && !_root.chatting && _root.alive && _root.awakened) {
				if (_root.second < 60) {
					_root.second += 4;
				}
				if (_root.second >= 60) {
					_root.second = 0;
					_root.minute += 1;
				}
				if (_root.minute >= 60) {
					_root.minute = 0;
					_root.hour += 1;
				}
				if (_root.hour > 12) {
					_root.hour = 1;
					if (_root.days) {
						_root.days = false;
						_root.rainchance = random(4) + 1;
					} else {
						if (!_root.days) {
							_root.days = true;
							_root.rainchance = random(4) + 1;
						}
					}
				}
			}
			if (_root.pause) {
				if (_root.bombs > 0) {
					_root.menusc.islot1.gotoAndStop(1);
				}
				if (_root.bombs <= 0) {
					_root.menusc.islot1.gotoAndStop(2);
				}
				if (_root.havecrossbow) {
					_root.menusc.islot2.gotoAndStop(1);
				}
				if (!_root.havecrossbow) {
					_root.menusc.islot2.gotoAndStop(2);
				}
				if (_root.haveboomerang) {
					_root.menusc.islot3.gotoAndStop(1);
				}
				if (!_root.haveboomerang) {
					_root.menusc.islot3.gotoAndStop(2);
				}
				if (_root.havehammer) {
					_root.menusc.islot4.gotoAndStop(1);
				}
				if (!_root.havehammer) {
					_root.menusc.islot4.gotoAndStop(2);
				}
				if (_root.blauncher) {
					_root.menusc.islot5.gotoAndStop(1);
				}
				if (!_root.blauncher) {
					_root.menusc.islot5.gotoAndStop(2);
				}
				if (_root.havefirering) {
					_root.menusc.islot6.gotoAndStop(1);
				}
				if (!_root.havefirering) {
					_root.menusc.islot6.gotoAndStop(2);
				}
			}
			if (_root.pause) {
				_root.menusc.potion1.gotoAndStop(_root.pslot1);
				_root.menusc.potion2.gotoAndStop(_root.pslot2);
				_root.menusc.potion3.gotoAndStop(_root.pslot3);
				_root.menusc.potion4.gotoAndStop(_root.pslot4);
				_root.menusc.potion5.gotoAndStop(_root.pslot5);
				_root.menusc.potion6.gotoAndStop(_root.pslot6);
			}
			if (_root.havelantern1) {
				_root.menusc.lantern1._visible = true;
			}
			if (_root.havelantern2) {
				_root.menusc.lantern2._visible = true;
			}
			if (_root.havelantern3) {
				_root.menusc.lantern3._visible = true;
			}
			if (_root.havestone) {
				_root.menusc.stone._visible = true;
			}
			if (!_root.havelantern1) {
				_root.menusc.lantern1._visible = false;
			}
			if (!_root.havelantern2) {
				_root.menusc.lantern2._visible = false;
			}
			if (!_root.havelantern3) {
				_root.menusc.lantern3._visible = false;
			}
			if (!_root.havestone) {
				_root.menusc.stone._visible = false;
			}
			if (_root.newitem == 1 or _root.newitem == 2 or _root.newitem == 3) {
				if (!itemplaced) {
					if (_root.getItems && _root.pslot1 == 4 or _root.addpotion && _root.pslot1 == 4) {
						_root.pslot1 = _root.newitem;
						itemplaced = true;
					} else {
						if (_root.getItems && _root.pslot2 == 4 or _root.addpotion && _root.pslot2 == 4) {
							_root.pslot2 = _root.newitem;
							itemplaced = true;
						} else {
							if (_root.getItems && _root.pslot3 == 4 or _root.addpotion && _root.pslot3 == 4) {
								_root.pslot3 = _root.newitem;
								itemplaced = true;
							} else {
								if (_root.getItems && _root.pslot4 == 4 or _root.addpotion && _root.pslot4 == 4) {
									_root.pslot4 = _root.newitem;
									itemplaced = true;
								} else {
									if (_root.getItems && _root.pslot5 == 4 or _root.addpotion && _root.pslot5 == 4) {
										_root.pslot5 = _root.newitem;
										itemplaced = true;
									} else {
										if (_root.getItems && _root.pslot6 == 4 or _root.addpotion && _root.pslot6 == 4) {
											_root.pslot6 = _root.newitem;
											itemplaced = true;
										}
									}
								}
							}
						}
					}
				}
			}
			if (!_root.chatting && itemplaced) {
				itemplaced = false;
			}
			if (_root.screen == 3) {
				if (_root.haveset2) {
					_root.menusc.armor2.gotoAndStop(1);
				}
				if (!_root.haveset2) {
					_root.menusc.armor2.gotoAndStop(2);
				}
				if (_root.havehelmet2) {
					_root.menusc.helm2.gotoAndStop(1);
				}
				if (!_root.havehelmet2) {
					_root.menusc.helm2.gotoAndStop(2);
				}
				if (_root.havehelmet3) {
					_root.menusc.helm3.gotoAndStop(1);
				}
				if (!_root.havehelmet3) {
					_root.menusc.helm3.gotoAndStop(2);
				}
				if (_root.havehelmet4) {
					_root.menusc.helm4.gotoAndStop(1);
				}
				if (!_root.havehelmet4) {
					_root.menusc.helm4.gotoAndStop(2);
				}
				if (_root.haveset3) {
					_root.menusc.armor3.gotoAndStop(1);
				}
				if (!_root.haveset3) {
					_root.menusc.armor3.gotoAndStop(2);
				}
				if (_root.haveset4) {
					_root.menusc.armor4.gotoAndStop(1);
				}
				if (!_root.haveset4) {
					_root.menusc.armor4.gotoAndStop(2);
				}
				if (_root.havesword2) {
					_root.menusc.s2.gotoAndStop(1);
				}
				if (!_root.havesword2) {
					_root.menusc.s2.gotoAndStop(2);
				}
				if (_root.havesword3) {
					_root.menusc.s3.gotoAndStop(1);
				}
				if (!_root.havesword3) {
					_root.menusc.s3.gotoAndStop(2);
				}
				if (_root.havesword4) {
					_root.menusc.s4.gotoAndStop(1);
				}
				if (!_root.havesword4) {
					_root.menusc.s4.gotoAndStop(2);
				}
				if (_root.haveshield2) {
					_root.menusc.sh2.gotoAndStop(1);
				}
				if (!_root.haveshield2) {
					_root.menusc.sh2.gotoAndStop(2);
				}
				if (_root.haveshield3) {
					_root.menusc.sh3.gotoAndStop(1);
				}
				if (!_root.haveshield3) {
					_root.menusc.sh3.gotoAndStop(2);
				}
			}
			if (_root.menusc._currentframe == 4 or _root.screen == 4) {
				if (_root.havereveriechart) {
					_root.menusc.worldmap.reverie._visible = true;
				}
				if (!_root.havereveriechart) {
					_root.menusc.worldmap.reverie._visible = false;
				}
				if (_root.haveblacksmithchart) {
					_root.menusc.worldmap.blacksmith._visible = true;
				}
				if (!_root.haveblacksmithchart) {
					_root.menusc.worldmap.blacksmith._visible = false;
				}
				if (_root.havelonechart) {
					_root.menusc.worldmap.lone._visible = true;
				}
				if (!_root.havelonechart) {
					_root.menusc.worldmap.lone._visible = false;
				}
				if (_root.havegoblinchart) {
					_root.menusc.worldmap.goblin._visible = true;
				}
				if (!_root.havegoblinchart) {
					_root.menusc.worldmap.goblin._visible = false;
				}
				if (_root.havelostchart) {
					_root.menusc.worldmap.lost._visible = true;
				}
				if (!_root.havelostchart) {
					_root.menusc.worldmap.lost._visible = false;
				}
				if (_root.haveforgottenchart) {
					_root.menusc.worldmap.forgotten._visible = true;
				}
				if (!_root.haveforgottenchart) {
					_root.menusc.worldmap.forgotten._visible = false;
				}
				if (_root.havemystikerchart) {
					_root.menusc.worldmap.mystiker._visible = true;
				}
				if (!_root.havemystikerchart) {
					_root.menusc.worldmap.mystiker._visible = false;
				}
				if (_root.haveabandonedchart) {
					_root.menusc.worldmap.abandoned._visible = true;
				}
				if (!_root.haveabandonedchart) {
					_root.menusc.worldmap.abandoned._visible = false;
				}
				if (_root.havemonstroschart) {
					_root.menusc.worldmap.monstros._visible = true;
				}
				if (!_root.havemonstroschart) {
					_root.menusc.worldmap.monstros._visible = false;
				}
				if (_root.haveelderchart) {
					_root.menusc.worldmap.elder._visible = true;
				}
				if (!_root.haveelderchart) {
					_root.menusc.worldmap.elder._visible = false;
				}
				if (_root.haveeasterianchart) {
					_root.menusc.worldmap.easterian._visible = true;
				}
				if (!_root.haveeasterianchart) {
					_root.menusc.worldmap.easterian._visible = false;
				}
			}
			if (_root.warps) {
				_root.trans._x = _root.cam._x;
				_root.trans._y = _root.cam._y;
			} else {
				if (!_root.warps && _root.trans._x !== -684.9500000000001 && _root.trans._y !== -409.45) {
					_root.trans._x = -684.85;
					_root.trans._x = -408.45;
				}
			}
			if (_root.musicpl) {
				if (_root.neveahmusic && _root.music !== 1 && _root.days && _root.rainchance !== 1) {
					_root.graveyardsound = false;
					_root.reveriemusic = false;
					_root.goblinsound = false;
					_root.genericsound = false;
					_root.intromusic = false;
					_root.shopmusic = false;
					_root.dungeon1 = false;
					_root.dungeon2 = false;
					_root.dungeon3 = false;
					_root.dungeon4 = false;
					_root.boss1 = false;
					_root.boss3 = false;
					_root.boss4 = false;
					_root.music = 1;
				} else {
					if (_root.graveyardsound && _root.music !== 3 && _root.days && _root.rainchance !== 1) {
						_root.neveahmusic = false;
						_root.reveriemusic = false;
						_root.goblinsound = false;
						_root.genericsound = false;
						_root.intromusic = false;
						_root.shopmusic = false;
						_root.dungeon1 = false;
						_root.dungeon2 = false;
						_root.dungeon3 = false;
						_root.dungeon4 = false;
						_root.boss1 = false;
						_root.boss3 = false;
						_root.boss4 = false;
						_root.music = 3;
					} else {
						if (_root.reveriemusic && _root.music !== 6 && _root.days && _root.rainchance !== 1) {
							_root.neveahmusic = false;
							_root.graveyardsound = false;
							_root.goblinsound = false;
							_root.genericsound = false;
							_root.intromusic = false;
							_root.shopmusic = false;
							_root.dungeon1 = false;
							_root.dungeon2 = false;
							_root.dungeon3 = false;
							_root.dungeon4 = false;
							_root.boss1 = false;
							_root.boss3 = false;
							_root.boss4 = false;
							_root.music = 6;
						} else {
							if (_root.goblinsound && _root.music !== 12 && _root.days && _root.rainchance !== 1) {
								_root.neveahmusic = false;
								_root.graveyardsound = false;
								_root.reveriemusic = false;
								_root.genericsound = false;
								_root.intromusic = false;
								_root.shopmusic = false;
								_root.dungeon1 = false;
								_root.dungeon2 = false;
								_root.dungeon3 = false;
								_root.dungeon4 = false;
								_root.boss1 = false;
								_root.boss3 = false;
								_root.boss4 = false;
								_root.music = 12;
							} else {
								if (_root.genericsound && _root.music !== 13 && _root.days && _root.rainchance !== 1) {
									_root.neveahmusic = false;
									_root.graveyardsound = false;
									_root.reveriemusic = false;
									_root.goblinsound = false;
									_root.intromusic = false;
									_root.shopmusic = false;
									_root.dungeon1 = false;
									_root.dungeon2 = false;
									_root.dungeon3 = false;
									_root.dungeon4 = false;
									_root.boss1 = false;
									_root.boss3 = false;
									_root.boss4 = false;
									_root.music = 13;
								} else {
									if (!_root.days && _root.music !== 5 && _root.rainchance !== 1 && _root.walking !== 2) {
										_root.neveahmusic = false;
										_root.graveyardsound = false;
										_root.reveriemusic = false;
										_root.goblinsound = false;
										_root.genericsound = false;
										_root.intromusic = false;
										_root.shopmusic = false;
										_root.dungeon1 = false;
										_root.dungeon2 = false;
										_root.dungeon3 = false;
										_root.dungeon4 = false;
										_root.boss1 = false;
										_root.boss3 = false;
										_root.boss4 = false;
										_root.music = 5;
									} else {
										if (_root.intromusic && _root.music !== 7 && _root.days && _root.rainchance !== 1) {
											_root.neveahmusic = false;
											_root.graveyardsound = false;
											_root.reveriemusic = false;
											_root.goblinsound = false;
											_root.genericsound = false;
											_root.shopmusic = false;
											_root.dungeon1 = false;
											_root.dungeon2 = false;
											_root.dungeon3 = false;
											_root.dungeon4 = false;
											_root.boss1 = false;
											_root.boss3 = false;
											_root.boss4 = false;
											_root.music = 7;
										} else {
											if (_root.rainchance == 1 && _root.music !== 4 && _root.walking !== 2) {
												_root.neveahmusic = false;
												_root.graveyardsound = false;
												_root.reveriemusic = false;
												_root.goblinsound = false;
												_root.genericsound = false;
												_root.intromusic = false;
												_root.shopmusic = false;
												_root.dungeon1 = false;
												_root.dungeon2 = false;
												_root.dungeon3 = false;
												_root.dungeon4 = false;
												_root.boss1 = false;
												_root.boss3 = false;
												_root.boss4 = false;
												_root.music = 4;
											} else {
												if (_root.shopmusic && _root.music !== 2 && _root.walking == 2) {
													_root.neveahmusic = false;
													_root.graveyardsound = false;
													_root.reveriemusic = false;
													_root.goblinsound = false;
													_root.genericsound = false;
													_root.intromusic = false;
													_root.dungeon1 = false;
													_root.dungeon2 = false;
													_root.dungeon3 = false;
													_root.dungeon4 = false;
													_root.boss1 = false;
													_root.boss3 = false;
													_root.boss4 = false;
													_root.music = 2;
												} else {
													if (_root.dungeon1 && _root.music !== 8 && _root.walking == 2) {
														_root.neveahmusic = false;
														_root.graveyardsound = false;
														_root.reveriemusic = false;
														_root.goblinsound = false;
														_root.genericsound = false;
														_root.intromusic = false;
														_root.shopmusic = false;
														_root.dungeon2 = false;
														_root.dungeon3 = false;
														_root.boss1 = false;
														_root.boss3 = false;
														_root.boss4 = false;
														_root.music = 8;
													} else {
														if (_root.boss1 && _root.music !== 9 && _root.walking == 2) {
															_root.neveahmusic = false;
															_root.graveyardsound = false;
															_root.reveriemusic = false;
															_root.goblinsound = false;
															_root.genericsound = false;
															_root.intromusic = false;
															_root.shopmusic = false;
															_root.dungeon1 = false;
															_root.dungeon2 = false;
															_root.dungeon3 = false;
															_root.dungeon4 = false;
															_root.boss3 = false;
															_root.boss4 = false;
															_root.music = 9;
														} else {
															if (_root.boss3 && _root.music !== 15 && _root.walking == 2) {
																_root.neveahmusic = false;
																_root.graveyardsound = false;
																_root.reveriemusic = false;
																_root.goblinsound = false;
																_root.genericsound = false;
																_root.intromusic = false;
																_root.shopmusic = false;
																_root.dungeon1 = false;
																_root.dungeon2 = false;
																_root.dungeon3 = false;
																_root.dungeon4 = false;
																_root.boss1 = false;
																_root.boss4 = false;
																_root.music = 15;
															} else {
																if (_root.boss4 && _root.music !== 16 && _root.walking == 2) {
																	_root.neveahmusic = false;
																	_root.graveyardsound = false;
																	_root.reveriemusic = false;
																	_root.goblinsound = false;
																	_root.genericsound = false;
																	_root.intromusic = false;
																	_root.shopmusic = false;
																	_root.dungeon1 = false;
																	_root.dungeon2 = false;
																	_root.dungeon3 = false;
																	_root.dungeon4 = false;
																	_root.boss1 = false;
																	_root.boss2 = false;
																	_root.boss3 = false;
																	_root.music = 16;
																} else {
																	if (_root.dungeon2 && _root.music !== 10 && _root.walking == 2) {
																		_root.neveahmusic = false;
																		_root.graveyardsound = false;
																		_root.reveriemusic = false;
																		_root.goblinsound = false;
																		_root.genericsound = false;
																		_root.intromusic = false;
																		_root.shopmusic = false;
																		_root.dungeon1 = false;
																		_root.dungeon3 = false;
																		_root.dungeon4 = false;
																		_root.boss1 = false;
																		_root.boss3 = false;
																		_root.boss4 = false;
																		_root.music = 10;
																	} else {
																		if (_root.dungeon3 && _root.music !== 11 && _root.walking == 2) {
																			_root.neveahmusic = false;
																			_root.graveyardsound = false;
																			_root.reveriemusic = false;
																			_root.goblinsound = false;
																			_root.genericsound = false;
																			_root.intromusic = false;
																			_root.shopmusic = false;
																			_root.dungeon1 = false;
																			_root.dungeon2 = false;
																			_root.dungeon3 = false;
																			_root.dungeon4 = false;
																			_root.boss1 = false;
																			_root.boss3 = false;
																			_root.boss4 = false;
																			_root.music = 11;
																		} else {
																			if (_root.dungeon4 && _root.music !== 14 && _root.walking == 2) {
																				_root.neveahmusic = false;
																				_root.graveyardsound = false;
																				_root.reveriemusic = false;
																				_root.goblinsound = false;
																				_root.genericsound = false;
																				_root.intromusic = false;
																				_root.shopmusic = false;
																				_root.dungeon1 = false;
																				_root.dungeon2 = false;
																				_root.dungeon3 = false;
																				_root.boss1 = false;
																				_root.boss3 = false;
																				_root.boss4 = false;
																				_root.music = 14;
																			}
																		}
																	}
																}
															}
														}
													}
												}
											}
										}
									}
								}
							}
						}
					}
				}
				if (_root.music == 1 && !_root.plays && _root.rainchance !== 1 && _root.alive) {
					_root.shop1.stop();
					_root.graveyardmusic.stop();
					_root.nightloop.stop();
					_root.stormloop.stop();
					_root.dungeon1theme.stop();
					_root.dungeon2theme.stop();
					_root.dungeon3theme.stop();
					_root.boss1mus.stop();
					_root.boss3mus.stop();
					_root.gameover.stop();
					_root.generic1.stop();
					_root.finalbossmus2.stop();
					_root.neveah.start(0, 1000000000);
					_root.plays = true;
				}
				if (_root.music == 2 && !_root.plays && _root.alive) {
					_root.neveah.stop();
					_root.graveyardmusic.stop();
					_root.nightloop.stop();
					_root.stormloop.stop();
					_root.dungeon1theme.stop();
					_root.dungeon2theme.stop();
					_root.dungeon3theme.stop();
					_root.boss1mus.stop();
					_root.boss3mus.stop();
					_root.gameover.stop();
					_root.scarymusic.stop();
					_root.generic1.stop();
					_root.finalbossmus2.stop();
					_root.shop1.start(0, 1000000000);
					_root.plays = true;
				}
				if (_root.music == 3 && !_root.plays && _root.rainchance !== 1 && _root.alive) {
					_root.neveah.stop();
					_root.shop1.stop();
					_root.nightloop.stop();
					_root.stormloop.stop();
					_root.dungeon1theme.stop();
					_root.dungeon2theme.stop();
					_root.dungeon3theme.stop();
					_root.boss1mus.stop();
					_root.boss3mus.stop();
					_root.gameover.stop();
					_root.scarymusic.stop();
					_root.generic1.stop();
					_root.finalbossmus2.stop();
					_root.graveyardmusic.start(0, 1000000000);
					_root.plays = true;
				}
				if (_root.music == 5 && !_root.plays && _root.rainchance !== 1 && _root.alive) {
					_root.neveah.stop();
					_root.shop1.stop();
					_root.graveyardmusic.stop();
					_root.stormloop.stop();
					_root.dungeon1theme.stop();
					_root.dungeon2theme.stop();
					_root.dungeon3theme.stop();
					_root.boss1mus.stop();
					_root.boss3mus.stop();
					_root.gameover.stop();
					_root.scarymusic.stop();
					_root.generic1.stop();
					_root.finalbossmus2.stop();
					_root.nightloop.start(0, 1000000000);
					_root.plays = true;
				}
				if (_root.music == 6 && !_root.plays && _root.rainchance !== 1 && _root.alive) {
					_root.neveah.stop();
					_root.shop1.stop();
					_root.graveyardmusic.stop();
					_root.stormloop.stop();
					_root.nightloop.stop();
					_root.dungeon1theme.stop();
					_root.dungeon2theme.stop();
					_root.dungeon3theme.stop();
					_root.boss1mus.stop();
					_root.boss3mus.stop();
					_root.gameover.stop();
					_root.scarymusic.stop();
					_root.generic1.stop();
					_root.finalbossmus2.stop();
					_root.reveriemus.start(0, 1000000000);
					_root.plays = true;
				}
				if (_root.rainchance == 1 && !_root.plays && _root.music == 4 && _root.alive) {
					_root.neveah.stop();
					_root.shop1.stop();
					_root.graveyardmusic.stop();
					_root.nightloop.stop();
					_root.dungeon1theme.stop();
					_root.dungeon2theme.stop();
					_root.dungeon3theme.stop();
					_root.boss1mus.stop();
					_root.boss3mus.stop();
					_root.gameover.stop();
					_root.scarymusic.stop();
					_root.generic1.stop();
					_root.finalbossmus2.stop();
					_root.stormloop.start(0, 1000000000);
					_root.plays = true;
				}
				if (_root.music == 7 && !_root.plays && _root.rainchance !== 1 && _root.alive) {
					_root.neveah.stop();
					_root.shop1.stop();
					_root.graveyardmusic.stop();
					_root.stormloop.stop();
					_root.nightloop.stop();
					_root.reveriemus.stop();
					_root.dungeon1theme.stop();
					_root.dungeon2theme.stop();
					_root.dungeon3theme.stop();
					_root.boss1mus.stop();
					_root.boss3mus.stop();
					_root.gameover.stop();
					_root.scarymusic.stop();
					_root.generic1.stop();
					_root.finalbossmus2.stop();
					_root.intromus.start(0, 1000000000);
					_root.plays = true;
				}
				if (_root.music == 8 && !_root.plays && _root.alive) {
					_root.neveah.stop();
					_root.shop1.stop();
					_root.graveyardmusic.stop();
					_root.stormloop.stop();
					_root.nightloop.stop();
					_root.reveriemus.stop();
					_root.intromus.stop();
					_root.boss1mus.stop();
					_root.boss3mus.stop();
					_root.gameover.stop();
					_root.dungeon2theme.stop();
					_root.dungeon3theme.stop();
					_root.scarymusic.stop();
					_root.generic1.stop();
					_root.finalbossmus2.stop();
					_root.dungeon1theme.start(0, 1000000000);
					_root.plays = true;
				}
				if (_root.music == 9 && !_root.plays && _root.alive) {
					_root.neveah.stop();
					_root.shop1.stop();
					_root.graveyardmusic.stop();
					_root.stormloop.stop();
					_root.nightloop.stop();
					_root.reveriemus.stop();
					_root.intromus.stop();
					_root.dungeon1theme.stop();
					_root.dungeon2theme.stop();
					_root.dungeon3theme.stop();
					_root.gameover.stop();
					_root.scarymusic.stop();
					_root.generic1.stop();
					_root.boss3mus.stop();
					_root.finalbossmus2.stop();
					_root.boss1mus.start(0, 1000000000);
					_root.plays = true;
				}
				if (_root.music == 10 && !_root.plays && _root.alive) {
					_root.neveah.stop();
					_root.shop1.stop();
					_root.graveyardmusic.stop();
					_root.stormloop.stop();
					_root.nightloop.stop();
					_root.reveriemus.stop();
					_root.intromus.stop();
					_root.dungeon1theme.stop();
					_root.dungeon3theme.stop();
					_root.gameover.stop();
					_root.boss1mus.stop();
					_root.boss3mus.stop();
					_root.scarymusic.stop();
					_root.generic1.stop();
					_root.finalbossmus2.stop();
					_root.dungeon2theme.start(0, 1000000000);
					_root.plays = true;
				}
				if (_root.music == 11 && !_root.plays && _root.alive) {
					_root.neveah.stop();
					_root.shop1.stop();
					_root.graveyardmusic.stop();
					_root.stormloop.stop();
					_root.nightloop.stop();
					_root.reveriemus.stop();
					_root.intromus.stop();
					_root.dungeon1theme.stop();
					_root.dungeon2theme.stop();
					_root.gameover.stop();
					_root.boss1mus.stop();
					_root.boss3mus.stop();
					_root.scarymusic.stop();
					_root.generic1.stop();
					_root.finalbossmus2.stop();
					_root.dungeon3theme.start(0, 1000000000);
					_root.plays = true;
				}
				if (_root.music == 12 && !_root.plays && _root.rainchance !== 1 && _root.alive) {
					_root.neveah.stop();
					_root.shop1.stop();
					_root.graveyardmusic.stop();
					_root.stormloop.stop();
					_root.nightloop.stop();
					_root.reveriemus.stop();
					_root.intromus.stop();
					_root.dungeon1theme.stop();
					_root.dungeon2theme.stop();
					_root.gameover.stop();
					_root.boss1mus.stop();
					_root.boss3mus.stop();
					_root.dungeon3theme.stop();
					_root.generic1.stop();
					_root.finalbossmus2.stop();
					_root.scarymusic.start(0, 1000000000);
					_root.plays = true;
				}
				if (_root.music == 13 && !_root.plays && _root.rainchance !== 1 && _root.alive) {
					_root.neveah.stop();
					_root.shop1.stop();
					_root.graveyardmusic.stop();
					_root.stormloop.stop();
					_root.nightloop.stop();
					_root.reveriemus.stop();
					_root.intromus.stop();
					_root.dungeon1theme.stop();
					_root.dungeon2theme.stop();
					_root.gameover.stop();
					_root.boss1mus.stop();
					_root.boss3mus.stop();
					_root.dungeon3theme.stop();
					_root.scarymusic.stop();
					_root.finalbossmus2.stop();
					_root.generic1.start(0, 1000000000);
					_root.plays = true;
				}
				if (_root.music == 14 && !_root.plays && _root.alive) {
					_root.neveah.stop();
					_root.shop1.stop();
					_root.graveyardmusic.stop();
					_root.stormloop.stop();
					_root.nightloop.stop();
					_root.reveriemus.stop();
					_root.intromus.stop();
					_root.dungeon1theme.stop();
					_root.dungeon2theme.stop();
					_root.gameover.stop();
					_root.boss1mus.stop();
					_root.boss3mus.stop();
					_root.dungeon3theme.stop();
					_root.scarymusic.stop();
					_root.generic1.stop();
					_root.finalbossmus2.stop();
					_root.nightmare.start(0, 1000000000);
					_root.plays = true;
				}
				if (_root.music == 15 && !_root.plays && _root.alive) {
					_root.neveah.stop();
					_root.shop1.stop();
					_root.graveyardmusic.stop();
					_root.stormloop.stop();
					_root.nightloop.stop();
					_root.reveriemus.stop();
					_root.intromus.stop();
					_root.dungeon1theme.stop();
					_root.dungeon2theme.stop();
					_root.dungeon3theme.stop();
					_root.gameover.stop();
					_root.scarymusic.stop();
					_root.generic1.stop();
					_root.boss1mus.stop();
					_root.nightmare.stop();
					_root.finalbossmus2.stop();
					_root.boss3mus.start(0, 1000000);
					_root.plays = true;
				}
				if (_root.music == 16 && !_root.plays && _root.alive) {
					_root.neveah.stop();
					_root.shop1.stop();
					_root.graveyardmusic.stop();
					_root.stormloop.stop();
					_root.nightloop.stop();
					_root.reveriemus.stop();
					_root.intromus.stop();
					_root.dungeon1theme.stop();
					_root.dungeon2theme.stop();
					_root.dungeon3theme.stop();
					_root.gameover.stop();
					_root.scarymusic.stop();
					_root.generic1.stop();
					_root.boss1mus.stop();
					_root.nightmare.stop();
					_root.boss3mus.stop();
					_root.finalbossmus2.start(0, 1000000);
					_root.plays = true;
				} else {
					if (_root.gameovermus && !_root.alive && !_root.plays) {
						_root.neveah.stop();
						_root.shop1.stop();
						_root.graveyardmusic.stop();
						_root.stormloop.stop();
						_root.nightloop.stop();
						_root.reveriemus.stop();
						_root.intromus.stop();
						_root.dungeon1theme.stop();
						_root.boss1mus.stop();
						_root.scarymusic.stop();
						_root.generic1.stop();
						_root.boss3mus.stop();
						_root.finalbossmus2.stop();
						_root.gameover.start(0, 1);
						_root.plays = true;
					}
				}
			}
			if (!_root.musicpl) {
				_root.oldtrack = _root.music;
				_root.neveah.stop();
				_root.scarymusic.stop();
				_root.shop1.stop();
				_root.graveyardmusic.stop();
				_root.nightloop.stop();
				_root.stormloop.stop();
				_root.reveriemus.stop();
				_root.intromus.stop();
				_root.dungeon1theme.stop();
				_root.boss1mus.stop();
				_root.generic1.stop();
				_root.boss3mus.stop();
				_root.music = 0;
			}
			if (_root.oldtrack !== _root.music) {
				_root.plays = false;
				_root.oldtrack = _root.music;
			}
			if (_root.warping) {
				_root.warps = true;
				_root.trans.play();
				if (_root.trans._currentframe > 21) {
					if (_root._currentframe !== _root.room) {
						_root.gotoAndStop(_root.room);
						if (_root.room == 'hirohouse1bg' && _root.oldroom == 'neveah') {
							_root.box._x = 519;
							_root.box._y = 911;
							_root.cam._x = 504.9;
							_root.cam._y = 702.1;
						}
						if (_root.room == 'neveah1bg' && _root.oldroom == 'hirohouse1bg') {
							_root.box._x = 1157.3;
							_root.box._y = 1166.2;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'neveah2bg' && _root.oldroom == 'neveah1bg') {
							_root.box._x = 825.4;
							_root.box._y = 83.5;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'neveah3bg' && _root.oldroom == 'neveah2bg') {
							_root.box._x = 823.3;
							_root.box._y = 150;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'hirohouse' && _root.oldroom == 'neveah1') {
							_root.box._x = 519;
							_root.box._y = 911;
							_root.cam._x = 504.9;
							_root.cam._y = 702.1;
						}
						if (_root.room == 'neveah1' && _root.oldroom == 'hirohouse') {
							_root.box._x = 1157.3;
							_root.box._y = 1166.2;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'neveah1' && _root.oldroom == 'neveah2') {
							_root.box._x = 861.4;
							_root.box._y = 1904.9;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 250;
						}
						if (_root.room == 'neveah1' && _root.oldroom == 'neveah4') {
							_root.box._x = 71.75;
							_root.box._y = 1461.05;
							_root.cam._x = _root.box._x + 300;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'neveah2' && _root.oldroom == 'neveah1') {
							_root.box._x = 825.4;
							_root.box._y = 83.5;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'neveah2' && _root.oldroom == 'neveah3') {
							_root.box._x = 863.4;
							_root.box._y = 1890.9;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 200;
						}
						if (_root.room == 'neveah2' && _root.oldroom == 'neveahhealthshop') {
							_root.box._x = 1661.05;
							_root.box._y = 675.35;
							_root.cam._x = _root.box._x - 100;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'neveah2' && _root.oldroom == 'neveahlibrary') {
							_root.box._x = 349.55;
							_root.box._y = 1059.25;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'neveah2' && _root.oldroom == 'neveahhouse1') {
							_root.box._x = 1327.2;
							_root.box._y = 1493.1;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'neveah2' && _root.oldroom == 'neveahhouse2') {
							_root.box._x = 1607.1;
							_root.box._y = 1635.05;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'neveah2' && _root.oldroom == 'neveahshop') {
							_root.box._x = 1111.3;
							_root.box._y = 681.35;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'neveah3' && _root.oldroom == 'neveah2') {
							_root.box._x = 823.3;
							_root.box._y = 150;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'neveah3' && _root.oldroom == 'neveahblacksmith') {
							_root.box._x = 461.5;
							_root.box._y = 991.25;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'neveah3' && _root.oldroom == 'ocean') {
							_root.box._x = 882.55;
							_root.box._y = 1707;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'neveahblacksmith' && _root.oldroom == 'neveah3') {
							_root.box._x = 519;
							_root.box._y = 911;
							_root.cam._x = 504.9;
							_root.cam._y = 702.1;
						}
						if (_root.room == 'neveah4' && _root.oldroom == 'neveah1') {
							_root.box._x = 1911.6;
							_root.box._y = 1457.2;
							_root.cam._x = _root.box._x - 300;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'neveah4' && _root.oldroom == 'neveah5') {
							_root.box._x = 827.35;
							_root.box._y = 100.85;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'neveah5' && _root.oldroom == 'neveah4') {
							_root.box._x = 871.35;
							_root.box._y = 1928.9;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 300;
						}
						if (_root.room == 'neveah5' && _root.oldroom == 'conradsplace') {
							_root.box._x = 1463.15;
							_root.box._y = 885.3;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'room1' && _root.oldroom == 'room0') {
							_root.box._x = 829.5;
							_root.box._y = 100.1;
							_root.cam._x = 829.5;
							_root.cam._y = 292.6;
						}
						if (_root.room == 'room1' && _root.oldroom == 'room2') {
							_root.box._x = 842.9;
							_root.box._y = 1909.2;
							_root.cam._x = 828.8;
							_root.cam._y = 1699.8;
						}
						if (_root.room == 'room1' && _root.oldroom == 'room3') {
							_root.box._x = 1846.6;
							_root.box._y = 793.5;
							_root.cam._x = 1588.5;
							_root.cam._y = 754.1;
						}
						if (_root.room == 'room1' && _root.oldroom == 'fortune') {
							_root.box._x = 1315.5;
							_root.box._y = 726.1;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'room1' && _root.oldroom == 'shop2') {
							_root.box._x = 1677.1;
							_root.box._y = 341.6;
							_root.cam._x = 1594.5;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'room1' && _root.oldroom == 'bombshop') {
							_root.box._x = 331;
							_root.box._y = 791.4;
							_root.cam._x = 440.9;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'room1' && _root.oldroom == 'pub') {
							_root.box._x = 431;
							_root.box._y = 335.5;
							_root.cam._x = 425.6;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'room1' && _root.oldroom == 'hangout') {
							_root.box._x = 1651.1;
							_root.box._y = 1741;
							_root.cam._x = 1594.4;
							_root.cam._y = 1629.8;
						}
						if (_root.room == 'room1' && _root.oldroom == 'smallhome') {
							_root.box._x = 1417.2;
							_root.box._y = 1273.6;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'room1' && _root.oldroom == 'ranhouse1') {
							_root.box._x = 439.6;
							_root.box._y = 1613.1;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'room1' && _root.oldroom == 'ranhouse2') {
							_root.box._x = 437.6;
							_root.box._y = 1271.2;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'room0' && _root.oldroom == 'room1') {
							_root.box._x = 829.5;
							_root.box._y = 1917.4;
							_root.cam._x = 829.5;
							_root.cam._y = 1693.8;
						}
						if (_root.room == 'room0' && _root.oldroom == 'mayors') {
							_root.box._x = 891.4;
							_root.box._y = 1177.2;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'room0' && _root.oldroom == 'postmans') {
							_root.box._x = 1453.2;
							_root.box._y = 1305.1;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'room2' && _root.oldroom == 'room1') {
							_root.box._x = 829.5;
							_root.box._y = 140.1;
							_root.cam._x = 829.5;
							_root.cam._y = 280.3;
						}
						if (_root.room == 'room2' && _root.oldroom == 'shop1') {
							_root.box._x = 1445.2;
							_root.box._y = 520;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'room2' && _root.oldroom == 'ocean') {
							_root.box._x = 1351.15;
							_root.box._y = 1776.95;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 150;
						}
						if (_root.room == 'room3' && _root.oldroom == 'room1') {
							_root.box._x = 63.2;
							_root.box._y = 783.6;
							_root.cam._x = 400;
							_root.cam._y = 812.1;
						}
						if (_root.room == 'room3' && _root.oldroom == 'gravekeepers') {
							_root.box._x = 1473.3;
							_root.box._y = 1661;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'forgotten' && _root.oldroom == 'ocean') {
							_root.box._x = 1355.3;
							_root.box._y = 1434.15;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'forgotten' && _root.oldroom == 'dungeon1-1') {
							_root.box._x = 337.55;
							_root.box._y = 369.5;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 100;
						}
						if (_root.room == 'dungeon1-1' && _root.oldroom == 'forgotten') {
							_root.box._x = 511.5;
							_root.box._y = 907.3;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 200;
						}
						if (_root.room == 'dungeon1-1' && _root.oldroom == 'dungeon1-2') {
							_root.box._x = 903.4;
							_root.box._y = 555.4;
							_root.cam._x = _root.box._x - 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon1-1' && _root.oldroom == 'dungeon1-3') {
							_root.box._x = 102.15;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x + 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon1-1' && _root.oldroom == 'dungeon1-4') {
							_root.box._x = 511.5;
							_root.box._y = 125.6;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'dungeon1-4' && _root.oldroom == 'dungeon1-1') {
							_root.box._x = 511.5;
							_root.box._y = 907.3;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 200;
						}
						if (_root.room == 'dungeon1-4' && _root.oldroom == 'dungeon1-5') {
							_root.box._x = 903.4;
							_root.box._y = 555.4;
							_root.cam._x = _root.box._x - 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon1-4' && _root.oldroom == 'dungeon1-6') {
							_root.box._x = 102.15;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x + 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon1-4' && _root.oldroom == 'dungeon1-7') {
							_root.box._x = 511.5;
							_root.box._y = 125.6;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'dungeon1-6' && _root.oldroom == 'dungeon1-4') {
							_root.box._x = 903.4;
							_root.box._y = 555.4;
							_root.cam._x = _root.box._x - 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon1-6' && _root.oldroom == 'dungeon1-9') {
							_root.box._x = 102.15;
							_root.box._y = 539.4;
							_root.cam._x = _root.box._x + 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon1-7' && _root.oldroom == 'dungeon1-4') {
							_root.box._x = 511.5;
							_root.box._y = 907.3;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 200;
						}
						if (_root.room == 'dungeon1-7' && _root.oldroom == 'dungeon1-8') {
							_root.box._x = 903.4;
							_root.box._y = 555.4;
							_root.cam._x = _root.box._x - 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'elder' && _root.oldroom == 'ocean') {
							_root.box._x = 365.55;
							_root.box._y = 1768.95;
							_root.cam._x = _root.box._x + 100;
							_root.cam._y = _root.box._y - 100;
						}
						if (_root.room == 'elder' && _root.oldroom == 'elderhouse1') {
							_root.box._x = 573.4500000000001;
							_root.box._y = 1261.15;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'elder' && _root.oldroom == 'elderhouse2') {
							_root.box._x = 1611.1;
							_root.box._y = 1395.1;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'elder' && _root.oldroom == 'eldershop') {
							_root.box._x = 265.65;
							_root.box._y = 281.55;
							_root.cam._x = _root.box._x + 200;
							_root.cam._y = _root.box._y + 100;
						}
						if (_root.room == 'elder' && _root.oldroom == 'elderhouse3') {
							_root.box._x = 957.3;
							_root.box._y = 196.1;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'elder' && _root.oldroom == 'elderhouse4') {
							_root.box._x = 1617.05;
							_root.box._y = 341.5;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 100;
						}
						if (_root.room == 'lost' && _root.oldroom == 'ocean') {
							_root.box._x = 363.55;
							_root.box._y = 1607.05;
							_root.cam._x = _root.box._x + 50;
							_root.cam._y = _root.box._y - 50;
						}
						if (_root.room == 'lost' && _root.oldroom == 'dungeon2-1') {
							_root.box._x = 957.35;
							_root.box._y = 331.5;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 50;
						}
						if (_root.room == 'dungeon2-1' && _root.oldroom == 'lost') {
							_root.box._x = 515.5;
							_root.box._y = 913.25;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 120;
						}
						if (_root.room == 'dungeon2-1' && _root.oldroom == 'dungeon2-2') {
							_root.box._x = 513.4;
							_root.box._y = 127.8;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 120;
						}
						if (_root.room == 'dungeon2-2' && _root.oldroom == 'dungeon2-1') {
							_root.box._x = 515.5;
							_root.box._y = 913.25;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 120;
						}
						if (_root.room == 'dungeon2-2' && _root.oldroom == 'dungeon2-3') {
							_root.box._x = 70.40000000000001;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x + 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon2-2' && _root.oldroom == 'dungeon2-5') {
							_root.box._x = 887.35;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x - 150;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon2-2' && _root.oldroom == 'dungeon2-8') {
							_root.box._x = 513.4;
							_root.box._y = 127.8;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 120;
						}
						if (_root.room == 'dungeon2-3' && _root.oldroom == 'dungeon2-2') {
							_root.box._x = 887.35;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x - 150;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon2-3' && _root.oldroom == 'dungeon2-4') {
							_root.box._x = 70.40000000000001;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x + 250;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon2-5' && _root.oldroom == 'dungeon2-2') {
							_root.box._x = 70.40000000000001;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x + 250;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon2-5' && _root.oldroom == 'dungeon2-7') {
							_root.box._x = 513.4;
							_root.box._y = 123.6;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 120;
						}
						if (_root.room == 'dungeon2-5' && _root.oldroom == 'dungeon2-6') {
							_root.box._x = 887.35;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x - 150;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon2-5' && _root.oldroom == 'dungeon2-8') {
							_root.box._x = 513.4;
							_root.box._y = 123.6;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 120;
						}
						if (_root.room == 'dungeon2-8' && _root.oldroom == 'dungeon2-2') {
							_root.box._x = 515.5;
							_root.box._y = 913.25;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 120;
						}
						if (_root.room == 'dungeon2-8' && _root.oldroom == 'dungeon2-9') {
							_root.box._x = 513.4;
							_root.box._y = 123.6;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 120;
						}
						if (_root.room == 'dungeon2-9' && _root.oldroom == 'dungeon2-8') {
							_root.box._x = 515.5;
							_root.box._y = 913.25;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 120;
						}
						if (_root.room == 'dungeon2-9' && _root.oldroom == 'dungeon2-10') {
							_root.box._x = 887.35;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x - 150;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon2-10' && _root.oldroom == 'dungeon2-9') {
							_root.box._x = 70.40000000000001;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x + 250;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon2-10' && _root.oldroom == 'dungeon2-11') {
							_root.box._x = 887.35;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x - 150;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'easterian' && _root.oldroom == 'ocean') {
							_root.box._x = 363.55;
							_root.box._y = 1715;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 100;
						}
						if (_root.room == 'easterian' && _root.oldroom == 'dungeon3-1') {
							_root.box._x = 990.85;
							_root.box._y = 463.45;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon3-1' && _root.oldroom == 'easterian') {
							_root.box._x = 511.5;
							_root.box._y = 907.3;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 200;
						}
						if (_root.room == 'dungeon3-1' && _root.oldroom == 'dungeon3-4') {
							_root.box._x = 70.40000000000001;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x + 250;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon3-1' && _root.oldroom == 'dungeon3-2') {
							_root.box._x = 887.35;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x - 150;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon3-1' && _root.oldroom == 'dungeon3-6') {
							_root.box._x = 513.4;
							_root.box._y = 123.6;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 120;
						}
						if (_root.room == 'dungeon3-2' && _root.oldroom == 'dungeon3-1') {
							_root.box._x = 70.40000000000001;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x + 250;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon3-2' && _root.oldroom == 'dungeon3-3') {
							_root.box._x = 887.35;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x - 150;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon3-4' && _root.oldroom == 'dungeon3-1') {
							_root.box._x = 887.35;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x - 150;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon3-4' && _root.oldroom == 'dungeon3-5') {
							_root.box._x = 70.40000000000001;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x + 250;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon3-6' && _root.oldroom == 'dungeon3-1') {
							_root.box._x = 511.5;
							_root.box._y = 907.3;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 200;
						}
						if (_root.room == 'dungeon3-6' && _root.oldroom == 'dungeon3-7') {
							_root.box._x = 513.4;
							_root.box._y = 123.6;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 120;
						}
						if (_root.room == 'dungeon3-7' && _root.oldroom == 'dungeon3-6') {
							_root.box._x = 511.5;
							_root.box._y = 907.3;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 200;
						}
						if (_root.room == 'dungeon3-7' && _root.oldroom == 'dungeon3-8') {
							_root.box._x = 887.35;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x - 150;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon3-7' && _root.oldroom == 'dungeon3-17') {
							_root.box._x = 70.40000000000001;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x + 250;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon3-8' && _root.oldroom == 'dungeon3-7') {
							_root.box._x = 70.40000000000001;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x + 250;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon3-8' && _root.oldroom == 'dungeon3-9') {
							_root.box._x = 513.4;
							_root.box._y = 123.6;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 120;
						}
						if (_root.room == 'dungeon3-9' && _root.oldroom == 'dungeon3-8') {
							_root.box._x = 511.5;
							_root.box._y = 907.3;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 200;
						}
						if (_root.room == 'dungeon3-9' && _root.oldroom == 'dungeon3-10') {
							_root.box._x = 887.35;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x - 150;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon3-9' && _root.oldroom == 'dungeon3-13') {
							_root.box._x = 70.40000000000001;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x + 250;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon3-10' && _root.oldroom == 'dungeon3-9') {
							_root.box._x = 70.40000000000001;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x + 250;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon3-10' && _root.oldroom == 'dungeon3-11') {
							_root.box._x = 511.5;
							_root.box._y = 907.3;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 200;
						}
						if (_root.room == 'dungeon3-10' && _root.oldroom == 'dungeon3-12') {
							_root.box._x = 513.4;
							_root.box._y = 123.6;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 120;
						}
						if (_root.room == 'dungeon3-11' && _root.oldroom == 'dungeon3-10') {
							_root.box._x = 513.4;
							_root.box._y = 123.6;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 120;
						}
						if (_root.room == 'dungeon3-13' && _root.oldroom == 'dungeon3-9') {
							_root.box._x = 887.35;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x - 150;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon3-13' && _root.oldroom == 'dungeon3-14') {
							_root.box._x = 513.4;
							_root.box._y = 123.6;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 120;
						}
						if (_root.room == 'dungeon3-14' && _root.oldroom == 'dungeon3-13') {
							_root.box._x = 511.5;
							_root.box._y = 907.3;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 200;
						}
						if (_root.room == 'dungeon3-14' && _root.oldroom == 'dungeon3-15') {
							_root.box._x = 70.40000000000001;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x + 250;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon3-17' && _root.oldroom == 'dungeon3-7') {
							_root.box._x = 887.35;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x - 150;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'dungeon3-17' && _root.oldroom == 'dungeon3-18') {
							_root.box._x = 513.4;
							_root.box._y = 123.6;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 120;
						}
						if (_root.room == 'goblin1' && _root.oldroom == 'ocean') {
							_root.box._x = 444.8;
							_root.box._y = 1152.3;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'goblin1' && _root.oldroom == 'goblin2') {
							_root.box._x = 830.6;
							_root.box._y = 189.5;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'goblin2' && _root.oldroom == 'goblin1') {
							_root.box._x = 827.05;
							_root.box._y = 1912.65;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 200;
						}
						if (_root.room == 'goblin2' && _root.oldroom == 'goblin3') {
							_root.box._x = 1848.7;
							_root.box._y = 793.05;
							_root.cam._x = _root.box._x - 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'goblin3' && _root.oldroom == 'goblin2') {
							_root.box._x = 160.5;
							_root.box._y = 799.05;
							_root.cam._x = _root.box._x + 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'goblin3' && _root.oldroom == 'goblin4') {
							_root.box._x = 1847.9;
							_root.box._y = 799.05;
							_root.cam._x = _root.box._x - 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'goblin4' && _root.oldroom == 'goblin3') {
							_root.box._x = 135.3;
							_root.box._y = 783.05;
							_root.cam._x = _root.box._x + 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'goblin4' && _root.oldroom == 'goblin5') {
							_root.box._x = 831;
							_root.box._y = 323.2;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'goblin5' && _root.oldroom == 'goblin4') {
							_root.box._x = 828.3;
							_root.box._y = 1908.65;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 200;
						}
						if (_root.room == 'goblin5' && _root.oldroom == 'goblin6') {
							_root.box._x = 152.55;
							_root.box._y = 795.05;
							_root.cam._x = _root.box._x + 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'goblin6' && _root.oldroom == 'goblin5') {
							_root.box._x = 1853.85;
							_root.box._y = 811.05;
							_root.cam._x = _root.box._x - 240;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'goblin6' && _root.oldroom == 'goblin7') {
							_root.box._x = 830.2000000000001;
							_root.box._y = 1908.65;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 200;
						}
						if (_root.room == 'goblin6' && _root.oldroom == 'goblin8') {
							_root.box._x = 830.15;
							_root.box._y = 73.3;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 220;
						}
						if (_root.room == 'goblin7' && _root.oldroom == 'goblin6') {
							_root.box._x = 827.05;
							_root.box._y = 339.2;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'goblin8' && _root.oldroom == 'goblin6') {
							_root.box._x = 891;
							_root.box._y = 1858.65;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 200;
						}
						if (_root.room == 'goblin8' && _root.oldroom == 'goblin9') {
							_root.box._x = 1871.8;
							_root.box._y = 785.05;
							_root.cam._x = _root.box._x - 230;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'goblin9' && _root.oldroom == 'goblin8') {
							_root.box._x = 117;
							_root.box._y = 763.05;
							_root.cam._x = _root.box._x + 230;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'goblin9' && _root.oldroom == 'goblin10') {
							_root.box._x = 1861.8;
							_root.box._y = 771.1;
							_root.cam._x = _root.box._x - 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'goblin10' && _root.oldroom == 'goblin9') {
							_root.box._x = 135.3;
							_root.box._y = 783.1;
							_root.cam._x = _root.box._x + 220;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'monst' && _root.oldroom == 'ocean') {
							_root.box._x = 904.2000000000001;
							_root.box._y = 1546.8;
							_root.cam._x = _root.box._x + 100;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'monst' && _root.oldroom == 'monst2') {
							_root.box._x = 1857.85;
							_root.box._y = 1442.85;
							_root.cam._x = _root.box._x - 300;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'monst2' && _root.oldroom == 'monst') {
							_root.box._x = 117;
							_root.box._y = 1464.95;
							_root.cam._x = _root.box._x + 300;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'monst2' && _root.oldroom == 'monst3') {
							_root.box._x = 830.3;
							_root.box._y = 95.25;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'monst2' && _root.oldroom == 'monsthouse1') {
							_root.box._x = 418.35;
							_root.box._y = 1005;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'monst2' && _root.oldroom == 'monsthouse2') {
							_root.box._x = 1372;
							_root.box._y = 1124.95;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'monst2' && _root.oldroom == 'monsthouse3') {
							_root.box._x = 1443.95;
							_root.box._y = 525.2000000000001;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'monst2' && _root.oldroom == 'monsthouse4') {
							_root.box._x = 422.35;
							_root.box._y = 273.3;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'monst3' && _root.oldroom == 'monst2') {
							_root.box._x = 825.05;
							_root.box._y = 1886.65;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 250;
						}
						if (_root.room == 'monst3' && _root.oldroom == 'monst4') {
							_root.box._x = 821.05;
							_root.box._y = 71.25;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 250;
						}
						if (_root.room == 'monst4' && _root.oldroom == 'monst3') {
							_root.box._x = 826.2000000000001;
							_root.box._y = 1818.7;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y - 300;
						}
						if (_root.room == 'monst4' && _root.oldroom == 'monst5') {
							_root.box._x = 69.25;
							_root.box._y = 1482.8;
							_root.cam._x = _root.box._x + 400;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'monst5' && _root.oldroom == 'monst4') {
							_root.box._x = 1891.8;
							_root.box._y = 1460.85;
							_root.cam._x = _root.box._x - 300;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'lone' && _root.oldroom == 'lone2') {
							_root.box._x = 886.2000000000001;
							_root.box._y = 749.05;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'lone' && _root.oldroom == 'ocean') {
							_root.box._x = 366.4;
							_root.box._y = 1546.8;
							_root.cam._x = _root.box._x + 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'lone3' && _root.oldroom == 'lone2') {
							_root.box._x = 519;
							_root.box._y = 911;
							_root.cam._x = 504.9;
							_root.cam._y = 702.1;
						}
						if (_root.room == 'lone3' && _root.oldroom == 'lone4') {
							_root.box._x = 514.35;
							_root.box._y = 201.25;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'lone4' && _root.oldroom == 'lone3') {
							_root.box._x = 519;
							_root.box._y = 911;
							_root.cam._x = 504.9;
							_root.cam._y = 702.1;
						}
						if (_root.room == 'lone4' && _root.oldroom == 'lone5') {
							_root.box._x = 870;
							_root.box._y = 555.4;
							_root.cam._x = _root.box._x - 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'lone4' && _root.oldroom == 'lone7') {
							_root.box._x = 110.4;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x + 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'lone4' && _root.oldroom == 'lone9') {
							_root.box._x = 514.35;
							_root.box._y = 201.25;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 150;
						}
						if (_root.room == 'lone5' && _root.oldroom == 'lone4') {
							_root.box._x = 130.4;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x + 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'lone5' && _root.oldroom == 'lone6') {
							_root.box._x = 519;
							_root.box._y = 911;
							_root.cam._x = 504.9;
							_root.cam._y = 702.1;
						}
						if (_root.room == 'lone6' && _root.oldroom == 'lone5') {
							_root.box._x = 514.35;
							_root.box._y = 201.25;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 150;
						}
						if (_root.room == 'lone7' && _root.oldroom == 'lone4') {
							_root.box._x = 860;
							_root.box._y = 555.4;
							_root.cam._x = _root.box._x - 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'lone7' && _root.oldroom == 'lone8') {
							_root.box._x = 514.35;
							_root.box._y = 201.25;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 150;
						}
						if (_root.room == 'lone8' && _root.oldroom == 'lone7') {
							_root.box._x = 519;
							_root.box._y = 911;
							_root.cam._x = 504.9;
							_root.cam._y = 702.1;
						}
						if (_root.room == 'lone9' && _root.oldroom == 'lone4') {
							_root.box._x = 519;
							_root.box._y = 911;
							_root.cam._x = 504.9;
							_root.cam._y = 702.1;
						}
						if (_root.room == 'lone9' && _root.oldroom == 'lone10') {
							_root.box._x = 860;
							_root.box._y = 555.4;
							_root.cam._x = _root.box._x - 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'lone10' && _root.oldroom == 'lone9') {
							_root.box._x = 130.4;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x + 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'blacksmithisle' && _root.oldroom == 'ocean') {
							_root.box._x = 366.4;
							_root.box._y = 1546.8;
							_root.cam._x = _root.box._x + 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'blacksmithisle' && _root.oldroom == 'blacksmithisle2') {
							_root.box._x = 92.45;
							_root.box._y = 545.1;
							_root.cam._x = _root.box._x + 300;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'blacksmithisle' && _root.oldroom == 'blacksmithisle3') {
							_root.box._x = 1004.2;
							_root.box._y = 327.25;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'blacksmithisle2' && _root.oldroom == 'blacksmithisle') {
							_root.box._x = 1905.9;
							_root.box._y = 547.15;
							_root.cam._x = _root.box._x - 300;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'blacksmithisle4' && _root.oldroom == 'blacksmithisle5') {
							_root.box._x = 514.35;
							_root.box._y = 201.25;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 150;
						}
						if (_root.room == 'blacksmithisle5' && _root.oldroom == 'blacksmithisle4') {
							_root.box._x = 519;
							_root.box._y = 911;
							_root.cam._x = 504.9;
							_root.cam._y = 702.1;
						}
						if (_root.room == 'abandoned' && _root.oldroom == 'ocean') {
							_root.box._x = 366.4;
							_root.box._y = 1546.8;
							_root.cam._x = _root.box._x + 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'mystiker' && _root.oldroom == 'ocean') {
							_root.box._x = 366.4;
							_root.box._y = 1546.8;
							_root.cam._x = _root.box._x + 150;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'mystiker' && _root.oldroom == 'mystiker2') {
							_root.box._x = 104.65;
							_root.box._y = 547.15;
							_root.cam._x = _root.box._x + 250;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'mystiker' && _root.oldroom == 'mystiker4') {
							_root.box._x = 1909.25;
							_root.box._y = 547.15;
							_root.cam._x = _root.box._x - 300;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'mystiker' && _root.oldroom == 'mystiker6') {
							_root.box._x = 821.05;
							_root.box._y = 100.35;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 250;
						}
						if (_root.room == 'mystiker2' && _root.oldroom == 'mystiker') {
							_root.box._x = 1909.25;
							_root.box._y = 547.15;
							_root.cam._x = _root.box._x - 300;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'mystiker2' && _root.oldroom == 'mystiker3') {
							_root.box._x = 821.05;
							_root.box._y = 95.34999999999999;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 250;
						}
						if (_root.room == 'mystiker4' && _root.oldroom == 'mystiker') {
							_root.box._x = 104.65;
							_root.box._y = 547.15;
							_root.cam._x = _root.box._x + 250;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'mystiker4' && _root.oldroom == 'mystiker5') {
							_root.box._x = 821.05;
							_root.box._y = 95.34999999999999;
							_root.cam._x = _root.box._x;
							_root.cam._y = _root.box._y + 250;
						}
						if (_root.room == 'ndung' && _root.oldroom == 'ndung2') {
							_root.box._x = 130.4;
							_root.box._y = 550.15;
							_root.cam._x = _root.box._x + 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'ndung' && _root.oldroom == 'ndung3') {
							_root.box._x = 519;
							_root.box._y = 209.25;
							_root.cam._x = 519;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'ndung3' && _root.oldroom == 'ndung4') {
							_root.box._x = 519;
							_root.box._y = 209.25;
							_root.cam._x = 519;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'ndung5' && _root.oldroom == 'ndung6') {
							_root.box._x = 519;
							_root.box._y = 209.25;
							_root.cam._x = 519;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'ndung6' && _root.oldroom == 'ndung7') {
							_root.box._x = 104.65;
							_root.box._y = 547.15;
							_root.cam._x = _root.box._x + 250;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'ndung6' && _root.oldroom == 'ndung8') {
							__root.box._x = 519;
							_root.box._y = 209.25;
							_root.cam._x = 519;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'ndung8' && _root.oldroom == 'ndung9') {
							_root.box._x = 860;
							_root.box._y = 555.4;
							_root.cam._x = _root.box._x - 200;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'ndung10' && _root.oldroom == 'ndung11') {
							_root.box._x = 104.65;
							_root.box._y = 547.15;
							_root.cam._x = _root.box._x + 250;
							_root.cam._y = _root.box._y;
						}
						if (_root.room == 'ndung10' && _root.oldroom == 'ndung12') {
							_root.box._x = 519;
							_root.box._y = 209.25;
							_root.cam._x = 519;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'ndung11' && _root.oldroom == 'ndung13') {
							_root.box._x = 519;
							_root.box._y = 209.25;
							_root.cam._x = 519;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'ndung13' && _root.oldroom == 'ndung14') {
							_root.box._x = 519;
							_root.box._y = 209.25;
							_root.cam._x = 519;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'ndung15' && _root.oldroom == 'ndung18') {
							_root.box._x = 519;
							_root.box._y = 209.25;
							_root.cam._x = 519;
							_root.cam._y = _root.box._y + 200;
						}
						if (_root.room == 'ndung16' && _root.oldroom == 'ndung17') {
							_root.box._x = 104.65;
							_root.box._y = 547.15;
							_root.cam._x = _root.box._x + 250;
							_root.cam._y = _root.box._y;
						}
					}
				}
			}
			if (_root.trans._currentframe == 1 && _root.warps) {
				_root.warps = false;
			}
			if (!_root.alive) {
				_root.walking == 0;
			}
			if (_root.walks == true && _root.sfx && _root.walking == 1 && _root.alive) {
				_root.walk = random(5) + 1;
				walksnd();
			}
			if (_root.walks == true && _root.sfx && _root.walking == 2 && _root.alive) {
				_root.walk = random(6) + 1;
				walksnd2();
			}
			if (_root.swings == true && _root.sfx && _root.alive) {
				_root.swingsound = random(3) + 1;
				swingsw();
			}
			if (_root.getItems && !_root.pause && !_root.carry) {
				_root.hero.gotoAndStop(4);
				_root.walks = false;
			}
			if (_root.flamesoundpl && _root.sfx && _root.alive) {
				_root.flamesounds = random(3) + 1;
				flamesound();
			}
			if (_root.flamesoundpl && !_root.sfx or !_root.alive or _root.hurt) {
				_root.flamesoundpl = false;
			}
			if (_root.cfire && _root.sfx && _root.alive) {
				_root.cannonfire.start(0, 1);
				_root.cfire = false;
			}
			if (_root.cfire && !_root.sfx or !_root.alive or _root.hurt) {
				_root.cfire = false;
			}
			if (_root.ditem == 4 && _root.sfx && _root.hammers && _root.alive) {
				_root.hammerhit.start(0, 1);
				_root.hammers = false;
			}
			if (_root.hammers && !_root.sfx or !_root.alive or _root.hurt) {
				_root.hammers = false;
			}
			if (_root.hits && _root.sfx && _root.alive) {
				_root.swordhit = random(5) + 1;
				hitsound();
			}
			if (_root.pickup && _root.hero.hero.hero.hero._currentframe == 5) {
				if (_root.sfx) {
					_root.pickupsound.start(0, 1);
				}
			}
		};
	}
	frame 10 {
		stop();
		_root.enemies = 0;
		_root.room = 'hirohouse1bg';
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.shopmusic = true;
		_root.boss1 = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = false;
		_root.genericsound = false;
		_root.restartpoint = _root.room;
		_root.oldrestart = _root.oldroom;
	}
	movieClip 1320	{
	}
	movieClip 1323	{
	}
	movieClip 1326	{
	}
	movieClip 1329	{
	}
	movieClip 1332	{
	}
	movieClip 1335	{
	}
	movieClip 1338	{
	}
	movieClip 1341	{
	}
	movieClip 1344	{
	}
	movieClip 1347	{
	}
	movieClip 1350	{
	}
	movieClip 1353	{
	}
	movieClip 1355	{
	}
	movieClip 1356	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah1bg';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 1358	{
		frame 1 {
			stop();
		}
	}
	instance box of movieClip 367	{
		onClipEvent (load) {
			_root.RUN = 9;
			_root.alive = true;
			_root.dir = 3;
			_root.roll = false;
			_root.attack = false;
			_root.defend = false;
			_root.rolling = 30;
			_root.hurt = false;
			_root.hurtbounce = 13;
			this._visible = false;
			_root.atk = 0;
			_root.atktimer = 5.5;
			this.i = 0;
		}
		onClipEvent (enterFrame) {
			function canpl() {
				if (Key.isDown(39) && !Key.isDown(37) && !_root.roll) {
					if (!_root.BG2.hitTest(this._x + 20, _y, true)) {
						if (!_root.BG.hitTest(this._x + 20, _y, true)) {
							this._x += _root.RUN;
							_root.aicon = 1;
						}
					}
				} else {
					if (Key.isDown(37) && !Key.isDown(39) && !_root.roll) {
						if (!_root.BG2.hitTest(this._x - 20, this._y, true)) {
							if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
								this._x -= _root.RUN;
								_root.aicon = 1;
							}
						}
					}
				}
				if (Key.isDown(38) && !Key.isDown(40) && !_root.roll) {
					if (!_root.BG2.hitTest(this._x, this._y - 20, true)) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= _root.RUN;
							_root.aicon = 1;
						}
					}
				} else {
					if (Key.isDown(40) && !Key.isDown(38) && !_root.roll) {
						if (!_root.BG2.hitTest(this._x, this._y + 20, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 40, true)) {
								this._y += _root.RUN;
								_root.aicon = 1;
							}
						}
						if (Key.isDown(40) && Key.isDown(39) && Key.isDown(37)) {
							this._y -= _root.RUN;
						}
					}
				}
				if (!Key.isDown(40) && !Key.isDown(38) && !Key.isDown(37) && !Key.isDown(39) && _root.aicon == 1 or _root.aicon == 3 && _root.equipped == 2) {
					_root.aicon = 0;
				}
				if (_root.equipped == 2 && _root.aicon == 0) {
					_root.aicon = 3;
				}
			}
			if (!_root.pause && !_root.getItems && !_root.chatting && !_root.hurt && !_root.pickup && !_root.firing && !_root.throwboomerang && !_root.throwfire && !_root.throws) {
				if (!_root.pause && _root.alive && !_root.attack && !_root.hammerattack) {
					canpl();
				}
			}
			if (Key.isDown(65) && !_root.roll && !_root.pause && !_root.getItems && !_root.hurt && !_root.block && !_root.attack && _root.alive && !_root.defend && !_root.carry && !_root.chatting && !_root.firing && !_root.throwboomerang && !_root.throwfire && !_root.throws) {
				if (Key.isDown(38)) {
					_root.roll = true;
				}
				if (Key.isDown(39)) {
					_root.roll = true;
				}
				if (Key.isDown(40)) {
					_root.roll = true;
				}
				if (Key.isDown(37)) {
					_root.roll = true;
				}
				if (_root.sfx && _root.roll) {
					_root.rolls.start(0, 1);
				}
			}
			if (_root.roll && _root.rolling > 0 && !_root.pause && !_root.getItems && !_root.hurt && !_root.attack) {
				_root.rolling -= 2;
				if (_root.dir == 1) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						if (!_root.BG2.hitTest(this._x, this._y - 20, true)) {
							this._y -= _root.rolling;
						}
					}
				}
				if (_root.dir == 2) {
					if (!_root.BG2.hitTest(this._x + 20, _y, true)) {
						if (!_root.BG.hitTest(this._x + 20, _y, true)) {
							this._x += _root.rolling;
						}
					}
				}
				if (_root.dir == 3) {
					if (!_root.BG2.hitTest(this._x, _y + 20, true)) {
						if (!_root.BG.hitTest(this._x, _y + 20, true)) {
							this._y += _root.rolling;
						}
					}
				}
				if (_root.dir == 4) {
					if (!_root.BG2.hitTest(this._x - 20, _y, true)) {
						if (!_root.BG.hitTest(this._x - 20, _y, true)) {
							this._x -= _root.rolling;
						}
					}
				}
				if (_root.roll && _root.rolling <= 0) {
					_root.roll = false;
				}
				if (!_root.roll or _root.hurt) {
					_root.rolling = 30;
				}
			}
			if (!_root.pause && !_root.getItems && !_root.chatting && !_root.roll && !_root.hurt && !_root.block && Key.isDown(83) && _root.equipped == 1 && !Key.isDown(65) && !_root.carry && !_root.firing && !_root.throwboomerang && !_root.hammerattack && _root.alive && !_root.throwfire && !_root.firing && !_root.pickup && !_root.defend) {
				this.slet = true;
				_root.sicon = 1;
				_root.equipped = 2;
				if (_root.sfx) {
					_root.swordout.start(0, 1);
				}
			}
			if (!_root.pause && !_root.attack && !_root.getItems && !_root.chatting && !_root.roll && !_root.hurt && !_root.block && !this.slet && Key.isDown(65) && _root.equipped == 2 && !_root.hammerattack && _root.alive && !_root.throwfire && !_root.firing && !_root.defend) {
				_root.sicon = 0;
				_root.dicon = 0;
				_root.equipped = 1;
				if (_root.sfx) {
					_root.swordin.start(0, 1);
				}
			}
			if (_root.hurt && _root.hurtbounce > 0 && !_root.pause && !_root.getItems or _root.block && _root.hurtbounce > 0 && !_root.pause && !_root.getItems) {
				_root.fires = false;
				_root.firing = false;
				_root.rolling = 20;
				_root.roll = false;
				_root.hurtbounce -= 1;
				_root.chatting = false;
				if (_root.dir == 1) {
					if (!_root.BG2.hitTest(this._x, this._y + 20, true)) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += _root.hurtbounce;
						}
					}
				}
				if (_root.dir == 2) {
					if (!_root.BG2.hitTest(this._x - 20, _y, true)) {
						if (!_root.BG.hitTest(this._x - 20, _y, true)) {
							this._x -= _root.hurtbounce;
						}
					}
				}
				if (_root.dir == 3) {
					if (!_root.BG2.hitTest(this._x, _y - 20, true)) {
						if (!_root.BG.hitTest(this._x, _y - 20, true)) {
							this._y -= _root.hurtbounce;
						}
					}
				}
				if (_root.dir == 4) {
					if (!_root.BG2.hitTest(this._x + 20, _y, true)) {
						if (!_root.BG.hitTest(this._x + 20, _y, true)) {
							this._x += _root.hurtbounce;
						}
					}
				}
				if (_root.hurt && _root.hurtbounce <= 0) {
					_root.hurt = false;
				}
				if (_root.block && _root.hurtbounce <= 0) {
					_root.block = false;
				}
				if (!_root.block && _root.hurtbounce == 0) {
					_root.hurtbounce = 13;
				}
				if (!_root.hurt && _root.hurtbounce == 0) {
					_root.hurtbounce = 13;
				}
			}
			if (!_root.attack && !_root.hurt && !_root.roll && !_root.pause && !_root.getItems && !_root.chatting && Key.isDown(83) && _root.equipped == 2 && !this.slet && !_root.defend && _root.alive) {
				_root.swings = true;
				moved = false;
				_root.atktimer = 5;
				++_root.atk;
				_root.attack = true;
				this.slet = true;
				at = 4;
			}
			if (!Key.isDown(83) or _root.defend) {
				this.slet = false;
			}
			if (_root.attack && !_root.pause && !_root.getItems && _root.equipped == 2 && !_root.chatting && _root.alive) {
				_root.atktimer -= 0.5;
			}
			if (_root.atktimer <= 0 or _root.defend or _root.hurt) {
				_root.attack = false;
				_root.atktimer = 5;
			}
			if (!_root.attack && _root.atktimer == 5 && _root.atk !== 0 && at > 0 && _root.alive) {
				at -= 0.5;
			}
			if (at <= 0) {
				_root.atk = 0;
				at = 10;
			}
			if (!moved && _root.attack && !_root.pause && !_root.getItems && _root.equipped == 2 && !_root.chatting && _root.alive) {
				if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
					if (_root.dir == 1 && _root.atk == 1) {
						this._y -= 0;
						moved = true;
					}
					if (_root.dir == 1 && _root.atk == 2) {
						this._y -= 0;
						moved = true;
					}
					if (_root.dir == 1 && _root.atk == 3) {
						this._y -= 0;
						moved = true;
					}
				}
				if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
					if (_root.dir == 2 && _root.atk == 1) {
						this._x += 0;
						moved = true;
					}
					if (_root.dir == 2 && _root.atk == 2) {
						this._x += 0;
						moved = true;
					}
					if (_root.dir == 2 && _root.atk == 3) {
						this._x += 0;
						moved = true;
					}
				}
				if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
					if (_root.dir == 3 && _root.atk == 1) {
						this._y += 0;
						moved = true;
					}
					if (_root.dir == 3 && _root.atk == 2) {
						this._y += 0;
						moved = true;
					}
					if (_root.dir == 3 && _root.atk == 3) {
						this._y += 0;
						moved = true;
					}
				}
				if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
					if (_root.dir == 4 && _root.atk == 1) {
						this._x -= 0;
						moved = true;
					}
					if (_root.dir == 4 && _root.atk == 2) {
						this._x -= 0;
						moved = true;
					}
					if (_root.dir == 4 && _root.atk == 3) {
						this._x -= 0;
						moved = true;
					}
				}
			}
			if (_root.atk > 3) {
				_root.atk = 1;
			}
			if (Key.isDown(68) && !_root.defend && _root.equipped == 2 && !_root.pause && !_root.chatting && _root.alive && !_root.hurt && !_root.attack && !_root.roll && !_root.firing && !_root.throwboomerang) {
				_root.dicon = 0;
				_root.defend = true;
				_root.RUN = 2;
				_root.played1 = false;
			}
			if (!Key.isDown(68) && _root.defend && !_root.firing && !_root.throwboomerang or _root.equipped !== 2 or _root.pause or _root.chatting or !_root.alive or _root.hurt or _root.attack) {
				_root.defend = false;
				_root.RUN = 7;
				_root.played2 = false;
			}
			if (_root.equipped == 2 && _root.dicon !== 1 && !_root.defend) {
				_root.dicon = 1;
			}
			if (_root.sfx && _root.defend && !_root.played2) {
				_root.shieldout.start(0, 1);
				_root.played2 = true;
			}
			if (_root.sfx && !_root.defend && !_root.played1) {
				_root.shieldin.start(0, 1);
				_root.played1 = true;
			}
			if (_root.dicon == 2) {
				if (_root.ditem !== 2 or _root.pause) {
					_root.dicon = 0;
				}
			}
			if (_root.equipped == 1 && !_root.pause && !_root.carry && _root.rolling == 30 && !_root.getItems && _root.ditem !== 0) {
				_root.dicon = 2;
			}
			if (_root.equipped == 1 && !_root.pause && !_root.carry && !_root.roll && !_root.getItems && !_root.chatting && _root.alive) {
				if (_root.ditem == 1 && _root.bombs > 0 && Key.isDown(68)) {
					_root.pickobject = 1;
					_root.carry = true;
					_root.bombs -= 1;
				}
				if (_root.ditem == 2 && _root.arrows > 0 && Key.isDown(68) && !_root.firing && !_root.throwboomerang) {
					_root.firing = true;
				}
				if (_root.ditem == 2 && _root.fires) {
					_root.arrows -= 1;
					arrowfire = _root.arrowdups.duplicateMovieClip('arrowdup_' + _root.ar, _root.getNextHighestDepth());
					arrowfire.fired = true;
					++_root.ar;
					arrowfire._x = this._x;
					arrowfire._y = this._y;
					if (_root.sfx) {
						_root.arrowshoot.start(0, 1);
					}
					_root.fires = false;
				}
				if (_root.ditem == 3 && Key.isDown(68) && !_root.throwboomerang && !_root.boomthrown && !_root.floating) {
					_root.throwboomerang = true;
				}
				if (_root.ditem == 3 && _root.boomthrown && !_root.floating) {
					bm = _root.boomer.duplicateMovieClip('newboom', _root.getNextHighestDepth());
					bm.fired = true;
					bm._x = this._x;
					bm._y = this._y;
					bm.duped = true;
					if (_root.sfx) {
						_root.boomerswish.start(0, 1);
					}
					_root.floating = true;
					_root.boomthrown = false;
				}
				if (_root.ditem == 4 && Key.isDown(68) && !_root.pause && !_root.carry && !_root.roll && !_root.getItems && !_root.hammerattack && _root.alive && !_root.hurt) {
					_root.hammerattack = true;
				}
				if (_root.ditem == 5 && Key.isDown(68) && !_root.pause && !_root.carry && !_root.roll && !_root.getItems && !_root.firing && _root.alive && !_root.hurt && _root.bombs > 0) {
					_root.bombs -= 1;
					_root.cfire = true;
					_root.firing = true;
				}
				if (_root.ditem == 5 && _root.fires) {
					bombel = _root.bombsh.duplicateMovieClip('bombel_' + _root.ar, _root.getNextHighestDepth());
					bombel._x = this._x;
					bombel._y = this._y;
					bombel.thrown = true;
					++_root.ar;
					_root.fires = false;
				}
				if (_root.ditem == 6 && Key.isDown(68) && !_root.pause && !_root.carry && !_root.roll && !_root.getItems && !_root.throwfire && _root.alive && !_root.hurt) {
					_root.throwfire = true;
				}
				if (_root.ditem == 6 && _root.fires) {
					firess = _root.firedupe.duplicateMovieClip('firedup_' + _root.ar, _root.getNextHighestDepth());
					firess.fired = true;
					++_root.ar;
					firess._x = this._x;
					firess._y = this._y;
					_root.walks = false;
					_root.flamesoundpl = true;
					_root.fires = false;
				}
				if (_root.ditem == 7 && Key.isDown(68) && _root.health < _root.maxhealth) {
					_root.health += 13;
					if (_root.sfx) {
						_root.healthup.start();
					}
					if (_root.pslot1 == 1) {
						_root.pslot1 = 4;
						_root.ditem = 0;
					} else {
						if (_root.pslot2 == 1) {
							_root.pslot2 = 4;
							_root.ditem = 0;
						} else {
							if (_root.pslot3 == 1) {
								_root.pslot3 = 4;
								_root.ditem = 0;
							} else {
								if (_root.pslot4 == 1) {
									_root.pslot4 = 4;
									_root.ditem = 0;
								} else {
									if (_root.pslot5 == 1) {
										_root.pslot5 = 4;
										_root.ditem = 0;
									} else {
										if (_root.pslot6 == 1) {
											_root.pslot6 = 4;
											_root.ditem = 0;
										}
									}
								}
							}
						}
					}
				}
				if (_root.ditem == 8 && Key.isDown(68) && _root.health < _root.maxhealth) {
					_root.health += 21;
					if (_root.sfx) {
						_root.healthup.start();
					}
					if (_root.pslot1 == 2) {
						_root.pslot1 = 4;
						_root.ditem = 0;
					} else {
						if (_root.pslot2 == 2) {
							_root.pslot2 = 4;
							_root.ditem = 0;
						} else {
							if (_root.pslot3 == 2) {
								_root.pslot3 = 4;
								_root.ditem = 0;
							} else {
								if (_root.pslot4 == 2) {
									_root.pslot4 = 4;
									_root.ditem = 0;
								} else {
									if (_root.pslot5 == 2) {
										_root.pslot5 = 4;
										_root.ditem = 0;
									} else {
										if (_root.pslot6 == 2) {
											_root.pslot6 = 4;
											_root.ditem = 0;
										}
									}
								}
							}
						}
					}
				}
				if (_root.ditem == 9 && Key.isDown(68) && _root.health < _root.maxhealth) {
					_root.alive = true;
					_root.health += 41;
					if (_root.sfx) {
						_root.healthup.start();
					}
					if (_root.pslot1 == 3) {
						_root.pslot1 = 4;
						_root.ditem = 0;
					} else {
						if (_root.pslot2 == 3) {
							_root.pslot2 = 4;
							_root.ditem = 0;
						} else {
							if (_root.pslot3 == 3) {
								_root.pslot3 = 4;
								_root.ditem = 0;
							} else {
								if (_root.pslot4 == 3) {
									_root.pslot4 = 4;
									_root.ditem = 0;
								} else {
									if (_root.pslot5 == 3) {
										_root.pslot5 = 4;
										_root.ditem = 0;
									} else {
										if (_root.pslot6 == 3) {
											_root.pslot6 = 4;
											_root.ditem = 0;
										}
									}
								}
							}
						}
					}
				}
			}
			if (_root.health <= 1) {
				if (_root.pslot1 == 3) {
					_root.pslot1 = 4;
					_root.alive = true;
					_root.health += 41;
					if (_root.sfx) {
						_root.healthup.start();
					}
				} else {
					if (_root.pslot2 == 3) {
						_root.pslot2 = 4;
						_root.alive = true;
						_root.health += 41;
						if (_root.sfx) {
							_root.healthup.start();
						}
					} else {
						if (_root.pslot3 == 3) {
							_root.pslot3 = 4;
							_root.alive = true;
							_root.health += 41;
							if (_root.sfx) {
								_root.healthup.start();
							}
						} else {
							if (_root.pslot4 == 3) {
								_root.pslot4 = 4;
								_root.alive = true;
								_root.health += 41;
								if (_root.sfx) {
									_root.healthup.start();
								}
							} else {
								if (_root.pslot5 == 3) {
									_root.pslot5 = 4;
									_root.alive = true;
									_root.health += 41;
									if (_root.sfx) {
										_root.healthup.start();
									}
								} else {
									if (_root.pslot6 == 3) {
										_root.pslot6 = 4;
										_root.alive = true;
										_root.health += 41;
										if (_root.sfx) {
											_root.healthup.start();
										}
									}
								}
							}
						}
					}
				}
			}
			if (!_root.pause && !_root.getItems && !_root.chatting && !_root.roll && !_root.hurt && _root.alive && !_root.defend && !_root.pickup && !_root.firing && !_root.throwboomerang && !_root.fires) {
				if (Key.isDown(40) && !Key.isDown(39) && !Key.isDown(37) or Key.isDown(40) && _root.dir == 1) {
					_root.dir = 3;
				}
				if (Key.isDown(38) && !Key.isDown(39) && !Key.isDown(37) or Key.isDown(38) && _root.dir == 3) {
					_root.dir = 1;
				}
				if (Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40) or Key.isDown(39) && _root.dir == 4) {
					_root.dir = 2;
				}
				if (Key.isDown(37) && !Key.isDown(38) && !Key.isDown(40) or Key.isDown(37) && _root.dir == 2) {
					_root.dir = 4;
				}
			}
		}
	}
	instance hero of movieClip 1157	{
		onClipEvent (enterFrame) {
			this._x = _root.box._x;
			this._y = _root.box._y + 20;
			if (!_root.getItems && !_root.pause && !_root.defend && !_root.carry) {
				if (_root.equipped == 1 && this._currentframe !== 1 && _root.ditem !== 2 && _root.ditem !== 4 && _root.ditem !== 5 && !_root.throwfire && !_root.throwboomerang && !_root.firing) {
					_root.swings = false;
					this.gotoAndStop(1);
					if (!_root.pause && !_root.getItems && !_root.chatting && !_root.warping) {
						if (_root.dir == 1 && this.hero._currentframe !== 4) {
							this.hero.gotoAndStop(4);
						}
						if (_root.dir == 2 && this.hero._currentframe !== 3) {
							this.hero.gotoAndStop(3);
						}
						if (_root.dir == 3 && this.hero._currentframe !== 1) {
							this.hero.gotoAndStop(1);
						}
						if (_root.dir == 4 && this.hero._currentframe !== 2) {
							this.hero.gotoAndStop(2);
						}
					}
				}
				if (_root.equipped == 2 && this._currentframe !== 2 && !_root.carry) {
					this.gotoAndStop(2);
				}
			}
			if (_root.equipped == 2) {
				if (!_root.pause && !_root.getItems && !_root.chatting) {
					if (_root.dir == 1 && this.hero._currentframe !== 4) {
						this.hero.gotoAndStop(4);
					}
					if (_root.dir == 2 && this.hero._currentframe !== 3) {
						this.hero.gotoAndStop(3);
					}
					if (_root.dir == 3 && this.hero._currentframe !== 1) {
						this.hero.gotoAndStop(1);
					}
					if (_root.dir == 4 && this.hero._currentframe !== 2) {
						this.hero.gotoAndStop(2);
					}
				}
			}
			if (_root.defend && _root.equipped == 2 && !_root.pause && !_root.chatting && !_root.hurt && !_root.carry && _root.alive) {
				this.gotoAndStop(3);
				if (!_root.getItems && !_root.chatting) {
					if (_root.dir == 1 && this.hero._currentframe !== 4) {
						this.hero.gotoAndStop(4);
					}
					if (_root.dir == 2 && this.hero._currentframe !== 3) {
						this.hero.gotoAndStop(3);
					}
					if (_root.dir == 3 && this.hero._currentframe !== 1) {
						this.hero.gotoAndStop(1);
					}
					if (_root.dir == 4 && this.hero._currentframe !== 2) {
						this.hero.gotoAndStop(2);
					}
				}
			}
			if (_root.carry && !_root.pause && !_root.pickup && !_root.throws && !_root.roll && _root.alive) {
				if (Key.isDown(65) or Key.isDown(83) or _root.hurt) {
					_root.hero.hero.hero.hero.carriedthing.gotoAndStop(_root.pickobject);
					_root.throws = true;
					bombed = _root.bombdupe.duplicateMovieClip('bombnew' + _root.ar, _root.getNextHighestDepth());
					bombed.thrown = true;
					++_root.ar;
					if (_root.sfx) {
						_root.throwsound.start(0, 1);
					}
					if (_root.dir == 1) {
						bombed._x = _root.box._x;
						bombed._y = _root.box._y;
					}
					if (_root.dir == 2) {
						bombed._x = _root.box._x;
						bombed._y = _root.box._y;
					}
					if (_root.dir == 3) {
						bombed._x = _root.box._x;
						bombed._y = _root.box._y;
					}
					if (_root.dir == 4) {
						bombed._x = _root.box._x;
						bombed._y = _root.box._y;
					}
				}
			}
			if (_root.carry && !_root.pause && !_root.hurt && !_root.throws && _root.alive) {
				this.gotoAndStop(5);
				if (!_root.getItems && !_root.chatting) {
					if (_root.dir == 1) {
						this.hero.gotoAndStop(4);
					}
					if (_root.dir == 2) {
						this.hero.gotoAndStop(3);
					}
					if (_root.dir == 3) {
						this.hero.gotoAndStop(1);
					}
					if (_root.dir == 4) {
						this.hero.gotoAndStop(2);
					}
					if (!_root.pickup && !_root.roll && !_root.pause) {
						if (Key.isDown(40) or Key.isDown(38) or Key.isDown(39) or Key.isDown(37)) {
							this.hero.hero.gotoAndStop(3);
						}
					}
				}
			}
			if (_root.ditem == 2 && _root.equipped == 1 && !_root.carry && !_root.pickup && _root.alive && !_root.pause && !_root.throws && !_root.getItems) {
				this.gotoAndStop(6);
				if (!_root.firing && !_root.carry && !_root.pickup && _root.alive && !_root.pause && !_root.throws && !_root.roll && !_root.chatting && !_root.getItems) {
					if (_root.dir == 1) {
						this.hero.gotoAndStop(4);
					}
					if (_root.dir == 2) {
						this.hero.gotoAndStop(3);
					}
					if (_root.dir == 3) {
						this.hero.gotoAndStop(1);
					}
					if (_root.dir == 4) {
						this.hero.gotoAndStop(2);
					}
				}
			}
			if (_root.equipped == 1 && _root.throwboomerang && !_root.carry && !_root.pickup && _root.alive && !_root.hurt && !_root.pause && !_root.throws && !_root.roll && !_root.chatting && !_root.getItems) {
				if (_root.ditem == 3) {
					this.gotoAndStop(7);
					if (_root.dir == 1) {
						this.hero.gotoAndStop(4);
					}
					if (_root.dir == 2) {
						this.hero.gotoAndStop(3);
					}
					if (_root.dir == 3) {
						this.hero.gotoAndStop(1);
					}
					if (_root.dir == 4) {
						this.hero.gotoAndStop(2);
					}
				}
			}
			if (!_root.hammerattack && _root.equipped == 1 && !_root.carry && !_root.pickup && _root.alive && !_root.hurt && !_root.pause && !_root.throws && !_root.roll && !_root.chatting && !_root.getItems) {
				if (_root.ditem == 4) {
					this.gotoAndStop(8);
					if (_root.dir == 1) {
						this.hero.gotoAndStop(4);
					}
					if (_root.dir == 2) {
						this.hero.gotoAndStop(3);
					}
					if (_root.dir == 3) {
						this.hero.gotoAndStop(1);
					}
					if (_root.dir == 4) {
						this.hero.gotoAndStop(2);
					}
				}
			}
			if (_root.ditem == 5 && _root.equipped == 1 && !_root.carry && !_root.pickup && _root.alive && !_root.pause && !_root.throws && !_root.getItems) {
				this.gotoAndStop(6);
				if (!_root.firing && !_root.carry && !_root.pickup && _root.alive && !_root.pause && !_root.throws && !_root.roll && !_root.chatting && !_root.getItems) {
					if (_root.dir == 1) {
						this.hero.gotoAndStop(4);
					}
					if (_root.dir == 2) {
						this.hero.gotoAndStop(3);
					}
					if (_root.dir == 3) {
						this.hero.gotoAndStop(1);
					}
					if (_root.dir == 4) {
						this.hero.gotoAndStop(2);
					}
				}
			}
			if (_root.equipped == 1 && _root.throwfire && !_root.carry && !_root.pickup && _root.alive && !_root.hurt && !_root.pause && !_root.throws && !_root.roll && !_root.chatting && !_root.getItems) {
				if (_root.ditem == 6) {
					this.gotoAndStop(9);
					if (_root.dir == 1) {
						this.hero.gotoAndStop(4);
					}
					if (_root.dir == 2) {
						this.hero.gotoAndStop(3);
					}
					if (_root.dir == 3) {
						this.hero.gotoAndStop(1);
					}
					if (_root.dir == 4) {
						this.hero.gotoAndStop(2);
					}
				}
			}
		}
	}
	movieClip 1359	{
	}
	movieClip 1361	{
	}
	movieClip 1363	{
	}
	movieClip 1366	{
	}
	movieClip 1369	{
	}
	movieClip 1371	{
	}
	movieClip 1375	{
	}
	movieClip 1376	{
		frame 1 {
			stop();
		}
	}
	movieClip 1380	{
	}
	movieClip 1382	{
	}
	
	// unknown tag 88 length 31
	movieClip 1387	{
	}
	movieClip 1390	{
	}
	movieClip 1391	{
		frame 1 {
			stop();
		}
	}
	movieClip 1392	{
		frame 1 {
			stop();
		}
		frame 4 {
			stop();
		}
	}
	movieClip 1393	{
	}
	movieClip 1396	{
		frame 1 {
			onEnterFrame = function () {
				if (bc !== _root.bombs) {
					bc = _root.bombs;
				}
			};
		}
		frame 1 {
			stop();
		}
	}
	movieClip 1399	{
		frame 1 {
			onEnterFrame = function () {
				if (bc !== _root.arrows) {
					bc = _root.arrows;
				}
			};
		}
		frame 1 {
			stop();
		}
	}
	movieClip 1402	{
		frame 1 {
			onEnterFrame = function () {
				if (bc !== _root.bombs) {
					bc = _root.bombs;
				}
			};
		}
		frame 1 {
			stop();
		}
	}
	movieClip 1403	{
		frame 1 {
			stop();
		}
	}
	movieClip 1404	{
		frame 1 {
			stop();
		}
	}
	movieClip 1405	{
		frame 1 {
			stop();
		}
	}
	movieClip 1406	{
	}
	movieClip 1407	{
		frame 1 {
			stop();
		}
		instance of movieClip 1406	{
			onClipEvent (keyDown) {
				if (_root.pause) {
					if (Key.isDown(65) && !this.apush) {
						getURL('http://armorgames.com', '_blank');
						this.apush = false;
					}
					if (!Key.isDown(65) && this.apush) {
						this.apush = false;
					}
				}
			}
		}
	}
	movieClip 1417	{
	}
	movieClip 1420	{
	}
	movieClip 1423	{
	}
	movieClip 1428	{
		frame 1 {
			stop();
		}
	}
	movieClip 1432	{
		frame 1 {
			stop();
		}
	}
	movieClip 1437	{
	}
	movieClip 1438	{
		frame 1 {
			stop();
		}
	}
	movieClip 1442	{
	}
	movieClip 1443	{
		frame 1 {
			stop();
		}
	}
	movieClip 1447	{
	}
	movieClip 1448	{
		frame 1 {
			stop();
		}
	}
	movieClip 1453	{
	}
	movieClip 1454	{
		frame 1 {
			stop();
		}
	}
	movieClip 1458	{
	}
	movieClip 1459	{
		frame 1 {
			stop();
		}
	}
	movieClip 1462	{
	}
	movieClip 1464	{
		frame 1 {
			stop();
		}
		instance of movieClip 1406	{
			onClipEvent (keyDown) {
				if (_root.pause) {
					if (Key.isDown(65) && !this.apush) {
						getURL('http://armorgames.com', '_blank');
						this.apush = false;
					}
					if (!Key.isDown(65) && this.apush) {
						this.apush = false;
					}
				}
			}
		}
	}
	movieClip 1467	{
	}
	movieClip 1470	{
	}
	movieClip 1472	{
		frame 1 {
			stop();
		}
	}
	movieClip 1475	{
	}
	movieClip 1478	{
	}
	movieClip 1482	{
	}
	movieClip 1483	{
		frame 1 {
			stop();
		}
	}
	movieClip 1485	{
		frame 1 {
			stop();
		}
	}
	movieClip 1488	{
		frame 1 {
			stop();
		}
	}
	movieClip 1490	{
	}
	movieClip 1493	{
	}
	movieClip 1494	{
		frame 1 {
			stop();
		}
	}
	movieClip 1497	{
	}
	movieClip 1499	{
	}
	movieClip 1501	{
	}
	movieClip 1503	{
	}
	movieClip 1505	{
	}
	movieClip 1507	{
	}
	movieClip 1509	{
	}
	movieClip 1511	{
	}
	movieClip 1513	{
	}
	movieClip 1515	{
	}
	movieClip 1517	{
	}
	movieClip 1519	{
	}
	movieClip 1521	{
	}
	movieClip 1523	{
	}
	movieClip 1525	{
	}
	movieClip 1526	{
	}
	movieClip 1527	{
		frame 1 {
			stop();
		}
	}
	movieClip 1530	{
	}
	movieClip 1534	{
		frame 1 {
			stop();
		}
	}
	movieClip 1535	{
		frame 1 {
			_root.screen = 1;
			onEnterFrame = function () {
				if (_root.pause) {
					keyc = _root.keys;
					bigkeyc = _root.bigkeys;
					if (_root.currentslot == 1 && itemname !== 'Options Screen') {
						_root.screen = 2;
						itemname = 'Options Screen';
						description = 'Press A to go to the options screen. There you can toggle sounds, music and the quality on or off. You can also save the game or even return to the game menu.';
					}
					if (Key.isDown(65) && _root.currentslot == 1 && !_root.apush) {
						_root.apush = true;
						gotoAndStop(2);
						if (_root.sfx) {
							_root.pageturn2.start();
						}
					}
					if (_root.currentslot == 2 && itemname !== 'Equipment Screen') {
						_root.screen = 3;
						itemname = 'Equipment Screen';
						description = 'Press A to go to the equipment screen. There you can equip your acquired equipment';
					}
					if (_root.currentslot == 3 && _root.bombs <= 0 && itemname !== ' ') {
						itemname = ' ';
						description = ' ';
					}
					if (_root.currentslot == 3 && _root.bombs > 0 && itemname !== 'Bombs') {
						itemname = 'Bombs';
						description = 'Press A to equip bombs. Press D while your sword is put away to take out your bombs, press A to throw them.';
					}
					if (_root.currentslot == 3 && _root.bombs > 0) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 1) {
							_root.ditem = 1;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						} else {
							if (Key.isDown(65) && !_root.apush && _root.ditem == 1) {
								_root.ditem = 0;
								_root.apush = true;
								if (_root.sfx) {
									_root.unequipitem.start();
								}
							}
						}
					}
					if (_root.currentslot == 4 && !_root.havecrossbow && itemname !== ' ') {
						itemname = ' ';
						description = ' ';
					}
					if (_root.currentslot == 4 && _root.havecrossbow && itemname !== 'Crossbow') {
						itemname = 'Crossbow';
						description = 'Press A to equip the crossbow. When the crossbow is equipped and your sword is put away press D to fire your weapon!';
					}
					if (_root.currentslot == 4 && _root.havecrossbow) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 2) {
							_root.ditem = 2;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						} else {
							if (Key.isDown(65) && !_root.apush && _root.ditem == 2) {
								_root.ditem = 0;
								_root.apush = true;
								if (_root.sfx) {
									_root.unequipitem.start();
								}
							}
						}
					}
					if (_root.currentslot == 5 && !_root.haveboomerang && itemname !== ' ') {
						itemname = ' ';
						description = ' ';
					}
					if (_root.currentslot == 5 && _root.haveboomerang && itemname !== 'Boomerang') {
						itemname = 'Boomerang';
						description = 'Press A to equip the boomerang. When the boomerang is equipped and your sword is put away press D to throw it at your enemies and stun them.';
					}
					if (_root.currentslot == 5 && _root.haveboomerang) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 3) {
							_root.ditem = 3;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						} else {
							if (Key.isDown(65) && !_root.apush && _root.ditem == 3) {
								_root.ditem = 0;
								_root.apush = true;
								if (_root.sfx) {
									_root.unequipitem.start();
								}
							}
						}
					}
					if (_root.currentslot == 6 && !_root.havehammer && itemname !== ' ') {
						itemname = ' ';
						description = ' ';
					}
					if (_root.currentslot == 6 && _root.havehammer && itemname !== 'Giant Hammer') {
						itemname = 'Giant Hammer';
						description = 'Press A to equip the Giant Hammer. When the hammer is equipped and your sword is put away press D to swing the hammer.';
					}
					if (_root.currentslot == 6 && _root.havehammer) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 4) {
							_root.ditem = 4;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						} else {
							if (Key.isDown(65) && !_root.apush && _root.ditem == 4) {
								_root.ditem = 0;
								_root.apush = true;
								if (_root.sfx) {
									_root.unequipitem.start();
								}
							}
						}
					}
					if (_root.currentslot == 7 && !_root.blauncher && itemname !== ' ') {
						itemname = ' ';
						description = ' ';
					}
					if (_root.currentslot == 7 && _root.blauncher && itemname !== 'Blauncher') {
						itemname = 'Blauncher';
						description = 'Press A to equip the Blauncher. A spring loaded mechanism that fires bombs by pressing the D key.';
					}
					if (_root.currentslot == 7 && _root.blauncher) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 5) {
							_root.ditem = 5;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						} else {
							if (Key.isDown(65) && !_root.apush && _root.ditem == 5) {
								_root.ditem = 0;
								_root.apush = true;
								if (_root.sfx) {
									_root.unequipitem.start();
								}
							}
						}
					}
					if (_root.currentslot == 8 && !_root.havefirering && itemname !== ' ') {
						itemname = ' ';
						description = ' ';
					}
					if (_root.currentslot == 8 && _root.havefirering && itemname !== 'Flame Ring') {
						itemname = 'Flame Ring';
						description = 'Press A to equip the Flame Ring. Simply press the D key to throw flames in the direction you are facing.';
					}
					if (_root.currentslot == 8 && _root.havefirering) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 6) {
							_root.ditem = 6;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						} else {
							if (Key.isDown(65) && !_root.apush && _root.ditem == 6) {
								_root.ditem = 0;
								_root.apush = true;
								if (_root.sfx) {
									_root.unequipitem.start();
								}
							}
						}
					}
					if (_root.currentslot == 9 && _root.pslot1 == 4 && itemname !== ' ') {
						itemname = ' ';
						description = ' ';
					} else {
						if (_root.currentslot == 9 && _root.pslot1 == 1 && itemname !== 'Small Potion') {
							itemname = 'Small Potion';
							description = 'Equip to the D item slot by pressing the A key. When equipped you can press D to increase your health by 3.';
						} else {
							if (_root.currentslot == 9 && _root.pslot1 == 2 && itemname !== 'Medium Potion') {
								itemname = 'Medium Potion';
								description = 'Equip to the D item slot by pressing the A key. When equipped you can press D to increase your health by 5.';
							} else {
								if (_root.currentslot == 9 && _root.pslot1 == 3 && itemname !== 'Large Potion') {
									itemname = 'Large Potion';
									description = 'Equip to the D item slot by pressing the A key. When equipped you can press D to fully replenish your health. Revives you when you die.';
								}
							}
						}
					}
					if (_root.currentslot == 9 && _root.pslot1 == 1) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 7) {
							_root.ditem = 7;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						}
						if (Key.isDown(65) && !_root.apush && _root.ditem == 7) {
							_root.ditem = 0;
							_root.apush = true;
							if (_root.sfx) {
								_root.unequipitem.start();
							}
						}
					}
					if (_root.currentslot == 9 && _root.pslot1 == 2) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 8) {
							_root.ditem = 8;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						}
						if (Key.isDown(65) && !_root.apush && _root.ditem == 8) {
							_root.ditem = 0;
							_root.apush = true;
							if (_root.sfx) {
								_root.unequipitem.start();
							}
						}
					}
					if (_root.currentslot == 9 && _root.pslot1 == 3) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 9) {
							_root.ditem = 9;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						}
						if (Key.isDown(65) && !_root.apush && _root.ditem == 9) {
							_root.ditem = 0;
							_root.apush = true;
							if (_root.sfx) {
								_root.unequipitem.start();
							}
						}
					}
					if (_root.currentslot == 10 && _root.pslot2 == 4 && itemname !== ' ') {
						itemname = ' ';
						description = ' ';
					} else {
						if (_root.currentslot == 10 && _root.pslot2 == 1 && itemname !== 'Small Potion') {
							itemname = 'Small Potion';
							description = 'Equip to the D item slot by pressing the A key. When equipped you can press D to increase your health by 3.';
						} else {
							if (_root.currentslot == 10 && _root.pslot2 == 2 && itemname !== 'Medium Potion') {
								itemname = 'Medium Potion';
								description = 'Equip to the D item slot by pressing the A key. When equipped you can press D to increase your health by 5.';
							} else {
								if (_root.currentslot == 10 && _root.pslot2 == 3 && itemname !== 'Large Potion') {
									itemname = 'Large Potion';
									description = 'Equip to the D item slot by pressing the A key. When equipped you can press D to fully replenish your health. Revives you when you die.';
								}
							}
						}
					}
					if (_root.currentslot == 10 && _root.pslot2 == 1) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 7) {
							_root.ditem = 7;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						}
						if (Key.isDown(65) && !_root.apush && _root.ditem == 7) {
							_root.ditem = 0;
							_root.apush = true;
							if (_root.sfx) {
								_root.unequipitem.start();
							}
						}
					}
					if (_root.currentslot == 10 && _root.pslot2 == 2) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 8) {
							_root.ditem = 8;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						}
						if (Key.isDown(65) && !_root.apush && _root.ditem == 8) {
							_root.ditem = 0;
							_root.apush = true;
						}
					}
					if (_root.currentslot == 10 && _root.pslot2 == 3) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 9) {
							_root.ditem = 9;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						}
						if (Key.isDown(65) && !_root.apush && _root.ditem == 9) {
							_root.ditem = 0;
							_root.apush = true;
							if (_root.sfx) {
								_root.unequipitem.start();
							}
						}
					}
					if (_root.currentslot == 11 && _root.pslot3 == 4 && itemname !== ' ') {
						itemname = ' ';
						description = ' ';
					} else {
						if (_root.currentslot == 11 && _root.pslot3 == 1 && itemname !== 'Small Potion') {
							itemname = 'Small Potion';
							description = 'Equip to the D item slot by pressing the A key. When equipped you can press D to increase your health by 3.';
						} else {
							if (_root.currentslot == 11 && _root.pslot3 == 2 && itemname !== 'Medium Potion') {
								itemname = 'Medium Potion';
								description = 'Equip to the D item slot by pressing the A key. When equipped you can press D to increase your health by 5.';
							} else {
								if (_root.currentslot == 11 && _root.pslot3 == 3 && itemname !== 'Large Potion') {
									itemname = 'Large Potion';
									description = 'Equip to the D item slot by pressing the A key. When equipped you can press D to fully replenish your health. Revives you when you die.';
								}
							}
						}
					}
					if (_root.currentslot == 11 && _root.pslot3 == 1) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 7) {
							_root.ditem = 7;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						}
						if (Key.isDown(65) && !_root.apush && _root.ditem == 7) {
							_root.ditem = 0;
							_root.apush = true;
							if (_root.sfx) {
								_root.unequipitem.start();
							}
						}
					}
					if (_root.currentslot == 11 && _root.pslot3 == 2) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 8) {
							_root.ditem = 8;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						}
						if (Key.isDown(65) && !_root.apush && _root.ditem == 8) {
							_root.ditem = 0;
							_root.apush = true;
							if (_root.sfx) {
								_root.unequipitem.start();
							}
						}
					}
					if (_root.currentslot == 11 && _root.pslot3 == 3) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 9) {
							_root.ditem = 9;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						}
						if (Key.isDown(65) && !_root.apush && _root.ditem == 9) {
							_root.ditem = 0;
							_root.apush = true;
							if (_root.sfx) {
								_root.unequipitem.start();
							}
						}
					}
					if (_root.currentslot == 12 && _root.pslot4 == 4 && itemname !== ' ') {
						itemname = ' ';
						description = ' ';
					} else {
						if (_root.currentslot == 12 && _root.pslot4 == 1 && itemname !== 'Small Potion') {
							itemname = 'Small Potion';
							description = 'Equip to the D item slot by pressing the A key. When equipped you can press D to increase your health by 3.';
						} else {
							if (_root.currentslot == 12 && _root.pslot4 == 2 && itemname !== 'Medium Potion') {
								itemname = 'Medium Potion';
								description = 'Equip to the D item slot by pressing the A key. When equipped you can press D to increase your health by 5.';
							} else {
								if (_root.currentslot == 12 && _root.pslot4 == 3 && itemname !== 'Large Potion') {
									itemname = 'Large Potion';
									description = 'Equip to the D item slot by pressing the A key. When equipped you can press D to fully replenish your health. Revives you when you die.';
								}
							}
						}
					}
					if (_root.currentslot == 12 && _root.pslot4 == 1) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 7) {
							_root.ditem = 7;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						}
						if (Key.isDown(65) && !_root.apush && _root.ditem == 7) {
							_root.ditem = 0;
							_root.apush = true;
							if (_root.sfx) {
								_root.unequipitem.start();
							}
						}
					}
					if (_root.currentslot == 12 && _root.pslot4 == 2) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 8) {
							_root.ditem = 8;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						}
						if (Key.isDown(65) && !_root.apush && _root.ditem == 8) {
							_root.ditem = 0;
							_root.apush = true;
							if (_root.sfx) {
								_root.unequipitem.start();
							}
						}
					}
					if (_root.currentslot == 12 && _root.pslot4 == 3) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 9) {
							_root.ditem = 9;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						}
						if (Key.isDown(65) && !_root.apush && _root.ditem == 9) {
							_root.ditem = 0;
							_root.apush = true;
							if (_root.sfx) {
								_root.unequipitem.start();
							}
						}
					}
					if (_root.currentslot == 13 && _root.pslot5 == 4 && itemname !== ' ') {
						itemname = ' ';
						description = ' ';
					} else {
						if (_root.currentslot == 13 && _root.pslot5 == 1 && itemname !== 'Small Potion') {
							itemname = 'Small Potion';
							description = 'Equip to the D item slot by pressing the A key. When equipped you can press D to increase your health by 3.';
						} else {
							if (_root.currentslot == 13 && _root.pslot5 == 2 && itemname !== 'Medium Potion') {
								itemname = 'Medium Potion';
								description = 'Equip to the D item slot by pressing the A key. When equipped you can press D to increase your health by 5.';
							} else {
								if (_root.currentslot == 13 && _root.pslot5 == 3 && itemname !== 'Large Potion') {
									itemname = 'Large Potion';
									description = 'Equip to the D item slot by pressing the A key. When equipped you can press D to fully replenish your health. Revives you when you die.';
								}
							}
						}
					}
					if (_root.currentslot == 13 && _root.pslot5 == 1) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 7) {
							_root.ditem = 7;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						}
						if (Key.isDown(65) && !_root.apush && _root.ditem == 7) {
							_root.ditem = 0;
							_root.apush = true;
							if (_root.sfx) {
								_root.unequipitem.start();
							}
						}
					}
					if (_root.currentslot == 13 && _root.pslot5 == 2) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 8) {
							_root.ditem = 8;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						}
						if (Key.isDown(65) && !_root.apush && _root.ditem == 8) {
							_root.ditem = 0;
							_root.apush = true;
							if (_root.sfx) {
								_root.unequipitem.start();
							}
						}
					}
					if (_root.currentslot == 13 && _root.pslot5 == 3) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 9) {
							_root.ditem = 9;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						}
						if (Key.isDown(65) && !_root.apush && _root.ditem == 9) {
							_root.ditem = 0;
							_root.apush = true;
							if (_root.sfx) {
								_root.unequipitem.start();
							}
						}
					}
					if (_root.currentslot == 14 && _root.pslot6 == 4 && itemname !== ' ') {
						itemname = ' ';
						description = ' ';
					} else {
						if (_root.currentslot == 14 && _root.pslot6 == 1 && itemname !== 'Small Potion') {
							itemname = 'Small Potion';
							description = 'Equip to the D item slot by pressing the A key. When equipped you can press D to increase your health by 3.';
						} else {
							if (_root.currentslot == 14 && _root.pslot6 == 2 && itemname !== 'Medium Potion') {
								itemname = 'Medium Potion';
								description = 'Equip to the D item slot by pressing the A key. When equipped you can press D to increase your health by 5.';
							} else {
								if (_root.currentslot == 14 && _root.pslot6 == 3 && itemname !== 'Large Potion') {
									itemname = 'Large Potion';
									description = 'Equip to the D item slot by pressing the A key. When equipped you can press D to fully replenish your health. Revives you when you die.';
								}
							}
						}
					}
					if (_root.currentslot == 14 && _root.pslot6 == 1) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 7) {
							_root.ditem = 7;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						}
						if (Key.isDown(65) && !_root.apush && _root.ditem == 7) {
							_root.ditem = 0;
							_root.apush = true;
							if (_root.sfx) {
								_root.unequipitem.start();
							}
						}
					}
					if (_root.currentslot == 14 && _root.pslot6 == 2) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 8) {
							_root.ditem = 8;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						}
						if (Key.isDown(65) && !_root.apush && _root.ditem == 8) {
							_root.ditem = 0;
							_root.apush = true;
							if (_root.sfx) {
								_root.unequipitem.start();
							}
						}
					}
					if (_root.currentslot == 14 && _root.pslot6 == 3) {
						if (Key.isDown(65) && !_root.apush && _root.ditem !== 9) {
							_root.ditem = 9;
							_root.apush = true;
							if (_root.sfx) {
								_root.equipitem.start();
							}
						}
						if (Key.isDown(65) && !_root.apush && _root.ditem == 9) {
							_root.ditem = 0;
							_root.apush = true;
							if (_root.sfx) {
								_root.unequipitem.start();
							}
						}
					}
					if (Key.isDown(65) && _root.currentslot == 2 && !_root.apush) {
						_root.apush = true;
						gotoAndStop(3);
						if (_root.sfx) {
							_root.pageturn1.start();
						}
					}
					if (!Key.isDown(65) && _root.apush) {
						_root.apush = false;
					}
					if (icons._currentframe !== _root.currentslot) {
						this.icons.gotoAndStop(_root.currentslot);
					}
					if (_root.currentslot > 15) {
						_root.currentslot = 1;
					}
					if (_root.currentslot < 1) {
						_root.currentslot = 15;
					}
					if (Key.isDown(40) && !keypush3) {
						_root.currentslot += 6;
						keypush3 = true;
						if (_root.sfx) {
							_root.menuarrow.start(0, 1);
						}
					}
					if (Key.isDown(38) && !keypush4) {
						_root.currentslot -= 6;
						keypush4 = true;
						if (_root.sfx) {
							_root.menuarrow.start(0, 1);
						}
					}
					if (Key.isDown(37) && !keypush2) {
						--_root.currentslot;
						keypush2 = true;
						if (_root.sfx) {
							_root.menuarrow.start(0, 1);
						}
					}
					if (Key.isDown(39) && !keypush) {
						++_root.currentslot;
						keypush = true;
						if (_root.sfx) {
							_root.menuarrow.start(0, 1);
						}
					}
					if (!Key.isDown(40) && keypush3) {
						keypush3 = false;
					}
					if (!Key.isDown(38) && keypush4) {
						keypush4 = false;
					}
					if (!Key.isDown(39) && keypush) {
						keypush = false;
					}
					if (!Key.isDown(37) && keypush2) {
						keypush2 = false;
					}
				}
			};
		}
		frame 1 {
			stop();
		}
		frame 2 {
			onEnterFrame = function () {
				if (_root.pause) {
					if (Key.isDown(65) && _root.currentslot == 1 && !_root.apush) {
						_root.apush = true;
						gotoAndStop(5);
						if (_root.sfx) {
							_root.pageturn2.start();
						}
					}
					if (Key.isDown(65) && _root.currentslot == 2 && !_root.apush) {
						_root.screen = 1;
						_root.apush = true;
						gotoAndStop(1);
						if (_root.sfx) {
							_root.pageturn1.start();
						}
					}
					if (Key.isDown(65) && _root.currentslot == 3 && !_root.apush) {
						_root.apush = true;
						_root.sfx = true;
						_root.musicpl = true;
					}
					if (Key.isDown(65) && _root.currentslot == 4 && !_root.apush) {
						_root.apush = true;
						_root.sfx = false;
						_root.musicpl = false;
					}
					if (Key.isDown(65) && _root.currentslot == 5 && !_root.apush) {
						_root.apush = true;
						_quality = 'HIGH';
					}
					if (Key.isDown(65) && _root.currentslot == 6 && !_root.apush) {
						_root.apush = true;
						_quality = 'MEDIUM';
					}
					if (Key.isDown(65) && _root.currentslot == 7 && !_root.apush) {
						_root.apush = true;
						_quality = 'LOW';
					}
					if (Key.isDown(65) && _root.currentslot == 8 && !_root.apush) {
						_root.apush = true;
						_root.autosave = true;
					}
					if (Key.isDown(65) && _root.currentslot == 9 && !_root.apush) {
						_root.apush = true;
						_root.autosave = false;
					}
					if (Key.isDown(65) && _root.currentslot == 10 && !_root.apush) {
						_root.savegame = true;
						_root.apush = true;
						if (_root.sfx) {
							_root.getkey.start(0, 1);
						}
					}
					if (Key.isDown(65) && _root.currentslot == 11 && !_root.apush) {
						_root.oldtrack = _root.music;
						_root.pause = false;
						_root.apush = true;
						_root.gameloading = false;
						_root.gotoAndStop('menu');
					}
					if (!Key.isDown(65) && _root.apush) {
						_root.apush = false;
					}
					if (icons._currentframe !== _root.currentslot) {
						this.icons.gotoAndStop(_root.currentslot);
					}
					if (_root.currentslot > 13) {
						_root.currentslot = 1;
					}
					if (_root.currentslot < 1) {
						_root.currentslot = 13;
					}
					if (Key.isDown(40) && !keypush3) {
						_root.currentslot += 1;
						keypush3 = true;
						if (_root.sfx) {
							_root.menuarrow.start(0, 1);
						}
					}
					if (Key.isDown(38) && !keypush4) {
						_root.currentslot -= 1;
						keypush4 = true;
						if (_root.sfx) {
							_root.menuarrow.start(0, 1);
						}
					}
					if (Key.isDown(37) && !keypush2) {
						--_root.currentslot;
						keypush2 = true;
						if (_root.sfx) {
							_root.menuarrow.start(0, 1);
						}
					}
					if (Key.isDown(39) && !keypush) {
						++_root.currentslot;
						keypush = true;
						if (_root.sfx) {
							_root.menuarrow.start(0, 1);
						}
					}
					if (!Key.isDown(40) && keypush3) {
						keypush3 = false;
					}
					if (!Key.isDown(38) && keypush4) {
						keypush4 = false;
					}
					if (!Key.isDown(39) && keypush) {
						keypush = false;
					}
					if (!Key.isDown(37) && keypush2) {
						keypush2 = false;
					}
				}
			};
		}
		instance of movieClip 1438	{
			onClipEvent (enterFrame) {
				if (_quality == 'HIGH' && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (_quality !== 'HIGH' && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1443	{
			onClipEvent (enterFrame) {
				if (_quality == 'MEDIUM' && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (_quality !== 'MEDIUM' && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1448	{
			onClipEvent (enterFrame) {
				if (_quality == 'LOW' && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (_quality !== 'LOW' && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1454	{
			onClipEvent (enterFrame) {
				if (_root.sfx && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.sfx && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1459	{
			onClipEvent (enterFrame) {
				if (_root.sfx && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.sfx && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1454	{
			onClipEvent (enterFrame) {
				if (_root.autosave && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.autosave && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1459	{
			onClipEvent (enterFrame) {
				if (_root.autosave && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.autosave && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		frame 3 {
			onEnterFrame = function () {
				if (_root.pause) {
					if (Key.isDown(65) && _root.currentslot == 1 && !_root.apush) {
						_root.screen = 1;
						_root.apush = true;
						gotoAndStop(1);
						if (_root.sfx) {
							_root.pageturn2.start();
						}
					}
					if (Key.isDown(65) && _root.currentslot == 2 && !_root.apush) {
						_root.screen = 4;
						_root.apush = true;
						gotoAndStop(4);
						if (_root.sfx) {
							_root.pageturn1.start();
						}
					}
					if (_root.currentslot == 1 && itemname !== 'Items Screen') {
						itemname = 'Items Screen';
						description = 'Press A to go to the items screen. There you can equip items to the d key.';
					}
					if (_root.currentslot == 2 && itemname !== 'Map Screen') {
						itemname = 'Map Screen';
						description = 'Press A to go to the map screen. There you can view the locations you can travel to from the dock.';
					}
					if (_root.currentslot == 3 && itemname !== 'Clothing') {
						itemname = 'Clothing';
						description = 'Your regular Neveah village clothing. Press A to Equip.';
					}
					if (Key.isDown(65) && _root.currentslot == 3 && !_root.apush && _root.armor !== 1) {
						_root.apush = true;
						_root.armor = 1;
						if (_root.sfx) {
							_root.equipitem.start(0, 1);
						}
					}
					if (_root.currentslot == 4 && itemname !== ' ' && !_root.haveset2) {
						itemname = ' ';
						description = ' ';
					}
					if (_root.currentslot == 4 && itemname !== 'Bronze Armor' && _root.haveset2) {
						itemname = 'Bronze Armor';
						description = 'Reduces damage from attacks mildly. Press A to equip.';
					}
					if (Key.isDown(65) && _root.currentslot == 4 && !_root.apush && _root.armor !== 2 && _root.haveset2) {
						_root.apush = true;
						_root.armor = 2;
						if (_root.sfx) {
							_root.equipitem.start(0, 1);
						}
					} else {
						if (Key.isDown(65) && _root.currentslot == 4 && !_root.apush && _root.armor == 2 && _root.haveset2) {
							_root.apush = true;
							_root.armor = 1;
							if (_root.sfx) {
								_root.equipitem.start(0, 1);
							}
						}
					}
					if (_root.currentslot == 5 && itemname !== ' ' && !_root.haveset3) {
						itemname = ' ';
						description = ' ';
					}
					if (_root.currentslot == 5 && itemname !== 'Gold Armor' && _root.haveset3) {
						itemname = 'Gold Armor';
						description = 'Reduces damage from attacks. Press A to equip.';
					}
					if (Key.isDown(65) && _root.currentslot == 5 && !_root.apush && _root.armor !== 3 && _root.haveset3) {
						_root.apush = true;
						_root.armor = 3;
						if (_root.sfx) {
							_root.equipitem.start(0, 1);
						}
					} else {
						if (Key.isDown(65) && _root.currentslot == 5 && !_root.apush && _root.armor == 3 && _root.haveset3) {
							_root.apush = true;
							_root.armor = 1;
							if (_root.sfx) {
								_root.equipitem.start(0, 1);
							}
						}
					}
					if (_root.currentslot == 6 && itemname !== ' ' && !_root.haveset4) {
						itemname = ' ';
						description = ' ';
					}
					if (_root.currentslot == 6 && itemname !== 'Nightmare Armor' && _root.haveset4) {
						itemname = 'Nightmare Armor';
						description = 'Reduces damage from attacks greatly. Press A to equip.';
					}
					if (Key.isDown(65) && _root.currentslot == 6 && !_root.apush && _root.armor !== 4 && _root.haveset4) {
						_root.apush = true;
						_root.armor = 4;
						if (_root.sfx) {
							_root.equipitem.start(0, 1);
						}
					} else {
						if (Key.isDown(65) && _root.currentslot == 6 && !_root.apush && _root.armor == 4 && _root.haveset4) {
							_root.apush = true;
							_root.armor = 1;
							if (_root.sfx) {
								_root.equipitem.start(0, 1);
							}
						}
					}
					if (_root.currentslot == 7 && itemname !== ' ' && !_root.havehelmet2) {
						itemname = ' ';
						description = ' ';
					}
					if (_root.currentslot == 7 && itemname !== 'Bronze Helmet' && _root.havehelmet2) {
						itemname = 'Bronze Helmet';
						description = 'Reduces damage from attacks mildly. Press A to equip.';
					}
					if (Key.isDown(65) && _root.currentslot == 7 && !_root.apush && _root.helmet !== 2 && _root.havehelmet2) {
						_root.apush = true;
						_root.helmet = 2;
						if (_root.sfx) {
							_root.equipitem.start(0, 1);
						}
					} else {
						if (Key.isDown(65) && _root.currentslot == 7 && !_root.apush && _root.helmet == 2 && _root.havehelmet2) {
							_root.apush = true;
							_root.helmet = 1;
							if (_root.sfx) {
								_root.equipitem.start(0, 1);
							}
						}
					}
					if (_root.currentslot == 8 && itemname !== ' ' && !_root.havehelmet3) {
						itemname = ' ';
						description = ' ';
					}
					if (_root.currentslot == 8 && itemname !== 'Gold Helmet' && _root.havehelmet3) {
						itemname = 'Gold Helmet';
						description = 'Reduces damage from attacks. Press A to equip.';
					}
					if (Key.isDown(65) && _root.currentslot == 8 && !_root.apush && _root.helmet !== 3 && _root.havehelmet3) {
						_root.apush = true;
						_root.helmet = 3;
						if (_root.sfx) {
							_root.equipitem.start(0, 1);
						}
					} else {
						if (Key.isDown(65) && _root.currentslot == 8 && !_root.apush && _root.helmet == 3 && _root.havehelmet3) {
							_root.apush = true;
							_root.helmet = 1;
							if (_root.sfx) {
								_root.equipitem.start(0, 1);
							}
						}
					}
					if (_root.currentslot == 9 && itemname !== ' ' && !_root.havehelmet4) {
						itemname = ' ';
						description = ' ';
					}
					if (_root.currentslot == 9 && itemname !== 'Nightmare Helmet' && _root.havehelmet4) {
						itemname = 'Nightmare Helmet';
						description = 'Reduces damage from attacks greatly. Press A to equip.';
					}
					if (Key.isDown(65) && _root.currentslot == 9 && !_root.apush && _root.helmet !== 4 && _root.havehelmet4) {
						_root.apush = true;
						_root.helmet = 4;
						if (_root.sfx) {
							_root.equipitem.start(0, 1);
						}
					} else {
						if (Key.isDown(65) && _root.currentslot == 9 && !_root.apush && _root.helmet == 4 && _root.havehelmet4) {
							_root.apush = true;
							_root.helmet = 1;
							if (_root.sfx) {
								_root.equipitem.start(0, 1);
							}
						}
					}
					if (_root.currentslot == 10 && itemname !== ' ') {
						itemname = ' ';
						description = ' ';
					}
					if (_root.currentslot == 10 && itemname !== 'Neveah Sword') {
						itemname = 'Neveah Sword';
						description = 'This is the sword you got the day you began your training. Its attack damage is below average. Press A to equip.';
					}
					if (Key.isDown(65) && _root.currentslot == 10 && !_root.apush && _root.sword !== 1) {
						_root.apush = true;
						_root.sword = 1;
						if (_root.sfx) {
							_root.equipitem.start();
						}
					}
					if (_root.currentslot == 11 && itemname !== 'Goblins Sword' && _root.havesword2) {
						itemname = 'Goblins Sword';
						description = 'You got this sword from the goblin fortess. It is slightly more powerful then your Neveah Sword. Press A to equip.';
					}
					if (Key.isDown(65) && _root.currentslot == 11 && !_root.apush && _root.sword !== 2 && _root.havesword2) {
						_root.apush = true;
						_root.sword = 2;
						if (_root.sfx) {
							_root.equipitem.start();
						}
					}
					if (_root.currentslot == 11 && itemname !== ' ' && !_root.havesword2) {
						itemname = ' ';
						description = ' ';
					}
					if (_root.currentslot == 12 && itemname !== ' ' && !_root.havesword3) {
						itemname = ' ';
						description = ' ';
					}
					if (_root.currentslot == 12 && itemname !== 'Nightmare Sword' && _root.havesword3) {
						itemname = 'Nightmare Sword';
						description = 'This sword was forged by a great blacksmith who was trapped in his own nightmare. It is very powerful and contains magical properties. Press A to equip.';
					}
					if (Key.isDown(65) && _root.currentslot == 12 && !_root.apush && _root.sword !== 3 && _root.havesword3) {
						_root.apush = true;
						_root.sword = 3;
						if (_root.sfx) {
							_root.equipitem.start();
						}
					}
					if (_root.currentslot == 13 && itemname !== ' ' && !_root.havesword4) {
						itemname = ' ';
						description = ' ';
					}
					if (_root.currentslot == 13 && itemname !== 'Mystik Sword' && _root.havesword4) {
						itemname = 'Mystik Sword';
						description = 'This sword was originally thought to only be a legend. Known as the most powerful sword ever created. It was found on Mystiker Island beneath ancient ruins and protected by the most powerful monsters. Only a true hero can wield it. Press A to equip.';
					}
					if (Key.isDown(65) && _root.currentslot == 13 && !_root.apush && _root.sword !== 4 && _root.havesword4) {
						_root.apush = true;
						_root.sword = 4;
						if (_root.sfx) {
							_root.equipitem.start();
						}
					}
					if (_root.currentslot == 14 && itemname !== 'Neveah Shield') {
						itemname = 'Neveah Shield';
						description = 'This is the shield you got the day you began your training. Its blocks basic physical attacks. Press A to equip.';
					}
					if (Key.isDown(65) && _root.currentslot == 14 && !_root.apush && _root.shield !== 1) {
						_root.apush = true;
						_root.shield = 1;
						if (_root.sfx) {
							_root.equipitem.start();
						}
					}
					if (_root.currentslot == 15 && itemname !== ' ' && !_root.haveshield2) {
						itemname = ' ';
						description = ' ';
					}
					if (_root.currentslot == 15 && itemname !== 'Guardians Shield' && _root.haveshield2) {
						itemname = 'Guardians Shield';
						description = 'This shield was found deep in the underbelly of the goblin fortress. This shield has the ability to stop ranged attacks as well as physical attacks. Press A to equip.';
					}
					if (Key.isDown(65) && _root.currentslot == 15 && !_root.apush && _root.shield !== 3 && _root.haveshield2) {
						_root.apush = true;
						_root.shield = 3;
						if (_root.sfx) {
							_root.equipitem.start();
						}
					}
					if (_root.currentslot == 16 && itemname !== ' ' && !_root.haveshield3) {
						itemname = ' ';
						description = ' ';
					}
					if (_root.currentslot == 16 && itemname !== 'Nightmare Shield' && _root.haveshield3) {
						itemname = 'Nightmare Shield';
						description = 'This shield was forged by a wise blacksmith located deep in his own nightmare. This shield has the ability to stop physical attacks, ranged attacks and deflect them. Press A to equip.';
					}
					if (Key.isDown(65) && _root.currentslot == 16 && !_root.apush && _root.shield !== 4 && _root.haveshield3) {
						_root.apush = true;
						_root.shield = 4;
						if (_root.sfx) {
							_root.equipitem.start();
						}
					}
					if (!Key.isDown(65) && _root.apush) {
						_root.apush = false;
					}
					if (icons._currentframe !== _root.currentslot) {
						this.icons.gotoAndStop(_root.currentslot);
					}
					if (_root.currentslot > 16) {
						_root.currentslot = 1;
					}
					if (_root.currentslot < 1) {
						_root.currentslot = 16;
					}
					if (Key.isDown(40) && !keypush3) {
						_root.currentslot += 7;
						keypush3 = true;
						if (_root.sfx) {
							_root.menuarrow.start(0, 1);
						}
					}
					if (Key.isDown(38) && !keypush4) {
						_root.currentslot -= 7;
						keypush4 = true;
						if (_root.sfx) {
							_root.menuarrow.start(0, 1);
						}
					}
					if (Key.isDown(37) && !keypush2) {
						--_root.currentslot;
						keypush2 = true;
						if (_root.sfx) {
							_root.menuarrow.start(0, 1);
						}
					}
					if (Key.isDown(39) && !keypush) {
						++_root.currentslot;
						keypush = true;
						if (_root.sfx) {
							_root.menuarrow.start(0, 1);
						}
					}
					if (!Key.isDown(40) && keypush3) {
						keypush3 = false;
					}
					if (!Key.isDown(38) && keypush4) {
						keypush4 = false;
					}
					if (!Key.isDown(39) && keypush) {
						keypush = false;
					}
					if (!Key.isDown(37) && keypush2) {
						keypush2 = false;
					}
				}
			};
		}
		frame 4 {
			onEnterFrame = function () {
				if (!deciding) {
					icons._visible = true;
					icons2._visible = false;
					if (_root.pause) {
						if (Key.isDown(65) && _root.currentslot == 1 && !_root.apush) {
							_root.screen = 3;
							_root.apush = true;
							gotoAndStop(3);
							if (_root.sfx) {
								_root.pageturn2.start();
							}
						}
						if (Key.isDown(65) && _root.currentslot == 2 && !_root.apush) {
							_root.screen = 5;
							_root.apush = true;
							gotoAndStop(5);
							if (_root.sfx) {
								_root.pageturn1.start();
							}
						}
						if (Key.isDown(65) && _root.currentslot == 3 && !_root.apush) {
							_root.apush = true;
							_root.sfx = true;
							_root.musicpl = true;
						}
						if (Key.isDown(65) && _root.currentslot == 4 && !_root.apush) {
							_root.apush = true;
							_root.sfx = false;
							_root.musicpl = false;
						}
						if (!Key.isDown(65) && _root.apush) {
							_root.apush = false;
						}
						if (icons._currentframe !== _root.currentslot) {
							this.icons.gotoAndStop(_root.currentslot);
						}
						if (_root.currentslot > 2) {
							_root.currentslot = 1;
						}
						if (_root.currentslot < 1) {
							_root.currentslot = 2;
						}
						if (Key.isDown(40) && !keypush3) {
							_root.currentslot += 1;
							keypush3 = true;
							if (_root.sfx) {
								_root.menuarrow.start(0, 1);
							}
						}
						if (Key.isDown(38) && !keypush4) {
							_root.currentslot -= 1;
							keypush4 = true;
							if (_root.sfx) {
								_root.menuarrow.start(0, 1);
							}
						}
						if (Key.isDown(37) && !keypush2) {
							--_root.currentslot;
							keypush2 = true;
							if (_root.sfx) {
								_root.menuarrow.start(0, 1);
							}
						}
						if (Key.isDown(39) && !keypush) {
							++_root.currentslot;
							keypush = true;
							if (_root.sfx) {
								_root.menuarrow.start(0, 1);
							}
						}
						if (!Key.isDown(40) && keypush3) {
							keypush3 = false;
						}
						if (!Key.isDown(38) && keypush4) {
							keypush4 = false;
						}
						if (!Key.isDown(39) && keypush) {
							keypush = false;
						}
						if (!Key.isDown(37) && keypush2) {
							keypush2 = false;
						}
					}
				}
				if (deciding) {
					icons._visible = false;
					icons2._visible = true;
					icons2.gotoAndStop(_root.currentslot);
					if (_root.currentslot > 12) {
						_root.currentslot = 1;
					}
					if (_root.currentslot < 1) {
						_root.currentslot = 12;
					}
					if (!Key.isDown(65) && _root.apush) {
						_root.apush = false;
					}
					if (_root.currentslot == 1 && Key.isDown(65) && _root.room !== 'blacksmithisle' && !_root.apush && _root.haveblacksmithchart) {
						_root.oldroom = _root.room;
						_root.warping = true;
						_root.oldroom = 'ocean';
						_root.room = 'blacksmithisle';
						_root.pause = false;
						_root.menusc._visible = false;
						_root.apush = true;
						_root.menusc.deciding = false;
					}
					if (_root.currentslot == 2 && Key.isDown(65) && _root.room !== 'neveah3' && !_root.apush) {
						_root.oldroom = _root.room;
						_root.warping = true;
						_root.oldroom = 'ocean';
						_root.room = 'neveah3';
						_root.pause = false;
						_root.menusc._visible = false;
						_root.apush = true;
						_root.menusc.deciding = false;
					}
					if (_root.currentslot == 3 && Key.isDown(65) && _root.room !== 'forgotten' && _root.haveforgottenchart && !_root.apush) {
						_root.oldroom = 'ocean';
						_root.warping = true;
						_root.room = 'forgotten';
						_root.pause = false;
						_root.menusc._visible = false;
						_root.apush = true;
						_root.menusc.deciding = false;
					}
					if (_root.currentslot == 4 && Key.isDown(65) && _root.room !== 'room2' && _root.havereveriechart && !_root.apush) {
						_root.oldroom = 'ocean';
						_root.warping = true;
						_root.room = 'room2';
						_root.pause = false;
						_root.menusc._visible = false;
						_root.apush = true;
						_root.menusc.deciding = false;
					}
					if (_root.currentslot == 5 && Key.isDown(65) && _root.room !== 'lone' && _root.havelonechart && !_root.apush) {
						_root.oldroom = 'ocean';
						_root.warping = true;
						_root.room = 'lone';
						_root.pause = false;
						_root.menusc._visible = false;
						_root.apush = true;
						_root.menusc.deciding = false;
					}
					if (_root.currentslot == 6 && Key.isDown(65) && _root.room !== 'goblin' && _root.havegoblinchart && !_root.apush) {
						_root.oldroom = 'ocean';
						_root.warping = true;
						_root.room = 'goblin1';
						_root.pause = false;
						_root.menusc._visible = false;
						_root.apush = true;
						_root.menusc.deciding = false;
					}
					if (_root.currentslot == 7 && Key.isDown(65) && _root.room !== 'mystiker' && _root.havemystikerchart && !_root.apush) {
						_root.oldroom = 'ocean';
						_root.warping = true;
						_root.room = 'mystiker';
						_root.pause = false;
						_root.menusc._visible = false;
						_root.apush = true;
						_root.menusc.deciding = false;
					}
					if (_root.currentslot == 8 && Key.isDown(65) && _root.room !== 'monst' && _root.havemonstroschart && !_root.apush) {
						_root.oldroom = 'ocean';
						_root.warping = true;
						_root.room = 'monst';
						_root.pause = false;
						_root.menusc._visible = false;
						_root.apush = true;
						_root.menusc.deciding = false;
					}
					if (_root.currentslot == 9 && Key.isDown(65) && _root.room !== 'lost' && _root.havelostchart && !_root.apush) {
						_root.oldroom = 'ocean';
						_root.warping = true;
						_root.room = 'lost';
						_root.pause = false;
						_root.menusc._visible = false;
						_root.apush = true;
						_root.menusc.deciding = false;
					}
					if (_root.currentslot == 10 && Key.isDown(65) && _root.room !== 'abandoned' && _root.haveabandonedchart && !_root.apush) {
						_root.oldroom = 'ocean';
						_root.warping = true;
						_root.room = 'abandoned';
						_root.pause = false;
						_root.menusc._visible = false;
						_root.apush = true;
						_root.menusc.deciding = false;
					}
					if (_root.currentslot == 11 && Key.isDown(65) && _root.room !== 'elder' && _root.haveelderchart && !_root.apush) {
						_root.oldroom = 'ocean';
						_root.warping = true;
						_root.room = 'elder';
						_root.pause = false;
						_root.menusc._visible = false;
						_root.apush = true;
						_root.menusc.deciding = false;
					}
					if (_root.currentslot == 12 && Key.isDown(65) && _root.room !== 'easterian' && _root.haveeasterianchart && !_root.apush) {
						_root.oldroom = 'ocean';
						_root.warping = true;
						_root.room = 'easterian';
						_root.pause = false;
						_root.menusc._visible = false;
						_root.apush = true;
						_root.menusc.deciding = false;
					}
					if (Key.isDown(37) && !keypush2) {
						--_root.currentslot;
						keypush2 = true;
						if (_root.sfx) {
							_root.menuarrow.start(0, 1);
						}
					}
					if (Key.isDown(39) && !keypush) {
						++_root.currentslot;
						keypush = true;
						if (_root.sfx) {
							_root.menuarrow.start(0, 1);
						}
					}
					if (Key.isDown(40) && !keypush3) {
						_root.currentslot += 4;
						keypush3 = true;
						if (_root.sfx) {
							_root.menuarrow.start(0, 1);
						}
					}
					if (Key.isDown(38) && !keypush4) {
						_root.currentslot -= 4;
						keypush4 = true;
						if (_root.sfx) {
							_root.menuarrow.start(0, 1);
						}
					}
					if (!Key.isDown(40) && keypush3) {
						keypush3 = false;
					}
					if (!Key.isDown(38) && keypush4) {
						keypush4 = false;
					}
					if (!Key.isDown(39) && keypush) {
						keypush = false;
					}
					if (!Key.isDown(37) && keypush2) {
						keypush2 = false;
					}
				}
			};
		}
		frame 5 {
			onEnterFrame = function () {
				if (_root.pause) {
					if (_root.quest == 0) {
						page = '1/1';
						questname = 'The Beginning';
						description = 'You just found yourself alone in your home alone, and you hear a scream far off in the distance. You dont know who it is, but you know you have got to help! It sounds like its coming from the southern most part of the island.';
					}
					if (_root.quest == 1) {
						page = '1/1';
						questname = 'The Awakening';
						description = 'You just awoke and realized that the encounter with the shadowed figure was just a nightmare, but you cant help but feal wary anyway. What did it all mean? Its best to set this to the side for now. You must make your way to Conrads and continue your training. He gets cranky when your late. Remember, his house is through the forest to the west and north from there.';
					}
					if (_root.quest == 2) {
						page = '1/1';
						questname = 'The Chart';
						description = 'Conrad has just informed you that you will be travelling to Reverie to help the villagers in there time of need. But before your departure you must go to the blacksmiths and get the Reverie Map Chart.';
					}
					if (_root.quest == 3) {
						page = '1/1';
						questname = 'The Departure';
						description = 'You just got your Reverie Map Chart so now you can now make your way to Reverie Island and begin your journey!';
					}
					if (_root.quest == 4) {
						page = '1/1';
						questname = 'The Arrival';
						description = 'Looks like you finally made it to Reverie Island. It would probably be a good idea to ask around town and figure out what is the cause of all the Villagers going into these coma\'s. You should check out the pub and see what the town gossip is.';
					}
					if (_root.quest == 5) {
						page = '1/1';
						questname = 'The Discovery';
						description = 'One of the villagers have informed you that the island of Reverie has not fallen victim to a illness, but a curse. He believes that it was cast upon them by a shadow demon. He also has urged you to speak with the mayor. Its odd, the demon he described sounded like the one you saw in your own nightmare.';
					}
					if (_root.quest == 6) {
						page = '1/1';
						questname = 'Trusted';
						description = 'The mayor just gave you the key to Osirus\'s Hut. He is the Reverie Guardian and he should know how to save everyone. It would be best to speak with him as soon as possible.';
					}
					if (_root.quest == 7) {
						page = '1/1';
						questname = 'Trusted Ally';
						description = 'You now must collect 3 pieces of the magical Lantern Of Nightmares, but you need a Map Chart to get to the correct location. Maybe Osirus knows where to get one.';
					}
					if (_root.quest == 8) {
						page = '1/1';
						questname = 'Lantern Fragment 1';
						description = 'You have the Forgotten Island Map Chart, now you can go and get the first Lantern Fragment. The fate of the Reverie Island Villagers are in your hands!';
					}
					if (_root.quest == 9) {
						page = '1/1';
						questname = 'Back To Osirus';
						description = 'You just got the first Lantern Fragment. You should go speak with Osirus. He may know the location of the next fragment.';
					}
					if (_root.quest == 10) {
						page = '1/1';
						questname = 'Elder Isle Awaits';
						description = 'Your journey now is taking you to Elder Isle. Osirus has informed you that he hid the Lost Island map chart here for safe keeping, but in his old age he forgot where he put it. So you must now search the island and speak with villagers to gain clues to where it could be.';
					}
					if (_root.quest == 11) {
						page = '1/1';
						questname = 'Back Home';
						description = 'Its time to go back to Neveah. You have learned that the chart was sold to a creepy salesman and he frequently appears at night in Neveah Village. Remember, you can sleep in some beds by approuching them and pressing A. Then press the S key to sleep.';
					}
					if (_root.quest == 12) {
						page = '1/1';
						questname = 'Lantern Fragment 2';
						description = 'You just got the Lost Island map chart, you can now travel to lost island and get the next lantern piece.';
					}
					if (_root.quest == 13) {
						page = '1/1';
						questname = 'Back To Osirus 2';
						description = 'You have now obtained your second lantern fragment. Only 1 more left. You should now return to Osirus on Reverie Island.';
					}
					if (_root.quest == 14) {
						page = '1/1';
						questname = 'Lantern Fragment 3';
						description = 'You have now obtained the Easterian Island map chart. Now is the time to collect the last and final Lantern Fragment.';
					}
					if (_root.quest == 15) {
						page = '1/1';
						questname = 'Back To Osirus 3';
						description = 'You have now obtained the final lantern fragment. You must return to Osirus for your final Quest. The villagers of Reverie need you.';
					}
					if (_root.quest == 16) {
						page = '1/1';
						questname = 'Into The Nightmare';
						description = 'You now must go to the pub and free the villagers one by one. You may need to travel into more then one nightmare to free one. Remember villagers need your help throughout the Island, and they will be in other places besides the pub.';
					}
					if (Key.isDown(65) && _root.currentslot == 1 && !_root.apush) {
						_root.screen = 4;
						_root.apush = true;
						gotoAndStop(4);
						if (_root.sfx) {
							_root.pageturn2.start();
						}
					}
					if (Key.isDown(65) && _root.currentslot == 2 && !_root.apush) {
						_root.screen = 2;
						_root.apush = true;
						gotoAndStop(2);
						if (_root.sfx) {
							_root.pageturn1.start();
						}
					}
					if (Key.isDown(65) && _root.currentslot == 3 && !_root.apush) {
						_root.apush = true;
					}
					if (Key.isDown(65) && _root.currentslot == 4 && !_root.apush) {
						_root.apush = true;
					}
					if (!Key.isDown(65) && _root.apush) {
						_root.apush = false;
					}
				}
				if (icons._currentframe !== _root.currentslot) {
					this.icons.gotoAndStop(_root.currentslot);
				}
				if (_root.currentslot > 4) {
					_root.currentslot = 1;
				}
				if (_root.currentslot < 1) {
					_root.currentslot = 4;
				}
				if (Key.isDown(40) && !keypush3 && _root.pause) {
					_root.currentslot += 2;
					keypush3 = true;
					if (_root.sfx) {
						_root.menuarrow.start(0, 1);
					}
				}
				if (Key.isDown(38) && !keypush4 && _root.pause) {
					_root.currentslot -= 2;
					keypush4 = true;
					if (_root.sfx) {
						_root.menuarrow.start(0, 1);
					}
				}
				if (Key.isDown(37) && !keypush2 && _root.pause) {
					--_root.currentslot;
					keypush2 = true;
					if (_root.sfx) {
						_root.menuarrow.start(0, 1);
					}
				}
				if (Key.isDown(39) && !keypush && _root.pause) {
					++_root.currentslot;
					keypush = true;
					if (_root.sfx) {
						_root.menuarrow.start(0, 1);
					}
				}
				if (!Key.isDown(40) && keypush3) {
					keypush3 = false;
				}
				if (!Key.isDown(38) && keypush4) {
					keypush4 = false;
				}
				if (!Key.isDown(39) && keypush) {
					keypush = false;
				}
				if (!Key.isDown(37) && keypush2) {
					keypush2 = false;
				}
			};
		}
	}
	instance menusc of movieClip 1535	{
		onClipEvent (load) {
			this._visible = false;
		}
		onClipEvent (enterFrame) {
			if (Key.isDown(32) && !_root.roll && !_root.pause && _root.alive && this.counter < 1 && !_root.chatting) {
				_root.currentslot = 1;
				_root.pause = true;
				this._visible = true;
				if (_root.sfx) {
					_root.openmenu.start(0, 1);
				}
			}
			if (_root.pause) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
				this._y -= 15;
			}
			if (_root.pause && this.counter >= 1 && Key.isDown(32)) {
				_root.pause = false;
				this._visible = false;
				this.deciding = false;
				_root.currentslot = 1;
				if (_root.sfx) {
					_root.closemenu.start(0, 1);
				}
			}
			if (!_root.pause && !Key.isDown(32)) {
				this.counter = 0;
			}
			if (_root.pause && !Key.isDown(32)) {
				this.counter += 0.1;
			}
			if (this.counter > 1) {
				this.counter = 1;
			}
		}
	}
	movieClip 1537	{
	}
	movieClip 1539	{
		frame 1 {
			stop();
		}
		frame 10 {
			stop();
		}
	}
	movieClip 1542	{
		frame 1 {
			onEnterFrame = function () {
				money = _root.money;
				money2 = _root.money;
			};
		}
	}
	movieClip 1544	{
	}
	movieClip 1546	{
	}
	movieClip 1548	{
	}
	movieClip 1550	{
	}
	movieClip 1552	{
		frame 10 {
			stop();
		}
	}
	movieClip 1554	{
		frame 10 {
			stop();
		}
	}
	movieClip 1556	{
		frame 10 {
			stop();
		}
	}
	movieClip 1558	{
		frame 10 {
			stop();
		}
	}
	movieClip 1560	{
		frame 10 {
			stop();
		}
	}
	movieClip 1562	{
		frame 10 {
			stop();
		}
	}
	movieClip 1564	{
		frame 10 {
			stop();
		}
	}
	movieClip 1566	{
		frame 10 {
			stop();
		}
	}
	movieClip 1568	{
		frame 10 {
			stop();
		}
	}
	movieClip 1569	{
		frame 1 {
			stop();
			_root.aicon = 0;
		}
	}
	movieClip 1571	{
		frame 10 {
			stop();
		}
	}
	movieClip 1572	{
		frame 1 {
			stop();
			_root.aicon = 0;
		}
	}
	movieClip 1574	{
		frame 10 {
			stop();
		}
	}
	movieClip 1576	{
		frame 10 {
			stop();
		}
	}
	movieClip 1577	{
		frame 1 {
			stop();
			_root.aicon = 0;
		}
	}
	movieClip 1579	{
	}
	movieClip 1580	{
	}
	movieClip 1582	{
	}
	movieClip 1589	{
		frame 1 {
			onEnterFrame = function () {
				sec = _root.second;
				min = _root.minute;
				hr = _root.hour;
				if (_root.minute >= 10) {
					tens = ' ';
				} else {
					if (_root.minute < 10) {
						tens = 0;
					}
				}
				if (bar.timebar._width !== _root.hour) {
					bar.timebar._width = _root.hour;
				}
			};
		}
		frame 1 {
			stop();
		}
	}
	movieClip 1591	{
		frame 56 {
			stop();
		}
	}
	movieClip 1593	{
		frame 56 {
			stop();
		}
	}
	movieClip 1595	{
		frame 56 {
			stop();
		}
	}
	movieClip 1597	{
		frame 56 {
			stop();
		}
	}
	movieClip 1599	{
		frame 56 {
			stop();
		}
	}
	movieClip 1601	{
		frame 56 {
			stop();
		}
	}
	movieClip 1603	{
		frame 56 {
			stop();
		}
	}
	movieClip 1605	{
		frame 56 {
			stop();
		}
	}
	movieClip 1607	{
		frame 56 {
			stop();
		}
	}
	movieClip 1609	{
		frame 56 {
			stop();
		}
	}
	movieClip 1611	{
		frame 56 {
			stop();
		}
	}
	movieClip 1613	{
		frame 56 {
			stop();
		}
	}
	movieClip 1615	{
		frame 56 {
			stop();
		}
	}
	movieClip 1617	{
		frame 56 {
			stop();
		}
	}
	movieClip 1619	{
		frame 56 {
			stop();
		}
	}
	movieClip 1621	{
		frame 56 {
			stop();
		}
	}
	movieClip 1623	{
		frame 56 {
			stop();
		}
	}
	movieClip 1625	{
		frame 56 {
			stop();
		}
	}
	movieClip 1627	{
		frame 56 {
			stop();
		}
	}
	movieClip 1629	{
		frame 56 {
			stop();
		}
	}
	movieClip 1630	{
		frame 1 {
			stop();
		}
	}
	movieClip 1633	{
		frame 1 {
			onEnterFrame = function () {
				if (bc !== _root.bombs) {
					bc = _root.bombs;
				}
			};
		}
		frame 1 {
			stop();
		}
	}
	movieClip 1636	{
		frame 1 {
			onEnterFrame = function () {
				if (bc !== _root.arrows) {
					bc = _root.arrows;
				}
			};
		}
		frame 1 {
			stop();
		}
	}
	movieClip 1637	{
		frame 7 {
			stop();
		}
	}
	movieClip 1638	{
		frame 1 {
			function camControl() {
				parentColor.setTransform(camColor.getTransform());
				var v4 = sX / this._width;
				var v3 = sY / this._height;
				_parent._x = cX - this._x * v4;
				_parent._y = cY - this._y * v3;
				_parent._xscale = 100 * v4;
				_parent._yscale = 100 * v3;
			}
			function resetStage() {
				var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
				parentColor.setTransform(v2);
				_parent._xscale = 100;
				_parent._yscale = 100;
				_parent._x = 0;
				_parent._y = 0;
			}
			_parent._visible = true;
			var oldMode = Stage.scaleMode;
			Stage.scaleMode = 'exactFit';
			var cX = Stage.width / 2;
			var cY = Stage.height / 2;
			var sX = Stage.width;
			var sY = Stage.height;
			Stage.scaleMode = oldMode;
			var camColor = new Color(this);
			var parentColor = new Color(_parent);
			this.onEnterFrame = camControl;
			camControl();
			this.onUnload = resetStage;
		}
		instance textbox of movieClip 1539	{
			onClipEvent (enterFrame) {
				if (_root.chatting && this._currentframe == 1) {
					this.play();
				}
				if (!_root.chatting && this._currentframe == 10) {
					this.play();
				}
			}
		}
		instance of movieClip 278	{
			onClipEvent (enterFrame) {
				if (this.container._currentframe !== _root.health) {
					this.container.gotoAndStop(_root.health);
				}
				if (_root.health > _root.maxhealth) {
					_root.health = _root.maxhealth;
				}
				if (_root.health > 41) {
					_root.health = 41;
				}
				if (_root.health < 1 && this.health !== 1) {
					_root.health = 1;
				}
				if (_root.health == 1 && _root.alive) {
					_root.alive = false;
					_root.pickup = false;
					_root.carry = false;
					_root.hammerattack = false;
				}
				if (_root.maxhealth == 13) {
					this.gotoAndStop(1);
				}
				if (_root.maxhealth == 17) {
					this.gotoAndStop(2);
				}
				if (_root.maxhealth == 21) {
					this.gotoAndStop(3);
				}
				if (_root.maxhealth == 25) {
					this.gotoAndStop(4);
				}
				if (_root.maxhealth == 29) {
					this.gotoAndStop(5);
				}
				if (_root.maxhealth == 33) {
					this.gotoAndStop(6);
				}
				if (_root.maxhealth == 37) {
					this.gotoAndStop(7);
				}
				if (_root.maxhealth == 41) {
					this.gotoAndStop(8);
				}
			}
		}
		instance acon of movieClip 1569	{
			onClipEvent (enterFrame) {
				if (_root.aicon == 0 && this._currentframe !== 1 && !_root.pause) {
					this.gotoAndStop(1);
				}
				if (_root.aicon == 1 && this._currentframe !== 2 && !_root.pause) {
					this.gotoAndStop(2);
				} else {
					if (_root.aicon == 2 && this._currentframe !== 3 && !_root.pause) {
						this.gotoAndStop(3);
					} else {
						if (_root.aicon == 3 && this._currentframe !== 4 && !_root.pause) {
							this.gotoAndStop(4);
						} else {
							if (_root.aicon == 4 && this._currentframe !== 6 && !_root.pause) {
								this.gotoAndStop(6);
							} else {
								if (_root.aicon == 5 && this._currentframe !== 7 && !_root.pause) {
									this.gotoAndStop(7);
								} else {
									if (_root.aicon == 6 && this._currentframe !== 8 && !_root.pause) {
										this.gotoAndStop(8);
									} else {
										if (_root.aicon == 7 && this._currentframe !== 9 && !_root.pause) {
											this.gotoAndStop(9);
										} else {
											if (_root.aicon == 8 && this._currentframe !== 10 && !_root.pause) {
												this.gotoAndStop(10);
											} else {
												if (_root.pause) {
													this.gotoAndStop(5);
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
		instance scon of movieClip 1572	{
			onClipEvent (enterFrame) {
				if (_root.sicon == 0 && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (_root.sicon == 1 && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance dcon of movieClip 1577	{
			onClipEvent (enterFrame) {
				if (_root.dicon == 0 && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (_root.dicon == 1 && this._currentframe !== 2) {
					this.gotoAndStop(2);
				} else {
					if (_root.dicon == 2 && this._currentframe !== 3) {
						this.gotoAndStop(3);
					}
				}
			}
		}
		instance of movieClip 1589	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1630	{
			onClipEvent (enterFrame) {
				if (_root.warping && this.played) {
					this.played = false;
				}
				if (_root.room == 'neveah2' && !this.played && !_root.warping) {
					this.gotoAndStop(2);
				}
				if (_root.room == 'neveah3' && !this.played && !_root.warping) {
					this.gotoAndStop(3);
				}
				if (_root.room == 'neveah4' && !this.played && !_root.warping) {
					this.gotoAndStop(4);
				}
				if (_root.room == 'neveah5' && !this.played && !_root.warping) {
					this.gotoAndStop(5);
				}
				if (_root.room == 'room2' && !this.played && !_root.warping) {
					this.gotoAndStop(6);
				}
				if (_root.room == 'room1' && !this.played && !_root.warping) {
					this.gotoAndStop(7);
				}
				if (_root.room == 'room3' && !this.played && !_root.warping) {
					this.gotoAndStop(8);
				}
				if (_root.room == 'forgotten' && !this.played && !_root.warping) {
					this.gotoAndStop(9);
				}
				if (_root.room == 'dungeon1-10' && !this.played && !_root.warping) {
					this.gotoAndStop(10);
				}
				if (_root.room == 'elder' && !this.played && !_root.warping) {
					this.gotoAndStop(11);
				}
				if (_root.room == 'lost' && !this.played && !_root.warping) {
					this.gotoAndStop(12);
				}
				if (_root.room == 'dungeon2-12' && !this.played && !_root.warping) {
					this.gotoAndStop(13);
				}
				if (_root.room == 'dungeon3-16' && !this.played && !_root.warping) {
					this.gotoAndStop(14);
				}
				if (_root.room == 'monst' && !this.played && !_root.warping) {
					this.gotoAndStop(16);
				}
				if (_root.room == 'lone' && !this.played && !_root.warping) {
					this.gotoAndStop(17);
				}
				if (_root.room == 'easterian' && !this.played && !_root.warping) {
					this.gotoAndStop(18);
				}
				if (_root.room == 'blacksmithisle' && !this.played && !_root.warping) {
					this.gotoAndStop(19);
				}
				if (_root.room == 'abandoned' && !this.played && !_root.warping) {
					this.gotoAndStop(20);
				}
				if (_root.room == 'mystiker' && !this.played && !_root.warping) {
					this.gotoAndStop(21);
				}
				if (this.intro._currentframe == 56) {
					this.played = true;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1637	{
			onClipEvent (enterFrame) {
				if (this._currentframe !== _root.ditem && _root.ditem !== 0) {
					this.gotoAndStop(_root.ditem);
				}
				if (_root.ditem == 0) {
					this.gotoAndStop('none');
				}
			}
		}
	}
	instance cam of movieClip 1638	{
		onClipEvent (load) {
			accuracy = 0.1;
			_root.looktime = 40;
		}
		onClipEvent (enterFrame) {
			var drag = accuracy;
			if (!_root.pause && !_root.interested) {
				if (_root.box._x > this._x) {
					if (!_root.camwall.hitTest(this._x + 400, _y, true)) {
						this._x += (_root.box._x - _x) * drag;
					}
				}
				if (_root.box._x < this._x) {
					if (!_root.camwall.hitTest(this._x - 400, _y, true)) {
						this._x += (_root.box._x - _x) * drag;
					}
				}
				if (_root.box._y > this._y) {
					if (!_root.camwall.hitTest(this._x, this._y + 300, true)) {
						this._y += (_root.box._y - _y) * drag;
					}
				}
				if (_root.box._y < this._y) {
					if (!_root.camwall.hitTest(this._x, this._y - 300, true)) {
						this._y += (_root.box._y - _y) * drag;
					}
				}
			}
			if (!_root.pause && _root.interested) {
				if (_root.intx > this._x) {
					if (!_root.camwall.hitTest(this._x + 400, _y, true)) {
						this._x += (_root.intx - _x) * drag;
					}
				}
				if (_root.intx < this._x) {
					if (!_root.camwall.hitTest(this._x - 400, _y, true)) {
						this._x += (_root.intx - _x) * drag;
					}
				}
				if (_root.inty > this._y) {
					if (!_root.camwall.hitTest(this._x, this._y + 300, true)) {
						this._y += (_root.inty - _y) * drag;
					}
				}
				if (_root.inty < this._y) {
					if (!_root.camwall.hitTest(this._x, this._y - 300, true)) {
						this._y += (_root.inty - _y) * drag;
					}
				}
				if (_root.looktime > 0) {
					--_root.looktime;
				}
				if (_root.looktime <= 0) {
					_root.interested = false;
					_root.intx = 0;
					_root.inty = 0;
					_root.looktime = 40;
				}
			}
			if (_root.shake) {
				shakey = random(4) + 1;
				way = random(4) + 1;
				if (way == 1) {
					if (!_root.camwall.hitTest(this._x + 400, _y, true)) {
						this._x += shakey;
					}
					if (!_root.camwall.hitTest(this._x, this._y + 300, true)) {
						this._y += shakey;
					}
				}
				if (way == 2) {
					if (!_root.camwall.hitTest(this._x - 400, _y, true)) {
						this._x -= shakey;
					}
					if (!_root.camwall.hitTest(this._x, this._y - 300, true)) {
						this._y -= shakey;
					}
				}
				if (way == 3) {
					if (!_root.camwall.hitTest(this._x + 400, _y, true)) {
						this._x += shakey;
					}
					if (!_root.camwall.hitTest(this._x, this._y - 300, true)) {
						this._y -= shakey;
					}
				}
				if (way == 4) {
					if (!_root.camwall.hitTest(this._x - 400, _y, true)) {
						this._x -= shakey;
					}
					if (!_root.camwall.hitTest(this._x, this._y - 300, true)) {
						this._y += shakey;
					}
				}
				if (!timest) {
					timer = 20;
					timest = true;
				}
			}
			if (timer > 0 && _root.shake) {
				--timer;
			}
			if (timer <= 0 && _root.shake) {
				timest = false;
				_root.shake = false;
			}
		}
	}
	movieClip 1640	{
	}
	movieClip 1642	{
	}
	movieClip 1645	{
	}
	movieClip 1648	{
	}
	movieClip 1651	{
	}
	movieClip 1652	{
	}
	movieClip 1653	{
		frame 1 {
			stop();
		}
	}
	movieClip 1654	{
		frame 1 {
			gameover = false;
		}
		frame 1 {
			stop();
		}
		frame 2 {
			_root.gameovermus = true;
			_root.plays = false;
		}
		frame 53 {
			currentsel = 1;
			gameover = true;
			onEnterFrame = function () {
				if (gameover) {
					if (!_root.alive && !_root.warping) {
						sel.gotoAndStop(currentsel);
						if (Key.isDown(40) && !keypush && !_root.warps) {
							keypush = true;
							++currentsel;
							if (_root.sfx) {
								_root.menuscreenarrows.start(0, 1);
							}
						}
						if (Key.isDown(38) && !keypush && !_root.warps) {
							keypush = true;
							--currentsel;
							if (_root.sfx) {
								_root.menuscreenarrows.start(0, 1);
							}
						}
						if (currentsel == 1 && Key.isDown(65) && !apush && !keypush) {
							_root.room = _root.restartpoint;
							_root.oldroom = _root.oldrestart;
							apush = true;
							_root.gameovermus = false;
							_root.plays = false;
							_root.warping = true;
						}
						if (_root.trans._currentframe > 20 && currentsel == 1 && !keypush) {
							_root.health = 13;
							_root.alive = true;
							_root.music = _root.oldtrack;
							gotoAndStop(1);
						}
						if (currentsel == 2 && Key.isDown(65) && !apush) {
							apush = true;
						}
						if (apush && currentsel == 2 && !keypush) {
							if (_root.gameslot == 1 && _root.gamesave1.data.gamesaved1 == true) {
								_root.loadoldgame = true;
								_root.alive = true;
								_root.gameovermus = false;
								_root.plays = false;
								_root.warping = true;
							}
							if (_root.gameslot == 2 && _root.gamesave2.data.gamesaved2 == true) {
								_root.loadoldgame = true;
								_root.alive = true;
								_root.gameovermus = false;
								_root.plays = false;
								_root.warping = true;
							}
							if (_root.gameslot == 3 && _root.gamesave3.data.gamesaved3 == true) {
								_root.loadoldgame = true;
								_root.alive = true;
								_root.gameovermus = false;
								_root.plays = false;
								_root.warping = true;
							}
							if (_root.trans._currentframe > 20) {
								_root.alive = true;
								_root.music = _root.oldtrack;
								gotoAndStop(1);
							}
						}
						if (currentsel == 3 && Key.isDown(65) && !apush) {
							_root.oldtrack = _root.music;
							_root.pause = false;
							_root.apush = true;
							_root.gameloading = false;
							_root.gameovermus = false;
							_root.plays = false;
							_root.gotoAndStop('menu');
						}
						if (!Key.isDown(65) && apush) {
							apush = false;
						}
						if (!Key.isDown(40) && !Key.isDown(38)) {
							keypush = false;
						}
						if (currentsel > 3) {
							currentsel = 1;
						}
						if (currentsel < 1) {
							currentsel = 3;
						}
					}
				}
			};
		}
		frame 54 {
			stop();
		}
	}
	instance gameov of movieClip 1654	{
		onClipEvent (enterFrame) {
			if (!_root.alive) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
				if (this._currentframe == 1) {
					this.play();
				}
			}
		}
	}
	movieClip 1657	{
		frame 1 {
			stop();
		}
		frame 20 {
			_root.enemies = 0;
		}
		frame 35 {
			if (_root.autosave && !_root.savegame) {
				_root.savegame = true;
			}
			if (_root.autosave == 'undefined') {
				_root.autosave = true;
			}
		}
		frame 35 {
			_root.warping = false;
		}
	}
	movieClip 1658	{
	}
	instance of movieClip 1658	{
		onClipEvent (load) {
			this._visible = true;
			this.dis = false;
		}
		onClipEvent (enterFrame) {
			if (!this.dis && this._visible) {
				this._visible = false;
				this.dis = true;
			}
		}
	}
	frame 11 {
		stop();
		_root.walking = 1;
		_root.neveahmusic = true;
		_root.shopmusic = false;
		_root.boss1 = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.restartpoint = _root.room;
		_root.oldrestart = _root.oldroom;
	}
	movieClip 1664	{
	}
	movieClip 1667	{
	}
	movieClip 1670	{
	}
	movieClip 1672	{
	}
	movieClip 1674	{
	}
	movieClip 1676	{
	}
	movieClip 1678	{
	}
	movieClip 1680	{
	}
	movieClip 1683	{
		frame 1 {
			stop();
		}
	}
	movieClip 1685	{
	}
	movieClip 1687	{
	}
	movieClip 1688	{
		frame 1 {
			stop();
		}
	}
	movieClip 1691	{
	}
	movieClip 1694	{
	}
	movieClip 1695	{
	}
	movieClip 1697	{
	}
	movieClip 1699	{
	}
	movieClip 1700	{
	}
	movieClip 1701	{
		frame 1 {
			stop();
		}
	}
	movieClip 1704	{
	}
	movieClip 1707	{
	}
	movieClip 1712	{
	}
	movieClip 1713	{
	}
	movieClip 1715	{
	}
	movieClip 1716	{
	}
	movieClip 1717	{
	}
	movieClip 1720	{
	}
	movieClip 1723	{
	}
	movieClip 1726	{
	}
	movieClip 1727	{
		instance of movieClip 1688	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah2bg';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.plays = true;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					if (_root.sfx && this.plays) {
						_root.doorlocked.start(0, 1);
						this.plays = false;
					}
				}
				if (!this.hitTest(_root.box) && !this.plays) {
					this.plays = true;
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			_root.enemies += 1;
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				_root.enemies -= 1;
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 1;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 0;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			_root.enemies += 1;
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				_root.enemies -= 1;
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 1;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 0;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			_root.enemies += 1;
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				_root.enemies -= 1;
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 1;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 0;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 1731	{
	}
	movieClip 1733	{
	}
	movieClip 1734	{
	}
	movieClip 1743	{
	}
	movieClip 1744	{
		frame 1 {
			stop();
		}
	}
	movieClip 1747	{
	}
	movieClip 1748	{
	}
	movieClip 1754	{
		instance dropitem of movieClip 1279	{
			onClipEvent (load) {
				this.placed = true;
				if (this.placed) {
					this.item = random(100) + 1;
					this.gotoAndStop(this.item);
				}
				if (this.item > 10) {
					this.gotoAndStop(11);
					this.removeMovieClip();
				}
			}
			onClipEvent (enterFrame) {
				if (_root.warps) {
					this.removeMovieClip();
				}
				if (_root.pause && this._visible) {
					this._visible = false;
				}
				if (!_root.pause && !this._visible) {
					this._visible = true;
				}
			}
		}
		frame 9 {
			stop();
		}
	}
	movieClip 1755	{
		frame 1 {
			stop();
		}
	}
	movieClip 1756	{
		instance of movieClip 1734	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 2;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting)) {
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'Grandpa\'s House';
					_root.chatting = true;
					this.chat = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
				if (this.chat && _root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
					_root.cam.textbox.text = ' ';
					_root.cam.textbox.play();
					_root.chatting = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1744	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (_root.enemies <= 0 && this._currentframe !== 2) {
					this.gotoAndStop(2);
					_root.interested = true;
					_root.intx = 858.35;
					_root.inty = 1758.15;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
	}
	movieClip 1759	{
	}
	movieClip 1760	{
		frame 1 {
			stop();
		}
	}
	movieClip 1763	{
	}
	movieClip 1764	{
		frame 1 {
			stop();
		}
	}
	movieClip 1767	{
	}
	movieClip 1768	{
		instance of movieClip 1760	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 1773	{
	}
	movieClip 1776	{
	}
	movieClip 1777	{
	}
	movieClip 1779	{
		frame 30 {
			stop();
		}
	}
	movieClip 1781	{
		frame 30 {
			stop();
		}
	}
	movieClip 1782	{
		frame 1 {
			stop();
		}
	}
	movieClip 1784	{
		frame 40 {
			stop();
		}
	}
	movieClip 1785	{
		frame 40 {
			stop();
		}
	}
	movieClip 1786	{
		frame 1 {
			stop();
		}
		instance of movieClip 1782	{
			onClipEvent (enterFrame) {
				if (_root.rainchance !== 1 && !_root.rainstarts) {
					this.gotoAndStop(1);
				}
				if (_root.rainchance == 1 && !_root.rainstarts) {
					this.gotoAndStop(2);
				}
				if (_root.rainchance == 1 && _root.rainstarts) {
					this.gotoAndStop(3);
				}
				if (_root.rainchance !== 1 && _root.rainstarts) {
					this.gotoAndStop(4);
				}
				if (this.raining._currentframe == 30 && _root.rainstarts) {
					_root.rainstarts = false;
				}
				if (this.raining._currentframe == 30 && !_root.rainstarts) {
					_root.rainstarts = true;
				}
			}
		}
	}
	instance daynight of movieClip 1786	{
		onClipEvent (enterFrame) {
			if (!_root.days) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
				if (!_root.sundown) {
					this.gotoAndStop(2);
					if (this.sundown._currentframe == 40) {
						_root.sundown = true;
					}
				}
			}
			if (!_root.days && _root.sundown && this._currentframe !== 3) {
				this.gotoAndStop(3);
			}
			if (_root.days && _root.sundown) {
				this._x = _root.cam._x;
				this._y = _root.can._y;
				this.gotoAndStop(4);
				if (this.sunup._currentframe == 40) {
					_root.sundown = false;
				}
			}
			if (_root.days && !_root.sundown && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (_root.rainchance == 1) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
			}
		}
	}
	frame 12 {
		stop();
		_root.walking = 1;
		_root.neveahmusic = true;
		_root.shopmusic = false;
		_root.boss1 = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 1790	{
	}
	movieClip 1793	{
	}
	movieClip 1795	{
	}
	movieClip 1797	{
	}
	movieClip 1799	{
	}
	movieClip 1801	{
	}
	movieClip 1802	{
		frame 1 {
			stop();
		}
	}
	movieClip 1804	{
	}
	movieClip 1806	{
	}
	movieClip 1807	{
		frame 1 {
			stop();
		}
	}
	movieClip 1809	{
	}
	movieClip 1811	{
	}
	movieClip 1814	{
	}
	movieClip 1816	{
	}
	movieClip 1817	{
		instance of movieClip 1688	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1802	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1807	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1802	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1807	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah3bg';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.plays = true;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					if (_root.sfx && this.plays) {
						_root.doorlocked.start(0, 1);
						this.plays = false;
					}
				}
				if (!this.hitTest(_root.box) && !this.plays) {
					this.plays = true;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.plays = true;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					if (_root.sfx && this.plays) {
						_root.doorlocked.start(0, 1);
						this.plays = false;
					}
				}
				if (!this.hitTest(_root.box) && !this.plays) {
					this.plays = true;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.plays = true;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					if (_root.sfx && this.plays) {
						_root.doorlocked.start(0, 1);
						this.plays = false;
					}
				}
				if (!this.hitTest(_root.box) && !this.plays) {
					this.plays = true;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.plays = true;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					if (_root.sfx && this.plays) {
						_root.doorlocked.start(0, 1);
						this.plays = false;
					}
				}
				if (!this.hitTest(_root.box) && !this.plays) {
					this.plays = true;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.plays = true;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					if (_root.sfx && this.plays) {
						_root.doorlocked.start(0, 1);
						this.plays = false;
					}
				}
				if (!this.hitTest(_root.box) && !this.plays) {
					this.plays = true;
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			_root.enemies += 1;
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				_root.enemies -= 1;
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 1;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 0;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			_root.enemies += 1;
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				_root.enemies -= 1;
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 1;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 0;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			_root.enemies += 1;
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				_root.enemies -= 1;
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 1;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 0;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 1819	{
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1744	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (_root.enemies <= 0 && this._currentframe !== 2) {
					this.gotoAndStop(2);
					_root.interested = true;
					_root.intx = 858.35;
					_root.inty = 1758.15;
				}
			}
		}
	}
	movieClip 1820	{
		frame 1 {
			stop();
		}
	}
	movieClip 1821	{
		frame 1 {
			stop();
		}
	}
	movieClip 1824	{
	}
	movieClip 1825	{
		instance of movieClip 1760	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1820	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1821	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1821	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1820	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	frame 13 {
		stop();
		_root.walking = 1;
		_root.neveahmusic = true;
		_root.shopmusic = false;
		_root.boss1 = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.interested = true;
		_root.intx = 461.35;
		_root.inty = 976.9;
	}
	movieClip 1829	{
	}
	movieClip 1832	{
	}
	movieClip 1833	{
	}
	movieClip 1834	{
	}
	movieClip 1837	{
	}
	movieClip 1839	{
	}
	movieClip 1841	{
	}
	movieClip 1843	{
	}
	movieClip 1846	{
	}
	movieClip 1847	{
		instance of movieClip 1688	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'cutscene2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 1849	{
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
	}
	movieClip 1851	{
	}
	movieClip 1853	{
	}
	movieClip 1854	{
	}
	movieClip 1855	{
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	frame 14 {
		stop();
		_root.walking = 1;
		_root.boss1 = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		if (_root.sfx) {
			_root.intromus = new Sound(this);
			_root.intromus.attachSound('intromus');
			_root.intromus.start(0, 99999999);
		}
	}
	movieClip 1860	{
	}
	movieClip 1867	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
	}
	instance of movieClip 1867	{
		onClipEvent (enterFrame) {
			if (!_root.pause && this._currentframe !== 3) {
				_root.pause = true;
				_root.cam._visible = false;
				_root.menusc._visible = false;
			}
			this._x = _root.cam._x;
			this._y = _root.cam._y;
			if (!this.apush && Key.isDown(65) && this._currentframe !== 3) {
				this.play();
				this.apush = true;
			}
			if (!this.apush && Key.isDown(65) && this._currentframe == 3) {
				_root.warping = true;
				_root.room = 'hirohouse';
				_root.oldroom = _root.room;
				_root.pause = false;
				_root.cam._visible = true;
				_root.hour = 13;
				_root.awakened = true;
				this.apush = true;
			}
			if (this.apush && !Key.isDown(65)) {
				this.apush = false;
			}
		}
	}
	frame 15 {
		stop();
		_root.enemies = 0;
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.goblinsound = false;
		_root.shopmusic = true;
		_root.boss1 = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.genericsound = false;
		_root.restartpoint = _root.room;
		_root.oldrestart = _root.oldroom;
	}
	movieClip 1868	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press the S key to sleep.\rPress A to exit the dialogue.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					this.sleeping = true;
				}
				if (this.sleeping && _root.trans._currentframe >= 20) {
					_root.health = _root.maxhealth;
					if (_root.days) {
						_root.days = false;
					} else {
						if (!_root.days) {
							_root.days = true;
						}
					}
					this.sleeping = false;
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	instance of movieClip 1868	{
		onClipEvent (enterFrame) {
			if (_root.days && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (!_root.days && this._currentframe !== 2) {
				this.gotoAndStop(2);
			}
		}
	}
	movieClip 1869	{
	}
	movieClip 1870	{
	}
	movieClip 1871	{
	}
	movieClip 1873	{
	}
	movieClip 1875	{
	}
	movieClip 1877	{
	}
	movieClip 1885	{
	}
	movieClip 1887	{
	}
	movieClip 1888	{
	}
	movieClip 1890	{
	}
	movieClip 1892	{
	}
	movieClip 1894	{
	}
	movieClip 1896	{
	}
	movieClip 1897	{
	}
	movieClip 1898	{
		frame 1 {
			stop();
		}
		instance of movieClip 1888	{
			onClipEvent (load) {
				this.msg = 1;
			}
			onClipEvent (enterFrame) {
				if (_root.awakened && _root.rainchance == 1 && !_root.gtalk) {
					_root.rainchance = 2;
				}
				if (_root.awakened && !_root.days && !_root.gtalk) {
					_root.days = true;
					_root.hour = 1;
				}
				if (_root.chatting && this.chat) {
					if (Key.isDown(65) && !this.advance) {
						++this.msg;
						this.advance = true;
					}
					if (!Key.isDown(65) && this.advance) {
						this.advance = false;
					}
				}
				if (!_root.gtalk && this.msg == 1 && !_root.chatting) {
					this.chat = true;
					_root.cam.textbox.text = 'Nightmares again? You have been having them every since you began your training. You know it is said that your dreams mean something. That maybe god is trying to tell you something. You should listen to your dreams and try to find out what they mean.';
					_root.chatting = true;
				}
				if (!_root.gtalk && this.msg == 2 && _root.chatting) {
					_root.cam.textbox.text = 'But anyways you need to hurry off to Conradâ€™s. You know how he gets when youâ€™re late. ';
				}
				if (!_root.gtalk && this.msg == 3 && _root.chatting) {
					this.chat = false;
					_root.chatting = false;
					_root.gtalk = true;
					_root.quest = 1;
					_root.cam.textbox.text = ' ';
				}
			}
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (_root.quest == 1) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'You need to hurry off to Conradâ€™s. You know how he gets when youâ€™re late.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.quest == 2) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Your going to Reverie Island? Thats impressive that Conrad trusts you already to send you off on this important mission.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.quest == 3) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Great you got the Reverie Map chart! I am happy for you, but I cant help but be sad. Im going to miss you. Just promise me you will be careful... Ok?';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.quest >= 4) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'My grandson is finally growing up! You have been out there exploring the world, and becoming a true hero. I just cant help but be so proud of you. Just come back home soon and stay safe.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	instance BG of movieClip 1898	{
		onClipEvent (enterFrame) {
			if (_root.days && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (!_root.days && this._currentframe !== 2) {
				this.gotoAndStop(2);
			}
		}
	}
	frame 16 {
		stop();
		_root.walking = 1;
		_root.neveahmusic = true;
		_root.shopmusic = false;
		_root.boss1 = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 1899	{
		instance of movieClip 1688	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'hirohouse';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah2';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah4';
				}
			}
		}
	}
	instance of movieClip 680	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x + 55;
				flashes._y = this._y + 40;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 9 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 680	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x + 55;
				flashes._y = this._y + 40;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 9 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 680	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x + 55;
				flashes._y = this._y + 40;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 9 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 1901	{
		instance of movieClip 1734	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 2;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting)) {
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'Grandpa\'s House';
					_root.chatting = true;
					this.chat = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
				if (this.chat && _root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
					_root.cam.textbox.text = ' ';
					_root.cam.textbox.play();
					_root.chatting = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
	}
	instance daynight of movieClip 1786	{
		onClipEvent (enterFrame) {
			if (!_root.days) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
				if (!_root.sundown) {
					this.gotoAndStop(2);
					if (this.sundown._currentframe == 40) {
						_root.sundown = true;
					}
				}
			}
			if (!_root.days && _root.sundown && this._currentframe !== 3) {
				this.gotoAndStop(3);
			}
			if (_root.days && _root.sundown) {
				this._x = _root.cam._x;
				this._y = _root.can._y;
				this.gotoAndStop(4);
				if (this.sunup._currentframe == 40) {
					_root.sundown = false;
				}
			}
			if (_root.days && !_root.sundown && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (_root.rainchance == 1) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
			}
		}
	}
	frame 17 {
		stop();
		_root.walking = 1;
		_root.neveahmusic = true;
		_root.shopmusic = false;
		_root.boss1 = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 1902	{
		instance of movieClip 1688	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1802	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1807	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1802	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1807	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah3';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah1';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveahhealthshop';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveahlibrary';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveahhouse1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveahhouse2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveahshop';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 1904	{
	}
	movieClip 1905	{
	}
	movieClip 1906	{
	}
	movieClip 1908	{
	}
	movieClip 1910	{
	}
	movieClip 1912	{
	}
	movieClip 1920	{
	}
	movieClip 1923	{
	}
	movieClip 1924	{
	}
	movieClip 1926	{
	}
	movieClip 1927	{
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1926	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (_root.quest !== 11) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Hey kid, long time no see. I do not currently have anything for sale at the moment. hehehe';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.quest == 11) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Oh, so someone told you about that crappy piece of paper. No matter. I cant even get anyone to buy it. You can have it.';
					}
					if (this.message == 1 && this.chat && !_root.getItems) {
						_root.cam.textbox.text = 'You got the Lost Isle Map Chart! You can now go to the second Lantern piece\'s location!';
						_root.getItems = true;
						_root.newitem = 10;
						_root.havelostchart = true;
						if (_root.sfx) {
							_root.getkey.start(0, 1);
						}
					}
					if (this.chat && _root.chatting && this.message == 2) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.getItems = false;
						_root.newitem = 0;
						_root.quest = 12;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	instance BG of movieClip 1927	{
		onClipEvent (enterFrame) {
			if (_root.days && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (!_root.days && this._currentframe !== 2) {
				this.gotoAndStop(2);
			}
		}
	}
	frame 18 {
		stop();
		_root.walking = 1;
		_root.neveahmusic = true;
		_root.shopmusic = false;
		_root.boss1 = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.restartpoint = _root.room;
		_root.oldrestart = _root.oldroom;
	}
	movieClip 1929	{
		instance of movieClip 1688	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah2';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveahblacksmith';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 8;
				}
				if (this.hitTest(_root.box) && Key.isDown(65) && !_root.pause && !_root.warping) {
					_root.screen = 4;
					_root.pause = true;
					_root.menusc.gotoAndStop(4);
					_root.menusc._visible = true;
					_root.apush = true;
					_root.menusc.deciding = true;
					if (_root.sfx) {
						_root.openmenu.start(0, 1);
					}
					if (_root.quest == 3) {
						_root.quest = 4;
					}
				}
			}
		}
	}
	instance of movieClip 680	{
		onClipEvent (load) {
			this.health = 2;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x + 55;
				flashes._y = this._y + 40;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 9 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 680	{
		onClipEvent (load) {
			this.health = 2;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x + 55;
				flashes._y = this._y + 40;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 9 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 680	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x + 55;
				flashes._y = this._y + 40;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 9 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 680	{
		onClipEvent (load) {
			this.health = 2;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x + 55;
				flashes._y = this._y + 40;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 9 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 1931	{
	}
	movieClip 1932	{
	}
	movieClip 1933	{
	}
	movieClip 1935	{
	}
	movieClip 1937	{
	}
	movieClip 1939	{
	}
	movieClip 1945	{
	}
	movieClip 1947	{
	}
	movieClip 1948	{
	}
	movieClip 1949	{
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1948	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'My dad is always busy working. I never have any one to play with. I use to play at night but thats when that creepy salesmen is out.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	instance BG of movieClip 1949	{
		onClipEvent (enterFrame) {
			if (_root.days && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (!_root.days && this._currentframe !== 2) {
				this.gotoAndStop(2);
			}
		}
	}
	frame 19 {
		stop();
		_root.walking = 1;
		_root.neveahmusic = true;
		_root.shopmusic = false;
		_root.boss1 = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 1951	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah1';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.areacleared1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah5';
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 1953	{
	}
	movieClip 1954	{
	}
	movieClip 1955	{
	}
	movieClip 1957	{
	}
	movieClip 1959	{
	}
	movieClip 1961	{
	}
	movieClip 1969	{
	}
	movieClip 1971	{
	}
	movieClip 1972	{
	}
	movieClip 1973	{
	}
	movieClip 1975	{
	}
	movieClip 1976	{
	}
	movieClip 1977	{
	}
	movieClip 1979	{
	}
	movieClip 1981	{
	}
	movieClip 1993	{
	}
	movieClip 1995	{
	}
	movieClip 1996	{
	}
	movieClip 1997	{
	}
	movieClip 1998	{
		frame 1 {
			stop();
		}
	}
	movieClip 1999	{
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1998	{
			onClipEvent (load) {
				this.message = 0;
				this.gotoAndStop(1);
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (!_root.areacleared1 && _root.enemies > 0) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Whoa whoa! Where do you think your going? Just because you were chosen as Conrads pupil doesnt mean that you can just come and go as you please. This is my turf and you havent proven anything to me. If you can clear the area of goblins I will let you pass.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (!_root.areacleared1 && _root.enemies <= 0) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Whoa whoa! Where do you think your going? I said you cant pass until you defeat the goblins. What!?!?! So you you have... I guess this means you can pass... Go on and get out of here.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.areacleared1 = true;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.areacleared1) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Just go on! You have proven yourself. You can come and go as you would like.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.areacleared1 = true;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.areacleared1 && this._x > -359.7) {
					this._x -= 4;
					this.gotoAndStop(2);
				} else {
					if (_root.areacleared1 && this._x <= -359.7) {
						this.gotoAndStop(1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 2000	{
	}
	frame 20 {
		stop();
		_root.walking = 1;
		_root.neveahmusic = true;
		_root.shopmusic = false;
		_root.boss1 = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 2003	{
	}
	movieClip 2004	{
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah4';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'conradsplace';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	instance of movieClip 680	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x + 55;
				flashes._y = this._y + 40;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 9 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 680	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x + 55;
				flashes._y = this._y + 40;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 9 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 680	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x + 55;
				flashes._y = this._y + 40;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 9 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 2006	{
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
	}
	movieClip 2007	{
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	frame 21 {
		stop();
		_root.enemies = 0;
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
	}
	movieClip 2011	{
	}
	movieClip 2014	{
	}
	movieClip 2016	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah3';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 2018	{
	}
	movieClip 2019	{
	}
	movieClip 2020	{
	}
	movieClip 2022	{
	}
	movieClip 2024	{
	}
	movieClip 2027	{
	}
	movieClip 2038	{
	}
	movieClip 2040	{
	}
	movieClip 2042	{
	}
	movieClip 2044	{
	}
	movieClip 2049	{
	}
	movieClip 2050	{
	}
	movieClip 2051	{
		instance of movieClip 2050	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (_root.quest == 1) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Sorry I cant talk right now. Im extremely busy...';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (!_root.haveabandonedchart && _root.haveset2 && _root.quest >= 3) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Hello there! My thats a nice set of armor, but I must say I have seen better. I actually made a much more powerful set awhile back, but it was stolen by a group of thieves.';
					}
					if (this.message == 1 && this.chat) {
						_root.cam.textbox.text = 'Say.. That gives me an idea. I dont really care to get the armor back, but I want those thieves to be taught a lesson. Perhaps you could go retrieve it. If so you have a better set of armor for free. Here is the map chart to there location.';
					}
					if (this.message == 2 && this.chat) {
						_root.cam.textbox.text = 'You got the Abandoned Island map chart! The black smith has given you the task of obtaining his stolen property from Abandoned Island. He just wants those thieves to learn there lesson.';
						_root.getItems = true;
						_root.newitem = 10;
						if (_root.sfx && !this.played) {
							_root.getkey.start(0, 1);
							this.played = true;
						}
					}
					if (this.chat && _root.chatting && this.message == 3) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.getItems = false;
						_root.newitem = 0;
						_root.haveabandonedchart = true;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.quest == 2) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = '... Oh of course I have been waiting for you. Here is your Reverie Island map chart.';
					}
					if (this.message == 1 && this.chat) {
						_root.cam.textbox.text = 'You got the Reverie Island map chart! You can press the spacebar to open up your map and view the world map. Now you can simply go over to Conrads boat and press A to choose your destination.';
						_root.getItems = true;
						_root.newitem = 10;
						_root.havereveriechart = true;
						if (_root.sfx && !this.played) {
							_root.getkey.start(0, 1);
							this.played = true;
						}
					}
					if (this.chat && _root.chatting && this.message == 2) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.getItems = false;
						_root.newitem = 0;
						_root.quest = 3;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.quest >= 3 && !_root.haveset2 or _root.quest >= 3 && _root.haveabandonedchart) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Sorry I cant talk right now. Im extremely busy...';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 2050	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (_root.quest == 1) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Sorry I cant talk right now. Im extremely busy...';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.quest == 2) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = '... Oh of course I have been waiting for you. Here is your Reverie Island map chart.';
					}
					if (this.message == 1 && this.chat) {
						_root.cam.textbox.text = 'You got the Reverie Island map chart! You can press the spacebar to open up your map and view the world map. Now you can simply go over to Conrads boat and press A to choose your destination.';
						_root.getItems = true;
						_root.newitem = 10;
						_root.havereveriechart = true;
						if (_root.sfx && !this.played) {
							_root.getkey.start(0, 1);
							this.played = true;
						}
					}
					if (this.chat && _root.chatting && this.message == 2) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.getItems = false;
						_root.newitem = 0;
						_root.quest = 3;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.quest >= 3) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Sorry I cant talk right now. Im extremely busy...';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1948	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Dad says I need to go to bed and get my rest. I shouldnt talk now or I will get into trouble.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	instance BG of movieClip 2051	{
		onClipEvent (enterFrame) {
			if (_root.days && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (!_root.days && this._currentframe !== 2) {
				this.gotoAndStop(2);
			}
		}
	}
	movieClip 2052	{
	}
	frame 22 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 516.9;
		_root.cam._y = 702.1;
		_root.BG._visible = false;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 2055	{
	}
	movieClip 2058	{
	}
	movieClip 2061	{
	}
	movieClip 2064	{
	}
	movieClip 2067	{
	}
	movieClip 2068	{
	}
	movieClip 2070	{
	}
	movieClip 2072	{
	}
	movieClip 2074	{
	}
	movieClip 2079	{
	}
	movieClip 2082	{
	}
	movieClip 2083	{
	}
	movieClip 2084	{
	}
	movieClip 2087	{
	}
	movieClip 2090	{
	}
	movieClip 2091	{
		frame 1 {
			stop();
		}
	}
	movieClip 2092	{
		instance of movieClip 2087	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && !_root.getItems && !_root.carry && !_root.throws && !_root.hurt && !_root.hurted)) {
					this.selections = 3;
					_root.chatting = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
				if (_root.getItems && _root.chatting && _root.newitem == 1) {
					_root.cam.textbox.text = 'You got a small potion! These can be equipped to the D key and used when your health is running low to restore 3 heart containers!';
				}
				if (_root.getItems && _root.chatting && _root.newitem == 2) {
					_root.cam.textbox.text = 'You got a medium sized potion! These can be equipped to the D key and used when your health is running low to restore 5 heart containers!';
				}
				if (_root.chatting && !_root.getItems) {
					_root.maps.select.gotoAndStop(this.selections);
					if (this.selections == 1 && _root.money >= 5 && _root.health < _root.maxhealth) {
						_root.cam.textbox.text = 'Apple: 5 Gold\rThis replenishes half a heart.\rPress A to Buy.';
						if (Key.isDown(65) && !this.apush && _root.money >= 5) {
							_root.money -= 5;
							_root.health += 2;
							this.apush = true;
						}
					}
					if (this.selections == 1 && _root.money < 5) {
						_root.cam.textbox.text = 'Apple: 5 Gold\rNot Enough Money.';
					} else {
						if (this.selections == 1 && _root.health == _root.maxhealth) {
							_root.cam.textbox.text = 'Apple: 5 Gold\rYour health is full.';
						}
					}
					if (this.selections == 2 && _root.money >= 25) {
						_root.cam.textbox.text = 'Small Potion: 25 Gold\rRestores 3 heart full hearts.\rPress A to Buy';
						if (Key.isDown(65) && !this.apush && _root.money >= 25) {
							_root.money -= 25;
							_root.newitem = 1;
							this.counter = 0;
							this.apush = true;
							_root.getItems = true;
						}
					}
					if (this.selections == 2 && _root.money < 25) {
						_root.cam.textbox.text = 'Small Potion: 25 Gold\rNot Enough Money.';
					}
					if (this.selections == 3) {
						_root.cam.textbox.text = 'Welcome to my shop. Please take a look around with the Left or Right arrow keys. Press A to purchase the selected item. Press A to exit.';
					}
					if (this.selections == 4 && _root.money >= 60) {
						_root.cam.textbox.text = 'Medium Potion: 60 Gold\rRestores 5 heart containers!\rPress A to Buy';
						if (Key.isDown(65) && !this.apush) {
							_root.money -= 40;
							_root.newitem = 2;
							this.counter = 0;
							this.apush = true;
							_root.getItems = true;
						}
					}
					if (this.selections == 4 && _root.money < 60) {
						_root.cam.textbox.text = 'Medium Potion: 60 Gold\rNot Enough Money.';
					}
					if (this.selections == 5 && _root.money >= 120) {
						_root.cam.textbox.text = 'Large Potion: 120 Gold\rWhen equipped and used this potion will restore all of your hearts. If your life reaches zero while you have a Large Potion in your inventory you will be revived.\rPress A to Buy';
						if (Key.isDown(65) && !this.apush) {
							_root.money -= 120;
							this.counter = 0;
							_root.newitem = 3;
							this.apush = true;
							_root.getItems = true;
						}
					}
					if (this.selections == 5 && _root.money < 120) {
						_root.cam.textbox.text = 'Large Potion: 120 Gold\rNot Enough Money.';
					}
					if (Key.isDown(39) && !this.keypush) {
						this.keypush = true;
						++this.selections;
					}
					if (Key.isDown(37) && !this.keypush) {
						this.keypush = true;
						--this.selections;
					}
					if (!Key.isDown(65)) {
						this.apush = false;
					}
					if (!Key.isDown(39) && !Key.isDown(37)) {
						this.keypush = false;
					}
					if (this.selections > 5) {
						this.selections = 1;
					}
					if (this.selections < 1) {
						this.selections = 5;
					}
				}
				if (this.counter >= 1.5 && Key.isDown(65) && this.selections == 3 && _root.chatting or _root.getItems && this.counter >= 1.5 && Key.isDown(65) && _root.chatting) {
					_root.cam.textbox.text = ' ';
					_root.chatting = false;
					_root.getItems = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance select of movieClip 2091	{
			onClipEvent (enterFrame) {
				if (_root.chatting && !this._visible) {
					this._visible = true;
				}
				if (!_root.chatting && this._visible) {
					this._visible = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 2094	{
	}
	frame 23 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 516.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 2097	{
	}
	movieClip 2098	{
	}
	movieClip 2099	{
	}
	movieClip 2101	{
	}
	movieClip 2103	{
	}
	movieClip 2105	{
	}
	movieClip 2107	{
	}
	movieClip 2116	{
	}
	movieClip 2119	{
	}
	movieClip 2120	{
	}
	movieClip 2121	{
	}
	movieClip 2122	{
		instance of movieClip 2087	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Welcome to the library! Feel free to take a look around. But please be quiet and considerate of others.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (this.chat && _root.chatting && this.message == 2) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.getItems = false;
					_root.newitem = 0;
					_root.quest = 3;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 2124	{
	}
	frame 24 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 2129	{
	}
	movieClip 2132	{
	}
	movieClip 2133	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 2135	{
	}
	movieClip 2136	{
	}
	movieClip 2137	{
	}
	movieClip 2139	{
	}
	movieClip 2141	{
	}
	movieClip 2143	{
	}
	movieClip 2151	{
	}
	movieClip 2153	{
	}
	movieClip 2154	{
	}
	movieClip 2158	{
	}
	movieClip 2159	{
	}
	movieClip 2160	{
		instance of movieClip 2154	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Hello. You truly have grown alot since you started your training with Conrad. I bet you will be a Guardian in no time!';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 2159	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'ZZZzzz, he is sleeping.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	instance BG of movieClip 2160	{
		onClipEvent (enterFrame) {
			if (_root.days && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (!_root.days && this._currentframe !== 2) {
				this.gotoAndStop(2);
			}
		}
	}
	movieClip 2161	{
	}
	frame 25 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 2162	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 2163	{
	}
	movieClip 2164	{
	}
	movieClip 2165	{
	}
	movieClip 2167	{
	}
	movieClip 2169	{
	}
	movieClip 2171	{
	}
	movieClip 2180	{
	}
	movieClip 2183	{
	}
	movieClip 2184	{
	}
	movieClip 2185	{
	}
	movieClip 2189	{
	}
	movieClip 2190	{
	}
	movieClip 2191	{
		instance of movieClip 2185	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Do you always come into peoples homes uninvited?';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 2190	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'ZZZzzz, she is sleeping.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	instance BG of movieClip 2191	{
		onClipEvent (enterFrame) {
			if (_root.days && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (!_root.days && this._currentframe !== 2) {
				this.gotoAndStop(2);
			}
		}
	}
	frame 26 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 516.9;
		_root.cam._y = 702.1;
		_root.BG._visible = false;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 2193	{
	}
	movieClip 2198	{
	}
	movieClip 2200	{
	}
	movieClip 2202	{
	}
	movieClip 2205	{
	}
	movieClip 2206	{
	}
	movieClip 2207	{
	}
	movieClip 2208	{
		frame 1 {
			stop();
		}
	}
	movieClip 2209	{
		instance of movieClip 2087	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && !_root.getItems && !_root.carry && !_root.throws && !_root.hurt && !_root.hurted)) {
					this.selections = 3;
					_root.chatting = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
				if (_root.getItems && _root.chatting) {
					_root.cam.textbox.text = 'You got bombs! You can equip these to the D key from the menu screen!';
				}
				if (_root.chatting && !_root.getItems) {
					_root.maps.select.gotoAndStop(this.selections);
					if (this.selections == 1 && _root.money >= 5) {
						_root.cam.textbox.text = '1 Bomb: 5 Gold\rPress A to Buy';
						if (Key.isDown(65) && !this.apush && _root.money >= 5) {
							_root.money -= 5;
							_root.bombs += 1;
							this.counter = 0;
							this.apush = true;
							_root.getItems = true;
							_root.newitem = 4;
						}
					}
					if (this.selections == 1 && _root.money < 5) {
						_root.cam.textbox.text = '1 Bomb: 5 Gold\rNot Enough Money.';
					}
					if (this.selections == 2 && _root.money >= 25) {
						_root.cam.textbox.text = '5 Bombs: 25 Gold\rPress A to Buy';
						if (Key.isDown(65) && !this.apush && _root.money >= 25) {
							_root.money -= 25;
							_root.bombs += 5;
							this.counter = 0;
							this.apush = true;
							_root.getItems = true;
							_root.newitem = 4;
						}
					}
					if (this.selections == 2 && _root.money < 25) {
						_root.cam.textbox.text = '5 Bombs: 25 Gold\rNot Enough Money.';
					}
					if (this.selections == 3) {
						_root.cam.textbox.text = 'Welcome to my shop. Please take a look around with the Left or Right arrow keys. Press A to purchase the selected item. Press A to exit.';
					}
					if (this.selections == 4 && _root.money >= 50) {
						_root.cam.textbox.text = '10 Bombs: 50 Gold\rPress A to Buy';
						if (Key.isDown(65) && !this.apush) {
							_root.money -= 50;
							_root.bombs += 10;
							this.counter = 0;
							this.apush = true;
							_root.getItems = true;
							_root.newitem = 4;
						}
					}
					if (this.selections == 4 && _root.money < 50) {
						_root.cam.textbox.text = '10 Bombs: 50 Gold\rNot Enough Money.';
					}
					if (this.selections == 5 && _root.money >= 100) {
						_root.cam.textbox.text = '20 Bombs: 100 Gold\rPress A to Buy';
						if (Key.isDown(65) && !this.apush) {
							_root.money -= 100;
							_root.bombs += 20;
							this.counter = 0;
							this.apush = true;
							_root.getItems = true;
							_root.newitem = 4;
						}
					}
					if (this.selections == 5 && _root.money < 100) {
						_root.cam.textbox.text = '20 Bombs: 100 Gold\rNot Enough Money.';
					}
					if (Key.isDown(39) && !this.keypush) {
						this.keypush = true;
						++this.selections;
					}
					if (Key.isDown(37) && !this.keypush) {
						this.keypush = true;
						--this.selections;
					}
					if (!Key.isDown(65)) {
						this.apush = false;
					}
					if (!Key.isDown(39) && !Key.isDown(37)) {
						this.keypush = false;
					}
					if (this.selections > 5) {
						this.selections = 1;
					}
					if (this.selections < 1) {
						this.selections = 5;
					}
				}
				if (this.counter >= 1.5 && Key.isDown(65) && this.selections == 3 && _root.chatting or _root.getItems && this.counter >= 1.5 && Key.isDown(65) && _root.chatting) {
					_root.cam.textbox.text = ' ';
					_root.chatting = false;
					_root.newitem = 0;
					_root.getItems = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance select of movieClip 2208	{
			onClipEvent (enterFrame) {
				if (_root.chatting && !this._visible) {
					this._visible = true;
				}
				if (!_root.chatting && this._visible) {
					this._visible = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 2211	{
	}
	frame 27 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 2212	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'neveah5';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press the S key to sleep.\rPress A to exit the dialogue.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					this.sleeping = true;
				}
				if (this.sleeping && _root.trans._currentframe >= 20) {
					_root.health = _root.maxhealth;
					if (_root.days) {
						_root.days = false;
					} else {
						if (!_root.days) {
							_root.days = true;
						}
					}
					this.sleeping = false;
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 2217	{
		frame 1 {
			stop();
		}
	}
	movieClip 2218	{
	}
	movieClip 2220	{
	}
	movieClip 2222	{
	}
	movieClip 2224	{
	}
	movieClip 2226	{
	}
	movieClip 2234	{
	}
	movieClip 2236	{
	}
	movieClip 2237	{
	}
	movieClip 2238	{
		instance of movieClip 2237	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (_root.quest == 1) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = '' + _root.name + ', right on time. I have some bad news. I just got a letter from Reverie Island and they are in need of immediate help.	It seems that some of the villagers have gone into a coma state and will not wake up.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = 'Now I have spoke with The Guardian of Reverie Island, Osiris and he specifically asked for my help, but to be honest I am getting to old for this sort of thing. So I have decided to send you instead. You have truly blossomed over the past year of training and I really think it is time for you to go out-';
					}
					if (this.chat && _root.chatting && this.message == 2) {
						_root.cam.textbox.text = 'on your own adventure. You will travel across vast seas, ancient lands and give you the type of experience you can only get on this sort of mission. Donâ€™t worry I have full faith in you and I am positive you will come back alive. I hopeâ€¦.	Your first step on your quest is to go to the Blacksmiths and-';
					}
					if (this.chat && _root.chatting && this.message == 3) {
						_root.cam.textbox.text = '-acquire the Map Chart to Reverie. You canâ€™t leave unless you know where youâ€™re going. You can also use my boat for your travels. Feel free to browse the shops and stock up on useful items before you go. You never know what you may encounter on your journey.';
					}
					if (this.chat && _root.chatting && this.message == 4) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.quest = 2;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.quest == 2) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Remember, you must go to the black smiths to acquire the Reverie Map chart. From there you can take my boat at the dock to Reverie Island.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.quest >= 3) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Great you got the Reverie Map! Now just go to my boat at the dock and press A. Then just select your destination!';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	frame 36 {
		_root.reveriemusic = true;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
		_root.goblinsound = false;
		_root.genericsound = false;
		_root.walking = 1;
		_root.cam._x = _root.box._x;
		_root.cam._y = _root.box._y;
		_root.room = 'room0';
	}
	movieClip 2240	{
	}
	movieClip 2241	{
		frame 1 {
			stop();
		}
	}
	movieClip 2243	{
	}
	movieClip 2244	{
		instance of movieClip 2241	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1688	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'room1';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'mayors';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'postmans';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 2246	{
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
	}
	movieClip 2247	{
		frame 1 {
			stop();
		}
	}
	movieClip 2248	{
		instance of movieClip 2247	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1760	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	instance daynight of movieClip 1786	{
		onClipEvent (enterFrame) {
			if (!_root.days) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
				if (!_root.sundown) {
					this.gotoAndStop(2);
					if (this.sundown._currentframe == 40) {
						_root.sundown = true;
					}
				}
			}
			if (!_root.days && _root.sundown && this._currentframe !== 3) {
				this.gotoAndStop(3);
			}
			if (_root.days && _root.sundown) {
				this._x = _root.cam._x;
				this._y = _root.can._y;
				this.gotoAndStop(4);
				if (this.sunup._currentframe == 40) {
					_root.sundown = false;
				}
			}
			if (_root.days && !_root.sundown && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (_root.rainchance == 1) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
			}
		}
	}
	frame 37 {
		stop();
		_root.walking = 1;
		_root.reveriemusic = true;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 2250	{
	}
	movieClip 2252	{
	}
	movieClip 2253	{
		frame 1 {
			stop();
		}
	}
	movieClip 2254	{
		frame 1 {
			stop();
		}
	}
	movieClip 2256	{
	}
	movieClip 2258	{
	}
	movieClip 2260	{
	}
	movieClip 2262	{
		instance of movieClip 1688	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1802	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1816	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 2;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting)) {
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'All Purpose Shop';
					_root.chatting = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
					_root.cam.textbox.text = ' ';
					_root.cam.textbox.play();
					_root.chatting = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1807	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2253	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1807	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2254	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2253	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1802	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2256	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 2;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting)) {
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'Bomb Shop: Here for all your exploding related needs.';
					_root.chatting = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
					_root.cam.textbox.text = ' ';
					_root.cam.textbox.play();
					_root.chatting = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 2258	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 2;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting)) {
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'Fortune Teller: If your having a little trouble and need some guidance I can put you on the right track. Donations of 20 gold are always accepte!';
					_root.chatting = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
					_root.cam.textbox.text = ' ';
					_root.cam.textbox.play();
					_root.chatting = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 2260	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 2;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting)) {
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'Pub: A great place to gather gossip and take a load off.';
					_root.chatting = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
					_root.cam.textbox.text = ' ';
					_root.cam.textbox.play();
					_root.chatting = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'room0';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'room2';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'room3';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'fortune';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'bombshop';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'pub';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'shop2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'hangout';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'smallhome';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ranhouse1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ranhouse2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 2264	{
	}
	movieClip 2265	{
	}
	movieClip 2266	{
	}
	movieClip 2268	{
	}
	movieClip 2270	{
	}
	movieClip 2272	{
	}
	movieClip 2286	{
	}
	movieClip 2288	{
	}
	movieClip 2289	{
	}
	movieClip 2290	{
		instance of movieClip 2289	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'The kids here on Reverie have had to learn to take care of themselves. That is mainly due to our parents getting sick. I hope they get better soon!';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
	}
	movieClip 2291	{
		frame 1 {
			stop();
		}
	}
	movieClip 2292	{
		frame 1 {
			stop();
		}
	}
	movieClip 2293	{
		instance of movieClip 1820	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2291	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1760	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2292	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1820	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2291	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1821	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1821	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	frame 38 {
		stop();
		_root.walking = 1;
		_root.cam._x = _root.box._x;
		_root.cam._y = _root.box._y;
		_root.BG._visible = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = true;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 2298	{
	}
	movieClip 2301	{
	}
	movieClip 2304	{
	}
	movieClip 2307	{
	}
	movieClip 2310	{
	}
	movieClip 2313	{
	}
	movieClip 2315	{
	}
	movieClip 2317	{
	}
	movieClip 2320	{
	}
	movieClip 2321	{
		instance of movieClip 1807	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (_root.quest >= 6) {
					if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
						_root.oldroom = _root.room;
						_root.warping = true;
						_root.room = 'gravekeepers';
						plays = true;
					}
					if (_root.sfx && plays) {
						_root.dooropen.start(0, 1);
						plays = false;
					}
				}
				if (_root.quest < 6) {
					if (this.hitTest(_root.box) && !this.plays && _root.sfx) {
						_root.doorlocked.start(0, 1);
						this.plays = true;
					}
					if (!this.hitTest(_root.box) && this.plays) {
						this.plays = false;
					}
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'room1';
				}
			}
		}
	}
	movieClip 2323	{
	}
	movieClip 2325	{
	}
	movieClip 2327	{
	}
	movieClip 2329	{
	}
	movieClip 2331	{
	}
	movieClip 2333	{
	}
	movieClip 2334	{
	}
	movieClip 2335	{
		frame 8 {
			stop();
		}
	}
	movieClip 2336	{
	}
	movieClip 2337	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	movieClip 2339	{
	}
	movieClip 2341	{
	}
	movieClip 2343	{
	}
	movieClip 2344	{
	}
	movieClip 2345	{
		frame 8 {
			stop();
		}
	}
	movieClip 2346	{
	}
	movieClip 2347	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	movieClip 2349	{
	}
	movieClip 2351	{
	}
	movieClip 2353	{
	}
	movieClip 2354	{
	}
	movieClip 2355	{
		frame 8 {
			stop();
		}
	}
	movieClip 2356	{
	}
	movieClip 2357	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	movieClip 2358	{
		frame 10 {
			stop();
		}
	}
	movieClip 2359	{
		frame 1 {
			stop();
		}
		instance of movieClip 2358	{
			onClipEvent (enterFrame) {
				if (!itemdropped && this._currentframe == 10) {
					dropped = _root.dropitem.duplicateMovieClip('newdrop' + _root.ar, _root.getNextHighestDepth());
					++_root.ar;
					dropped._x = _parent._x;
					dropped._y = _parent._y;
					dropped.placed = true;
					itemdropped = true;
				}
			}
		}
	}
	instance of movieClip 2359	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.vis = true;
			this._alpha = 100;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this._alpha > 0 && this.vis) {
					--this._alpha;
				}
				if (this._alpha <= 0 && this.vis) {
					this.vis = false;
				} else {
					if (this._alpha >= 100 && !this.vis) {
						this.vis = true;
					}
				}
				if (this._alpha < 100 && !this.vis) {
					++this._alpha;
				}
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.ghost.gotoAndStop(1);
					this.ghost.ghost.play();
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.ghost.gotoAndStop(8);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 20, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 20, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 5;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.ghost.gotoAndStop(3);
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 3;
					} else {
						if (_root.sword == 3) {
							this.health -= 4;
						} else {
							if (_root.sword == 4) {
								this.health -= 5;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.ghost.gotoAndStop(2);
			}
			if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 2359	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.vis = true;
			this._alpha = 100;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this._alpha > 0 && this.vis) {
					--this._alpha;
				}
				if (this._alpha <= 0 && this.vis) {
					this.vis = false;
				} else {
					if (this._alpha >= 100 && !this.vis) {
						this.vis = true;
					}
				}
				if (this._alpha < 100 && !this.vis) {
					++this._alpha;
				}
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.ghost.gotoAndStop(1);
					this.ghost.ghost.play();
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.ghost.gotoAndStop(8);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 20, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 20, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 5;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.ghost.gotoAndStop(3);
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 3;
					} else {
						if (_root.sword == 3) {
							this.health -= 4;
						} else {
							if (_root.sword == 4) {
								this.health -= 5;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.ghost.gotoAndStop(2);
			}
			if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 2359	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.vis = true;
			this._alpha = 100;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this._alpha > 0 && this.vis) {
					--this._alpha;
				}
				if (this._alpha <= 0 && this.vis) {
					this.vis = false;
				} else {
					if (this._alpha >= 100 && !this.vis) {
						this.vis = true;
					}
				}
				if (this._alpha < 100 && !this.vis) {
					++this._alpha;
				}
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.ghost.gotoAndStop(1);
					this.ghost.ghost.play();
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.ghost.gotoAndStop(8);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 20, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 20, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 5;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.ghost.gotoAndStop(3);
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 3;
					} else {
						if (_root.sword == 3) {
							this.health -= 4;
						} else {
							if (_root.sword == 4) {
								this.health -= 5;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.ghost.gotoAndStop(2);
			}
			if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 2359	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.vis = true;
			this._alpha = 100;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this._alpha > 0 && this.vis) {
					--this._alpha;
				}
				if (this._alpha <= 0 && this.vis) {
					this.vis = false;
				} else {
					if (this._alpha >= 100 && !this.vis) {
						this.vis = true;
					}
				}
				if (this._alpha < 100 && !this.vis) {
					++this._alpha;
				}
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.ghost.gotoAndStop(1);
					this.ghost.ghost.play();
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.ghost.gotoAndStop(8);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 20, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 20, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 5;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.ghost.gotoAndStop(3);
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 3;
					} else {
						if (_root.sword == 3) {
							this.health -= 4;
						} else {
							if (_root.sword == 4) {
								this.health -= 5;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.ghost.gotoAndStop(2);
			}
			if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 2359	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.vis = true;
			this._alpha = 100;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this._alpha > 0 && this.vis) {
					--this._alpha;
				}
				if (this._alpha <= 0 && this.vis) {
					this.vis = false;
				} else {
					if (this._alpha >= 100 && !this.vis) {
						this.vis = true;
					}
				}
				if (this._alpha < 100 && !this.vis) {
					++this._alpha;
				}
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.ghost.gotoAndStop(1);
					this.ghost.ghost.play();
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.ghost.gotoAndStop(8);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 20, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 20, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 5;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.ghost.gotoAndStop(3);
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 3;
					} else {
						if (_root.sword == 3) {
							this.health -= 4;
						} else {
							if (_root.sword == 4) {
								this.health -= 5;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.ghost.gotoAndStop(2);
			}
			if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 2361	{
	}
	movieClip 2363	{
	}
	movieClip 2365	{
	}
	movieClip 2366	{
		instance of movieClip 1820	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	frame 39 {
		stop();
		_root.walking = 1;
		_root.cam._x = _root.box._x;
		_root.cam._y = _root.box._y;
		_root.reveriemusic = true;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
		_root.restartpoint = _root.room;
		_root.oldrestart = _root.oldroom;
	}
	movieClip 2369	{
	}
	movieClip 2370	{
		instance of movieClip 1688	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1816	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 2;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting)) {
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'Shop';
					_root.chatting = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
					_root.cam.textbox.text = ' ';
					_root.cam.textbox.play();
					_root.chatting = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'room1';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'shop1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 8;
				}
				if (this.hitTest(_root.box) && Key.isDown(65) && !_root.pause && !_root.warping) {
					_root.screen = 4;
					_root.pause = true;
					_root.menusc.gotoAndStop(4);
					_root.menusc._visible = true;
					_root.apush = true;
					_root.menusc.deciding = true;
					if (_root.sfx) {
						_root.openmenu.start(0, 1);
					}
				}
			}
		}
	}
	instance of movieClip 680	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x + 55;
				flashes._y = this._y + 40;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 9 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 680	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x + 55;
				flashes._y = this._y + 40;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 9 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 680	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x + 55;
				flashes._y = this._y + 40;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 9 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 680	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x + 55;
				flashes._y = this._y + 40;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 9 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 2372	{
		instance of movieClip 1948	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Hello sir. Your not from around here are you? I suggest you get out of here while you can. Before you fall to the sickness that is taking over this island.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
	}
	movieClip 2373	{
		instance of movieClip 1760	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	frame 40 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 516.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 2377	{
	}
	movieClip 2380	{
	}
	movieClip 2381	{
	}
	movieClip 2382	{
	}
	movieClip 2384	{
	}
	movieClip 2386	{
	}
	movieClip 2388	{
	}
	movieClip 2395	{
	}
	movieClip 2397	{
	}
	movieClip 2398	{
	}
	movieClip 2401	{
	}
	movieClip 2402	{
	}
	movieClip 2403	{
	}
	movieClip 2404	{
	}
	movieClip 2406	{
	}
	movieClip 2408	{
	}
	movieClip 2410	{
	}
	movieClip 2416	{
	}
	movieClip 2418	{
	}
	movieClip 2419	{
	}
	movieClip 2420	{
	}
	movieClip 2421	{
	}
	movieClip 2422	{
	}
	movieClip 2423	{
	}
	movieClip 2425	{
	}
	movieClip 2427	{
	}
	movieClip 2429	{
	}
	movieClip 2438	{
	}
	movieClip 2440	{
	}
	movieClip 2441	{
	}
	movieClip 2442	{
	}
	movieClip 2445	{
	}
	movieClip 2446	{
	}
	movieClip 2447	{
	}
	movieClip 2449	{
	}
	movieClip 2451	{
	}
	movieClip 2453	{
	}
	movieClip 2457	{
	}
	movieClip 2459	{
	}
	movieClip 2460	{
	}
	movieClip 2461	{
	}
	movieClip 2462	{
		instance of movieClip 2401	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message >= 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (_root.quest >= 4) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'I dont think I have seen you around here before. We dont usually get any outsiders around these parts. Its mainly due to the illness that has spread across the island. A lot of people are slipping into a coma and there is no way to wake them up. Its scary I know, the villagers are scared and have retreated indoors.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = 'There are only a select few people that have not fallen victim to the illness. But you never know who will be next. I just hope someone figures out something soon. Or we are all doomed, and its always possible that the illness could make its way to another island.';
					}
					if (this.chat && _root.chatting && this.message == 2) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 2420	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (_root.quest == 4) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Hello there. You are not from around here are you? You look like a brave young man. Can I let you in on a little secret? This town has not fallen victim to any type of illness. Its a curse from a shadow demon. I know because he tried to capture me, but I was to fast. I woke up before he could get his hands on me.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = 'He had a pointy head and a sword, but he was to dark to see his face. I think the mayor knows about it too, he just doesnt want to alarm the public. Maybe if you spoke with him something could be done.';
					}
					if (this.chat && _root.chatting && this.message == 2) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.quest = 5;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.quest >= 5) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'You should speak with the mayor. I think that he would listen to an outsider. Make sure not to tell anyone else about the curse though. You dont want to scare anyone more then they already are.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 2442	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (_root.quest >= 4) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'I cant help but feel helpless. All this is happening to everyone, and there is nothing I can do.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 2380	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (_root.quest >= 4) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Hello there. I dont think I have seen you around here before. This is the town pub, its a great place to here gossip and news. A lot of people find refuge here because of the illness going around. My guess is the familiarity is comforting to the villagers.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 2380	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (_root.quest >= 4) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'My entire family has fallen victim to the so called illness. The pub is the best place to help take my mind off of it. All the people who have fallen to the illness look like there in pain. If you ask me it seems like its more like a curse. There is obviously more going on then what the Mayor is telling us.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'room1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.box) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press the S key to sleep.\rPress A to exit the dialogue.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					this.sleeping = true;
				}
				if (this.sleeping && _root.trans._currentframe >= 20) {
					_root.health = _root.maxhealth;
					if (_root.days) {
						_root.days = false;
					} else {
						if (!_root.days) {
							_root.days = true;
						}
					}
					this.sleeping = false;
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (_root.quest == 16 && !_root.pub1saved) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0 && _root.quest == 16) {
						if (this.hitTest(_root.box) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'He looks like he is in pain. Maybe you can save him with the lantern.\rPress A to exit the dialogue.\rPress S to use the lantern.';
					}
					if (this.message == 0 && this.chat && Key.isDown(83)) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.warping = true;
						_root.oldroom = _root.room;
						_root.room = 'ndung';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (_root.quest == 16 && !_root.pub2saved) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0 && _root.quest == 16) {
						if (this.hitTest(_root.box) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'He looks like he is in pain. Maybe you can save him with the lantern.\rPress A to exit the dialogue.\rPress S to use the lantern.';
					}
					if (this.message == 0 && this.chat && Key.isDown(83)) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.warping = true;
						_root.oldroom = _root.room;
						_root.room = 'ndung5';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (_root.quest == 16 && !_root.pub3saved) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0 && _root.quest == 16) {
						if (this.hitTest(_root.box) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'He looks like he is in pain. Maybe you can save him with the lantern.\rPress A to exit the dialogue.\rPress S to use the lantern.';
					}
					if (this.message == 0 && this.chat && Key.isDown(83)) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.warping = true;
						_root.oldroom = _root.room;
						_root.room = 'ndung10';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (_root.quest == 16 && !_root.pub4saved) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0 && _root.quest == 16) {
						if (this.hitTest(_root.box) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'He looks like he is in pain. Maybe you can save him with the lantern.\rPress A to exit the dialogue.\rPress S to use the lantern.';
					}
					if (this.message == 0 && this.chat && Key.isDown(83)) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.warping = true;
						_root.oldroom = _root.room;
						_root.room = 'ndung15';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
	}
	movieClip 2464	{
	}
	movieClip 2466	{
	}
	movieClip 2468	{
	}
	movieClip 2471	{
	}
	movieClip 2472	{
	}
	movieClip 2473	{
	}
	instance of movieClip 2473	{
		onClipEvent (load) {
			this.message = 0;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				_root.aicon = 7;
			}
			if (this.message == 0) {
				if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
					_root.chatting = true;
					this.chat = true;
					this.apush = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
			}
			if (this.message == 0 && this.chat) {
				_root.cam.textbox.text = 'Its hard to believe all of this is happening. I try my best to keep them comfortable, but they just look like there in constant agony.';
			}
			if (this.chat && _root.chatting && this.message == 1) {
				_root.chatting = false;
				_root.cam.textbox.text = ' ';
				if (_root.sfx) {
					_root.stopmsg.start(0, 1);
				}
			}
			if (Key.isDown(65) && !this.apush && this.chat) {
				++this.message;
				this.apush = true;
			}
			if (!Key.isDown(65) && this.apush && this.chat) {
				this.apush = false;
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.chat = false;
				this.message = 0;
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65) && this.chat) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	movieClip 2476	{
	}
	movieClip 2478	{
	}
	movieClip 2482	{
	}
	movieClip 2483	{
	}
	movieClip 2484	{
	}
	movieClip 2485	{
	}
	movieClip 2487	{
	}
	movieClip 2494	{
	}
	movieClip 2496	{
	}
	movieClip 2497	{
	}
	movieClip 2498	{
		frame 1 {
			stop();
		}
		instance of movieClip 2483	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (_root.quest < 16) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0) {
						if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'ZZZzzz... He is one of the victims in a coma. He looks like he is in pain.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
		instance of movieClip 2484	{
			onClipEvent (enterFrame) {
				if (_root.girlfree && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2497	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (_root.quest == 16) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0 && _root.quest == 16) {
						if (this.hitTest(_root.box) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Thank you so much for saving me.Do you need something?\rPress A to exit the dialogue.\rPress S to use the lantern.';
					}
					if (this.message == 0 && this.chat && Key.isDown(83)) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.warping = true;
						_root.oldroom = _root.room;
						_root.room = 'ndung10';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
	}
	movieClip 2499	{
	}
	movieClip 2500	{
		frame 1 {
			stop();
		}
		instance of movieClip 2484	{
			onClipEvent (enterFrame) {
				if (_root.girlfree && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2154	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (_root.quest == 16) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0 && _root.quest == 16) {
						if (this.hitTest(_root.box) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Thank you so much for saving me.Do you need something?\rPress A to exit the dialogue.\rPress S to use the lantern.';
					}
					if (this.message == 0 && this.chat && Key.isDown(83)) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.warping = true;
						_root.oldroom = _root.room;
						_root.room = 'ndung';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
	}
	movieClip 2502	{
	}
	movieClip 2504	{
	}
	movieClip 2508	{
	}
	movieClip 2509	{
	}
	movieClip 2510	{
	}
	movieClip 2511	{
	}
	movieClip 2512	{
	}
	movieClip 2514	{
	}
	movieClip 2522	{
	}
	movieClip 2524	{
	}
	movieClip 2525	{
	}
	movieClip 2526	{
		frame 1 {
			stop();
		}
		instance of movieClip 2509	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (_root.quest < 16) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0) {
						if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'ZZZzzz... He is one of the victims in a coma. He looks like he is in pain.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
		instance of movieClip 2484	{
			onClipEvent (enterFrame) {
				if (_root.girlfree && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2525	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (_root.quest == 16) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0 && _root.quest == 16) {
						if (this.hitTest(_root.box) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Thank you so much for saving me.Do you need something?\rPress A to exit the dialogue.\rPress S to use the lantern.';
					}
					if (this.message == 0 && this.chat && Key.isDown(83)) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.warping = true;
						_root.oldroom = _root.room;
						_root.room = 'ndung5';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
	}
	movieClip 2528	{
	}
	movieClip 2530	{
	}
	movieClip 2534	{
	}
	movieClip 2535	{
	}
	movieClip 2536	{
	}
	movieClip 2537	{
	}
	movieClip 2538	{
	}
	movieClip 2540	{
	}
	movieClip 2548	{
	}
	movieClip 2550	{
	}
	movieClip 2551	{
	}
	movieClip 2552	{
		frame 1 {
			stop();
		}
		instance of movieClip 2484	{
			onClipEvent (enterFrame) {
				if (_root.girlfree && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2551	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (_root.quest == 16) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0 && _root.quest == 16) {
						if (this.hitTest(_root.box) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Thank you so much for saving me.Do you need something?\rPress A to exit the dialogue.\rPress S to use the lantern.';
					}
					if (this.message == 0 && this.chat && Key.isDown(83)) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.warping = true;
						_root.oldroom = _root.room;
						_root.room = 'ndung15';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
	}
	movieClip 2553	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2498	{
			onClipEvent (enterFrame) {
				if (_root.pub3saved && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2500	{
			onClipEvent (enterFrame) {
				if (_root.pub1saved && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2526	{
			onClipEvent (enterFrame) {
				if (_root.pub2saved && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2552	{
			onClipEvent (enterFrame) {
				if (_root.pub4saved && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 2554	{
	}
	frame 41 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 516.9;
		_root.cam._y = 702.1;
		_root.BG._visible = false;
		_root.neveahmusic = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 2558	{
		instance of movieClip 2087	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && !_root.getItems && !_root.carry && !_root.throws && !_root.hurt && !_root.hurted)) {
					this.selections = 3;
					_root.chatting = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
				if (_root.getItems && _root.chatting && this.selections !== 5) {
					_root.cam.textbox.text = 'You got bombs! You can equip these to the D key from the menu screen!';
				}
				if (_root.getItems && _root.chatting && this.selections == 5) {
					_root.cam.textbox.text = 'You got the Blauncher! You can equip this to the D key from the menu screen by pressing A! While equipped you can press D to fire bombs.';
				}
				if (_root.chatting && !_root.getItems) {
					_root.maps.select.gotoAndStop(this.selections);
					if (this.selections == 1 && _root.money >= 5) {
						_root.cam.textbox.text = '1 Bomb: 5 Gold\rPress A to Buy';
						if (Key.isDown(65) && !this.apush && _root.money >= 5) {
							_root.money -= 5;
							_root.bombs += 1;
							this.counter = 0;
							this.apush = true;
							_root.getItems = true;
							_root.newitem = 4;
						}
					}
					if (this.selections == 1 && _root.money < 5) {
						_root.cam.textbox.text = '1 Bomb: 5 Gold\rNot Enough Money.';
					}
					if (this.selections == 2 && _root.money >= 25) {
						_root.cam.textbox.text = '5 Bombs: 25 Gold\rPress A to Buy';
						if (Key.isDown(65) && !this.apush && _root.money >= 25) {
							_root.money -= 25;
							_root.bombs += 5;
							this.counter = 0;
							this.apush = true;
							_root.getItems = true;
							_root.newitem = 4;
						}
					}
					if (this.selections == 2 && _root.money < 25) {
						_root.cam.textbox.text = '5 Bombs: 25 Gold\rNot Enough Money.';
					}
					if (this.selections == 3) {
						_root.cam.textbox.text = 'Welcome to my shop. Please take a look around with the Left or Right arrow keys. Press A to purchase the selected item. Press A to exit.';
					}
					if (this.selections == 4 && _root.money >= 50) {
						_root.cam.textbox.text = '10 Bombs: 50 Gold\rPress A to Buy';
						if (Key.isDown(65) && !this.apush) {
							_root.money -= 50;
							_root.bombs += 10;
							this.counter = 0;
							this.apush = true;
							_root.getItems = true;
							_root.newitem = 4;
						}
					}
					if (this.selections == 4 && _root.money < 50) {
						_root.cam.textbox.text = '10 Bombs: 50 Gold\rNot Enough Money.';
					}
					if (this.selections == 5 && _root.money >= 900 && !_root.blauncher) {
						_root.cam.textbox.text = 'Blauncher: 900 Gold\rPress A to Buy';
						if (Key.isDown(65) && !this.apush) {
							_root.money -= 800;
							_root.bombs += 20;
							this.counter = 0;
							this.apush = true;
							_root.getItems = true;
							_root.blauncher = true;
							_root.newitem = 8;
						}
					}
					if (this.selections == 5 && _root.money < 900 && !_root.blauncher) {
						_root.cam.textbox.text = 'Blauncher: 900 Gold\rNot Enough Money.';
					}
					if (this.selections == 5 && _root.blauncher) {
						_root.cam.textbox.text = 'Blauncher: 900 Gold\rOut Of Stock.';
					}
					if (Key.isDown(39) && !this.keypush) {
						this.keypush = true;
						++this.selections;
					}
					if (Key.isDown(37) && !this.keypush) {
						this.keypush = true;
						--this.selections;
					}
					if (!Key.isDown(65)) {
						this.apush = false;
					}
					if (!Key.isDown(39) && !Key.isDown(37)) {
						this.keypush = false;
					}
					if (this.selections > 5) {
						this.selections = 1;
					}
					if (this.selections < 1) {
						this.selections = 5;
					}
				}
				if (this.counter >= 1.5 && Key.isDown(65) && this.selections == 3 or _root.getItems && this.counter >= 1.5 && Key.isDown(65)) {
					_root.cam.textbox.text = ' ';
					_root.chatting = false;
					_root.newitem = 0;
					_root.getItems = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance select of movieClip 2208	{
			onClipEvent (enterFrame) {
				if (_root.chatting && !this._visible) {
					this._visible = true;
				}
				if (!_root.chatting && this._visible) {
					this._visible = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'room1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 42 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 516.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 2561	{
	}
	movieClip 2562	{
	}
	movieClip 2563	{
	}
	movieClip 2564	{
	}
	movieClip 2566	{
	}
	movieClip 2568	{
	}
	movieClip 2570	{
	}
	movieClip 2572	{
	}
	movieClip 2594	{
	}
	movieClip 2596	{
	}
	movieClip 2597	{
	}
	movieClip 2599	{
	}
	movieClip 2600	{
		instance of movieClip 2380	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (!_root.havemonstroschart) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Hello. Dont tell me, you have come to hear what is ahead on your journey as a hero. I will begin with matters of the heart, but no hero is to embark on a journey without guidance. You have came to me for a purpose.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = 'Your journey will bring you to Monstros Island. There you will encounter a boy who will need your help. Now I will accept a 20 gold donation.';
					}
					if (this.chat && _root.chatting && this.message == 2 && !_root.getItems) {
						_root.cam.textbox.text = 'You got the Monstros island map chart. According to the fortune teller a boy needs your help there.';
						_root.newitem = 10;
						_root.getItems = true;
						if (_root.money >= 20) {
							_root.money -= 20;
						}
						if (_root.sfx) {
							_root.getkey.start(0, 1);
						}
					}
					if (this.chat && _root.chatting && this.message == 3) {
						_root.cam.textbox.text = ' ';
						_root.newitem = 0;
						_root.getItems = false;
						_root.havemonstroschart = true;
						_root.chatting = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.havemonstroschart && _root.healthupgrade3 && !_root.havelonechart && _root.havelantern3 && !_root.healthupgrade4) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Hello. Dont tell me, you have come to hear what is ahead on your journey as a hero. I will continue on with matters of the heart. There is a women who lives alone out in the middle of the ocean. Since you have gathered the lantern pieces you are the only one who has the ability to save her.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = 'Your journey will bring you to Lone Island. There you will encounter a women who has befallen the curse that covers this island. Now I will accept a 20 gold donation.';
					}
					if (this.chat && _root.chatting && this.message == 2 && !_root.getItems) {
						_root.cam.textbox.text = 'You got the Lone island map chart. According to the fortune teller a women needs your help there.';
						_root.newitem = 10;
						_root.getItems = true;
						if (_root.money >= 20) {
							_root.money -= 20;
						}
						if (_root.sfx) {
							_root.getkey.start(0, 1);
						}
					}
					if (this.chat && _root.chatting && this.message == 3) {
						_root.cam.textbox.text = ' ';
						_root.newitem = 0;
						_root.getItems = false;
						_root.havelonechart = true;
						_root.chatting = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.havemonstroschart && !_root.healthupgrade3) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Hello, I have nothing for you at the moment. Come back once you are further in your journey.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = ' ';
						_root.chatting = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.havemonstroschart && _root.healthupgrade3 && !_root.havelantern3) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Hello, I have nothing for you at the moment. Come back once you are further in your journey.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = ' ';
						_root.chatting = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.havemonstroschart && _root.healthupgrade3 && _root.havelonechart && !_root.healthupgrade4) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Hello, I have nothing for you at the moment. Come back once you are further in your journey.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = ' ';
						_root.chatting = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.havemonstroschart && _root.healthupgrade3 && _root.havelonechart && _root.healthupgrade4 && !_root.haveblacksmithchart) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Hello. Dont tell me, you have come to hear what is ahead on your journey as a hero. There is a blacksmith who needs your help. Since you have gathered the lantern pieces you are the only one who has the ability to save him.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = 'Your journey will bring you to Black Smith Island. A very talented blacksmith lives there alone. I shall aid you again with a map chart. Now I will accept a 20 gold donation.';
					}
					if (this.chat && _root.chatting && this.message == 2 && !_root.getItems) {
						_root.cam.textbox.text = 'You got the Black Smith Island map chart. According to the fortune teller a man needs your help there.';
						_root.newitem = 10;
						_root.getItems = true;
						if (_root.money >= 20) {
							_root.money -= 20;
						}
						if (_root.sfx) {
							_root.getkey.start(0, 1);
						}
					}
					if (this.chat && _root.chatting && this.message == 3) {
						_root.cam.textbox.text = ' ';
						_root.newitem = 0;
						_root.getItems = false;
						_root.haveblacksmithchart = true;
						_root.chatting = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.havemonstroschart && _root.healthupgrade3 && _root.havelonechart && _root.healthupgrade4 && _root.haveblacksmithchart) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Hello, I have nothing for you at the moment. Come back once you are further in your journey.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = ' ';
						_root.chatting = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'room1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 2602	{
	}
	frame 43 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 516.9;
		_root.cam._y = 702.1;
		_root.BG._visible = false;
		_root.neveahmusic = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 2603	{
		instance of movieClip 2087	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && !_root.getItems && !_root.carry && !_root.throws && !_root.hurt && !_root.hurted)) {
					this.selections = 3;
					_root.chatting = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
				if (_root.getItems && _root.chatting && _root.newitem == 1) {
					_root.cam.textbox.text = 'You got a small potion! These can be equipped to the D key and used when your health is running low to restore 3 heart containers!';
				}
				if (_root.getItems && _root.chatting && _root.newitem == 2) {
					_root.cam.textbox.text = 'You got a medium sized potion! These can be equipped to the D key and used when your health is running low to restore 5 heart containers!';
				}
				if (_root.chatting && !_root.getItems) {
					_root.maps.select.gotoAndStop(this.selections);
					if (this.selections == 1 && _root.money >= 5 && _root.health < _root.maxhealth) {
						_root.cam.textbox.text = 'Apple: 5 Gold\rThis replenishes half a heart.\rPress A to Buy.';
						if (Key.isDown(65) && !this.apush && _root.money >= 5) {
							_root.money -= 5;
							_root.health += 2;
							this.apush = true;
						}
					}
					if (this.selections == 1 && _root.money < 5) {
						_root.cam.textbox.text = 'Apple: 5 Gold\rNot Enough Money.';
					} else {
						if (this.selections == 1 && _root.health == _root.maxhealth) {
							_root.cam.textbox.text = 'Apple: 5 Gold\rYour health is full.';
						}
					}
					if (this.selections == 2 && _root.money >= 25) {
						_root.cam.textbox.text = 'Small Potion: 25 Gold\rRestores 3 heart full hearts.\rPress A to Buy';
						if (Key.isDown(65) && !this.apush && _root.money >= 25) {
							_root.money -= 25;
							_root.newitem = 1;
							this.counter = 0;
							this.apush = true;
							_root.getItems = true;
						}
					}
					if (this.selections == 2 && _root.money < 25) {
						_root.cam.textbox.text = 'Small Potion: 25 Gold\rNot Enough Money.';
					}
					if (this.selections == 3) {
						_root.cam.textbox.text = 'Welcome to my shop. Please take a look around with the Left or Right arrow keys. Press A to purchase the selected item. Press A to exit.';
					}
					if (this.selections == 4 && _root.money >= 60) {
						_root.cam.textbox.text = 'Medium Potion: 60 Gold\rRestores 5 heart containers!\rPress A to Buy';
						if (Key.isDown(65) && !this.apush) {
							_root.money -= 40;
							_root.newitem = 2;
							this.counter = 0;
							this.apush = true;
							_root.getItems = true;
						}
					}
					if (this.selections == 4 && _root.money < 60) {
						_root.cam.textbox.text = 'Medium Potion: 60 Gold\rNot Enough Money.';
					}
					if (this.selections == 5 && _root.money >= 120) {
						_root.cam.textbox.text = 'Large Potion: 120 Gold\rWhen equipped and used this potion will restore all of your hearts. If your life reaches zero while you have a Large Potion in your inventory you will be revived.\rPress A to Buy';
						if (Key.isDown(65) && !this.apush) {
							_root.money -= 120;
							this.counter = 0;
							_root.newitem = 3;
							this.apush = true;
							_root.getItems = true;
						}
					}
					if (this.selections == 5 && _root.money < 120) {
						_root.cam.textbox.text = 'Large Potion: 120 Gold\rNot Enough Money.';
					}
					if (Key.isDown(39) && !this.keypush) {
						this.keypush = true;
						++this.selections;
					}
					if (Key.isDown(37) && !this.keypush) {
						this.keypush = true;
						--this.selections;
					}
					if (!Key.isDown(65)) {
						this.apush = false;
					}
					if (!Key.isDown(39) && !Key.isDown(37)) {
						this.keypush = false;
					}
					if (this.selections > 5) {
						this.selections = 1;
					}
					if (this.selections < 1) {
						this.selections = 5;
					}
				}
				if (this.counter >= 1.5 && Key.isDown(65) && this.selections == 3 && _root.chatting or _root.getItems && this.counter >= 1.5 && Key.isDown(65) && _root.chatting) {
					_root.cam.textbox.text = ' ';
					_root.chatting = false;
					_root.getItems = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance select of movieClip 2091	{
			onClipEvent (enterFrame) {
				if (_root.chatting && !this._visible) {
					this._visible = true;
				}
				if (!_root.chatting && this._visible) {
					this._visible = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'room1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 44 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 516.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 2604	{
		instance of movieClip 2087	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Welcome to the library! Feel free to take a look around. But please be quiet and considerate of others.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (this.chat && _root.chatting && this.message == 2) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.getItems = false;
					_root.newitem = 0;
					_root.quest = 3;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'room1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 45 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 516.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 2606	{
	}
	movieClip 2608	{
	}
	movieClip 2610	{
	}
	movieClip 2613	{
	}
	movieClip 2614	{
	}
	movieClip 2617	{
	}
	movieClip 2619	{
	}
	movieClip 2620	{
	}
	movieClip 2621	{
	}
	movieClip 2623	{
	}
	movieClip 2625	{
	}
	movieClip 2627	{
	}
	movieClip 2631	{
	}
	movieClip 2632	{
	}
	movieClip 2633	{
	}
	movieClip 2634	{
		instance of movieClip 2619	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (_root.quest == 4) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Im extremely busy. Come back to me when you have something important to say.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.quest == 5) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Oh my... Now the public is beginning to find out about the curse. Now is the time to take action before it is to late. I must inform the village Guardian Osirus. What? You recieved a distress letter on Neveah from Osirus? This is not good at all. If he cant handle this then it must be worse then I thought.';
					}
					if (this.message == 1 && this.chat) {
						_root.cam.textbox.text = 'You must speak with him immediately. He lives in the graveyard in his hut. The only problem is that he locks himself in. After being the Guardian of Reverie for so many years he has become very paranoid. Dont worry I have a key for just emergencies.';
					}
					if (this.message == 2 && this.chat && !_root.getItems) {
						_root.cam.textbox.text = 'You have been entrusted with Osirus\'s Hut Key. Dont lose it because its the mayors copy! Now is your chance to finally speak with Osirus and figure out how you can help.';
						_root.getItems = true;
						_root.newitem = 11;
						if (_root.sfx) {
							_root.getkey.start(0, 1);
						}
					}
					if (this.message == 3 && this.chat) {
						_root.cam.textbox.text = 'Now hurry off and speak with Osirus. I just hope its not to late to save the villagers.';
						_root.getItems = false;
						_root.newitem = 0;
					}
					if (this.chat && _root.chatting && this.message == 4) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.quest = 6;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.quest == 6) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Please go speak with Osirus. He must know what to do.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.quest >= 7) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'It looks like its all up to you. I wish you luck on your journey for the dream lantern. For all of our sake.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 2633	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (_root.quest >= 4) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Hello and welcome to the mayors office. I am the mayors assistant. My job is to basically do whatever they mayor needs me to do.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'room0';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 2636	{
	}
	movieClip 2637	{
	}
	frame 46 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 2639	{
	}
	movieClip 2640	{
		instance of movieClip 2087	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && !_root.getItems && !_root.carry && !_root.throws && !_root.hurt && !_root.hurted)) {
					this.selections = 3;
					_root.chatting = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
				if (_root.getItems && _root.chatting && _root.newitem == 15) {
					_root.cam.textbox.text = 'You got bronze armor! When equipped you will take less physical damage. This can be equipped from the inventory screen by pressing A.';
					_root.haveset2 = true;
				}
				if (_root.getItems && _root.chatting && _root.newitem == 14) {
					_root.cam.textbox.text = 'You got health upgrade! Your max health has increased by one.';
				}
				if (_root.getItems && _root.chatting && _root.newitem == 16) {
					_root.cam.textbox.text = 'You got a bronze helmet! When equipped you will take less physical damage. This can be equipped from the inventory screen by pressing A.';
					_root.havehelmet2 = true;
				}
				if (_root.chatting && !_root.getItems) {
					_root.maps.select.gotoAndStop(this.selections);
					if (this.selections == 1 && _root.money >= 5 && _root.health < _root.maxhealth) {
						_root.cam.textbox.text = 'Apple: 5 Gold\rThis replenishes half a heart.\rPress A to Buy.';
						if (Key.isDown(65) && !this.apush && _root.money >= 5) {
							_root.money -= 5;
							_root.health += 2;
							this.apush = true;
							if (_root.sfx) {
								_root.getkey.start(0, 1);
							}
						}
					}
					if (this.selections == 1 && _root.money < 5) {
						_root.cam.textbox.text = 'Apple: 5 Gold\rNot Enough Money.';
					} else {
						if (this.selections == 1 && _root.health == _root.maxhealth) {
							_root.cam.textbox.text = 'Apple: 5 Gold\rYour health is full.';
						}
					}
					if (this.selections == 2 && _root.money >= 500 && !_root.haveset2) {
						_root.cam.textbox.text = 'Bronze Armor Set: 500 Gold\rDecreases damage taken from attacks.\rPress A to Buy';
						if (Key.isDown(65) && !this.apush && _root.money >= 500) {
							_root.money -= 500;
							_root.newitem = 15;
							this.counter = 0;
							this.apush = true;
							_root.getItems = true;
							if (_root.sfx) {
								_root.getkey.start(0, 1);
							}
						}
					}
					if (this.selections == 2 && _root.money < 500 && !_root.haveset2) {
						_root.cam.textbox.text = 'Bronze Armor Set: 500 Gold\rNot Enough Money.';
					}
					if (this.selections == 2 && _root.haveset2) {
						_root.cam.textbox.text = 'Bronze Armor Set: Out of stock!';
					}
					if (this.selections == 3) {
						_root.cam.textbox.text = 'Welcome to my shop. Please take a look around with the Left or Right arrow keys. Press A to purchase the selected item. Press A to exit.';
					}
					if (this.selections == 4 && _root.money >= 500 && !_root.healthupgrade1) {
						_root.cam.textbox.text = 'Heart Container Upgrade: 500 Gold\rAdds one to your maxhealth!\rPress A to Buy';
						if (Key.isDown(65) && !this.apush) {
							_root.money -= 500;
							_root.newitem = 14;
							this.counter = 0;
							_root.maxhealth += 4;
							this.apush = true;
							_root.healthupgrade1 = true;
							_root.getItems = true;
							if (_root.sfx) {
								_root.getkey.start(0, 1);
							}
						}
					}
					if (this.selections == 4 && _root.money < 500 && !_root.healthupgrade1) {
						_root.cam.textbox.text = 'Heart Container Upgrade: 500 Gold\rNot Enough Money.';
					}
					if (this.selections == 4 && _root.healthupgrade1) {
						_root.cam.textbox.text = 'Heart Container Upgrade: Out of stock!';
					}
					if (this.selections == 5 && _root.money >= 300 && !_root.havehelmet2) {
						_root.cam.textbox.text = 'Bronze Helmet: 300 Gold\rWhen equipped you will take less physical damage.\rPress A to Buy';
						if (Key.isDown(65) && !this.apush) {
							_root.money -= 300;
							this.counter = 0;
							_root.newitem = 16;
							this.apush = true;
							_root.getItems = true;
							if (_root.sfx) {
								_root.getkey.start(0, 1);
							}
						}
					}
					if (this.selections == 5 && _root.money < 300 && !_root.havehelmet2) {
						_root.cam.textbox.text = 'Bronze Helmet: 300 Gold\rNot Enough Money.';
					}
					if (this.selections == 5 && _root.money < 300 && _root.havehelmet2) {
						_root.cam.textbox.text = 'Bronze Helmet: Out of stock!';
					}
					if (Key.isDown(39) && !this.keypush) {
						this.keypush = true;
						++this.selections;
					}
					if (Key.isDown(37) && !this.keypush) {
						this.keypush = true;
						--this.selections;
					}
					if (!Key.isDown(65)) {
						this.apush = false;
					}
					if (!Key.isDown(39) && !Key.isDown(37)) {
						this.keypush = false;
					}
					if (this.selections > 5) {
						this.selections = 1;
					}
					if (this.selections < 1) {
						this.selections = 5;
					}
				}
				if (this.counter >= 1.5 && Key.isDown(65) && this.selections == 3 && _root.chatting or _root.getItems && this.counter >= 1.5 && Key.isDown(65) && _root.chatting) {
					_root.cam.textbox.text = ' ';
					_root.chatting = false;
					_root.getItems = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'room2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance select of movieClip 2091	{
			onClipEvent (enterFrame) {
				if (_root.chatting && !this._visible) {
					this._visible = true;
				}
				if (!_root.chatting && this._visible) {
					this._visible = false;
				}
			}
		}
	}
	movieClip 2642	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	frame 47 {
		stop();
		_root.pause = false;
		_root.cam._visible = true;
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.intromusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 2645	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'room3';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press the S key to sleep.\rPress A to exit the dialogue.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					this.sleeping = true;
				}
				if (this.sleeping && _root.trans._currentframe >= 20) {
					_root.health = _root.maxhealth;
					if (_root.days) {
						_root.days = false;
					} else {
						if (!_root.days) {
							_root.days = true;
						}
					}
					this.sleeping = false;
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 2647	{
	}
	movieClip 2649	{
	}
	movieClip 2651	{
	}
	movieClip 2653	{
	}
	movieClip 2654	{
	}
	instance of movieClip 2654	{
		onClipEvent (load) {
			this.message = 0;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				_root.aicon = 7;
			}
			if (this.message == 0 && !_root.warping) {
				if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
					_root.chatting = true;
					this.chat = true;
					this.apush = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 6) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Who are you and how did you get into my home? Oh I see, you are from Neveah Village and you are Conrads pupil. Your also trying to figure out what to do about the villagers being trapped in these comas? Well prepare yourself I am going to tell you what really is going on here.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					_root.room = 'cutscene3';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 7) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'So now you know what you must do. Go to each island and collect each Lantern Piece. You will have many trials ahead of you. Conrad trusts you, so I should as well. You will need this to get to The Forgotten Island.';
				}
				if (this.message == 1 && this.chat) {
					_root.cam.textbox.text = 'Which is the location of the first lantern piece. It has been passed down to each Reverie Guardian for many years and now im giving it to you.';
				}
				if (this.message == 2 && this.chat && !_root.getItems) {
					_root.cam.textbox.text = 'You got the Forgotten Island Map Chart! You can now go to the first Lantern piece location!';
					_root.getItems = true;
					_root.newitem = 10;
					_root.haveforgottenchart = true;
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.chat && _root.chatting && this.message == 3) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.getItems = false;
					_root.newitem = 0;
					_root.quest = 8;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 8) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'You must hurry and go collect the first Lantern Fragment. The fate of the villagers are in your hands. Return to me once you have obtained the first piece.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.getItems = false;
					_root.newitem = 0;
					_root.quest = 8;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 9) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Great you are making excellent progress. You have already acquired the first fragment. You must now go to the Lost Island and acquire the second fragment. But I have bad news. Your journey will now take you to Elder Island.';
				}
				if (this.message == 1 && this.chat) {
					_root.cam.textbox.text = 'I hid the map chart to Lost Island there so it wouldnt fall into the wrong hands. You must go there and search for it.';
				}
				if (this.message == 2 && this.chat && !_root.getItems) {
					_root.cam.textbox.text = 'You got the Elder Island Map Chart! You must go there and find the Lost Island map chart. It contains the location of the next Lantern fragment!';
					_root.getItems = true;
					_root.newitem = 10;
					_root.haveelderchart = true;
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.chat && _root.chatting && this.message == 3) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.getItems = false;
					_root.newitem = 0;
					_root.quest = 10;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 10) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Im sorry. I have only made things more difficult for you, but you must find the chart. It has been so long I have forgot where exactly I hid it. You will have to talk with villagers and scale the island. Its a quiet place so it shouldnt be to hard to get information out of them.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 11) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Ah so he sold it to the vendor in Neveah. I guess you should go back to your hometown. If I remember correctly this man only appears at night and is rather creepy looking.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 12) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Great! You have managed to get the Lost island map chart. Lost Island is the location of the 2nd lantern fragment.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					this.chat = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 13) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Great! You have managed to get the second lantern fragment. Its now time to retrieve the third one. It is located on Easterian Island. You will need to use everything you have learned to date to complete your next task.';
				}
				if (this.message == 1 && this.chat && !_root.getItems) {
					_root.cam.textbox.text = 'You got the Easterian Island Map Chart! You must go there and find the last lantern fragment!';
					_root.getItems = true;
					_root.newitem = 10;
					_root.haveeasterianchart = true;
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.chat && _root.chatting && this.message == 2) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.getItems = false;
					_root.newitem = 0;
					_root.quest = 14;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 14) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Your almost ready to save the villagers of Reverie. Your journey now takes you to Easterian Island. It is the location of the final Lantern Fragment. This will require all of your skills to complete it.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					this.chat = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 15) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Great you finally collected all the lantern fragments. This means that its time to take the final step and save the Reverie villagers. This will require you to travel into each nightmare.';
				}
				if (this.message == 1 && this.chat) {
					_root.cam.textbox.text = 'This will not be an easy task. You will need to go into each nightmare destroy the demons, then solve the puzzles and set free the villagers so they can finally awaken.';
				}
				if (this.message == 2 && this.chat) {
					_root.cam.textbox.text = 'If I were you I would start in the pub. Its the most populated area. Remember if you cant proceed in some peoples dreams you may need to travel into someone elses to find answers.';
				}
				if (this.chat && _root.chatting && this.message == 3) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.quest = 16;
					this.chat = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 16) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'If I were you I would start in the pub. Its the most populated area. Remember if you cant proceed in some nightmares it may be a good idea to travel into someone elses to find answers.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.quest = 16;
					this.chat = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (Key.isDown(65) && !this.apush && this.chat) {
				++this.message;
				this.apush = true;
			}
			if (!Key.isDown(65) && this.apush && this.chat) {
				this.apush = false;
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.chat = false;
				this.message = 0;
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65) && this.chat) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	movieClip 2656	{
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
	}
	frame 48 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.BG._visible = false;
		_root.neveahmusic = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 2657	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'room0';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press the S key to sleep.\rPress A to exit the dialogue.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					this.sleeping = true;
				}
				if (this.sleeping && _root.trans._currentframe >= 20) {
					_root.health = _root.maxhealth;
					if (_root.days) {
						_root.days = false;
					} else {
						if (!_root.days) {
							_root.days = true;
						}
					}
					this.sleeping = false;
				}
				if (this.chat && _root.chatting && this.message == 2) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 2658	{
	}
	frame 49 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 2659	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (_root.quest == 16 && !_root.pub5saved) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0 && _root.quest == 16) {
						if (this.hitTest(_root.box) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'She looks like she is in pain. Maybe you can save her with the lantern.\rPress A to exit the dialogue.\rPress S to use the lantern.';
					}
					if (this.message == 0 && this.chat && Key.isDown(83)) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.warping = true;
						_root.oldroom = _root.room;
						_root.room = 'ndung21';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (_root.quest == 16 && !_root.pub6saved) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0 && _root.quest == 16) {
						if (this.hitTest(_root.box) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'He looks like he is in pain. Maybe you can save him with the lantern.\rPress A to exit the dialogue.\rPress S to use the lantern.';
					}
					if (this.message == 0 && this.chat && Key.isDown(83)) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.warping = true;
						_root.oldroom = _root.room;
						_root.room = 'ndung25';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'room1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 2660	{
	}
	movieClip 2661	{
	}
	movieClip 2663	{
	}
	movieClip 2665	{
	}
	movieClip 2667	{
	}
	movieClip 2676	{
	}
	movieClip 2678	{
	}
	movieClip 2679	{
	}
	movieClip 2680	{
	}
	movieClip 2681	{
	}
	movieClip 2682	{
		frame 1 {
			stop();
		}
		instance of movieClip 2681	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (_root.quest !== 16) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0) {
						if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'ZZZzzz... She is one of the victims in a coma. She looks like he is in pain.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
		instance of movieClip 2484	{
			onClipEvent (enterFrame) {
				if (_root.girlfree && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2185	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (_root.quest == 16) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0 && _root.quest == 16) {
						if (this.hitTest(_root.box) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Thank you so much for saving me. Do you need something?\rPress A to exit the dialogue.\rPress S to use the lantern.';
					}
					if (this.message == 0 && this.chat && Key.isDown(83)) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.warping = true;
						_root.oldroom = _root.room;
						_root.room = 'ndung21';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
	}
	movieClip 2684	{
	}
	movieClip 2686	{
	}
	movieClip 2690	{
	}
	movieClip 2691	{
	}
	movieClip 2693	{
	}
	movieClip 2695	{
	}
	movieClip 2696	{
	}
	movieClip 2697	{
		frame 1 {
			stop();
		}
		instance of movieClip 2691	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (_root.quest !== 16) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0) {
						if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'ZZZzzz... He is one of the victims in a coma. He looks like he is in pain.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
		instance of movieClip 2696	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (_root.quest == 16) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0 && _root.quest == 16) {
						if (this.hitTest(_root.box) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Thank you so much for saving me. Do you need something?\rPress A to exit the dialogue.\rPress S to use the lantern.';
					}
					if (this.message == 0 && this.chat && Key.isDown(83)) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.warping = true;
						_root.oldroom = _root.room;
						_root.room = 'ndung25';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
		instance of movieClip 2484	{
			onClipEvent (enterFrame) {
				if (_root.girlfree && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 2698	{
		instance of movieClip 2680	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Hello Mr, the people sleeping over there are my parents. They would normally take care of me, but now there asleep and wont wake up. Now I take care of them. I hope they wake up soon.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 2682	{
			onClipEvent (enterFrame) {
				if (_root.pub5saved && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2697	{
			onClipEvent (enterFrame) {
				if (_root.pub6saved && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	frame 50 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 2699	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'room1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (_root.quest == 16) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0 && _root.quest == 16) {
						if (this.hitTest(_root.box) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'He looks like he is in pain. Maybe you can save him with the lantern.\rPress A to exit the dialogue.\rPress S to use the lantern.';
					}
					if (this.message == 0 && this.chat && Key.isDown(83)) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.warping = true;
						_root.oldroom = _root.room;
						_root.room = 'ndung27';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
	}
	movieClip 2702	{
	}
	movieClip 2704	{
	}
	movieClip 2708	{
	}
	movieClip 2709	{
	}
	movieClip 2710	{
		instance of movieClip 2709	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (_root.quest !== 16) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0) {
						if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'ZZZzzz... He is one of the victims in a coma. He looks like he is in pain.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
	}
	frame 51 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.BG._visible = false;
		_root.neveahmusic = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 2711	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'room1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press the S key to sleep.\rPress A to exit the dialogue.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					this.sleeping = true;
				}
				if (this.sleeping && _root.trans._currentframe >= 20) {
					_root.health = _root.maxhealth;
					if (_root.days) {
						_root.days = false;
					} else {
						if (!_root.days) {
							_root.days = true;
						}
					}
					this.sleeping = false;
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 2713	{
	}
	movieClip 2714	{
	}
	frame 52 {
		stop();
		_root.walking = 1;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.boss1 = false;
		_root.intromusic = true;
	}
	movieClip 2732	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 5 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 8 {
			stop();
		}
		frame 9 {
			stop();
		}
	}
	movieClip 2734	{
	}
	movieClip 2735	{
		frame 1 {
			stop();
		}
	}
	instance of movieClip 2735	{
		onClipEvent (enterFrame) {
			this._x = _root.cam._x;
			this._y = _root.cam._y;
			if (!_root.room !== 'gravekeepers') {
				_root.pause = true;
				_root.cam._visible = true;
				_root.menusc._visible = false;
			}
			if (!this.apush && Key.isDown(65) && this.scene.intro._currentframe !== 9) {
				this.scene.intro.play();
				this.apush = true;
			}
			if (!this.apush && Key.isDown(65) && this.scene.intro._currentframe == 9) {
				_root.warping = true;
				_root.room = 'gravekeepers';
				_root.pause = false;
				_root.cam._visible = true;
				this.apush = true;
				_root.quest = 7;
			}
			if (this.apush && !Key.isDown(65)) {
				this.apush = false;
			}
		}
	}
	frame 53 {
		stop();
		_root.walking = 1;
		_root.intromusic = false;
		_root.reveriemusic = true;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
		_root.goblinsound = false;
		_root.genericsound = false;
		_root.restartpoint = _root.room;
		_root.oldrestart = _root.oldroom;
	}
	movieClip 2738	{
	}
	movieClip 2741	{
	}
	movieClip 2744	{
	}
	movieClip 2747	{
	}
	movieClip 2752	{
		frame 1 {
			stop();
		}
	}
	movieClip 2753	{
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2752	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (!_root.warping && !_root.warps) {
						_root.interested = true;
						_root.intx = 336.9;
						_root.inty = 352.1;
					}
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon1-1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 8;
				}
				if (this.hitTest(_root.box) && Key.isDown(65) && !_root.pause && !_root.warping) {
					_root.screen = 4;
					_root.pause = true;
					_root.menusc.gotoAndStop(4);
					_root.menusc._visible = true;
					_root.apush = true;
					_root.menusc.deciding = true;
					if (_root.sfx) {
						_root.openmenu.start(0, 1);
					}
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 680	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x + 55;
				flashes._y = this._y + 40;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 9 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 2755	{
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
	}
	movieClip 2756	{
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	instance daynight of movieClip 1786	{
		onClipEvent (enterFrame) {
			if (!_root.days) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
				if (!_root.sundown) {
					this.gotoAndStop(2);
					if (this.sundown._currentframe == 40) {
						_root.sundown = true;
					}
				}
			}
			if (!_root.days && _root.sundown && this._currentframe !== 3) {
				this.gotoAndStop(3);
			}
			if (_root.days && _root.sundown) {
				this._x = _root.cam._x;
				this._y = _root.can._y;
				this.gotoAndStop(4);
				if (this.sunup._currentframe == 40) {
					_root.sundown = false;
				}
			}
			if (_root.days && !_root.sundown && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (_root.rainchance == 1) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
			}
		}
	}
	frame 54 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = true;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.restartpoint = _root.room;
		_root.oldrestart = 'forgotten';
	}
	movieClip 2762	{
	}
	movieClip 2764	{
	}
	movieClip 2765	{
		frame 1 {
			stop();
		}
	}
	movieClip 2766	{
		instance of movieClip 2765	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door1locked && _root.keys > 0) {
					_root.door1locked = false;
					_root.keys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door1locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon1-4';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door1locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.door1locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 2768	{
	}
	movieClip 2773	{
		frame 1 {
			stop();
		}
	}
	movieClip 2776	{
	}
	movieClip 2778	{
	}
	movieClip 2779	{
		frame 1 {
			stop();
		}
	}
	movieClip 2780	{
		instance of movieClip 2773	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'forgotten';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 2779	{
			onClipEvent (enterFrame) {
				if (!_root.switchhit && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.switchhit && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon1-3';
				}
			}
		}
		instance of movieClip 2779	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon1-2';
				}
			}
		}
	}
	frame 55 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = true;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.box._x = 903.35;
		_root.box._y = 555.4;
		_root.cam._x -= 200;
	}
	movieClip 2781	{
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemies -= 1;
				if (!_root.havekey1) {
					newkey = _root.keydup.duplicateMovieClip('key', _root.getNextHighestDepth());
					newkey._x = this._x;
					newkey._y = this._y;
					newkey.key = 1;
				}
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 2783	{
	}
	movieClip 2784	{
		instance of movieClip 2779	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1) {
					this.gotoAndStop(1);
					_root.interested = true;
					_root.intx = 917.65;
					_root.inty = 519.85;
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon1-1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 56 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = true;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.box._x = 145.6;
		_root.box._y = 547.4;
		_root.cam._x += 200;
	}
	movieClip 2787	{
		frame 1 {
			stop();
		}
	}
	movieClip 2788	{
		instance of movieClip 2787	{
			onClipEvent (load) {
				this.timecounter = 20;
			}
			onClipEvent (enterFrame) {
				if (_root.switchhit && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.switchhit && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt) {
					this.hurt = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.switchhit) {
						_root.switchhit = false;
					} else {
						if (!_root.switchhit) {
							_root.switchhit = true;
						}
					}
					if (_root.sfx) {
						_root.flipswitch.start(0, 1);
					}
				}
				if (this.hurt && this.timecounter > 0) {
					--this.timecounter;
				}
				if (this.timecounter <= 0 && this.hurt) {
					this.hurt = false;
					this.timecounter = 20;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 2789	{
		instance of movieClip 2779	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon1-1';
				}
			}
		}
	}
	frame 57 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = true;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 2791	{
	}
	movieClip 2792	{
		instance of movieClip 2765	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door2locked && _root.keys > 0) {
					_root.door2locked = false;
					_root.keys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door2locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon1-7';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door2locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.door2locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 2794	{
	}
	movieClip 2796	{
	}
	movieClip 2798	{
		instance of movieClip 2773	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon1-1';
				}
			}
		}
		instance of movieClip 2779	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door3locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon1-6';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door3locked && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (!_root.door3locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2779	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon1-5';
				}
			}
		}
		instance of movieClip 1294	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i])) {
						_root['arrowdup_' + i].flamed = true;
					}
					++i;
				}
			}
		}
		instance of movieClip 1294	{
			onClipEvent (enterFrame) {
				if (_root.door3locked) {
					this._visible = false;
				}
				if (!_root.door3locked) {
					this._visible = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && _root.door3locked) {
						_root.door3locked = false;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.getkey.start(0, 1);
						}
					}
					++i;
				}
			}
		}
	}
	frame 58 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = true;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.box._x = 145.6;
		_root.box._y = 547.4;
		_root.cam._x += 200;
	}
	movieClip 2800	{
	}
	movieClip 2801	{
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 2803	{
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.newitem = 11;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got a small key! This can be used to open locked doors throughout the dungeon!';
					this.chat = true;
					_root.keys += 1;
					_root.getItems = true;
					_root.havekey2 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
				}
				if (_root.enemies > 0 && !_root.chestappeared1) {
					this.gotoAndStop(4);
				}
				if (_root.enemies <= 0 && !_root.chestappeared1) {
					this.gotoAndStop(3);
					_root.interested = true;
					_root.intx = 507.8;
					_root.inty = 227.85;
					if (this.appears._currentframe == 7) {
						_root.chestappeared1 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havekey2 && _root.chestappeared1) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey2 && _root.chestappeared1) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 2804	{
		instance of movieClip 2779	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon1-4';
				}
			}
		}
	}
	frame 59 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = true;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 2805	{
		instance of movieClip 2752	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door4locked && _root.bigkeys > 0) {
					_root.door4locked = false;
					_root.bigkeys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door4locked && !_root.boss1dead) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon1-10';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door4locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.door4locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 2807	{
		instance of movieClip 2779	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon1-9';
				}
			}
		}
		instance of movieClip 2779	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon1-4';
				}
			}
		}
	}
	frame 60 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = true;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.box._x = 903.35;
		_root.box._y = 555.4;
		_root.cam._x -= 200;
	}
	movieClip 2809	{
	}
	instance of movieClip 503	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.skeleton.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.skeleton.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.skeleton.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.skeleton.gotoAndStop(4);
			}
			if (this.swordslash && this.skeleton.attack._currentframe == 13) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.skeleton.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
				if (!_root.havekey3) {
					newkey = _root.bigkeydup.duplicateMovieClip('bigkey', _root.getNextHighestDepth());
					newkey._x = this._x;
					newkey._y = this._y;
					newkey.key = 1;
				}
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.skeleton.gotoAndStop(3);
			}
			if (this.skeleton._currentframe == 3 && this.skeleton.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 2811	{
	}
	movieClip 2813	{
		instance of movieClip 2779	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon1-6';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 61 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = true;
		_root.box._x = 511.5;
		_root.box._y = 907.3;
		_root.cam._x = _root.box._x;
		_root.cam._y = _root.box._y - 200;
	}
	movieClip 2814	{
	}
	movieClip 2815	{
	}
	movieClip 2817	{
	}
	movieClip 2819	{
	}
	movieClip 2821	{
	}
	movieClip 2823	{
	}
	movieClip 2824	{
	}
	movieClip 2826	{
	}
	movieClip 2828	{
	}
	movieClip 2830	{
	}
	movieClip 2831	{
		instance of movieClip 2826	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					++i;
				}
			}
		}
		instance of movieClip 2828	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					++i;
				}
			}
		}
		instance of movieClip 2828	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					++i;
				}
			}
		}
		instance of movieClip 2830	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_parent._parent.hurt = true;
						_parent._parent.hurted = true;
						_parent._parent.stundamage -= 1;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
							_root.bossgrowl.start(0, 1);
						}
					}
					++i;
				}
			}
		}
	}
	movieClip 2833	{
	}
	movieClip 2835	{
	}
	movieClip 2836	{
		instance of movieClip 2833	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					++i;
				}
			}
		}
		instance of movieClip 2835	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_parent._parent.hurt = true;
						_parent._parent.hurted = true;
						_parent._parent.stundamage -= 1;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
							_root.bossgrowl.start(0, 1);
						}
					}
					++i;
				}
			}
		}
	}
	movieClip 2837	{
	}
	movieClip 2839	{
	}
	movieClip 2840	{
		instance of movieClip 2828	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					++i;
				}
			}
		}
		instance of movieClip 2828	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					++i;
				}
			}
		}
		instance of movieClip 2839	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_parent._parent.hurt = true;
						_parent._parent.hurted = true;
						_parent._parent.stundamage -= 1;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
							_root.bossgrowl.start(0, 1);
						}
					}
					++i;
				}
			}
		}
	}
	movieClip 2841	{
		frame 104 {
			stop();
		}
	}
	movieClip 2843	{
	}
	movieClip 2844	{
		frame 41 {
			stop();
		}
	}
	movieClip 2845	{
		frame 1 {
			stop();
		}
	}
	instance of movieClip 2845	{
		onClipEvent (load) {
			this.health = 15;
			this.spd = 7;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.stunned = false;
			this.stundamage = 3;
			this.showed = false;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !_root.boss1dead) {
				if (!_root.interested && !this.showed) {
					this.showed = true;
					_root.interested = true;
				}
				if (_root.interested) {
					_root.intx = this._x;
					_root.inty = this._y;
				}
				if (this.health <= 10 && this.spd !== 12) {
					this.spd = 12;
				}
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.spider.legs.play();
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.spider.legs.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 100, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 100, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 40, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 40, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 100, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 100, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 40, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 40, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				_root.plays = false;
				_root.boss1 = false;
				_root.boss1dead = true;
				_root.dungeon1 = true;
				_root.music = 8;
				_root.chestappearing3 = true;
				this.alive = false;
			}
			if (_root.boss1dead && _root.havelantern1 && this._currentframe !== 7) {
				this.gotoAndStop(7);
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.stundamage <= 0 && this.alive && !_root.pause && !_root.chatting && !this.stunned) {
				this.stunned = true;
			}
			if (this.stunned && this.spider._currentframe >= 103) {
				this.stunned = false;
				this.stundamage = 3;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && this.stunned && this.alive) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurt = false;
					this.hurtbounce = 10;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted && !this.stunned) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
		}
	}
	movieClip 2852	{
		instance dropitem of movieClip 1279	{
			onClipEvent (load) {
				this.placed = true;
				if (this.placed) {
					this.item = 9;
					this.gotoAndStop(this.item);
				}
				if (this.item > 10) {
					this.gotoAndStop(11);
					this.removeMovieClip();
				}
			}
			onClipEvent (enterFrame) {
				if (_root.warps) {
					this.removeMovieClip();
				}
				if (_root.pause && this._visible) {
					this._visible = false;
				}
				if (!_root.pause && !this._visible) {
					this._visible = true;
				}
			}
		}
		frame 8 {
			stop();
		}
	}
	movieClip 2853	{
		frame 1 {
			stop();
		}
	}
	movieClip 2854	{
		instance of movieClip 2853	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2853	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2853	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2853	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2853	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2853	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2853	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2853	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.newitem = 13;
					_root.chatting = true;
					this.chat = true;
					_root.cam.textbox.text = 'You got the first Lantern Fragment! You can feel its power as you hold it in your hands! Only two more left! You have also boosted your max health by one.';
					_root.getItems = true;
					this._visible = false;
					_root.maxhealth += 4;
					_root.health = _root.maxhealth;
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.warping = true;
					_root.havelantern1 = true;
					_root.room = 'forgotten';
					_root.oldroom = 'ocean';
					if (_root.quest == 8) {
						_root.quest = 9;
					}
					if (_root.sfx) {
						_root.chatwindorclose.start(0, 1);
					}
				}
				if (!_root.havelantern1 && !_root.chestappeared3 && !_root.chestappearing3) {
					this.gotoAndStop(4);
				}
				if (!_root.havelantern1 && !_root.chestappeared3 && _root.chestappearing3) {
					this.gotoAndStop(3);
					if (this.appears._currentframe == 7) {
						_root.chestappeared3 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havelantern1 && _root.chestappeared3) {
					this.gotoAndStop(2);
				}
				if (!_root.havelantern1 && _root.chestappeared3) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 2855	{
		instance of movieClip 2773	{
			onClipEvent (load) {
				this.gotoAndStop(3);
			}
		}
	}
	frame 62 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = true;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 2856	{
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemies -= 1;
				if (!_root.havekey1) {
					newkey = _root.keydup.duplicateMovieClip('key', _root.getNextHighestDepth());
					newkey._x = this._x;
					newkey._y = this._y;
					newkey.key = 1;
				}
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 2858	{
	}
	movieClip 2859	{
		instance of movieClip 2773	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon1-4';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 2779	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon1-8';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 63 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = true;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.box._x = 145.6;
		_root.box._y = 547.4;
		_root.cam._x += 200;
	}
	movieClip 2862	{
	}
	movieClip 2867	{
		frame 1 {
			stop();
		}
	}
	movieClip 2869	{
	}
	movieClip 2870	{
		instance of movieClip 2867	{
			onClipEvent (load) {
				_root.switchhit1 = false;
			}
			onClipEvent (enterFrame) {
				if (_root.switchhit1 && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.flipswitch.start(0, 1);
					}
				}
				if (!_root.switchhit1 && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown) {
						_root.switchhit1 = true;
					}
					++i;
				}
			}
		}
	}
	instance of movieClip 600	{
		onClipEvent (load) {
			this.health = 8;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wolf.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wolf.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.wolf.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.wolf.gotoAndStop(4);
				}
				if (this.swordslash && this.wolf.attack._currentframe == 17) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.wolf.gotoAndStop(3);
			}
			if (this.wolf._currentframe == 3 && this.wolf.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 2872	{
	}
	movieClip 2874	{
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.newitem = 5;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'Awesome you got the crossbow! Just aim and shoot at whatever you want! You can equip this to the D key from the menu screen!';
					this.chat = true;
					_root.arrows += 20;
					_root.getItems = true;
					_root.havecrossbow = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
				}
				if (!_root.switchhit1 && !_root.chestappeared2) {
					this.gotoAndStop(4);
				}
				if (_root.switchhit1 && !_root.chestappeared2) {
					this.gotoAndStop(3);
					_root.interested = true;
					_root.intx = 490.5;
					_root.inty = 583.15;
					if (this.appears._currentframe == 7) {
						_root.chestappeared2 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havecrossbow && _root.chestappeared2) {
					this.gotoAndStop(2);
				}
				if (!_root.havecrossbow && _root.chestappeared2) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
	}
	movieClip 2876	{
		instance of movieClip 2779	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon1-7';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 65 {
		stop();
		_root.walking = 1;
		_root.reveriemusic = true;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
		_root.genericsound = false;
		_root.goblinsound = false;
		_root.restartpoint = _root.room;
		_root.oldrestart = _root.oldroom;
	}
	movieClip 2879	{
	}
	movieClip 2880	{
		instance of movieClip 2253	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2241	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1807	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2253	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1807	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'elderhouse1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'elderhouse2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'eldershop';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'elderhouse3';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'elderhouse4';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 8;
				}
				if (this.hitTest(_root.box) && Key.isDown(65) && !_root.pause && !_root.warping) {
					_root.screen = 4;
					_root.pause = true;
					_root.menusc.gotoAndStop(4);
					_root.menusc._visible = true;
					_root.apush = true;
					_root.menusc.deciding = true;
					if (_root.sfx) {
						_root.openmenu.start(0, 1);
					}
				}
			}
		}
	}
	instance of movieClip 2551	{
		onClipEvent (load) {
			this.message = 0;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				_root.aicon = 7;
			}
			if (this.message == 0) {
				if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
					_root.chatting = true;
					this.chat = true;
					this.apush = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 10) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Hello there traveler! What brings you here? Oh your searching for a special map chart you say? Well I have not heard or seen anything about it. But dont let me discourage you. Someone here is bound to know its location.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest !== 10) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'This is a quiet village. Most people come here to live there life in solitude. Thats the way we like it.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (Key.isDown(65) && !this.apush && this.chat) {
				++this.message;
				this.apush = true;
			}
			if (!Key.isDown(65) && this.apush && this.chat) {
				this.apush = false;
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.chat = false;
				this.message = 0;
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65) && this.chat) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 2185	{
		onClipEvent (load) {
			this.message = 0;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				_root.aicon = 7;
			}
			if (this.message == 0) {
				if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
					_root.chatting = true;
					this.chat = true;
					this.apush = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 10) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'A map chart you say. Sounds interesting... I think I heard something a long time ago, but its been so long its just a vague memory now.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest !== 10) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'We do not normally have visitors here. No reason to really come here honestly. We are just a quiet community and we have one shop.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (Key.isDown(65) && !this.apush && this.chat) {
				++this.message;
				this.apush = true;
			}
			if (!Key.isDown(65) && this.apush && this.chat) {
				this.apush = false;
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.chat = false;
				this.message = 0;
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65) && this.chat) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	movieClip 2883	{
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
	}
	movieClip 2884	{
		instance of movieClip 2291	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2247	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1820	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2291	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1820	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	instance daynight of movieClip 1786	{
		onClipEvent (enterFrame) {
			if (!_root.days) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
				if (!_root.sundown) {
					this.gotoAndStop(2);
					if (this.sundown._currentframe == 40) {
						_root.sundown = true;
					}
				}
			}
			if (!_root.days && _root.sundown && this._currentframe !== 3) {
				this.gotoAndStop(3);
			}
			if (_root.days && _root.sundown) {
				this._x = _root.cam._x;
				this._y = _root.can._y;
				this.gotoAndStop(4);
				if (this.sunup._currentframe == 40) {
					_root.sundown = false;
				}
			}
			if (_root.days && !_root.sundown && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (_root.rainchance == 1) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
			}
		}
	}
	frame 66 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 2885	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'elder';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press the S key to sleep.\rPress A to exit the dialogue.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					this.sleeping = true;
				}
				if (this.sleeping && _root.trans._currentframe >= 20) {
					_root.health = _root.maxhealth;
					if (_root.days) {
						_root.days = false;
					} else {
						if (!_root.days) {
							_root.days = true;
						}
					}
					this.sleeping = false;
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 2887	{
	}
	instance BG of movieClip 2887	{
		onClipEvent (enterFrame) {
			if (_root.days && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (!_root.days && this._currentframe !== 2) {
				this.gotoAndStop(2);
			}
		}
	}
	frame 67 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 2888	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'elder';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press the S key to sleep.\rPress A to exit the dialogue.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					this.sleeping = true;
				}
				if (this.sleeping && _root.trans._currentframe >= 20) {
					_root.health = _root.maxhealth;
					if (_root.days) {
						_root.days = false;
					} else {
						if (!_root.days) {
							_root.days = true;
						}
					}
					this.sleeping = false;
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 2889	{
	}
	movieClip 2890	{
	}
	movieClip 2891	{
	}
	movieClip 2892	{
	}
	movieClip 2894	{
	}
	movieClip 2895	{
	}
	movieClip 2904	{
	}
	movieClip 2907	{
	}
	movieClip 2908	{
	}
	movieClip 2909	{
	}
	instance of movieClip 2909	{
		onClipEvent (load) {
			this.message = 0;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				_root.aicon = 7;
			}
			if (this.message == 0) {
				if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
					_root.chatting = true;
					this.chat = true;
					this.apush = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 10) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'I think I heard that someone recieved a chart from a man from Reverie. He lives on the north side of the island.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest !== 10 && _root.havegoblinchart && !_root.havenote) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Have you heard anything about my father yet? Oh I see... Please make sure he is alright.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest !== 10 && _root.havegoblinchart && _root.havenote && !_root.healthupgrade2) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Have you heard anything about my father yet? Oh a letter.. I was afraid of this. My father is gone and he is not coming back. Im happy that I can atleast have some closure. I cant thank you enough. Please take this. Its the least I can do.';
				}
				if (this.message == 1 && this.chat && !_root.getItems) {
					_root.cam.textbox.text = 'You got a health container. It increases your max health by one.';
					_root.getItems = true;
					_root.newitem = 14;
					_root.maxhealth += 4;
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.chat && _root.chatting && this.message == 2 && _root.getItems) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.getItems = false;
					_root.healthupgrade2 = true;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest !== 10 && !_root.havegoblinchart) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Its always been so peaceful here until recently. We started having a high number of goblin attacks and it devistated most of the island. People began living in fear. We virtually had no defense to them. That is until my father became fed up with it and decided to go to the Goblin Fortress and take care of the problem himself.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.cam.textbox.text = 'That was several weeks ago, and he still has not returned. I fear he has been captured or worse. Could you travel to Goblin Fortess and find out what happened to my father? It would be greatly appreciated. I just need to know what happened to him.';
				}
				if (this.chat && _root.chatting && this.message == 2) {
					_root.cam.textbox.text = 'I have a map chart to the Goblin Fortress you can have. I just hope you come back with good news.';
				}
				if (this.message == 3 && this.chat && !_root.getItems) {
					_root.cam.textbox.text = 'You got the Goblin Fortress Map Chart! This location is now available!';
					_root.getItems = true;
					_root.newitem = 10;
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.chat && _root.chatting && this.message == 4 && _root.getItems) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.getItems = false;
					_root.havegoblinchart = true;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest !== 10 && _root.healthupgrade2) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Thank you so much for your help. I can now live peacefully knowing my father died saving this island from future goblin attacks.';
				}
				if (this.message == 1 && _root.chatting) {
					_root.cam.textbox.text = ' ';
					_root.chatting = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (Key.isDown(65) && !this.apush && this.chat) {
				++this.message;
				this.apush = true;
			}
			if (!Key.isDown(65) && this.apush && this.chat) {
				this.apush = false;
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.chat = false;
				this.message = 0;
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65) && this.chat) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	movieClip 2911	{
	}
	instance BG of movieClip 2911	{
		onClipEvent (enterFrame) {
			if (_root.days && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (!_root.days && this._currentframe !== 2) {
				this.gotoAndStop(2);
			}
		}
	}
	frame 68 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 516.9;
		_root.cam._y = 702.1;
		_root.BG._visible = false;
		_root.neveahmusic = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 2912	{
		instance of movieClip 2087	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && !_root.getItems && !_root.carry && !_root.throws && !_root.hurt && !_root.hurted)) {
					this.selections = 3;
					_root.chatting = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
				if (_root.getItems && _root.chatting && _root.newitem == 1) {
					_root.cam.textbox.text = 'You got a small potion! These can be equipped to the D key and used when your health is running low to restore 3 heart containers!';
				}
				if (_root.getItems && _root.chatting && _root.newitem == 2) {
					_root.cam.textbox.text = 'You got a medium sized potion! These can be equipped to the D key and used when your health is running low to restore 5 heart containers!';
				}
				if (_root.chatting && !_root.getItems) {
					_root.maps.select.gotoAndStop(this.selections);
					if (this.selections == 1 && _root.money >= 5 && _root.health < _root.maxhealth) {
						_root.cam.textbox.text = 'Apple: 5 Gold\rThis replenishes half a heart.\rPress A to Buy.';
						if (Key.isDown(65) && !this.apush && _root.money >= 5) {
							_root.money -= 5;
							_root.health += 2;
							this.apush = true;
						}
					}
					if (this.selections == 1 && _root.money < 5) {
						_root.cam.textbox.text = 'Apple: 5 Gold\rNot Enough Money.';
					} else {
						if (this.selections == 1 && _root.health == _root.maxhealth) {
							_root.cam.textbox.text = 'Apple: 5 Gold\rYour health is full.';
						}
					}
					if (this.selections == 2 && _root.money >= 25) {
						_root.cam.textbox.text = 'Small Potion: 25 Gold\rRestores 3 heart full hearts.\rPress A to Buy';
						if (Key.isDown(65) && !this.apush && _root.money >= 25) {
							_root.money -= 25;
							_root.newitem = 1;
							this.counter = 0;
							this.apush = true;
							_root.getItems = true;
						}
					}
					if (this.selections == 2 && _root.money < 25) {
						_root.cam.textbox.text = 'Small Potion: 25 Gold\rNot Enough Money.';
					}
					if (this.selections == 3) {
						_root.cam.textbox.text = 'Welcome to my shop. Please take a look around with the Left or Right arrow keys. Press A to purchase the selected item. Press A to exit.';
					}
					if (this.selections == 4 && _root.money >= 60) {
						_root.cam.textbox.text = 'Medium Potion: 60 Gold\rRestores 5 heart containers!\rPress A to Buy';
						if (Key.isDown(65) && !this.apush) {
							_root.money -= 40;
							_root.newitem = 2;
							this.counter = 0;
							this.apush = true;
							_root.getItems = true;
						}
					}
					if (this.selections == 4 && _root.money < 60) {
						_root.cam.textbox.text = 'Medium Potion: 60 Gold\rNot Enough Money.';
					}
					if (this.selections == 5 && _root.money >= 120) {
						_root.cam.textbox.text = 'Large Potion: 120 Gold\rWhen equipped and used this potion will restore all of your hearts. If your life reaches zero while you have a Large Potion in your inventory you will be revived.\rPress A to Buy';
						if (Key.isDown(65) && !this.apush) {
							_root.money -= 120;
							this.counter = 0;
							_root.newitem = 3;
							this.apush = true;
							_root.getItems = true;
						}
					}
					if (this.selections == 5 && _root.money < 120) {
						_root.cam.textbox.text = 'Large Potion: 120 Gold\rNot Enough Money.';
					}
					if (Key.isDown(39) && !this.keypush) {
						this.keypush = true;
						++this.selections;
					}
					if (Key.isDown(37) && !this.keypush) {
						this.keypush = true;
						--this.selections;
					}
					if (!Key.isDown(65)) {
						this.apush = false;
					}
					if (!Key.isDown(39) && !Key.isDown(37)) {
						this.keypush = false;
					}
					if (this.selections > 5) {
						this.selections = 1;
					}
					if (this.selections < 1) {
						this.selections = 5;
					}
				}
				if (this.counter >= 1.5 && Key.isDown(65) && this.selections == 3 && _root.chatting or _root.getItems && this.counter >= 1.5 && Key.isDown(65) && _root.chatting) {
					_root.cam.textbox.text = ' ';
					_root.chatting = false;
					_root.getItems = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance select of movieClip 2091	{
			onClipEvent (enterFrame) {
				if (_root.chatting && !this._visible) {
					this._visible = true;
				}
				if (!_root.chatting && this._visible) {
					this._visible = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'elder';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 69 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 516.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 2913	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'elder';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	instance of movieClip 2525	{
		onClipEvent (load) {
			this.message = 0;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				_root.aicon = 7;
			}
			if (this.message == 0) {
				if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
					_root.chatting = true;
					this.chat = true;
					this.apush = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 10) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Ah yes the map chart. It has been forever since anyone has spoke of it. It was entrusted to my brother for safe keeping. If you want to know more you should speak with him. He is just up the stairs.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest !== 10) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'My brother and I use to travel when we were young and always search for adventure. We spent most of our life sailing the ocean until we found this place. Thats when we decided to settle down and live the rest of our lives in solitude.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (Key.isDown(65) && !this.apush && this.chat) {
				++this.message;
				this.apush = true;
			}
			if (!Key.isDown(65) && this.apush && this.chat) {
				this.apush = false;
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.chat = false;
				this.message = 0;
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65) && this.chat) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 2497	{
		onClipEvent (load) {
			this.message = 0;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				_root.aicon = 7;
			}
			if (this.message == 0) {
				if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
					_root.chatting = true;
					this.chat = true;
					this.apush = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 10) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Yes the map chart to Lost Island. I regeret to inform you that I sold it to a creepy salesman in Neveah village. It would be a good idea to speak with him. He only shows himself at night though.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.quest = 11;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest !== 10) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Sometimes I miss all the adventures I use to go on and all the traveling, but then I find comfort in knowing I had a life full of that and I can now live the rest of my life in retirement.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (Key.isDown(65) && !this.apush && this.chat) {
				++this.message;
				this.apush = true;
			}
			if (!Key.isDown(65) && this.apush && this.chat) {
				this.apush = false;
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.chat = false;
				this.message = 0;
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65) && this.chat) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	movieClip 2915	{
	}
	frame 70 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 2916	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'elder';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 2917	{
	}
	movieClip 2919	{
	}
	movieClip 2923	{
	}
	movieClip 2925	{
	}
	movieClip 2926	{
	}
	instance of movieClip 2926	{
		onClipEvent (load) {
			this.message = 0;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				_root.aicon = 7;
			}
			if (this.message == 0) {
				if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
					_root.chatting = true;
					this.chat = true;
					this.apush = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 10) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'I remember a bald man carrying a piece of paper around. It could have been a map. I hope that helps.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest !== 10) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'I wish there were more action around here. Its to quiet for me. Most people enjoy it, but I want to travel and see what else life has to offer.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (Key.isDown(65) && !this.apush && this.chat) {
				++this.message;
				this.apush = true;
			}
			if (!Key.isDown(65) && this.apush && this.chat) {
				this.apush = false;
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.chat = false;
				this.message = 0;
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65) && this.chat) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 2696	{
		onClipEvent (load) {
			this.message = 0;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				_root.aicon = 7;
			}
			if (this.message == 0) {
				if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
					_root.chatting = true;
					this.chat = true;
					this.apush = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 10) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'I havent heard anything about a map chart.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest !== 10) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'People who visit are so mysterious. They are always suprised by how much we enjoy the quiet.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (Key.isDown(65) && !this.apush && this.chat) {
				++this.message;
				this.apush = true;
			}
			if (!Key.isDown(65) && this.apush && this.chat) {
				this.apush = false;
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.chat = false;
				this.message = 0;
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65) && this.chat) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	movieClip 2927	{
	}
	movieClip 2928	{
	}
	movieClip 2929	{
	}
	movieClip 2931	{
	}
	movieClip 2933	{
	}
	movieClip 2934	{
	}
	movieClip 2943	{
	}
	movieClip 2945	{
	}
	movieClip 2946	{
	}
	movieClip 2947	{
	}
	instance of movieClip 2947	{
		onClipEvent (load) {
			this.message = 0;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				_root.aicon = 7;
			}
			if (this.message == 0) {
				if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
					_root.chatting = true;
					this.chat = true;
					this.apush = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
			}
			if (_root.quest == 10) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'I havent heard anything about a map.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.quest !== 10) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Elder Island really is a paradise. Its so beautiful here and we have the natural spring right in the center of the island.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (Key.isDown(65) && !this.apush && this.chat) {
				++this.message;
				this.apush = true;
			}
			if (!Key.isDown(65) && this.apush && this.chat) {
				this.apush = false;
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.chat = false;
				this.message = 0;
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65) && this.chat) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	movieClip 2949	{
	}
	frame 72 {
		stop();
		_root.walking = 1;
		_root.reveriemusic = true;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.dungeon1 = false;
		_root.dungeon3 = false;
		_root.dungeon2 = false;
		_root.goblinsound = false;
		_root.boss1 = false;
		_root.restartpoint = _root.room;
		_root.oldrestart = _root.oldroom;
	}
	movieClip 2952	{
	}
	movieClip 2955	{
		frame 1 {
			stop();
		}
	}
	movieClip 2956	{
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2752	{
			onClipEvent (enterFrame) {
				if (_root.door5locked && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (!_root.door5locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (!_root.warping && !_root.warps) {
						_root.interested = true;
						_root.intx = 959.35;
						_root.inty = 313.5;
					}
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 2955	{
			onClipEvent (enterFrame) {
				if (_root.door5locked && this._currentframe == 1) {
					this.gotoAndStop(1);
				}
				if (!_root.door5locked && this._currentframe == 2) {
					this.gotoAndStop(2);
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _root.door5locked) {
						_root.door5locked = false;
						_root['arrowdup_' + i].removeMovieClip();
					}
					++i;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 8;
				}
				if (this.hitTest(_root.box) && Key.isDown(65) && !_root.pause && !_root.warping) {
					_root.screen = 4;
					_root.pause = true;
					_root.menusc.gotoAndStop(4);
					_root.menusc._visible = true;
					_root.apush = true;
					_root.menusc.deciding = true;
					if (_root.sfx) {
						_root.openmenu.start(0, 1);
					}
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 5;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 5;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 2958	{
	}
	movieClip 2960	{
	}
	movieClip 2961	{
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	instance daynight of movieClip 1786	{
		onClipEvent (enterFrame) {
			if (!_root.days) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
				if (!_root.sundown) {
					this.gotoAndStop(2);
					if (this.sundown._currentframe == 40) {
						_root.sundown = true;
					}
				}
			}
			if (!_root.days && _root.sundown && this._currentframe !== 3) {
				this.gotoAndStop(3);
			}
			if (_root.days && _root.sundown) {
				this._x = _root.cam._x;
				this._y = _root.can._y;
				this.gotoAndStop(4);
				if (this.sunup._currentframe == 40) {
					_root.sundown = false;
				}
			}
			if (_root.days && !_root.sundown && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (_root.rainchance == 1) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
			}
		}
	}
	frame 73 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon3 = false;
		_root.dungeon2 = true;
		_root.restartpoint = _root.room;
		_root.oldrestart = 'lost';
	}
	movieClip 2965	{
	}
	movieClip 2968	{
	}
	movieClip 2971	{
	}
	movieClip 2974	{
		frame 1 {
			stop();
		}
	}
	movieClip 2975	{
		instance of movieClip 2974	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	instance of movieClip 503	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 100;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.skeleton.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.skeleton.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.skeleton.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.skeleton.gotoAndStop(4);
			}
			if (this.swordslash && this.skeleton.attack._currentframe == 13) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.skeleton.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
				if (!_root.havekey3) {
					newkey = _root.bigkeydup.duplicateMovieClip('bigkey', _root.getNextHighestDepth());
					newkey._x = this._x;
					newkey._y = this._y;
					newkey.key = 1;
				}
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.skeleton.gotoAndStop(3);
			}
			if (this.skeleton._currentframe == 3 && this.skeleton.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 100;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 2977	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 2979	{
		frame 1 {
			stop();
		}
	}
	movieClip 2980	{
		instance of movieClip 2979	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'lost';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 74 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon3 = false;
		_root.dungeon2 = true;
	}
	movieClip 2984	{
		frame 1 {
			stop();
		}
	}
	movieClip 2985	{
		instance of movieClip 2974	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door8locked && _root.keys > 0) {
					_root.door8locked = false;
					_root.keys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door8locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-8';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door8locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.door8locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 2988	{
		frame 1 {
			stop();
		}
	}
	movieClip 2989	{
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 2992	{
		frame 1 {
			stop();
		}
	}
	movieClip 2993	{
		instance of movieClip 2979	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 2992	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-3';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 2992	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-5';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 75 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon3 = false;
		_root.dungeon2 = true;
	}
	movieClip 2994	{
	}
	movieClip 2995	{
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 2997	{
		instance of movieClip 2853	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2853	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2853	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2853	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 2998	{
		instance of movieClip 2992	{
			onClipEvent (enterFrame) {
				if (_root.over.fl2.hit && _root.over.fl3.hit && _root.over.fl4.hit && _root.door6locked) {
					_root.door6locked = false;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door6locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-4';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door6locked && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (!_root.door6locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2992	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1294	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i])) {
						_root['arrowdup_' + i].flamed = true;
					}
					++i;
				}
			}
		}
		instance fl2 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
				this.hit = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
						this.hit = true;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.getkey.start(0, 1);
						}
					}
					if (this.hitTest(_root['arrowdup_' + i]) && !_root['arrowdup_' + i].flamed && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					++i;
				}
			}
		}
		instance fl3 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
						this.hit = true;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.getkey.start(0, 1);
						}
					}
					if (this.hitTest(_root['arrowdup_' + i]) && !_root['arrowdup_' + i].flamed && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					++i;
				}
			}
		}
		instance fl4 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
						this.hit = true;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.getkey.start(0, 1);
						}
					}
					if (this.hitTest(_root['arrowdup_' + i]) && !_root['arrowdup_' + i].flamed && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					++i;
				}
			}
		}
	}
	frame 76 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon3 = false;
		_root.dungeon2 = true;
		_root.box._x = 903.35;
		_root.box._y = 555.4;
		_root.cam._x -= 200;
	}
	movieClip 3000	{
	}
	instance of movieClip 503	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.skeleton.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.skeleton.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.skeleton.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.skeleton.gotoAndStop(4);
			}
			if (this.swordslash && this.skeleton.attack._currentframe == 13) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.skeleton.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.skeleton.gotoAndStop(3);
			}
			if (this.skeleton._currentframe == 3 && this.skeleton.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 5;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 600	{
		onClipEvent (load) {
			this.health = 7;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wolf.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wolf.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.wolf.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.wolf.gotoAndStop(4);
				}
				if (this.swordslash && this.wolf.attack._currentframe == 17) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.wolf.gotoAndStop(3);
			}
			if (this.wolf._currentframe == 3 && this.wolf.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3002	{
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.newitem = 11;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got a small key! This can be used to open locked doors throughout the dungeon!';
					this.chat = true;
					_root.keys += 1;
					_root.getItems = true;
					_root.havekey4 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
				}
				if (_root.enemies > 0 && !_root.chestappeared4) {
					this.gotoAndStop(4);
				}
				if (_root.enemies <= 0 && !_root.chestappeared4 && !_root.warping) {
					this.gotoAndStop(3);
					_root.interested = true;
					_root.intx = 545.65;
					_root.inty = 531.4500000000001;
					if (this.appears._currentframe == 7) {
						_root.chestappeared4 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havekey4 && _root.chestappeared4) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey4 && _root.chestappeared4) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3003	{
		instance of movieClip 2992	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-3';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 77 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon3 = false;
		_root.dungeon2 = true;
	}
	movieClip 3004	{
		instance of movieClip 2974	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-7';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 3006	{
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3007	{
		instance of movieClip 2992	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 2992	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door7locked && _root.keys > 0) {
					_root.door7locked = false;
					_root.keys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door7locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-6';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door7locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.door7locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
	}
	frame 78 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon3 = false;
		_root.dungeon2 = true;
		_root.box._x = 145.6;
		_root.box._y = 547.4;
		_root.cam._x += 200;
	}
	movieClip 3008	{
		instance of movieClip 2867	{
			onClipEvent (load) {
				_root.switchhit2 = false;
			}
			onClipEvent (enterFrame) {
				if (_root.switchhit2 && this._currentframe !== 2 or this.hitTest(_root.box) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.flipswitch.start(0, 1);
					}
				}
				if (!_root.switchhit2 && !this.hitTest(_root.box) && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (this.hitTest(_root.BG2.emptychest) && !_root.switchhit2) {
					_root.switchhit2 = true;
					if (_root.sfx) {
						_root.flipswitch.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3010	{
	}
	movieClip 3011	{
	}
	instance BG2 of movieClip 3011	{
		onClipEvent (load) {
			this.timer = 40;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				--this.timer;
			} else {
				if (!this.hitTest(_root.hero) && this.timer < 40) {
					this.timer = 40;
				}
			}
			if (!Key.isDown(39) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(38) && this.timer < 40) {
				this.timer = 40;
			}
			if (this.hitTest(_root.hero) && this._x > _root.hero._x && this.timer < 0 && !_root.pickup && !_root.firing && !_root.throwboomerang && !_root.throwfire && !_root.throws && Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
				if (!_root.BG.hitTest(this._x + 20, _y, true)) {
					this._x += _root.RUN;
				}
			}
			if (this.hitTest(_root.hero) && this._x < _root.hero._x && this.timer < 0 && !_root.pickup && !_root.firing && !_root.throwboomerang && !_root.throwfire && !_root.throws && Key.isDown(37) && !Key.isDown(38) && !Key.isDown(40)) {
				if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
					this._x -= _root.RUN;
				}
			}
			if (this.hitTest(_root.hero) && this._y > _root.hero._y && this.timer < 0 && !_root.pickup && !_root.firing && !_root.throwboomerang && !_root.throwfire && !_root.throws && Key.isDown(40) && !Key.isDown(39) && !Key.isDown(37)) {
				if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
					this._y += _root.RUN;
				}
			}
			if (this.hitTest(_root.hero) && this._y < _root.hero._y && this.timer < 0 && !_root.pickup && !_root.firing && !_root.throwboomerang && !_root.throwfire && !_root.throws && Key.isDown(38) && !Key.isDown(39) && !Key.isDown(37)) {
				if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
					this._y -= _root.RUN;
				}
			}
		}
	}
	movieClip 3013	{
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.newitem = 7;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got the Giant Hammer! You can equip this to the D key from the menu screen by pressing A! While equipped you can press D to use the hammer.';
					_root.getItems = true;
					_root.havehammer = true;
					this.chat = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (!_root.switchhit2 && !_root.chestappeared6) {
					this.gotoAndStop(4);
				}
				if (_root.switchhit2 && !_root.chestappeared6) {
					this.gotoAndStop(3);
					_root.interested = true;
					_root.intx = 491.5;
					_root.inty = 147.6;
					if (this.appears._currentframe == 7) {
						_root.chestappeared6 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havehammer && _root.chestappeared6) {
					this.gotoAndStop(2);
				}
				if (!_root.havehammer && _root.chestappeared6) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3014	{
		instance of movieClip 2992	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-5';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 79 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon3 = false;
		_root.dungeon2 = true;
	}
	movieClip 3017	{
		frame 2 {
			stop();
		}
	}
	movieClip 3018	{
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 2974	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-9';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
		instance of movieClip 3017	{
			onClipEvent (enterFrame) {
				if (!_root.hurted && !_root.hurt && this.hitTest(_root.box)) {
					this.gotoAndStop(1);
					if (!_root.defend && !this.hitTest(_root.hero.hero.hero.hero.shield)) {
						_root.hurt = true;
						_root.hurted = true;
						_root.health -= 1;
					}
				} else {
					if (this.hitTest(_root.box) && !_root.hurted && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3020	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.openchest.start(0, 1);
					_root.newitem = 11;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got a small key! This can be used to open locked doors throughout the dungeon!';
					this.chat = true;
					_root.keys += 1;
					_root.getItems = true;
					_root.havekey6 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.havekey6) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey6) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3021	{
		instance of movieClip 2979	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 80 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon3 = false;
		_root.dungeon2 = true;
	}
	movieClip 3024	{
	}
	movieClip 3026	{
	}
	movieClip 3028	{
	}
	movieClip 3031	{
		frame 1 {
			stop();
		}
	}
	movieClip 3034	{
		frame 1 {
			stop();
		}
	}
	movieClip 3035	{
		instance arrowswitch of movieClip 3031	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _root.door9locked) {
						this.gotoAndStop(2);
						_root['arrowdup_' + i].removeMovieClip();
					}
					++i;
				}
			}
		}
		instance hammerswitch of movieClip 3034	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 3036	{
	}
	instance of movieClip 740	{
		onClipEvent (load) {
			this.health = 12;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 28) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3038	{
	}
	movieClip 3039	{
		instance of movieClip 2979	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-8';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 2992	{
			onClipEvent (enterFrame) {
				if (_root.maps.hammerswitch._currentframe == 2 && _root.maps.arrowswitch._currentframe == 2) {
					_root.door9locked = false;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door9locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-10';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door9locked && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (!_root.door9locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
	}
	frame 81 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon3 = false;
		_root.dungeon2 = true;
	}
	movieClip 3042	{
		frame 1 {
			stop();
		}
	}
	movieClip 3043	{
		instance of movieClip 3042	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door10locked && _root.bigkeys > 0) {
					_root.door10locked = false;
					_root.bigkeys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door10locked && !_root.boss2dead) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-12';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door10locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.door10locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 5;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3045	{
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 3047	{
		instance of movieClip 2992	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-9';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 2992	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door11locked && _root.keys > 0) {
					_root.door11locked = false;
					_root.keys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door11locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-11';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door11locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.door11locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
	}
	frame 82 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon3 = false;
		_root.dungeon2 = true;
		_root.extrahit = false;
		_root.box._x = 145.6;
		_root.box._y = 547.4;
		_root.cam._x += 200;
	}
	movieClip 3049	{
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2984	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 3051	{
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					_root.extrahit = true;
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					_root.extrahit = true;
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					_root.extrahit = true;
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance pin1 of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.hit = true;
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					_root.extrahit = true;
					this.gotoAndStop(2);
				}
			}
		}
		instance pin3 of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.hit = true;
					this.gotoAndStop(2);
				}
			}
		}
		instance pin2 of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.hit = true;
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					_root.extrahit = true;
					this.gotoAndStop(2);
				}
			}
		}
		instance pin4 of movieClip 2988	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.hit = true;
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.newitem = 12;
					_root.chatting = true;
					this.chat = true;
					_root.cam.textbox.text = 'You got the boss room key! You can use this to unlock the final room!';
					_root.getItems = true;
					this._visible = false;
					_root.bigkeys += 1;
					_root.havekey7 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (!_root.BG.pin1.hit && !_root.BG.pin2.hit && !_root.BG.pin3.hit && !_root.BG.pin4.hit && !_root.chestappeared8) {
					this.gotoAndStop(4);
				}
				if (_root.BG.pin1.hit && _root.BG.pin2.hit && _root.BG.pin3.hit && _root.BG.pin4.hit && !_root.extrahit && !_root.chestappeared8) {
					this.gotoAndStop(3);
					if (this.appears._currentframe == 7) {
						_root.chestappeared8 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havekey7 && _root.chestappeared8) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey7 && _root.chestappeared8) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3052	{
		instance of movieClip 2992	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-10';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 83 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon3 = false;
		_root.dungeon2 = true;
		_root.box._x = 515.5;
		_root.box._y = 913.25;
		_root.cam._x = _root.box._x;
		_root.cam._y = _root.box._y - 120;
	}
	movieClip 3053	{
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 5;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 5;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3055	{
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.openchest.start(0, 1);
					_root.newitem = 11;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got a small key! This can be used to open locked doors throughout the dungeon!';
					this.chat = true;
					_root.keys += 1;
					_root.getItems = true;
					_root.havekey5 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.enemies > 0 && !_root.chestappeared7) {
					this.gotoAndStop(4);
				}
				if (_root.enemies <= 0 && !_root.chestappeared7) {
					this.gotoAndStop(3);
					_root.interested = true;
					_root.intx = 545.65;
					_root.inty = 531.4500000000001;
					if (this.appears._currentframe == 7) {
						_root.chestappeared7 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havekey5 && _root.chestappeared7) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey5 && _root.chestappeared7) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3056	{
		instance of movieClip 2979	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon2-5';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 84 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = true;
		_root.box._x = 511.5;
		_root.box._y = 907.3;
		_root.cam._x = _root.box._x;
		_root.cam._y = _root.box._y - 200;
	}
	movieClip 3059	{
	}
	movieClip 3061	{
	}
	movieClip 3063	{
	}
	movieClip 3065	{
	}
	movieClip 3067	{
	}
	movieClip 3069	{
	}
	movieClip 3073	{
		frame 78 {
			fires = true;
		}
		frame 79 {
			fires = false;
		}
		frame 100 {
			fires = true;
		}
		frame 101 {
			fires = false;
		}
		frame 122 {
			fires = true;
		}
		frame 123 {
			fires = false;
		}
		frame 137 {
			stop();
		}
	}
	movieClip 3074	{
	}
	movieClip 3077	{
		frame 29 {
			stop();
		}
	}
	movieClip 3083	{
	}
	movieClip 3085	{
		frame 14 {
			stop();
		}
	}
	movieClip 3086	{
	}
	movieClip 3088	{
	}
	movieClip 3090	{
	}
	movieClip 3091	{
		frame 29 {
			stop();
		}
	}
	movieClip 3092	{
		frame 1 {
			stop();
		}
	}
	instance of movieClip 3092	{
		onClipEvent (load) {
			this.health = 40;
			this.hurt = false;
			this.alive = true;
			this.stunned = false;
			this.stuntime = 0;
			this.appeared = false;
			this.counter = random(25) + 75;
			this.inv._visible = false;
			hittime = 100;
		}
		onClipEvent (enterFrame) {
			if (this.alive && !_root.pause) {
				rotatie = 180 + (Math.atan2(_root.box._y - this._y, _root.box._x - this._x) / Math.PI) * 180;
				this.inv._rotation = rotatie;
				if (!_root.interested && !this.showed) {
					this.showed = true;
					_root.interested = true;
				}
				if (_root.interested) {
					_root.intx = this._x;
					_root.inty = this._y;
				}
				if (!this.appeared && this.counter > 0 && !this.stunned) {
					this.gotoAndStop(6);
					--this.counter;
				} else {
					if (this.counter <= 0 && !this.stunned && !this.appeared) {
						this._x = random(872) + 114;
						this._y = random(857) + 191;
						this.appeared = true;
						this.counter = random(300) + 50;
						this.gotoAndStop(1);
					}
				}
				if (this.appears.fires == true && !this.hurt && !this.stunned) {
					flameball = _root.bossfire.duplicateMovieClip('enb_' + _root.ar, _root.getNextHighestDepth());
					++_root.ar;
					angle = this.inv._rotation;
					flameball._x = this._x;
					flameball._y = this._y;
					flameball.fired = true;
					flameball._rotation = angle + 90;
					flameball.dirx = Math.cos(angle * Math.PI / 180) * 15;
					flameball.diry = Math.sin(angle * Math.PI / 180) * 15;
					flameball._x = this._x - Math.cos(angle * Math.PI / 180) * 80;
					flameball._y = this._y - Math.sin(angle * Math.PI / 180) * 80;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && !this.stunned && this.appeared) {
					this.stunned = true;
					this.gotoAndStop(3);
					this.stuntime = 100;
					if (_root.sfx) {
						_root.bossgrowl.start(0, 1);
					}
				}
				if (this.stuntime > 0 && this.stunned) {
					--this.stuntime;
				}
				if (this.stuntime <= 0 && this.stunned) {
					this.stunned = false;
					this.gotoAndStop(2);
				}
				if (this.stunned && !this.hurt && this.hitTest(_root.hero.hero.hero.hero.hero.sword)) {
					this.hurt = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				this._alpha = hittime;
				if (this.hurt && hittime > 0) {
					hittime -= 10;
				}
				if (this.hurt && hittime <= 0) {
					hittime = 100;
					this._alpha = 100;
					this.hurt = false;
				}
				if (this.appeared && !this.hurt && !this.stunned && this.appears._currentframe == 137) {
					this.gotoAndStop(2);
				}
				if (this.appeared && !this.hurt && !this.stunned && this.disappears._currentframe == 29) {
					this.appeared = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.alive = false;
				this.gotoAndStop(5);
			}
			if (this.dead._currentframe == 29 && !this.alive) {
				_root.boss2dead = true;
				_root.chestappearing9 = true;
			}
		}
	}
	movieClip 3094	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.openchest.start(0, 1);
					_root.newitem = 17;
					_root.chatting = true;
					this.chat = true;
					_root.cam.textbox.text = 'You got the second Lantern Fragment! You can feel its power as you hold it in your hands! Only one remains! You have also boosted your max health by one.';
					_root.getItems = true;
					this._visible = false;
					_root.maxhealth += 4;
					_root.health = _root.maxhealth;
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.warping = true;
					_root.havelantern2 = true;
					_root.room = 'lost';
					_root.oldroom = 'ocean';
					if (_root.quest == 12) {
						_root.quest = 13;
					}
					if (_root.sfx) {
						_root.chatwindorclose.start(0, 1);
					}
				}
				if (!_root.havelantern2 && !_root.chestappeared9 && !_root.chestappearing9) {
					this.gotoAndStop(4);
				}
				if (!_root.havelantern2 && !_root.chestappeared9 && _root.chestappearing9) {
					this.gotoAndStop(3);
					if (this.appears._currentframe == 7) {
						_root.chestappeared9 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havelantern2 && _root.chestappeared9) {
					this.gotoAndStop(2);
				}
				if (!_root.havelantern2 && _root.chestappeared9) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3095	{
	}
	frame 86 {
		stop();
		_root.walking = 1;
		_root.reveriemusic = true;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = false;
		_root.boss1 = false;
		_root.genericsound = false;
		_root.restartpoint = _root.room;
		_root.oldrestart = _root.oldroom;
	}
	movieClip 3097	{
		frame 1 {
			stop();
		}
	}
	movieClip 3098	{
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2752	{
			onClipEvent (enterFrame) {
				if (_root.maps.hitswitch._currentframe == 1) {
					this.gotoAndStop(3);
				}
				if (_root.maps.hitswitch._currentframe == 2) {
					this.gotoAndStop(1);
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance hitswitch of movieClip 3034	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 3097	{
			onClipEvent (enterFrame) {
				if (_root.door22locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.door22locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 8;
				}
				if (this.hitTest(_root.box) && Key.isDown(65) && !_root.pause && !_root.warping) {
					_root.screen = 4;
					_root.pause = true;
					_root.menusc.gotoAndStop(4);
					_root.menusc._visible = true;
					_root.apush = true;
					_root.menusc.deciding = true;
					if (_root.sfx) {
						_root.openmenu.start(0, 1);
					}
				}
			}
		}
	}
	instance of movieClip 503	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.skeleton.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.skeleton.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.skeleton.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.skeleton.gotoAndStop(4);
			}
			if (this.swordslash && this.skeleton.attack._currentframe == 13) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.skeleton.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.skeleton.gotoAndStop(3);
			}
			if (this.skeleton._currentframe == 3 && this.skeleton.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 503	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.skeleton.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.skeleton.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.skeleton.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.skeleton.gotoAndStop(4);
			}
			if (this.swordslash && this.skeleton.attack._currentframe == 13) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.skeleton.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.skeleton.gotoAndStop(3);
			}
			if (this.skeleton._currentframe == 3 && this.skeleton.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3099	{
		frame 1 {
			stop();
		}
	}
	instance BG2 of movieClip 3099	{
		onClipEvent (enterFrame) {
			if (_root.enemies <= 0 && _root.door22locked) {
				_root.door22locked = false;
			}
			if (_root.door22locked && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (!_root.door22locked && this._currentframe !== 2) {
				this.gotoAndStop(2);
			}
		}
	}
	movieClip 3101	{
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
	}
	movieClip 3103	{
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	instance daynight of movieClip 1786	{
		onClipEvent (enterFrame) {
			if (!_root.days) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
				if (!_root.sundown) {
					this.gotoAndStop(2);
					if (this.sundown._currentframe == 40) {
						_root.sundown = true;
					}
				}
			}
			if (!_root.days && _root.sundown && this._currentframe !== 3) {
				this.gotoAndStop(3);
			}
			if (_root.days && _root.sundown) {
				this._x = _root.cam._x;
				this._y = _root.can._y;
				this.gotoAndStop(4);
				if (this.sunup._currentframe == 40) {
					_root.sundown = false;
				}
			}
			if (_root.days && !_root.sundown && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (_root.rainchance == 1) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
			}
		}
	}
	frame 87 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = true;
		_root.restartpoint = _root.room;
		_root.oldrestart = 'easterian';
	}
	movieClip 3107	{
	}
	movieClip 3110	{
	}
	movieClip 3113	{
	}
	movieClip 3116	{
		frame 1 {
			stop();
		}
	}
	movieClip 3117	{
		instance of movieClip 3116	{
			onClipEvent (enterFrame) {
				if (_root.maps.hammerswitch._currentframe == 2) {
					_root.door12locked = false;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door12locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-6';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door12locked && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (!_root.door12locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
		instance hammerswitch of movieClip 3034	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 3119	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3122	{
		frame 1 {
			stop();
		}
	}
	movieClip 3125	{
		frame 1 {
			stop();
		}
	}
	movieClip 3126	{
		instance of movieClip 3122	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'easterian';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3125	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-4';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3125	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 88 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = true;
	}
	movieClip 3132	{
		frame 1 {
			stop();
		}
		frame 15 {
			stop();
		}
	}
	movieClip 3133	{
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemeis -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemeis -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemeis -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3135	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance switch1 of movieClip 2787	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root.hero.hero.hero.hero.hero.sword)) {
						flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
						flashes._alpha = random(100) + 40;
						flashes.placed = true;
						flashes._x = this._x;
						flashes._y = this._y;
						flashes._rotation = random(360);
						if (_root.sfx && !this.switchhit) {
							_root.flipswitch.start(0, 1);
						}
						this.switchhit = true;
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.switchhit = true;
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.switchhit = true;
					}
					++i;
				}
				if (this.switchhit && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!this.switchhit && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.switchhit && !this.hitTest(_root['bombnew' + i]) && !this.hitTest(_root['bombel_' + i])) {
					this.switchhit = false;
				}
			}
		}
		instance switch2 of movieClip 2787	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root.hero.hero.hero.hero.hero.sword)) {
						flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
						flashes._alpha = random(100) + 40;
						flashes.placed = true;
						flashes._x = this._x;
						flashes._y = this._y;
						flashes._rotation = random(360);
						if (_root.sfx && !this.switchhit) {
							_root.flipswitch.start(0, 1);
						}
						this.switchhit = true;
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.switchhit = true;
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.switchhit = true;
					}
					++i;
				}
				if (this.switchhit && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!this.switchhit && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.switchhit && !this.hitTest(_root['bombnew' + i]) && !this.hitTest(_root['bombel_' + i])) {
					this.switchhit = false;
				}
			}
		}
		instance switch3 of movieClip 2787	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root.hero.hero.hero.hero.hero.sword)) {
						flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
						flashes._alpha = random(100) + 40;
						flashes.placed = true;
						flashes._x = this._x;
						flashes._y = this._y;
						flashes._rotation = random(360);
						if (_root.sfx && !this.switchhit) {
							_root.flipswitch.start(0, 1);
						}
						this.switchhit = true;
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.switchhit = true;
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.switchhit = true;
					}
					++i;
				}
				if (this.switchhit && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!this.switchhit && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.switchhit && !this.hitTest(_root['bombnew' + i]) && !this.hitTest(_root['bombel_' + i])) {
					this.switchhit = false;
				}
			}
		}
		instance switch4 of movieClip 2787	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root.hero.hero.hero.hero.hero.sword)) {
						flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
						flashes._alpha = random(100) + 40;
						flashes.placed = true;
						flashes._x = this._x;
						flashes._y = this._y;
						flashes._rotation = random(360);
						if (_root.sfx && !this.switchhit) {
							_root.flipswitch.start(0, 1);
						}
						this.switchhit = true;
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.switchhit = true;
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.switchhit = true;
					}
					++i;
				}
				if (this.switchhit && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!this.switchhit && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.switchhit && !this.hitTest(_root['bombnew' + i]) && !this.hitTest(_root['bombel_' + i])) {
					this.switchhit = false;
				}
			}
		}
	}
	movieClip 3137	{
		instance of movieClip 3125	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3125	{
			onClipEvent (enterFrame) {
				if (_root.BG.switch1._currentframe == 2 && _root.BG.switch2._currentframe == 2 && _root.BG.switch3._currentframe == 2 && _root.BG.switch4._currentframe == 2) {
					_root.door13locked = false;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door13locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-3';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door13locked && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (!_root.door13locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
	}
	frame 89 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = true;
		_root.extrahit = false;
		_root.box._x = 145.6;
		_root.box._y = 547.4;
		_root.cam._x += 200;
	}
	movieClip 3138	{
	}
	instance of movieClip 600	{
		onClipEvent (load) {
			this.health = 8;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wolf.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wolf.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.wolf.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.wolf.gotoAndStop(4);
				}
				if (this.swordslash && this.wolf.attack._currentframe == 17) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.wolf.gotoAndStop(3);
			}
			if (this.wolf._currentframe == 3 && this.wolf.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 600	{
		onClipEvent (load) {
			this.health = 8;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wolf.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wolf.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.wolf.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.wolf.gotoAndStop(4);
				}
				if (this.swordslash && this.wolf.attack._currentframe == 17) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.wolf.gotoAndStop(3);
			}
			if (this.wolf._currentframe == 3 && this.wolf.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 503	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.skeleton.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.skeleton.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.skeleton.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.skeleton.gotoAndStop(4);
			}
			if (this.swordslash && this.skeleton.attack._currentframe == 13) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.skeleton.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.skeleton.gotoAndStop(3);
			}
			if (this.skeleton._currentframe == 3 && this.skeleton.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3140	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.openchest.start(0, 1);
					_root.newitem = 11;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got a small key! This can be used to open locked doors throughout the dungeon!';
					this.chat = true;
					_root.keys += 1;
					_root.getItems = true;
					_root.havekey8 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.havekey8) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey8) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3142	{
		instance of movieClip 3125	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 3143	{
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3145	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3147	{
		instance of movieClip 3125	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-5';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3125	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 91 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = true;
		_root.box._x = 903.35;
		_root.box._y = 555.4;
		_root.cam._x -= 200;
	}
	movieClip 3148	{
		instance sw1 of movieClip 2867	{
			onClipEvent (load) {
				this.switched = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.BG2) && this._currentframe !== 2 or this.hitTest(_root.box) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.flipswitch.start(0, 1);
					}
				}
				if (!this.hitTest(_root.BG2) && !this.hitTest(_root.box) && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
			}
		}
		instance sw2 of movieClip 2867	{
			onClipEvent (load) {
				this.switched = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.BG2) && this._currentframe !== 2 or this.hitTest(_root.box) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.flipswitch.start(0, 1);
					}
				}
				if (!this.hitTest(_root.BG2) && !this.hitTest(_root.box) && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
	}
	movieClip 3150	{
	}
	instance BG2 of movieClip 3150	{
		onClipEvent (load) {
			this.timer = 40;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				--this.timer;
			} else {
				if (!this.hitTest(_root.hero) && this.timer < 40) {
					this.timer = 40;
				}
			}
			if (!Key.isDown(39) && !Key.isDown(37) && !Key.isDown(40) && !Key.isDown(38) && this.timer < 40) {
				this.timer = 40;
			}
			if (this.hitTest(_root.hero) && this._x > _root.hero._x && this.timer < 0 && !_root.pickup && !_root.firing && !_root.throwboomerang && !_root.throwfire && !_root.throws && Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40)) {
				if (!_root.BG.hitTest(this._x + 20, _y, true)) {
					this._x += _root.RUN;
				}
			}
			if (this.hitTest(_root.hero) && this._x < _root.hero._x && this.timer < 0 && !_root.pickup && !_root.firing && !_root.throwboomerang && !_root.throwfire && !_root.throws && Key.isDown(37) && !Key.isDown(38) && !Key.isDown(40)) {
				if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
					this._x -= _root.RUN;
				}
			}
			if (this.hitTest(_root.hero) && this._y > _root.hero._y && this.timer < 0 && !_root.pickup && !_root.firing && !_root.throwboomerang && !_root.throwfire && !_root.throws && Key.isDown(40) && !Key.isDown(39) && !Key.isDown(37)) {
				if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
					this._y += _root.RUN;
				}
			}
			if (this.hitTest(_root.hero) && this._y < _root.hero._y && this.timer < 0 && !_root.pickup && !_root.firing && !_root.throwboomerang && !_root.throwfire && !_root.throws && Key.isDown(38) && !Key.isDown(39) && !Key.isDown(37)) {
				if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
					this._y -= _root.RUN;
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemeis -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemeis -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemeis -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3152	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.newitem = 11;
					_root.chatting = true;
					this.chat = true;
					_root.cam.textbox.text = 'You got a small key! You can use this to unlock rooms in this dungeon!';
					_root.getItems = true;
					this._visible = false;
					_root.keys += 1;
					_root.havekey9 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.maps.sw1._currentframe == 2 && _root.maps.sw2._currentframe == 2 && !_root.chestappeared10) {
					this.gotoAndStop(3);
					if (this.appears._currentframe == 7) {
						_root.chestappeared10 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.maps.sw1._currentframe !== 2 && _root.maps.sw2._currentframe !== 2 && !_root.chestappeared10) {
					this.gotoAndStop(4);
				}
				if (_root.havekey9 && _root.chestappeared10) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey9 && _root.chestappeared10) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3154	{
		instance of movieClip 3125	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-4';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 92 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = true;
	}
	movieClip 3155	{
		instance of movieClip 3116	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door14locked && _root.keys > 0) {
					_root.door14locked = false;
					_root.keys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door14locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-7';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door14locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.door14locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3157	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3158	{
		instance of movieClip 3122	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 93 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = true;
	}
	movieClip 3160	{
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3162	{
	}
	movieClip 3164	{
		instance of movieClip 3122	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-6';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3125	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-17';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3125	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door15locked && _root.keys > 0) {
					_root.door15locked = false;
					_root.keys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door15locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-8';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door15locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.door15locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
	}
	frame 94 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = true;
	}
	movieClip 3166	{
		instance of movieClip 3116	{
			onClipEvent (enterFrame) {
				if (_root.maps.sw1._currentframe == 2 && _root.maps.sw2._currentframe == 2 && _root.maps.sw3._currentframe == 2 && _root.maps.sw4._currentframe == 2) {
					_root.door16locked = false;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door16locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-9';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door16locked && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (!_root.door16locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
		instance sw2 of movieClip 2867	{
			onClipEvent (enterFrame) {
				if (this._currentframe == 1 && _root.maps.sw1._currentframe == 2 && _root.maps.sw3._currentframe !== 2 && _root.maps.sw4._currentframe !== 2) {
					this.canpush = true;
				}
				if (this._currentframe == 1) {
					if (_root.maps.sw1._currentframe !== 2 or _root.maps.sw3._currentframe == 2 or _root.maps.sw4._currentframe == 2) {
						this.canpush = false;
					}
				}
				if (this._currentframe !== 2 && this.hitTest(_root.box) && this.canpush) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.flipswitch.start(0, 1);
					}
				}
				if (!this.canpush && this._currentframe == 1 && this.hitTest(_root.box)) {
					this.gotoAndStop(2);
					_root.maps.sw4.gotoAndStop(1);
					_root.maps.sw1.gotoAndStop(1);
					_root.maps.sw3.gotoAndStop(1);
					if (_root.sfx) {
						_root.flipswitch.start(0, 1);
					}
				}
			}
		}
		instance sw1 of movieClip 2867	{
			onClipEvent (enterFrame) {
				if (this._currentframe == 1 && _root.maps.sw2._currentframe !== 2 && _root.maps.sw3._currentframe !== 2 && _root.maps.sw4._currentframe !== 2) {
					this.canpush = true;
				}
				if (this._currentframe == 1) {
					if (_root.maps.sw2._currentframe == 2 or _root.maps.sw3._currentframe == 2 or _root.maps.sw4._currentframe == 2) {
						this.canpush = false;
					}
				}
				if (this._currentframe !== 2 && this.hitTest(_root.box) && this.canpush) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.flipswitch.start(0, 1);
					}
				}
				if (!this.canpush && this._currentframe == 1 && this.hitTest(_root.box)) {
					this.gotoAndStop(2);
					_root.maps.sw4.gotoAndStop(1);
					_root.maps.sw2.gotoAndStop(1);
					_root.maps.sw3.gotoAndStop(1);
					if (_root.sfx) {
						_root.flipswitch.start(0, 1);
					}
				}
			}
		}
		instance sw4 of movieClip 2867	{
			onClipEvent (enterFrame) {
				if (this._currentframe == 1 && _root.maps.sw1._currentframe == 2 && _root.maps.sw2._currentframe == 2 && _root.maps.sw3._currentframe == 2) {
					this.canpush = true;
				}
				if (this._currentframe == 1) {
					if (_root.maps.sw1._currentframe !== 2 or _root.maps.sw2._currentframe !== 2 or _root.maps.sw3._currentframe !== 2) {
						this.canpush = false;
					}
				}
				if (this._currentframe !== 2 && this.hitTest(_root.box) && this.canpush) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.flipswitch.start(0, 1);
					}
				}
				if (!this.canpush && this._currentframe == 1 && this.hitTest(_root.box)) {
					this.gotoAndStop(2);
					_root.maps.sw3.gotoAndStop(1);
					_root.maps.sw2.gotoAndStop(1);
					_root.maps.sw1.gotoAndStop(1);
					if (_root.sfx) {
						_root.flipswitch.start(0, 1);
					}
				}
			}
		}
		instance sw3 of movieClip 2867	{
			onClipEvent (enterFrame) {
				if (this._currentframe == 1 && _root.maps.sw1._currentframe == 2 && _root.maps.sw2._currentframe == 2 && _root.maps.sw4._currentframe !== 2) {
					this.canpush = true;
				}
				if (this._currentframe == 1) {
					if (_root.maps.sw4._currentframe == 2 or _root.maps.sw2._currentframe !== 2 or _root.maps.sw1._currentframe !== 2) {
						this.canpush = false;
					}
				}
				if (this._currentframe !== 2 && this.hitTest(_root.box) && this.canpush) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.flipswitch.start(0, 1);
					}
				}
				if (!this.canpush && this._currentframe == 1 && this.hitTest(_root.box)) {
					this.gotoAndStop(2);
					_root.maps.sw4.gotoAndStop(1);
					_root.maps.sw2.gotoAndStop(1);
					_root.maps.sw1.gotoAndStop(1);
					if (_root.sfx) {
						_root.flipswitch.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
	}
	movieClip 3168	{
	}
	movieClip 3170	{
		instance of movieClip 3125	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-7';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 95 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = true;
	}
	movieClip 3171	{
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
	}
	movieClip 3173	{
	}
	instance of movieClip 2359	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.vis = true;
			this._alpha = 100;
			if (!enemiesadded) {
				_root.enemies += 1;
				enemiesadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this._alpha > 0 && this.vis) {
					--this._alpha;
				}
				if (this._alpha <= 0 && this.vis) {
					this.vis = false;
				} else {
					if (this._alpha >= 100 && !this.vis) {
						this.vis = true;
					}
				}
				if (this._alpha < 100 && !this.vis) {
					++this._alpha;
				}
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.ghost.gotoAndStop(1);
					this.ghost.ghost.play();
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.ghost.gotoAndStop(8);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 20, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 20, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 5;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.ghost.gotoAndStop(3);
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 3;
					} else {
						if (_root.sword == 3) {
							this.health -= 4;
						} else {
							if (_root.sword == 4) {
								this.health -= 5;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.ghost.gotoAndStop(2);
			}
			if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3175	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3176	{
		instance of movieClip 3122	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-8';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3125	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door17locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-13';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door17locked && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (!_root.door17locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 3125	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-10';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance fl1 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
					}
					if (this.hitTest(_root['firedup_' + i]) && !this._visible) {
						this._visible = true;
					}
					++i;
				}
				if (this._visible && _root.over.fl2._visible) {
					_root.door17locked = false;
				}
			}
		}
		instance fl2 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
					}
					if (this.hitTest(_root['firedup_' + i]) && !this._visible) {
						this._visible = true;
					}
					++i;
				}
			}
		}
	}
	frame 96 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = true;
	}
	movieClip 3178	{
		instance of movieClip 3116	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door18locked && _root.keys > 0) {
					_root.door18locked = false;
					_root.keys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door18locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-14';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door18locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.door18locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
	}
	instance of movieClip 740	{
		onClipEvent (load) {
			this.health = 12;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 28) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 740	{
		onClipEvent (load) {
			this.health = 12;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 28) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3180	{
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.openchest.start(0, 1);
					_root.newitem = 11;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got a small key! This can be used to open locked doors throughout the dungeon!';
					this.chat = true;
					_root.keys += 1;
					_root.getItems = true;
					_root.havekey11 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.enemies > 0 && !_root.chestappeared12) {
					this.gotoAndStop(4);
				}
				if (_root.enemies <= 0 && !_root.chestappeared12) {
					this.gotoAndStop(3);
					_root.interested = true;
					_root.intx = 539.4500000000001;
					_root.inty = 529.4500000000001;
					if (this.appears._currentframe == 7) {
						_root.chestappeared12 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havekey11 && _root.chestappeared12) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey11 && _root.chestappeared12) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3181	{
		instance of movieClip 3125	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-9';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 97 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = true;
	}
	movieClip 3186	{
		frame 1 {
			stop();
		}
	}
	movieClip 3187	{
		instance of movieClip 3186	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door20locked && _root.bigkeys > 0 && _root.maps.curtain1._currentframe !== 1) {
					_root.door20locked = false;
					_root.bigkeys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door20locked && !_root.boss3dead && _root.maps.curtain1._currentframe !== 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-16';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door20locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.door20locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
		instance curtain1 of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
	}
	instance of movieClip 2359	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.vis = true;
			this._alpha = 100;
			if (!enemiesadded) {
				_root.enemies += 1;
				enemiesadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this._alpha > 0 && this.vis) {
					--this._alpha;
				}
				if (this._alpha <= 0 && this.vis) {
					this.vis = false;
				} else {
					if (this._alpha >= 100 && !this.vis) {
						this.vis = true;
					}
				}
				if (this._alpha < 100 && !this.vis) {
					++this._alpha;
				}
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.ghost.gotoAndStop(1);
					this.ghost.ghost.play();
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.ghost.gotoAndStop(8);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 20, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 20, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 5;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.ghost.gotoAndStop(3);
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 3;
					} else {
						if (_root.sword == 3) {
							this.health -= 4;
						} else {
							if (_root.sword == 4) {
								this.health -= 5;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.ghost.gotoAndStop(2);
			}
			if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 2359	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.vis = true;
			this._alpha = 100;
			if (!enemiesadded) {
				_root.enemies += 1;
				enemiesadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this._alpha > 0 && this.vis) {
					--this._alpha;
				}
				if (this._alpha <= 0 && this.vis) {
					this.vis = false;
				} else {
					if (this._alpha >= 100 && !this.vis) {
						this.vis = true;
					}
				}
				if (this._alpha < 100 && !this.vis) {
					++this._alpha;
				}
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.ghost.gotoAndStop(1);
					this.ghost.ghost.play();
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.ghost.gotoAndStop(8);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 20, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 20, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 5;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.ghost.gotoAndStop(3);
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 3;
					} else {
						if (_root.sword == 3) {
							this.health -= 4;
						} else {
							if (_root.sword == 4) {
								this.health -= 5;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.ghost.gotoAndStop(2);
			}
			if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3188	{
		instance of movieClip 3125	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door19locked && _root.keys > 0) {
					_root.door19locked = false;
					_root.keys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door19locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-15';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door19locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.door19locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 3122	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-13';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 98 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = true;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.box._x = 511.5;
		_root.box._y = 907.3;
		_root.cam._x = _root.box._x;
		_root.cam._y = _root.box._y - 200;
	}
	movieClip 3189	{
	}
	movieClip 3194	{
		frame 1 {
			stop();
		}
	}
	movieClip 3198	{
		frame 1 {
			stop();
		}
	}
	movieClip 3205	{
		frame 1 {
			stop();
		}
	}
	movieClip 3212	{
		frame 1 {
			stop();
		}
	}
	movieClip 3219	{
		frame 1 {
			stop();
		}
	}
	movieClip 3226	{
		frame 1 {
			stop();
		}
	}
	movieClip 3227	{
	}
	movieClip 3228	{
	}
	movieClip 3229	{
	}
	movieClip 3230	{
		frame 25 {
			stop();
		}
	}
	movieClip 3231	{
		frame 1 {
			onEnterFrame = function () {
				golem.head.gotoAndStop(ice);
				golem.arm1.gotoAndStop(ice);
				golem.arm2.gotoAndStop(ice);
				golem.torso.gotoAndStop(ice);
				golem.cloth1.gotoAndStop(ice);
				golem.cloth2.gotoAndStop(ice);
				golem.leg1.gotoAndStop(ice);
				golem.leg2.gotoAndStop(ice);
				golem.foot1.gotoAndStop(ice);
				golem.foot2.gotoAndStop(ice);
			};
		}
		frame 1 {
			stop();
		}
	}
	instance of movieClip 3231	{
		onClipEvent (load) {
			this.health = 18;
			this.ice = 1;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.stuntime = 300;
			this.allowtime = 150;
			this.showed = false;
			this.pinttime = 200;
			this.hurtbounce = 10;
			accuracy = 0.1;
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 15;
				dx = _x - this.pinx;
				dy = _y - this.piny;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.moving = false;
				} else {
					this.moving = true;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !_root.boss3dead) {
				if (!_root.interested && !this.showed) {
					this.showed = true;
					_root.interested = true;
				}
				if (_root.interested) {
					_root.intx = this._x;
					_root.inty = this._y;
				}
				if (!this.pinpointed && this.health > 10 && !_root.interested) {
					this.pinx = _root.box._x;
					this.piny = _root.box._y;
					this.pintime = 130;
					this.pinpointed = true;
				}
				if (!this.pinpointed && this.health <= 10 && !_root.interested) {
					this.pinx = random(772) + 224;
					this.piny = random(713) + 337;
					this.pintime = 60;
					this.pinpointed = true;
				}
				if (!this.moving && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.interested && !this.hurted) {
					drag = accuracy;
					this._x += (this.pinx - _x) * drag;
					this._y += (this.piny - _y) * drag;
					this.pintime -= 1;
					if (this.pintime < 0) {
						this.pinpointed = false;
					}
				}
				if (this.moving && !_root.interested && !this.hurted) {
					if (this._x > this.pinx && this._currentframe !== 3) {
						this.gotoAndStop(3);
					}
					if (this._x < this.pinx && this._currentframe !== 2) {
						this.gotoAndStop(2);
					}
				}
				if (this.box.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 2;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 1;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 0;
					}
				}
				if (this.box.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				i = 0;
				while (i < _root.ar) {
					if (this.box.hitTest(_root['firedup_' + i]) && this.ice < 6 && _root['firedup_' + i]._currentframe !== 5) {
						++this.ice;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
							_root.bossgrowl.start(0, 1);
						}
					}
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurted && this.ice >= 6) {
						this.hurted = true;
						this.health -= 2;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.bossgrowl.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && !this.hurted && this.ice >= 6) {
						this.hurted = true;
						this.health -= 3;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
							_root.bossgrowl.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurted && this.ice >= 6) {
						this.hurted = true;
						this.health -= 5;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
							_root.bossgrowl.start(0, 1);
						}
					}
					if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurted && this.ice >= 6) {
						this.hurted = true;
						this.health -= 3;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
			}
			if (this.alive && !_root.pause) {
				if (this.box.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurted && this.ice >= 6) {
					_root.hits = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
					if (_root.sfx) {
						_root.bossgrowl.start(0, 1);
					}
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.hurtbounce = 10;
					}
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
				}
			}
			if (this.hurted && this._alpha > 0) {
				this._alpha -= 10;
			}
			if (!this.hurted && this._alpha < 100) {
				this._alpha += 10;
			}
			if (this.ice == 6 && this.alive && this.allowtime > 0) {
				--this.allowtime;
			}
			if (this.ice == 6 && this.alive && this.allowtime <= 0) {
				this.ice -= 1;
				this.allowtime = 150;
				if (_root.sfx) {
					_root.icefreeze.start(0, 1);
				}
			}
			if (this.ice !== 1 && this.ice !== 6 && this.alive && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.alive && this.stuntime <= 0 && this.ice !== 1) {
				--this.ice;
				this.stuntime = 300;
				if (_root.sfx) {
					_root.icefreeze.start(0, 1);
				}
			}
			if (this.health <= 0 && this.alive) {
				this.alive = false;
			}
			if (!this.alive && this._currentframe !== 4) {
				this.hurted = false;
				this._alpha = 100;
				this.gotoAndStop(4);
			}
			if (this._currentframe == 4 && this.golem._currentframe == 25 && !this.alive) {
				_root.boss3dead = true;
				_root.chestappeared14 = true;
			}
		}
	}
	movieClip 3233	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.openchest.start(0, 1);
					_root.newitem = 18;
					_root.chatting = true;
					this.chat = true;
					_root.cam.textbox.text = 'You got the third Lantern Fragment! You can feel its power as you hold it in your hands! That was the final fragment, you must now return to Osirus! You have also boosted your max health by one.';
					_root.getItems = true;
					this._visible = false;
					_root.maxhealth += 4;
					_root.health = _root.maxhealth;
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.warping = true;
					_root.havelantern3 = true;
					_root.room = 'easterian';
					_root.oldroom = 'ocean';
					if (_root.quest == 14) {
						_root.quest = 15;
					}
					if (_root.sfx) {
						_root.chatwindorclose.start(0, 1);
					}
				}
				if (!_root.havelantern3 && !_root.chestappeared14 && !_root.chestappearing14) {
					this.gotoAndStop(4);
				}
				if (!_root.havelantern3 && !_root.chestappeared14 && _root.chestappearing14) {
					this.gotoAndStop(3);
					if (this.appears._currentframe == 7) {
						_root.chestappeared14 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havelantern3 && _root.chestappeared14) {
					this.gotoAndStop(2);
				}
				if (!_root.havelantern3 && _root.chestappeared14) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3234	{
	}
	frame 99 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = true;
		_root.box._x = 887.35;
		_root.box._y = 550.15;
		_root.cam._x = _root.box._x - 150;
		_root.cam._y = _root.box._y;
	}
	movieClip 3235	{
	}
	instance of movieClip 785	{
		onClipEvent (load) {
			this.health = 13;
			this.spd = 5;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3237	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat && !_root.havekey12)) {
					_root.newitem = 12;
					_root.chatting = true;
					this.chat = true;
					_root.cam.textbox.text = 'You got the boss room key! You can use this to unlock the final room!';
					_root.getItems = true;
					this._visible = false;
					_root.bigkeys += 1;
					_root.havekey12 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.enemies > 0 && !_root.chestappeared13) {
					this.gotoAndStop(4);
				}
				if (_root.enemies <= 0 && !_root.chestappeared13) {
					this.gotoAndStop(3);
					_root.interested = true;
					_root.intx = 507.8;
					_root.inty = 227.85;
					if (this.appears._currentframe == 7) {
						_root.chestappeared13 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havekey12 && _root.chestappeared13) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey12 && _root.chestappeared13) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3238	{
		instance of movieClip 3125	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-14';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 100 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = true;
	}
	movieClip 3241	{
		frame 1 {
			stop();
		}
	}
	movieClip 3242	{
		instance of movieClip 3241	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 2) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-18';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
				if (!_root.door21locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this._currentframe == 1) {
						_root.door21locked = false;
					}
					if (this.hitTest(_root['bombel' + i]) && this._currentframe == 1) {
						_root.door21locked = false;
					}
					++i;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3244	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3245	{
		instance of movieClip 3125	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-7';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 101 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = true;
		_root.box._x = 511.5;
		_root.box._y = 907.3;
		_root.cam._x = _root.box._x;
		_root.cam._y = _root.box._y - 200;
	}
	movieClip 3246	{
	}
	movieClip 3248	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1734	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 2;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting)) {
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'This sign contains a secret. It is 2-1-4-3. You should probably remember those numbers. It may have some significance in this place.';
					_root.chatting = true;
					this.chat = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
				if (this.chat && _root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
					_root.cam.textbox.text = ' ';
					_root.cam.textbox.play();
					_root.chatting = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3249	{
		instance of movieClip 3122	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-17';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 102 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = true;
	}
	movieClip 3250	{
		instance of movieClip 3116	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.maps.curtain1._currentframe !== 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-12';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance curtain1 of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
	}
	movieClip 3252	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3254	{
		instance of movieClip 3122	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-11';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3125	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-9';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 103 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = true;
	}
	movieClip 3255	{
		instance of movieClip 3116	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-10';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
	}
	instance of movieClip 654	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.throwfire = false;
			this.atktime = random(30) + 40;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 400;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wizard.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wizard.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				--this.atktime;
				this.wizard.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 20 && this._y < _root.box._y + 80) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.hitTest(_root.hero) && !this.throwfire && this.alive && !this.hurt && !this.hurted) {
				this.wizard.gotoAndStop(2);
			}
			if (this.atktime <= 0) {
				this.throwfire = true;
			}
			if (this.throwfire && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.wizard.gotoAndStop(4);
			}
			if (this.throwfire && this.wizard.throws._currentframe == 10) {
				this.atktime = random(30) + 40;
				this.throwfire = false;
			}
			if (this.wizard.throws._currentframe == 6) {
				firess = _root.fireen.duplicateMovieClip('fireen_' + _root.ar, _root.getNextHighestDepth());
				firess.fired = true;
				firess.dir = this.dir;
				++_root.ar;
				firess._x = this._x;
				firess._y = this._y;
				_root.flamesoundpl = true;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				_root.enemies -= 1;
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.wizard.gotoAndStop(3);
			}
			if (this.wizard._currentframe == 3 && this.wizard.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3257	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.newitem = 9;
					_root.chatting = true;
					this.chat = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got the Flame Ring! You can equip this to the D key from the menu screen by pressing A! While equipped you can press D to launch fire in any direction.';
					_root.getItems = true;
					_root.havefirering = true;
					if (_root.sfx) {
						_root.openchest.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.enemies <= 0 && !_root.chestappeared11) {
					this.gotoAndStop(3);
					if (this.appears._currentframe == 7) {
						_root.chestappeared11 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.enemies > 0 && !_root.chestappeared11) {
					this.gotoAndStop(4);
				}
				if (_root.havefirering && _root.chestappeared11) {
					this.gotoAndStop(2);
				}
				if (!_root.havefirering && _root.chestappeared11) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	frame 104 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = true;
		_root.box._x = 511.5;
		_root.box._y = 907.3;
		_root.cam._x = _root.box._x;
		_root.cam._y = _root.box._y - 200;
	}
	movieClip 3258	{
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
	}
	movieClip 3260	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.openchest.start(0, 1);
					_root.newitem = 11;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got a small key! This can be used to open locked doors throughout the dungeon!';
					this.chat = true;
					_root.keys += 1;
					_root.getItems = true;
					_root.havekey10 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.havekey10) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey10) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3261	{
		instance of movieClip 3122	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'dungeon3-10';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 106 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.genericsound = false;
		_root.goblinsound = true;
	}
	movieClip 3266	{
	}
	movieClip 3268	{
	}
	movieClip 3270	{
	}
	movieClip 3272	{
	}
	movieClip 3273	{
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 3270	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'goblin2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 8;
				}
				if (this.hitTest(_root.box) && Key.isDown(65) && !_root.pause && !_root.warping) {
					_root.screen = 4;
					_root.pause = true;
					_root.menusc.gotoAndStop(4);
					_root.menusc._visible = true;
					_root.apush = true;
					_root.menusc.deciding = true;
					if (_root.sfx) {
						_root.openmenu.start(0, 1);
					}
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 680	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x + 55;
				flashes._y = this._y + 40;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 9 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 680	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x + 55;
				flashes._y = this._y + 40;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 9 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3276	{
	}
	movieClip 3277	{
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	instance daynight of movieClip 1786	{
		onClipEvent (enterFrame) {
			if (!_root.days) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
				if (!_root.sundown) {
					this.gotoAndStop(2);
					if (this.sundown._currentframe == 40) {
						_root.sundown = true;
					}
				}
			}
			if (!_root.days && _root.sundown && this._currentframe !== 3) {
				this.gotoAndStop(3);
			}
			if (_root.days && _root.sundown) {
				this._x = _root.cam._x;
				this._y = _root.can._y;
				this.gotoAndStop(4);
				if (this.sunup._currentframe == 40) {
					_root.sundown = false;
				}
			}
			if (_root.days && !_root.sundown && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (_root.rainchance == 1) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
			}
		}
	}
	frame 108 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = true;
	}
	movieClip 3281	{
		frame 1 {
			stop();
		}
	}
	movieClip 3283	{
		frame 1 {
			stop();
		}
	}
	movieClip 3284	{
		instance of movieClip 3281	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'goblin1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3283	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'goblin3';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3286	{
	}
	movieClip 3287	{
	}
	frame 110 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = true;
	}
	movieClip 3288	{
		instance of movieClip 3283	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'goblin2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3283	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'goblin4';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3290	{
	}
	movieClip 3291	{
	}
	frame 112 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = true;
	}
	movieClip 3292	{
		instance of movieClip 3283	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'goblin3';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3270	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'goblin5';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3294	{
	}
	movieClip 3295	{
	}
	frame 114 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = true;
	}
	movieClip 3298	{
		instance of movieClip 3281	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'goblin4';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3283	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'goblin6';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	instance of movieClip 654	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.throwfire = false;
			this.atktime = random(30) + 40;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 400;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wizard.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wizard.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				--this.atktime;
				this.wizard.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 20 && this._y < _root.box._y + 80) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.hitTest(_root.hero) && !this.throwfire && this.alive && !this.hurt && !this.hurted) {
				this.wizard.gotoAndStop(2);
			}
			if (this.atktime <= 0) {
				this.throwfire = true;
			}
			if (this.throwfire && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.wizard.gotoAndStop(4);
			}
			if (this.throwfire && this.wizard.throws._currentframe == 10) {
				this.atktime = random(30) + 40;
				this.throwfire = false;
			}
			if (this.wizard.throws._currentframe == 6) {
				firess = _root.fireen.duplicateMovieClip('fireen_' + _root.ar, _root.getNextHighestDepth());
				firess.fired = true;
				firess.dir = this.dir;
				++_root.ar;
				firess._x = this._x;
				firess._y = this._y;
				_root.flamesoundpl = true;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.wizard.gotoAndStop(3);
			}
			if (this.wizard._currentframe == 3 && this.wizard.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3300	{
	}
	movieClip 3301	{
	}
	frame 116 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = true;
	}
	movieClip 3307	{
		frame 1 {
			stop();
		}
	}
	movieClip 3308	{
		instance of movieClip 3281	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'goblin7';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3283	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'goblin5';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3307	{
			onClipEvent (enterFrame) {
				if (!_root.door23locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this._currentframe == 1) {
						_root.door23locked = false;
					}
					if (this.hitTest(_root['bombel' + i]) && this._currentframe == 1) {
						_root.door23locked = false;
					}
					++i;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'goblin8';
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 654	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.throwfire = false;
			this.atktime = random(30) + 40;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 400;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wizard.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wizard.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				--this.atktime;
				this.wizard.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 20 && this._y < _root.box._y + 80) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.hitTest(_root.hero) && !this.throwfire && this.alive && !this.hurt && !this.hurted) {
				this.wizard.gotoAndStop(2);
			}
			if (this.atktime <= 0) {
				this.throwfire = true;
			}
			if (this.throwfire && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.wizard.gotoAndStop(4);
			}
			if (this.throwfire && this.wizard.throws._currentframe == 10) {
				this.atktime = random(30) + 40;
				this.throwfire = false;
			}
			if (this.wizard.throws._currentframe == 6) {
				firess = _root.fireen.duplicateMovieClip('fireen_' + _root.ar, _root.getNextHighestDepth());
				firess.fired = true;
				firess.dir = this.dir;
				++_root.ar;
				firess._x = this._x;
				firess._y = this._y;
				_root.flamesoundpl = true;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.wizard.gotoAndStop(3);
			}
			if (this.wizard._currentframe == 3 && this.wizard.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3312	{
		frame 1 {
			stop();
		}
	}
	movieClip 3313	{
		instance of movieClip 3312	{
			onClipEvent (enterFrame) {
				if (!_root.door23locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 3315	{
		frame 1 {
			stop();
		}
	}
	movieClip 3316	{
		instance of movieClip 3315	{
			onClipEvent (enterFrame) {
				if (!_root.door23locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	frame 118 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = true;
	}
	movieClip 3318	{
		instance of movieClip 3270	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'goblin6';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	instance of movieClip 740	{
		onClipEvent (load) {
			this.health = 12;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 28) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3320	{
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.openchest.start(0, 1);
					_root.newitem = 19;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got the Guardians shield! Press space bar to open the menu screen! Select it from the equipment screen so you can use it in battle.';
					this.chat = true;
					_root.getItems = true;
					_root.haveshield2 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.enemies > 0 && !_root.goblinchest) {
					this.gotoAndStop(4);
				}
				if (_root.enemies <= 0 && !_root.goblinchest) {
					this.gotoAndStop(3);
					if (this.appears._currentframe == 7) {
						_root.goblinchest = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.haveshield2 && _root.goblinchest) {
					this.gotoAndStop(2);
				}
				if (!_root.haveshield2 && _root.goblinchest) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3321	{
	}
	frame 120 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = true;
	}
	movieClip 3322	{
		instance of movieClip 3283	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'goblin9';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'goblin6';
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3324	{
	}
	movieClip 3325	{
	}
	frame 122 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = true;
	}
	movieClip 3327	{
	}
	movieClip 3328	{
		instance of movieClip 3283	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'goblin8';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3283	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'goblin10';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3307	{
			onClipEvent (enterFrame) {
				if (!_root.door24locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this._currentframe == 1) {
						_root.door24locked = false;
					}
					if (this.hitTest(_root['bombel' + i]) && this._currentframe == 1) {
						_root.door24locked = false;
					}
					++i;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3330	{
		instance of movieClip 3312	{
			onClipEvent (enterFrame) {
				if (!_root.door24locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.openchest.start(0, 1);
					_root.newitem = 10;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got the fathers note! It reads: Dear Courtney, I know I left you so abruptly, but I did it to save the island.I hope you will forgive me someday, but if your reading this then that means I am no longer in this world.I just want you to know I love you and I did all of this for you.You should deliver this to his daughter.';
					this.chat = true;
					_root.getItems = true;
					_root.havenote = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.enemies > 0 && !_root.goblinchest3) {
					this.gotoAndStop(4);
				}
				if (_root.enemies <= 0 && !_root.goblinchest3) {
					this.gotoAndStop(3);
					if (this.appears._currentframe == 7) {
						_root.goblinchest3 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havenote && _root.goblinchest3) {
					this.gotoAndStop(2);
				}
				if (!_root.havenote && _root.goblinchest3) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3331	{
		instance of movieClip 3315	{
			onClipEvent (enterFrame) {
				if (!_root.door24locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	frame 124 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = true;
	}
	movieClip 3332	{
		instance of movieClip 3283	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'goblin9';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3334	{
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.openchest.start(0, 1);
					_root.newitem = 20;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got the goblins sword! Press space bar to open the menu screen! Select it from the equipment screen so you can use it in battle.';
					this.chat = true;
					_root.getItems = true;
					_root.havesword2 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.enemies > 0 && !_root.goblinchest2) {
					this.gotoAndStop(4);
				}
				if (_root.enemies <= 0 && !_root.goblinchest2) {
					this.gotoAndStop(3);
					if (this.appears._currentframe == 7) {
						_root.goblinchest2 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havesword2 && _root.goblinchest2) {
					this.gotoAndStop(2);
				}
				if (!_root.havesword2 && _root.goblinchest2) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3335	{
	}
	frame 126 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = false;
		_root.genericsound = true;
		_root.restartpoint = _root.room;
		_root.oldrestart = _root.oldroom;
	}
	movieClip 3338	{
	}
	movieClip 3339	{
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'monst2';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 8;
				}
				if (this.hitTest(_root.box) && Key.isDown(65) && !_root.pause && !_root.warping) {
					_root.screen = 4;
					_root.pause = true;
					_root.menusc.gotoAndStop(4);
					_root.menusc._visible = true;
					_root.apush = true;
					_root.menusc.deciding = true;
					if (_root.sfx) {
						_root.openmenu.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3341	{
	}
	movieClip 3342	{
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	instance daynight of movieClip 1786	{
		onClipEvent (enterFrame) {
			if (!_root.days) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
				if (!_root.sundown) {
					this.gotoAndStop(2);
					if (this.sundown._currentframe == 40) {
						_root.sundown = true;
					}
				}
			}
			if (!_root.days && _root.sundown && this._currentframe !== 3) {
				this.gotoAndStop(3);
			}
			if (_root.days && _root.sundown) {
				this._x = _root.cam._x;
				this._y = _root.can._y;
				this.gotoAndStop(4);
				if (this.sunup._currentframe == 40) {
					_root.sundown = false;
				}
			}
			if (_root.days && !_root.sundown && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (_root.rainchance == 1) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
			}
		}
	}
	frame 128 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = false;
		_root.genericsound = true;
	}
	movieClip 3344	{
		instance of movieClip 1688	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2253	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2253	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1793	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1807	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'monst';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'monst3';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'monsthouse1';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'monsthouse2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'monsthouse3';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'monsthouse4';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 3346	{
	}
	movieClip 3348	{
	}
	movieClip 3351	{
	}
	movieClip 3352	{
	}
	movieClip 3353	{
	}
	movieClip 3354	{
	}
	movieClip 3355	{
		frame 1 {
			stop();
		}
	}
	movieClip 3357	{
	}
	movieClip 3359	{
	}
	movieClip 3371	{
	}
	movieClip 3373	{
	}
	movieClip 3375	{
	}
	movieClip 3376	{
	}
	movieClip 3377	{
	}
	movieClip 3378	{
		frame 1 {
			stop();
		}
	}
	movieClip 3379	{
	}
	movieClip 3380	{
		frame 1 {
			stop();
		}
	}
	movieClip 3381	{
		frame 1 {
			stop();
		}
	}
	instance of movieClip 3381	{
		onClipEvent (load) {
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.moving = false;
			this.stance = 0;
			this.message = 0;
		}
		onClipEvent (enterFrame) {
			function checkrange() {
				dist_playerl = 200;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkrange();
			if (!this.inrange) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !_root.chatting) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !_root.chatting) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.inrange && !_root.pause && !_root.chatting) {
				if (!this.hitTest(_root.hero)) {
					this.goblin.gotoAndStop(1);
				}
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.hitTest(_root.hero)) {
				_root.aicon = 7;
				this.goblin.gotoAndStop(2);
			}
			if (this.message == 0) {
				if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
					_root.chatting = true;
					this.chat = true;
					this.apush = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
			}
			if (!_root.healthupgrade3 && !_root.boyreleased) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Is that.. A sword? A shield? Oh thank god! Traveler, I know this is from know where but I must request your help. My son has been captured and taken to the goblin camp at the northern most part of the island. I would go myself but I am obviously no match.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.cam.textbox.text = 'But perhaps a young strong boy as yourself could vanquish the ghouls. If you can manage to save him then I am in your debt.';
				}
				if (this.chat && _root.chatting && this.message == 2) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (!_root.healthupgrade3 && _root.boyreleased) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Thank you so much for saving my boy. Let me give you this. I know its not much but its the least I can do!';
				}
				if (this.message == 1 && this.chat && !_root.getItems) {
					_root.cam.textbox.text = 'You got a health container. It increases your max health by one.';
					_root.getItems = true;
					_root.newitem = 14;
					_root.maxhealth += 4;
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.chat && _root.chatting && this.message == 2) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.healthupgrade3 = true;
					_root.getItems = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.healthupgrade3 && _root.boyreleased && !_root.havesword3) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'I just wanted to thank you again for saving my boy! You truly are a hero! I will fallow you to the end of the earth. Or maybe just around the village.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.healthupgrade3 && _root.boyreleased && _root.havemystikerchart) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'I just wanted to thank you again for saving my boy! You truly are a hero! I will fallow you to the end of the earth. Or maybe just around the village.';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (_root.healthupgrade3 && _root.boyreleased && _root.havesword3 && !_root.havemystikerchart) {
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Hello there! I like the new sword, but I was out the other day sailing and I saw another one that looks even better. Perhaps you could go take a look.';
				}
				if (this.message == 1 && this.chat && !_root.getItems) {
					_root.cam.textbox.text = 'You got the Mystiker Island map chart.';
					_root.getItems = true;
					_root.newitem = 10;
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.chat && _root.chatting && this.message == 2) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.havemystikerchart = true;
					_root.getItems = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
			}
			if (Key.isDown(65) && !this.apush && this.chat) {
				++this.message;
				this.apush = true;
			}
			if (!Key.isDown(65) && this.apush && this.chat) {
				this.apush = false;
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.chat = false;
				this.message = 0;
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65) && this.chat) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
			if (this.inrange && !_root.pause && !_root.chatting) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
		}
	}
	movieClip 3383	{
		instance of movieClip 2289	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (!_root.boyreleased && this._visible) {
					this._visible = false;
				}
				if (_root.boyreleased && !this._visible) {
					this._visible = true;
				}
				if (_root.boyreleased) {
					if (this.hitTest(_root.hero)) {
						_root.aicon = 7;
					}
					if (this.message == 0) {
						if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
							_root.chatting = true;
							this.chat = true;
							this.apush = true;
							if (_root.sfx) {
								_root.beginmsg.start(0, 1);
							}
						}
					}
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Thank you so much! Some day I hope to grow up and be big and strong like you.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
	}
	movieClip 3384	{
		instance of movieClip 1760	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2291	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2291	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1820	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	frame 130 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = false;
		_root.genericsound = true;
	}
	movieClip 3386	{
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'monst2';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'monst4';
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3388	{
	}
	movieClip 3389	{
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	frame 132 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = false;
		_root.genericsound = true;
	}
	movieClip 3391	{
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'monst3';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'monst5';
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 654	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.throwfire = false;
			this.atktime = random(30) + 40;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 400;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wizard.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wizard.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				--this.atktime;
				this.wizard.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 20 && this._y < _root.box._y + 80) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.hitTest(_root.hero) && !this.throwfire && this.alive && !this.hurt && !this.hurted) {
				this.wizard.gotoAndStop(2);
			}
			if (this.atktime <= 0) {
				this.throwfire = true;
			}
			if (this.throwfire && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.wizard.gotoAndStop(4);
			}
			if (this.throwfire && this.wizard.throws._currentframe == 10) {
				this.atktime = random(30) + 40;
				this.throwfire = false;
			}
			if (this.wizard.throws._currentframe == 6) {
				firess = _root.fireen.duplicateMovieClip('fireen_' + _root.ar, _root.getNextHighestDepth());
				firess.fired = true;
				firess.dir = this.dir;
				++_root.ar;
				firess._x = this._x;
				firess._y = this._y;
				_root.flamesoundpl = true;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.wizard.gotoAndStop(3);
			}
			if (this.wizard._currentframe == 3 && this.wizard.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3393	{
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
	}
	movieClip 3394	{
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	frame 134 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = false;
		_root.genericsound = true;
	}
	movieClip 3399	{
	}
	movieClip 3403	{
	}
	movieClip 3406	{
	}
	movieClip 3407	{
	}
	movieClip 3408	{
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'monst4';
				}
			}
		}
		instance of movieClip 367	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && !_root.boyreleased && _root.havegoblincampkey) {
					_root.warping = true;
					_root.oldroom = _root.room;
					if (_root.trans._currentframe >= 20) {
						_root.boyreleased = true;
					}
				}
			}
		}
	}
	instance of movieClip 740	{
		onClipEvent (load) {
			this.health = 12;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 28) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
				if (!_root.havegoblincampkey) {
					newkey = _root.keydup.duplicateMovieClip('key', _root.getNextHighestDepth());
					newkey._x = this._x;
					newkey._y = this._y;
					newkey.key = 2;
				}
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 654	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.throwfire = false;
			this.atktime = random(30) + 40;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 400;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wizard.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wizard.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				--this.atktime;
				this.wizard.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 20 && this._y < _root.box._y + 80) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.hitTest(_root.hero) && !this.throwfire && this.alive && !this.hurt && !this.hurted) {
				this.wizard.gotoAndStop(2);
			}
			if (this.atktime <= 0) {
				this.throwfire = true;
			}
			if (this.throwfire && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.wizard.gotoAndStop(4);
			}
			if (this.throwfire && this.wizard.throws._currentframe == 10) {
				this.atktime = random(30) + 40;
				this.throwfire = false;
			}
			if (this.wizard.throws._currentframe == 6) {
				firess = _root.fireen.duplicateMovieClip('fireen_' + _root.ar, _root.getNextHighestDepth());
				firess.fired = true;
				firess.dir = this.dir;
				++_root.ar;
				firess._x = this._x;
				firess._y = this._y;
				_root.flamesoundpl = true;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.wizard.gotoAndStop(3);
			}
			if (this.wizard._currentframe == 3 && this.wizard.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3410	{
	}
	movieClip 3412	{
	}
	movieClip 3414	{
	}
	movieClip 3416	{
	}
	movieClip 3418	{
	}
	movieClip 3419	{
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 3418	{
			onClipEvent (enterFrame) {
				if (!_root.boyreleased && !this._visible) {
					this._visible = true;
				}
				if (_root.boyreleased && this._visible) {
					this._visible = false;
				}
			}
		}
	}
	frame 136 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 3420	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'monst2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press the S key to sleep.\rPress A to exit the dialogue.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					this.sleeping = true;
				}
				if (this.sleeping && _root.trans._currentframe >= 20) {
					_root.health = _root.maxhealth;
					if (_root.days) {
						_root.days = false;
					} else {
						if (!_root.days) {
							_root.days = true;
						}
					}
					this.sleeping = false;
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	instance BG of movieClip 2887	{
		onClipEvent (enterFrame) {
			if (_root.days && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (!_root.days && this._currentframe !== 2) {
				this.gotoAndStop(2);
			}
		}
	}
	frame 138 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 3421	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'monst2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press the S key to sleep.\rPress A to exit the dialogue.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					this.sleeping = true;
				}
				if (this.sleeping && _root.trans._currentframe >= 20) {
					_root.health = _root.maxhealth;
					if (_root.days) {
						_root.days = false;
					} else {
						if (!_root.days) {
							_root.days = true;
						}
					}
					this.sleeping = false;
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	instance of movieClip 2909	{
		onClipEvent (load) {
			this.message = 0;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				_root.aicon = 7;
			}
			if (this.message == 0) {
				if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
					_root.chatting = true;
					this.chat = true;
					this.apush = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
			}
			if (this.message == 0 && this.chat) {
				_root.cam.textbox.text = 'Hello, I have never seen you around here before.';
			}
			if (this.chat && _root.chatting && this.message == 1) {
				_root.chatting = false;
				_root.cam.textbox.text = ' ';
				if (_root.sfx) {
					_root.stopmsg.start(0, 1);
				}
			}
			if (Key.isDown(65) && !this.apush && this.chat) {
				++this.message;
				this.apush = true;
			}
			if (!Key.isDown(65) && this.apush && this.chat) {
				this.apush = false;
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.chat = false;
				this.message = 0;
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65) && this.chat) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	movieClip 3423	{
	}
	instance BG of movieClip 3423	{
		onClipEvent (enterFrame) {
			if (_root.days && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (!_root.days && this._currentframe !== 2) {
				this.gotoAndStop(2);
			}
		}
	}
	frame 140 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 516.9;
		_root.cam._y = 702.1;
		_root.BG._visible = false;
		_root.neveahmusic = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 3424	{
		instance of movieClip 2087	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && !_root.getItems && !_root.carry && !_root.throws && !_root.hurt && !_root.hurted)) {
					this.selections = 3;
					_root.chatting = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
				if (_root.getItems && _root.chatting && _root.newitem == 1) {
					_root.cam.textbox.text = 'You got a small potion! These can be equipped to the D key and used when your health is running low to restore 3 heart containers!';
				}
				if (_root.getItems && _root.chatting && _root.newitem == 2) {
					_root.cam.textbox.text = 'You got a medium sized potion! These can be equipped to the D key and used when your health is running low to restore 5 heart containers!';
				}
				if (_root.chatting && !_root.getItems) {
					_root.maps.select.gotoAndStop(this.selections);
					if (this.selections == 1 && _root.money >= 5 && _root.health < _root.maxhealth) {
						_root.cam.textbox.text = 'Apple: 5 Gold\rThis replenishes half a heart.\rPress A to Buy.';
						if (Key.isDown(65) && !this.apush && _root.money >= 5) {
							_root.money -= 5;
							_root.health += 2;
							this.apush = true;
						}
					}
					if (this.selections == 1 && _root.money < 5) {
						_root.cam.textbox.text = 'Apple: 5 Gold\rNot Enough Money.';
					} else {
						if (this.selections == 1 && _root.health == _root.maxhealth) {
							_root.cam.textbox.text = 'Apple: 5 Gold\rYour health is full.';
						}
					}
					if (this.selections == 2 && _root.money >= 25) {
						_root.cam.textbox.text = 'Small Potion: 25 Gold\rRestores 3 heart full hearts.\rPress A to Buy';
						if (Key.isDown(65) && !this.apush && _root.money >= 25) {
							_root.money -= 25;
							_root.newitem = 1;
							this.counter = 0;
							this.apush = true;
							_root.getItems = true;
						}
					}
					if (this.selections == 2 && _root.money < 25) {
						_root.cam.textbox.text = 'Small Potion: 25 Gold\rNot Enough Money.';
					}
					if (this.selections == 3) {
						_root.cam.textbox.text = 'Welcome to my shop. Please take a look around with the Left or Right arrow keys. Press A to purchase the selected item. Press A to exit.';
					}
					if (this.selections == 4 && _root.money >= 60) {
						_root.cam.textbox.text = 'Medium Potion: 60 Gold\rRestores 5 heart containers!\rPress A to Buy';
						if (Key.isDown(65) && !this.apush) {
							_root.money -= 40;
							_root.newitem = 2;
							this.counter = 0;
							this.apush = true;
							_root.getItems = true;
						}
					}
					if (this.selections == 4 && _root.money < 60) {
						_root.cam.textbox.text = 'Medium Potion: 60 Gold\rNot Enough Money.';
					}
					if (this.selections == 5 && _root.money >= 120) {
						_root.cam.textbox.text = 'Large Potion: 120 Gold\rWhen equipped and used this potion will restore all of your hearts. If your life reaches zero while you have a Large Potion in your inventory you will be revived.\rPress A to Buy';
						if (Key.isDown(65) && !this.apush) {
							_root.money -= 120;
							this.counter = 0;
							_root.newitem = 3;
							this.apush = true;
							_root.getItems = true;
						}
					}
					if (this.selections == 5 && _root.money < 120) {
						_root.cam.textbox.text = 'Large Potion: 120 Gold\rNot Enough Money.';
					}
					if (Key.isDown(39) && !this.keypush) {
						this.keypush = true;
						++this.selections;
					}
					if (Key.isDown(37) && !this.keypush) {
						this.keypush = true;
						--this.selections;
					}
					if (!Key.isDown(65)) {
						this.apush = false;
					}
					if (!Key.isDown(39) && !Key.isDown(37)) {
						this.keypush = false;
					}
					if (this.selections > 5) {
						this.selections = 1;
					}
					if (this.selections < 1) {
						this.selections = 5;
					}
				}
				if (this.counter >= 1.5 && Key.isDown(65) && this.selections == 3 && _root.chatting or _root.getItems && this.counter >= 1.5 && Key.isDown(65) && _root.chatting) {
					_root.cam.textbox.text = ' ';
					_root.chatting = false;
					_root.getItems = false;
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance select of movieClip 2091	{
			onClipEvent (enterFrame) {
				if (_root.chatting && !this._visible) {
					this._visible = true;
				}
				if (!_root.chatting && this._visible) {
					this._visible = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'monst2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 142 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 516.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.boss1 = false;
	}
	movieClip 3425	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'monst2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 145 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = false;
		_root.genericsound = true;
		_root.restartpoint = _root.room;
		_root.oldrestart = _root.oldroom;
	}
	movieClip 3428	{
	}
	movieClip 3429	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 8;
				}
				if (this.hitTest(_root.box) && Key.isDown(65) && !_root.pause && !_root.warping) {
					_root.screen = 4;
					_root.pause = true;
					_root.menusc.gotoAndStop(4);
					_root.menusc._visible = true;
					_root.apush = true;
					_root.menusc.deciding = true;
					if (_root.sfx) {
						_root.openmenu.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'lone2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 3431	{
	}
	movieClip 3432	{
	}
	instance daynight of movieClip 1786	{
		onClipEvent (enterFrame) {
			if (!_root.days) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
				if (!_root.sundown) {
					this.gotoAndStop(2);
					if (this.sundown._currentframe == 40) {
						_root.sundown = true;
					}
				}
			}
			if (!_root.days && _root.sundown && this._currentframe !== 3) {
				this.gotoAndStop(3);
			}
			if (_root.days && _root.sundown) {
				this._x = _root.cam._x;
				this._y = _root.can._y;
				this.gotoAndStop(4);
				if (this.sunup._currentframe == 40) {
					_root.sundown = false;
				}
			}
			if (_root.days && !_root.sundown && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (_root.rainchance == 1) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
			}
		}
	}
	frame 147 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 650;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 3433	{
		frame 1 {
			stop();
		}
		instance of movieClip 2484	{
			onClipEvent (enterFrame) {
				if (_root.girlfree && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2185	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (!_root.healthupgrade4) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'I just had the worst nightmare ever. I was trapped in the worst prison imaginable with demons everywhere, and they wouldnt let me leave. When all hope was lost I was set free by.... You? Its the oddest thing, but I feel that it was real and you somehow saved me.';
					}
					if (this.message == 1 && this.chat) {
						_root.cam.textbox.text = 'Even though we have never met I know you had something to do with saving me. Its the only explanation for you being here and the dream. Thats why I want you to have this.';
					}
					if (this.message == 2 && this.chat && !_root.getItems) {
						_root.cam.textbox.text = 'You got a health container. It increases your max health by one.';
						_root.getItems = true;
						_root.newitem = 14;
						_root.maxhealth += 4;
						if (_root.sfx) {
							_root.getkey.start(0, 1);
						}
					}
					if (this.chat && _root.chatting && this.message == 3 && _root.getItems) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.getItems = false;
						_root.healthupgrade4 = true;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.healthupgrade4) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'I dont know how you did it but I cant thank you enough. You went out of your way to save one stranger who lives on an island all by herself. You truly are a hero.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3434	{
		instance of movieClip 3433	{
			onClipEvent (enterFrame) {
				if (_root.girlfree && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'lone';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0 && !_root.girlfree) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (!_root.girlfree) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'She looks like the others on Reverie. Maybe you can save her with the lantern.\rPress A to exit the dialogue.\rPress S to use the lantern.';
					}
					if (this.message == 0 && this.chat && Key.isDown(83)) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.warping = true;
						_root.oldroom = _root.room;
						_root.room = 'lone3';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
	}
	instance BG of movieClip 2887	{
		onClipEvent (enterFrame) {
			if (_root.days && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (!_root.days && this._currentframe !== 2) {
				this.gotoAndStop(2);
			}
		}
	}
	frame 149 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3439	{
	}
	movieClip 3445	{
	}
	movieClip 3447	{
	}
	movieClip 3448	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	movieClip 3451	{
	}
	movieClip 3454	{
	}
	movieClip 3456	{
		instance of movieClip 3448	{
			onClipEvent (enterFrame) {
				if (_root.maps.hammerswitch._currentframe == 2 && _root.maps.hammerswitch2._currentframe == 2) {
					_root.door25locked = false;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door25locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'lone4';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door25locked && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (!_root.door25locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
		instance hammerswitch of movieClip 3034	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance hammerswitch2 of movieClip 3034	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press A to exit the dialogue.\rPress S to use the lantern and leave the nightmare.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					_root.oldroom = _root.room;
					_root.room = 'lone2';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemeis -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemeis -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3458	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3459	{
	}
	frame 151 {
		stop();
		_root.walking = 2;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3462	{
		frame 1 {
			stop();
		}
	}
	movieClip 3465	{
	}
	movieClip 3467	{
	}
	movieClip 3468	{
		frame 1 {
			stop();
		}
	}
	movieClip 3471	{
		frame 1 {
			stop();
		}
	}
	movieClip 3472	{
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'lone7';
				}
			}
		}
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'lone5';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3471	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door27locked && _root.bigkeys > 0) {
					_root.door27locked = false;
					_root.bigkeys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door27locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'lone9';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door27locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.door27locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
	}
	instance of movieClip 837	{
		onClipEvent (load) {
			this.health = 14;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3474	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3476	{
		instance of movieClip 3462	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'lone3';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 153 {
		stop();
		_root.walking = 2;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3477	{
	}
	instance of movieClip 837	{
		onClipEvent (load) {
			this.health = 14;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 837	{
		onClipEvent (load) {
			this.health = 14;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3479	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3485	{
		frame 9 {
			stop();
		}
	}
	movieClip 3486	{
		frame 1 {
			stop();
		}
	}
	movieClip 3487	{
		instance of movieClip 3462	{
			onClipEvent (enterFrame) {
				if (_root.tops.melted) {
					if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
						_root.oldroom = _root.room;
						_root.warping = true;
						_root.room = 'lone6';
						plays = true;
					}
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3486	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.ice._currentframe == 9) {
					_root.tops.melted = true;
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'lone4';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 155 {
		stop();
		_root.walking = 2;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3489	{
	}
	movieClip 3491	{
		instance of movieClip 3448	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'lone5';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance sw1 of movieClip 3031	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._currentframe == 1) {
						this.gotoAndStop(2);
						_root['arrowdup_' + i].removeMovieClip();
					}
					++i;
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3493	{
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.newitem = 11;
					_root.chatting = true;
					this.chat = true;
					_root.cam.textbox.text = 'You got a small key! You can use this to unlock rooms in this dungeon!';
					_root.getItems = true;
					_root.keys += 1;
					_root.havekey13 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.maps.sw1._currentframe == 2 && !_root.chestappeared15) {
					this.gotoAndStop(3);
					if (this.appears._currentframe == 7) {
						_root.chestappeared15 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.maps.sw1._currentframe !== 2 && !_root.chestappeared15) {
					this.gotoAndStop(4);
				}
				if (_root.havekey13 && _root.chestappeared15) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey13 && _root.chestappeared15) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3494	{
	}
	frame 157 {
		stop();
		_root.walking = 2;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3495	{
		instance of movieClip 3448	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door26locked && _root.keys > 0) {
					_root.door26locked = false;
					_root.keys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door26locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'lone8';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door26locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.door26locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3496	{
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'lone4';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 159 {
		stop();
		_root.walking = 2;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3498	{
	}
	movieClip 3500	{
	}
	movieClip 3503	{
		frame 1 {
			stop();
		}
	}
	movieClip 3504	{
		instance of movieClip 3503	{
			onClipEvent (enterFrame) {
				if (_root.enemies <= 0 && this._currentframe == 1) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3507	{
	}
	movieClip 3509	{
	}
	movieClip 3510	{
	}
	instance of movieClip 3510	{
		onClipEvent (load) {
			this.message = 0;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				_root.aicon = 7;
			}
			if (this.message == 0) {
				if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
					_root.chatting = true;
					this.chat = true;
					this.apush = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
			}
			if (this.message == 0 && this.chat) {
				_root.cam.textbox.text = 'Thank you so much for defeating those monsters and setting me free. I dont know what would have happened if you didnt come. Will you please take me home?\rPress A to exit the dialogue.\rPress S to use the lantern and free her from the nightmare.';
			}
			if (this.message == 0 && this.chat && Key.isDown(83)) {
				_root.chatting = false;
				_root.cam.textbox.text = ' ';
				_root.warping = true;
				_root.girlfree = true;
				_root.oldroom = 'lone3';
				_root.room = 'lone2';
			}
			if (this.chat && _root.chatting && this.message == 1) {
				_root.chatting = false;
				_root.cam.textbox.text = ' ';
				if (_root.sfx) {
					_root.stopmsg.start(0, 1);
				}
			}
			if (Key.isDown(65) && !this.apush && this.chat) {
				++this.message;
				this.apush = true;
			}
			if (!Key.isDown(65) && this.apush && this.chat) {
				this.apush = false;
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.chat = false;
				this.message = 0;
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65) && this.chat) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 837	{
		onClipEvent (load) {
			this.health = 14;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 837	{
		onClipEvent (load) {
			this.health = 14;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 837	{
		onClipEvent (load) {
			this.health = 14;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3512	{
		frame 1 {
			stop();
		}
	}
	movieClip 3513	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 3512	{
			onClipEvent (enterFrame) {
				if (_root.enemies <= 0 && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 3515	{
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'lone9';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 161 {
		stop();
		_root.walking = 2;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3516	{
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 837	{
		onClipEvent (load) {
			this.health = 14;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3518	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3519	{
		instance of movieClip 3462	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'lone4';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'lone10';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 163 {
		stop();
		_root.walking = 2;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3520	{
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3522	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.newitem = 12;
					_root.chatting = true;
					this.chat = true;
					_root.cam.textbox.text = 'You got the big key! You can use this to unlock the final room!';
					_root.getItems = true;
					_root.bigkeys += 1;
					_root.havekey14 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.maps.fl1._visible && _root.maps.fl2._visible && _root.maps.fl3._visible && _root.maps.fl4._visible && !_root.chestappeared16) {
					this.gotoAndStop(3);
					if (this.appears._currentframe == 7) {
						_root.chestappeared16 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (!_root.maps.fl1._visible && !_root.maps.fl2._visible && !_root.maps.fl3._visible && !_root.maps.fl4._visible && !_root.chestappeared16) {
					this.gotoAndStop(4);
				}
				if (_root.havekey14 && _root.chestappeared16) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey14 && _root.chestappeared16) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3524	{
	}
	movieClip 3525	{
		instance of movieClip 3462	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'lone7';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance fl1 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
					}
					if (this.hitTest(_root['firedup_' + i]) && !this._visible) {
						this._visible = true;
					}
					++i;
				}
			}
		}
		instance fl2 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
					}
					if (this.hitTest(_root['firedup_' + i]) && !this._visible) {
						this._visible = true;
					}
					++i;
				}
			}
		}
		instance fl3 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
					}
					if (this.hitTest(_root['firedup_' + i]) && !this._visible) {
						this._visible = true;
					}
					++i;
				}
			}
		}
		instance fl4 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
					}
					if (this.hitTest(_root['firedup_' + i]) && !this._visible) {
						this._visible = true;
					}
					++i;
				}
			}
		}
	}
	frame 165 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = false;
		_root.genericsound = true;
		_root.restartpoint = _root.room;
		_root.oldrestart = _root.oldroom;
	}
	movieClip 3526	{
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2253	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 8;
				}
				if (this.hitTest(_root.box) && Key.isDown(65) && !_root.pause && !_root.warping) {
					_root.screen = 4;
					_root.pause = true;
					_root.menusc.gotoAndStop(4);
					_root.menusc._visible = true;
					_root.apush = true;
					_root.menusc.deciding = true;
					if (_root.sfx) {
						_root.openmenu.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'blacksmithisle2';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'blacksmithisle3';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 3528	{
	}
	movieClip 3529	{
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2291	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	instance daynight of movieClip 1786	{
		onClipEvent (enterFrame) {
			if (!_root.days) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
				if (!_root.sundown) {
					this.gotoAndStop(2);
					if (this.sundown._currentframe == 40) {
						_root.sundown = true;
					}
				}
			}
			if (!_root.days && _root.sundown && this._currentframe !== 3) {
				this.gotoAndStop(3);
			}
			if (_root.days && _root.sundown) {
				this._x = _root.cam._x;
				this._y = _root.can._y;
				this.gotoAndStop(4);
				if (this.sunup._currentframe == 40) {
					_root.sundown = false;
				}
			}
			if (_root.days && !_root.sundown && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (_root.rainchance == 1) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
			}
		}
	}
	frame 167 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = false;
		_root.genericsound = true;
	}
	movieClip 3533	{
	}
	movieClip 3535	{
	}
	movieClip 3536	{
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1701	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'blacksmithisle';
				}
			}
		}
	}
	movieClip 3538	{
	}
	movieClip 3540	{
	}
	movieClip 3541	{
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1764	{
			onClipEvent (enterFrame) {
				if (_root.days && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.days && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	frame 169 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 650;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = true;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
	}
	movieClip 3544	{
		frame 1 {
			stop();
		}
		instance of movieClip 2484	{
			onClipEvent (enterFrame) {
				if (_root.girlfree && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 2497	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (!_root.c5opened) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'I just had the best dream ever. I was trapped in this place with demons everywhere. I defeated them easily. I decided not to leave until I had a test worthy of my skill. Thats when.... You came? Its the oddest thing, but I feel that it was real and you somehow saved me.';
					}
					if (this.message == 1 && this.chat) {
						_root.cam.textbox.text = 'Even though we have never met I know you had something to do with saving me. Its the only explanation for you being here, the dream and your armor. I can tell by the look in your eyes. Thats why I want you to have this.';
					}
					if (this.message == 2 && this.chat && !_root.getItems) {
						_root.cam.textbox.text = 'You got a Large Potion! These can be equipped to the D key and used to replenish all of your health! Or keep them in you inventory so when your health reaches zero you are instantly revived.';
						_root.getItems = true;
						_root.newitem = 3;
						if (_root.sfx) {
							_root.getkey.start(0, 1);
						}
					}
					if (this.chat && _root.chatting && this.message == 3 && _root.getItems) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.getItems = false;
						_root.c5opened = true;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.c5opened) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'I dont know how you did it but I cant thank you enough. You went out of your way to an old man know he is worth something. Your a true hero.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3547	{
		instance of movieClip 3544	{
			onClipEvent (enterFrame) {
				if (_root.blacksmithfree && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'blacksmithisle';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.doorclose.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0 && !_root.blacksmithfree) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (!_root.blacksmithfree) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'He looks like the others on Reverie. Maybe you can save him with the lantern.\rPress A to exit the dialogue.\rPress S to use the lantern.';
					}
					if (this.message == 0 && this.chat && Key.isDown(83)) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.warping = true;
						_root.oldroom = _root.room;
						_root.room = 'blacksmithisle4';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
					if (Key.isDown(65) && !this.apush && this.chat) {
						++this.message;
						this.apush = true;
					}
					if (!Key.isDown(65) && this.apush && this.chat) {
						this.apush = false;
					}
					if (!_root.chatting && !Key.isDown(65)) {
						this.chat = false;
						this.message = 0;
						this.counter = 0;
					}
					if (_root.chatting && !Key.isDown(65) && this.chat) {
						this.counter += 0.1;
					}
					if (this.counter > 1.5) {
						this.counter = 1.5;
					}
				}
			}
		}
	}
	instance BG of movieClip 2887	{
		onClipEvent (enterFrame) {
			if (_root.days && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (!_root.days && this._currentframe !== 2) {
				this.gotoAndStop(2);
			}
		}
	}
	frame 171 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3550	{
		instance of movieClip 3448	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'blacksmithisle5';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press A to exit the dialogue.\rPress S to use the lantern and leave the nightmare.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					_root.oldroom = _root.room;
					_root.room = 'blacksmithisle3';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3552	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3553	{
	}
	frame 173 {
		stop();
		_root.walking = 2;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3555	{
	}
	movieClip 3557	{
		instance of movieClip 2497	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (!_root.haveset3 && !_root.havesword2 && !_root.haveshield2 && !_root.havehelmet3) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'The last thing I remember was that I was in my bed and then I awoke here. There were alot of monsters everywhere, but instead of being a baby I did something about it. I broke myself out of that cage and beat those demons good.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = 'Now that I have defeated the demons I refuse to leave. That is until something worthy of my skill is revealed. Perhaps you could explore this world and find the most powerful weapons, shields and armor around.';
					}
					if (this.chat && _root.chatting && this.message == 2) {
						_root.cam.textbox.text = 'Only then will I be able to test my skill and make the items more powerful. After that I will leave this nightmare.';
					}
					if (this.chat && _root.chatting && this.message == 3) {
						_root.cam.textbox.text = ' ';
						_root.chatting = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (_root.haveset3 && !_root.haveset4) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'The last thing I remember was that I was in my bed and then I awoke here. There were alot of monsters everywhere, but instead of being a baby I did something about it. I broke myself out of that cage and beat those demons good.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = 'Now that I have defeated the demons I refuse to leave. That is until something worthy of my skill is revealed. Perhaps you... Whats this you have the latest set of armor. I will forge a better set for you at once!';
					}
					if (this.chat && _root.chatting && this.message == 2 && !_root.getItems) {
						_root.cam.textbox.text = 'You got Nightmare Armor! This is armor that many could only dream of. Its resistance to physical and ranged attacks are unmatched. It gleams in the light and is by far the most powerful set of armor on the market!';
						_root.newitem = 21;
						_root.getItems = true;
						if (_root.sfx) {
							_root.getkey.start(0, 1);
						}
					}
					if (this.chat && _root.chatting && this.message == 3) {
						_root.cam.textbox.text = ' ';
						_root.newitem = 0;
						_root.getItems = false;
						_root.haveset4 = true;
						_root.chatting = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				} else {
					if (_root.havehelmet3 && !_root.havehelmet4) {
						if (this.message == 0 && this.chat) {
							_root.cam.textbox.text = 'The last thing I remember was that I was in my bed and then I awoke here. There were alot of monsters everywhere, but instead of being a baby I did something about it. I broke myself out of that cage and beat those demons good.';
						}
						if (this.chat && _root.chatting && this.message == 1) {
							_root.cam.textbox.text = 'Now that I have defeated the demons I refuse to leave. That is until something worthy of my skill is revealed. Perhaps you... Whats this you have the latest helmet. I will forge a better set for you at once!';
						}
						if (this.chat && _root.chatting && this.message == 2 && !_root.getItems) {
							_root.cam.textbox.text = 'You got a Nightmare Helmet! This helmet is something many could only dream of. Its resistance to physical and ranged attacks are unmatched. It gleams in the light and is by far the most powerful helmet on the market!';
							_root.newitem = 22;
							_root.getItems = true;
							if (_root.sfx) {
								_root.getkey.start(0, 1);
							}
						}
						if (this.chat && _root.chatting && this.message == 3) {
							_root.cam.textbox.text = ' ';
							_root.newitem = 0;
							_root.getItems = false;
							_root.havehelmet4 = true;
							_root.chatting = false;
							if (_root.sfx) {
								_root.stopmsg.start(0, 1);
							}
						}
					} else {
						if (_root.haveshield2 && !_root.haveshield3) {
							if (this.message == 0 && this.chat) {
								_root.cam.textbox.text = 'The last thing I remember was that I was in my bed and then I awoke here. There were alot of monsters everywhere, but instead of being a baby I did something about it. I broke myself out of that cage and beat those demons good.';
							}
							if (this.chat && _root.chatting && this.message == 1) {
								_root.cam.textbox.text = 'Now that I have defeated the demons I refuse to leave. That is until something worthy of my skill is revealed. Perhaps you... Whats this you have the latest shield. I will forge a better one for you at once!';
							}
							if (this.chat && _root.chatting && this.message == 2 && !_root.getItems) {
								_root.cam.textbox.text = 'You got a Nightmare Shield! This shield is something many could only dream of. It defends all physical and ranged attacks. It even deflects ranged attacks. It gleams in the light and is by far the most powerful shield on the market!';
								_root.newitem = 23;
								_root.getItems = true;
								if (_root.sfx) {
									_root.getkey.start(0, 1);
								}
							}
							if (this.chat && _root.chatting && this.message == 3) {
								_root.cam.textbox.text = ' ';
								_root.newitem = 0;
								_root.getItems = false;
								_root.haveshield3 = true;
								_root.chatting = false;
								if (_root.sfx) {
									_root.stopmsg.start(0, 1);
								}
							}
						} else {
							if (_root.havesword2 && !_root.havesword3) {
								if (this.message == 0 && this.chat) {
									_root.cam.textbox.text = 'The last thing I remember was that I was in my bed and then I awoke here. There were alot of monsters everywhere, but instead of being a baby I did something about it. I broke myself out of that cage and beat those demons good.';
								}
								if (this.chat && _root.chatting && this.message == 1) {
									_root.cam.textbox.text = 'Now that I have defeated the demons I refuse to leave. That is until something worthy of my skill is revealed. Perhaps you... Whats this you have the latest sword. I will forge a better one for you at once!';
								}
								if (this.chat && _root.chatting && this.message == 2 && !_root.getItems) {
									_root.cam.textbox.text = 'You got a Nightmare Sword! This sword is something many could only dream of. It is very powerful and can slay the most powerful of foes!';
									_root.newitem = 24;
									_root.getItems = true;
									if (_root.sfx) {
										_root.getkey.start(0, 1);
									}
								}
								if (this.chat && _root.chatting && this.message == 3) {
									_root.cam.textbox.text = ' ';
									_root.newitem = 0;
									_root.getItems = false;
									_root.havesword3 = true;
									_root.chatting = false;
									if (_root.sfx) {
										_root.stopmsg.start(0, 1);
									}
								}
							}
						}
					}
				}
				if (_root.haveset4 && _root.havesword3 && _root.haveshield3 && _root.havehelmet4) {
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'It appears I have forged your weapons to the best of my ability. It was a true test of my skill but I managed to pull through. I am ready to leave when you are.\rPress A to exit dialogue.\rPress S to use the Lantern to free the blacksmith.';
					}
					if (this.message == 0 && this.chat && Key.isDown(83)) {
						_root.chatting = false;
						_root.cam.textbox.text = ' ';
						_root.warping = true;
						_root.blacksmithfree = true;
						_root.oldroom = 'blacksmithisle';
						_root.room = 'blacksmithisle3';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = ' ';
						_root.chatting = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				} else {
					if (!_root.haveset4 or !_root.havesword3 or !_root.haveshield3 or !_root.havehelmet4) {
						if (this.message == 0 && this.chat) {
							_root.cam.textbox.text = 'The last thing I remember was that I was in my bed and then I awoke here. There were alot of monsters everywhere, but instead of being a baby I did something about it. I broke myself out of that cage and beat those demons good.';
						}
						if (this.chat && _root.chatting && this.message == 1) {
							_root.cam.textbox.text = 'Now that I have defeated the demons I refuse to leave. That is until something worthy of my skill is revealed. Perhaps you could explore this world and find the most powerful weapons, shields and armor around.';
						}
						if (this.chat && _root.chatting && this.message == 2) {
							_root.cam.textbox.text = 'Only then will I be able to test my skill and make the items more powerful. After that I will leave this nightmare.';
						}
						if (this.chat && _root.chatting && this.message == 3) {
							_root.cam.textbox.text = ' ';
							_root.chatting = false;
							if (_root.sfx) {
								_root.stopmsg.start(0, 1);
							}
						}
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3558	{
		instance of movieClip 3462	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'blacksmithisle4';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 175 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.goblinsound = false;
		_root.genericsound = true;
		_root.restartpoint = _root.room;
		_root.oldrestart = _root.oldroom;
	}
	movieClip 3562	{
		frame 1 {
			stop();
		}
	}
	movieClip 3563	{
		instance of movieClip 3097	{
			onClipEvent (enterFrame) {
				if (!_root.abandonedunlocked2 && _root.maps.fl1._visible && _root.maps.fl2._visible) {
					_root.abandonedunlocked2 = true;
				}
				if (this._currentframe == 1 && _root.abandonedunlocked2) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 3562	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && !_root.abandonedunlocked) {
						_root.abandonedunlocked = true;
						this.gotoAndStop(2);
						_root['arrowdup_' + i].removeMovieClip();
					}
					++i;
				}
			}
		}
		instance of movieClip 3097	{
			onClipEvent (enterFrame) {
				if (this._currentframe == 1 && _root.abandonedunlocked) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 8;
				}
				if (this.hitTest(_root.box) && Key.isDown(65) && !_root.pause && !_root.warping) {
					_root.screen = 4;
					_root.pause = true;
					_root.menusc.gotoAndStop(4);
					_root.menusc._visible = true;
					_root.apush = true;
					_root.menusc.deciding = true;
					if (_root.sfx) {
						_root.openmenu.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.haveset3) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'abandoned2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 3565	{
		instance of movieClip 3512	{
			onClipEvent (enterFrame) {
				if (_root.abandonedunlocked2 && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 3512	{
			onClipEvent (enterFrame) {
				if (_root.abandonedunlocked && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 3567	{
	}
	movieClip 3569	{
		instance fl1 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
					}
					if (this.hitTest(_root['firedup_' + i]) && !this._visible) {
						this._visible = true;
					}
					++i;
				}
			}
		}
		instance fl2 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
					}
					if (this.hitTest(_root['firedup_' + i]) && !this._visible) {
						this._visible = true;
					}
					++i;
				}
			}
		}
		instance of movieClip 1294	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					++i;
				}
			}
		}
		instance of movieClip 1294	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					++i;
				}
			}
		}
	}
	instance daynight of movieClip 1786	{
		onClipEvent (enterFrame) {
			if (!_root.days) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
				if (!_root.sundown) {
					this.gotoAndStop(2);
					if (this.sundown._currentframe == 40) {
						_root.sundown = true;
					}
				}
			}
			if (!_root.days && _root.sundown && this._currentframe !== 3) {
				this.gotoAndStop(3);
			}
			if (_root.days && _root.sundown) {
				this._x = _root.cam._x;
				this._y = _root.can._y;
				this.gotoAndStop(4);
				if (this.sunup._currentframe == 40) {
					_root.sundown = false;
				}
			}
			if (_root.days && !_root.sundown && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (_root.rainchance == 1) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
			}
		}
	}
	frame 177 {
		_root.walking = 2;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss3 = true;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.box._x = 511.5;
		_root.box._y = 907.3;
		_root.cam._x = _root.box._x;
		_root.cam._y = _root.box._y - 200;
	}
	movieClip 3570	{
	}
	movieClip 3572	{
	}
	movieClip 3573	{
	}
	movieClip 3575	{
	}
	movieClip 3577	{
	}
	movieClip 3579	{
	}
	movieClip 3582	{
	}
	movieClip 3583	{
	}
	movieClip 3585	{
	}
	movieClip 3586	{
	}
	movieClip 3587	{
	}
	movieClip 3588	{
		frame 8 {
			stop();
		}
	}
	movieClip 3589	{
		instance sword of movieClip 123	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 4;
					}
					if (_root.armor == 2) {
						_root.health -= 3;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 4;
					}
					if (_root.helmet == 2) {
						_root.health -= 3;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		frame 6 {
			stop();
		}
	}
	movieClip 3590	{
	}
	movieClip 3591	{
	}
	movieClip 3592	{
		frame 1 {
			stop();
		}
	}
	movieClip 3593	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
	}
	movieClip 3595	{
	}
	movieClip 3597	{
	}
	movieClip 3604	{
	}
	movieClip 3606	{
	}
	movieClip 3607	{
	}
	movieClip 3608	{
	}
	movieClip 3609	{
	}
	movieClip 3611	{
	}
	movieClip 3612	{
		frame 8 {
			stop();
		}
	}
	movieClip 3613	{
		instance of movieClip 123	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 4;
					}
					if (_root.armor == 2) {
						_root.health -= 3;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 4;
					}
					if (_root.helmet == 2) {
						_root.health -= 3;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance sword of movieClip 123	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 4;
					}
					if (_root.armor == 2) {
						_root.health -= 3;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 4;
					}
					if (_root.helmet == 2) {
						_root.health -= 3;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		frame 6 {
			stop();
		}
	}
	movieClip 3614	{
	}
	movieClip 3615	{
	}
	movieClip 3616	{
		frame 1 {
			stop();
		}
	}
	movieClip 3617	{
		frame 1 {
			stop();
		}
	}
	movieClip 3619	{
	}
	movieClip 3621	{
	}
	movieClip 3632	{
	}
	movieClip 3634	{
	}
	movieClip 3635	{
	}
	movieClip 3636	{
	}
	movieClip 3638	{
	}
	movieClip 3639	{
		frame 8 {
			stop();
		}
	}
	movieClip 3640	{
		instance sword of movieClip 123	{
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && this.hitTest(_root.hero) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 4;
					}
					if (_root.armor == 2) {
						_root.health -= 3;
					}
					if (_root.armor == 3) {
						_root.health -= 2;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 4;
					}
					if (_root.helmet == 2) {
						_root.health -= 3;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		frame 6 {
			stop();
		}
	}
	movieClip 3641	{
	}
	movieClip 3642	{
	}
	movieClip 3643	{
		frame 1 {
			stop();
		}
	}
	movieClip 3644	{
		frame 1 {
			stop();
		}
		frame 5 {
			stop();
		}
	}
	movieClip 3645	{
		frame 10 {
			stop();
		}
	}
	movieClip 3646	{
		frame 1 {
			stop();
		}
		instance of movieClip 3645	{
			onClipEvent (enterFrame) {
				if (!itemdropped && this._currentframe == 10) {
					dropped = _root.dropitem.duplicateMovieClip('newdrop' + _root.ar, _root.getNextHighestDepth());
					++_root.ar;
					dropped._x = _parent._x;
					dropped._y = _parent._y;
					dropped.placed = true;
					itemdropped = true;
					loadMovie('', _parent);
				}
			}
		}
	}
	movieClip 3647	{
		frame 1 {
			stop();
		}
		instance of movieClip 680	{
			onClipEvent (load) {
				this.health = 4;
				this.spd = 3;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 7;
				this.stunned = false;
				this.stuntime = 200;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(2);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.gotoAndStop(1);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 45, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(4);
					_root.enemies -= 1;
					this.alive = false;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 2;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
					this.gotoAndStop(5);
				}
				if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
					this.hurted = true;
					this.stunned = true;
					this.moving = false;
					if (_root.sfx) {
						_root.stunned.start(0, 1);
					}
				}
				if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
					--this.stuntime;
				}
				if (this.stunned && this.stuntime <= 0) {
					this.stunned = false;
					this.stuntime = 200;
					this.gotoAndStop(1);
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x + 55;
					flashes._y = this._y + 40;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hurt && this.alive) {
					this.gotoAndStop(3);
				}
				if (this.pain._currentframe == 9 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.hurtbounce = 7;
					}
				}
				if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 2;
					}
					if (_root.armor == 2) {
						_root.health -= 1;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 680	{
			onClipEvent (load) {
				this.health = 4;
				this.spd = 3;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 7;
				this.stunned = false;
				this.stuntime = 200;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(2);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.gotoAndStop(1);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 45, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(4);
					_root.enemies -= 1;
					this.alive = false;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 2;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
					this.gotoAndStop(5);
				}
				if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
					this.hurted = true;
					this.stunned = true;
					this.moving = false;
					if (_root.sfx) {
						_root.stunned.start(0, 1);
					}
				}
				if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
					--this.stuntime;
				}
				if (this.stunned && this.stuntime <= 0) {
					this.stunned = false;
					this.stuntime = 200;
					this.gotoAndStop(1);
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x + 55;
					flashes._y = this._y + 40;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hurt && this.alive) {
					this.gotoAndStop(3);
				}
				if (this.pain._currentframe == 9 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.hurtbounce = 7;
					}
				}
				if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 2;
					}
					if (_root.armor == 2) {
						_root.health -= 1;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 680	{
			onClipEvent (load) {
				this.health = 4;
				this.spd = 3;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 7;
				this.stunned = false;
				this.stuntime = 200;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.gotoAndStop(2);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.gotoAndStop(1);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 45, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(4);
					_root.enemies -= 1;
					this.alive = false;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 2;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
					this.gotoAndStop(5);
				}
				if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
					this.hurted = true;
					this.stunned = true;
					this.moving = false;
					if (_root.sfx) {
						_root.stunned.start(0, 1);
					}
				}
				if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
					--this.stuntime;
				}
				if (this.stunned && this.stuntime <= 0) {
					this.stunned = false;
					this.stuntime = 200;
					this.gotoAndStop(1);
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x + 55;
					flashes._y = this._y + 40;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hurt && this.alive) {
					this.gotoAndStop(3);
				}
				if (this.pain._currentframe == 9 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.hurtbounce = 7;
					}
				}
				if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 2;
					}
					if (_root.armor == 2) {
						_root.health -= 1;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 556	{
			onClipEvent (load) {
				this.health = 3;
				this.spd = 4;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 10;
				this.attacking = false;
				this.stunned = false;
				this.stuntime = 200;
				this.swordslash = false;
				this.defence = random(20) + 1;
				this.stance = 0;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 200;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				function checkrange() {
					dist_playerl = 115;
					dxl = _x - _root.hero._x;
					dyl = _y - _root.hero._y;
					this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
					if (this.distl < dist_playerl) {
						this.inrange = true;
					} else {
						this.inrange = false;
					}
				}
				checkproximity();
				checkrange();
				if (!this.attacking && !this.swordslash && !this.stunned) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(1);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.goblin.gotoAndStop(2);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 60, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 20, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 60, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
					if (!this.hitTest(_root.hero)) {
						if (this._x > _root.box._x) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							}
						}
						if (this._x < _root.box._x) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							}
						}
						if (this._y > _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							}
						}
						if (this._y < _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
					this.gotoAndStop(this.dir);
					if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
						this.inline = true;
					} else {
						this.inline = false;
					}
					if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
						this.inline2 = true;
						this.inline = false;
					} else {
						this.inline2 = false;
					}
					if (this._y > _root.box._y && this.inline && !this.inline2) {
						this.dir = 1;
					} else {
						if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
							this.dir = 2;
						}
					}
					if (this._y < _root.box._y && this.inline && !this.inline2) {
						this.dir = 3;
					} else {
						if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
							this.dir = 4;
						}
					}
				}
				if (!this.stunned) {
					if (this.inrange && this.stance == 0) {
						this.stance = random(2) + 1;
					}
					if (this.stance == 1 && !this.swordslash) {
						this.swordslash = true;
						this.defending = false;
					}
					if (this.stance == 2 && !this.defending) {
						this.defending = true;
						this.swordslash = false;
					}
					if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
						this.goblin.gotoAndStop(4);
					}
					if (this.swordslash && this.goblin.attack._currentframe == 15) {
						this.swordslash = false;
						this.stance = 0;
					}
					if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
						this.goblin.gotoAndStop(5);
						--this.defence;
					}
					if (this.defending && this.defence <= 0) {
						this.defence = random(20) + 1;
						this.stance = 0;
						this.defending = false;
					}
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(5);
					this.alive = false;
					_root.enemies -= 1;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 3;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
						this.block = true;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 2;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
						this.block = true;
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 6;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 8;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
					this.gotoAndStop(6);
				}
				if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
					this.hurted = true;
					this.stunned = true;
					this.moving = false;
					if (_root.sfx) {
						_root.stunned.start(0, 1);
					}
				}
				if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
					--this.stuntime;
				}
				if (this.stunned && this.stuntime <= 0) {
					this.stunned = false;
					this.stuntime = 200;
					this.gotoAndStop(this.dir);
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hurt && this.alive) {
					this.gotoAndStop(this.dir);
					this.goblin.gotoAndStop(3);
				}
				if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.block = false;
						this.hurtbounce = 10;
					}
				}
			}
		}
		instance of movieClip 556	{
			onClipEvent (load) {
				this.health = 3;
				this.spd = 4;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 10;
				this.attacking = false;
				this.stunned = false;
				this.stuntime = 200;
				this.swordslash = false;
				this.defence = random(20) + 1;
				this.stance = 0;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 200;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				function checkrange() {
					dist_playerl = 115;
					dxl = _x - _root.hero._x;
					dyl = _y - _root.hero._y;
					this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
					if (this.distl < dist_playerl) {
						this.inrange = true;
					} else {
						this.inrange = false;
					}
				}
				checkproximity();
				checkrange();
				if (!this.attacking && !this.swordslash && !this.stunned) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(1);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.goblin.gotoAndStop(2);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 60, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 20, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 60, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
					if (!this.hitTest(_root.hero)) {
						if (this._x > _root.box._x) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							}
						}
						if (this._x < _root.box._x) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							}
						}
						if (this._y > _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							}
						}
						if (this._y < _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
					this.gotoAndStop(this.dir);
					if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
						this.inline = true;
					} else {
						this.inline = false;
					}
					if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
						this.inline2 = true;
						this.inline = false;
					} else {
						this.inline2 = false;
					}
					if (this._y > _root.box._y && this.inline && !this.inline2) {
						this.dir = 1;
					} else {
						if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
							this.dir = 2;
						}
					}
					if (this._y < _root.box._y && this.inline && !this.inline2) {
						this.dir = 3;
					} else {
						if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
							this.dir = 4;
						}
					}
				}
				if (!this.stunned) {
					if (this.inrange && this.stance == 0) {
						this.stance = random(2) + 1;
					}
					if (this.stance == 1 && !this.swordslash) {
						this.swordslash = true;
						this.defending = false;
					}
					if (this.stance == 2 && !this.defending) {
						this.defending = true;
						this.swordslash = false;
					}
					if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
						this.goblin.gotoAndStop(4);
					}
					if (this.swordslash && this.goblin.attack._currentframe == 15) {
						this.swordslash = false;
						this.stance = 0;
					}
					if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
						this.goblin.gotoAndStop(5);
						--this.defence;
					}
					if (this.defending && this.defence <= 0) {
						this.defence = random(20) + 1;
						this.stance = 0;
						this.defending = false;
					}
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(5);
					this.alive = false;
					_root.enemies -= 1;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 3;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
						this.block = true;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 2;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
						this.block = true;
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 6;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 8;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
					this.gotoAndStop(6);
				}
				if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
					this.hurted = true;
					this.stunned = true;
					this.moving = false;
					if (_root.sfx) {
						_root.stunned.start(0, 1);
					}
				}
				if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
					--this.stuntime;
				}
				if (this.stunned && this.stuntime <= 0) {
					this.stunned = false;
					this.stuntime = 200;
					this.gotoAndStop(this.dir);
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hurt && this.alive) {
					this.gotoAndStop(this.dir);
					this.goblin.gotoAndStop(3);
				}
				if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.block = false;
						this.hurtbounce = 10;
					}
				}
			}
		}
		instance of movieClip 428	{
			onClipEvent (load) {
				this.health = 4;
				this.spd = 1;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 15;
				this.stunned = false;
				this.stuntime = 200;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 250;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				checkproximity();
				if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.play();
						this.gotoAndStop(2);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.slowmove.stop();
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 45, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (!this.attacking && this.spd !== 1) {
					this.timer = 0;
					this.waited = true;
					this.waittime = 0;
					this.moving = false;
					this.spd = 1;
				}
				if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
					this.gotoAndStop(1);
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
					if (this.spd == 1) {
						this.spd = 2;
					}
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(4);
					_root.enemies -= 1;
					this.alive = false;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
					this.gotoAndStop(5);
				}
				if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
					this.hurted = true;
					this.stunned = true;
					this.moving = false;
					if (_root.sfx) {
						_root.stunned.start(0, 1);
					}
				}
				if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
					--this.stuntime;
				}
				if (this.stunned && this.stuntime <= 0) {
					this.stunned = false;
					this.stuntime = 200;
					this.gotoAndStop(1);
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hurt && this.alive) {
					this.gotoAndStop(3);
				}
				if (this.pain._currentframe == 6 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.hurtbounce = 15;
					}
				}
				if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 2;
					}
					if (_root.armor == 2) {
						_root.health -= 1;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 428	{
			onClipEvent (load) {
				this.health = 4;
				this.spd = 1;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 15;
				this.stunned = false;
				this.stuntime = 200;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 250;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				checkproximity();
				if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.play();
						this.gotoAndStop(2);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.slowmove.stop();
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 45, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (!this.attacking && this.spd !== 1) {
					this.timer = 0;
					this.waited = true;
					this.waittime = 0;
					this.moving = false;
					this.spd = 1;
				}
				if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
					this.gotoAndStop(1);
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
					if (this.spd == 1) {
						this.spd = 2;
					}
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(4);
					_root.enemies -= 1;
					this.alive = false;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
					this.gotoAndStop(5);
				}
				if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
					this.hurted = true;
					this.stunned = true;
					this.moving = false;
					if (_root.sfx) {
						_root.stunned.start(0, 1);
					}
				}
				if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
					--this.stuntime;
				}
				if (this.stunned && this.stuntime <= 0) {
					this.stunned = false;
					this.stuntime = 200;
					this.gotoAndStop(1);
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hurt && this.alive) {
					this.gotoAndStop(3);
				}
				if (this.pain._currentframe == 6 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.hurtbounce = 15;
					}
				}
				if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 2;
					}
					if (_root.armor == 2) {
						_root.health -= 1;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2359	{
			onClipEvent (load) {
				this.health = 10;
				this.spd = 3;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 7;
				this.stunned = false;
				this.stuntime = 200;
				this.vis = true;
				this._alpha = 100;
				if (!enemiesadded) {
					_root.enemies += 1;
					enemiesadded = true;
				}
			}
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
					if (this._alpha > 0 && this.vis) {
						--this._alpha;
					}
					if (this._alpha <= 0 && this.vis) {
						this.vis = false;
					} else {
						if (this._alpha >= 100 && !this.vis) {
							this.vis = true;
						}
					}
					if (this._alpha < 100 && !this.vis) {
						++this._alpha;
					}
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.gotoAndStop(1);
						this.ghost.ghost.play();
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.ghost.ghost.gotoAndStop(8);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 20, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 20, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 20, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(5);
					this.alive = false;
					_root.enemies -= 1;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
					this.ghost.gotoAndStop(3);
				}
				if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
					--this.stuntime;
				}
				if (this.stunned && this.stuntime <= 0) {
					this.stunned = false;
					this.stuntime = 200;
					this.gotoAndStop(this.dir);
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 3;
						} else {
							if (_root.sword == 3) {
								this.health -= 4;
							} else {
								if (_root.sword == 4) {
									this.health -= 5;
								}
							}
						}
					}
				}
				if (this.hurt && this.alive) {
					this.ghost.gotoAndStop(2);
				}
				if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.hurtbounce = 7;
					}
				}
				if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 2;
					}
					if (_root.armor == 2) {
						_root.health -= 1;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2359	{
			onClipEvent (load) {
				this.health = 10;
				this.spd = 3;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 7;
				this.stunned = false;
				this.stuntime = 200;
				this.vis = true;
				this._alpha = 100;
				if (!enemiesadded) {
					_root.enemies += 1;
					enemiesadded = true;
				}
			}
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
					if (this._alpha > 0 && this.vis) {
						--this._alpha;
					}
					if (this._alpha <= 0 && this.vis) {
						this.vis = false;
					} else {
						if (this._alpha >= 100 && !this.vis) {
							this.vis = true;
						}
					}
					if (this._alpha < 100 && !this.vis) {
						++this._alpha;
					}
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.gotoAndStop(1);
						this.ghost.ghost.play();
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.ghost.ghost.gotoAndStop(8);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 20, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 20, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 20, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(5);
					this.alive = false;
					_root.enemies -= 1;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
					this.ghost.gotoAndStop(3);
				}
				if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
					--this.stuntime;
				}
				if (this.stunned && this.stuntime <= 0) {
					this.stunned = false;
					this.stuntime = 200;
					this.gotoAndStop(this.dir);
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 3;
						} else {
							if (_root.sword == 3) {
								this.health -= 4;
							} else {
								if (_root.sword == 4) {
									this.health -= 5;
								}
							}
						}
					}
				}
				if (this.hurt && this.alive) {
					this.ghost.gotoAndStop(2);
				}
				if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.hurtbounce = 7;
					}
				}
				if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 2;
					}
					if (_root.armor == 2) {
						_root.health -= 1;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 2359	{
			onClipEvent (load) {
				this.health = 10;
				this.spd = 3;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 7;
				this.stunned = false;
				this.stuntime = 200;
				this.vis = true;
				this._alpha = 100;
				if (!enemiesadded) {
					_root.enemies += 1;
					enemiesadded = true;
				}
			}
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
					if (this._alpha > 0 && this.vis) {
						--this._alpha;
					}
					if (this._alpha <= 0 && this.vis) {
						this.vis = false;
					} else {
						if (this._alpha >= 100 && !this.vis) {
							this.vis = true;
						}
					}
					if (this._alpha < 100 && !this.vis) {
						++this._alpha;
					}
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.gotoAndStop(1);
						this.ghost.ghost.play();
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.ghost.ghost.gotoAndStop(8);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 20, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 20, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 20, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(5);
					this.alive = false;
					_root.enemies -= 1;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
					this.ghost.gotoAndStop(3);
				}
				if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
					--this.stuntime;
				}
				if (this.stunned && this.stuntime <= 0) {
					this.stunned = false;
					this.stuntime = 200;
					this.gotoAndStop(this.dir);
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 3;
						} else {
							if (_root.sword == 3) {
								this.health -= 4;
							} else {
								if (_root.sword == 4) {
									this.health -= 5;
								}
							}
						}
					}
				}
				if (this.hurt && this.alive) {
					this.ghost.gotoAndStop(2);
				}
				if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.hurtbounce = 7;
					}
				}
				if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 2;
					}
					if (_root.armor == 2) {
						_root.health -= 1;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 503	{
			onClipEvent (load) {
				this.health = 6;
				this.spd = 3;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 10;
				this.attacking = false;
				this.stunned = false;
				this.stuntime = 200;
				this.swordslash = false;
				this.defence = random(20) + 1;
				this.stance = 0;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 200;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				function checkrange() {
					dist_playerl = 115;
					dxl = _x - _root.hero._x;
					dyl = _y - _root.hero._y;
					this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
					if (this.distl < dist_playerl) {
						this.inrange = true;
					} else {
						this.inrange = false;
					}
				}
				checkproximity();
				checkrange();
				if (!this.attacking && !this.swordslash) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.skeleton.gotoAndStop(1);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.skeleton.gotoAndStop(2);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 60, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 20, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 60, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
					this.skeleton.gotoAndStop(1);
					if (!this.hitTest(_root.hero)) {
						if (this._x > _root.box._x) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							}
						}
						if (this._x < _root.box._x) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							}
						}
						if (this._y > _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							}
						}
						if (this._y < _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
						this.inline = true;
					} else {
						this.inline = false;
					}
					if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
						this.inline2 = true;
						this.inline = false;
					} else {
						this.inline2 = false;
					}
					if (this._y > _root.box._y && this.inline && !this.inline2) {
						this.dir = 1;
					} else {
						if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
							this.dir = 2;
						}
					}
					if (this._y < _root.box._y && this.inline && !this.inline2) {
						this.dir = 3;
					} else {
						if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
							this.dir = 4;
						}
					}
				}
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.skeleton.gotoAndStop(4);
				}
				if (this.swordslash && this.skeleton.attack._currentframe == 13) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.skeleton.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(5);
					this.alive = false;
					_root.enemies -= 1;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 3;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
						this.block = true;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
						this.block = true;
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 3;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hurt && this.alive) {
					this.skeleton.gotoAndStop(3);
				}
				if (this.skeleton._currentframe == 3 && this.skeleton.pain._currentframe == 8 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.block = false;
						this.hurtbounce = 10;
					}
				}
			}
		}
		instance of movieClip 600	{
			onClipEvent (load) {
				this.health = 7;
				this.spd = 6;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 10;
				this.attacking = false;
				this.stunned = false;
				this.stuntime = 200;
				this.swordslash = false;
				this.defence = random(20) + 1;
				this.stance = 0;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 250;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				function checkrange() {
					dist_playerl = 115;
					dxl = _x - _root.hero._x;
					dyl = _y - _root.hero._y;
					this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
					if (this.distl < dist_playerl) {
						this.inrange = true;
					} else {
						this.inrange = false;
					}
				}
				checkproximity();
				checkrange();
				if (!this.attacking && !this.swordslash && !this.stunned) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wolf.gotoAndStop(1);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.wolf.gotoAndStop(2);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 60, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 20, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 60, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
					this.wolf.gotoAndStop(1);
					if (!this.hitTest(_root.hero)) {
						if (this._x > _root.box._x) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							}
						}
						if (this._x < _root.box._x) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							}
						}
						if (this._y > _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							}
						}
						if (this._y < _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
					this.gotoAndStop(this.dir);
					if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
						this.inline = true;
					} else {
						this.inline = false;
					}
					if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
						this.inline2 = true;
						this.inline = false;
					} else {
						this.inline2 = false;
					}
					if (this._y > _root.box._y && this.inline && !this.inline2) {
						this.dir = 1;
					} else {
						if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
							this.dir = 2;
						}
					}
					if (this._y < _root.box._y && this.inline && !this.inline2) {
						this.dir = 3;
					} else {
						if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
							this.dir = 4;
						}
					}
				}
				if (!this.stunned) {
					if (this.inrange && this.stance == 0) {
						this.stance = 1;
					}
					if (this.stance == 1 && !this.swordslash) {
						this.swordslash = true;
						this.defending = false;
					}
					if (this.stance == 2 && !this.defending) {
						this.defending = true;
						this.swordslash = false;
					}
					if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
						this.wolf.gotoAndStop(4);
					}
					if (this.swordslash && this.wolf.attack._currentframe == 17) {
						this.swordslash = false;
						this.stance = 0;
					}
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(5);
					this.alive = false;
					_root.enemies -= 1;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 2;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 2;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 3;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
					this.gotoAndStop(6);
				}
				if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
					this.hurted = true;
					this.stunned = true;
					this.moving = false;
					if (_root.sfx) {
						_root.stunned.start(0, 1);
					}
				}
				if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
					--this.stuntime;
				}
				if (this.stunned && this.stuntime <= 0) {
					this.stunned = false;
					this.stuntime = 200;
					this.gotoAndStop(this.dir);
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hurt && this.alive) {
					this.gotoAndStop(this.dir);
					this.wolf.gotoAndStop(3);
				}
				if (this.wolf._currentframe == 3 && this.wolf.pain._currentframe == 8 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.block = false;
						this.hurtbounce = 10;
					}
				}
			}
		}
		instance of movieClip 600	{
			onClipEvent (load) {
				this.health = 7;
				this.spd = 6;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 10;
				this.attacking = false;
				this.stunned = false;
				this.stuntime = 200;
				this.swordslash = false;
				this.defence = random(20) + 1;
				this.stance = 0;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 250;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				function checkrange() {
					dist_playerl = 115;
					dxl = _x - _root.hero._x;
					dyl = _y - _root.hero._y;
					this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
					if (this.distl < dist_playerl) {
						this.inrange = true;
					} else {
						this.inrange = false;
					}
				}
				checkproximity();
				checkrange();
				if (!this.attacking && !this.swordslash && !this.stunned) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wolf.gotoAndStop(1);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.wolf.gotoAndStop(2);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 60, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 20, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 60, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
					this.wolf.gotoAndStop(1);
					if (!this.hitTest(_root.hero)) {
						if (this._x > _root.box._x) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							}
						}
						if (this._x < _root.box._x) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							}
						}
						if (this._y > _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							}
						}
						if (this._y < _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
					this.gotoAndStop(this.dir);
					if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
						this.inline = true;
					} else {
						this.inline = false;
					}
					if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
						this.inline2 = true;
						this.inline = false;
					} else {
						this.inline2 = false;
					}
					if (this._y > _root.box._y && this.inline && !this.inline2) {
						this.dir = 1;
					} else {
						if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
							this.dir = 2;
						}
					}
					if (this._y < _root.box._y && this.inline && !this.inline2) {
						this.dir = 3;
					} else {
						if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
							this.dir = 4;
						}
					}
				}
				if (!this.stunned) {
					if (this.inrange && this.stance == 0) {
						this.stance = 1;
					}
					if (this.stance == 1 && !this.swordslash) {
						this.swordslash = true;
						this.defending = false;
					}
					if (this.stance == 2 && !this.defending) {
						this.defending = true;
						this.swordslash = false;
					}
					if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
						this.wolf.gotoAndStop(4);
					}
					if (this.swordslash && this.wolf.attack._currentframe == 17) {
						this.swordslash = false;
						this.stance = 0;
					}
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(5);
					this.alive = false;
					_root.enemies -= 1;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 2;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 2;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 3;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
					this.gotoAndStop(6);
				}
				if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
					this.hurted = true;
					this.stunned = true;
					this.moving = false;
					if (_root.sfx) {
						_root.stunned.start(0, 1);
					}
				}
				if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
					--this.stuntime;
				}
				if (this.stunned && this.stuntime <= 0) {
					this.stunned = false;
					this.stuntime = 200;
					this.gotoAndStop(this.dir);
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hurt && this.alive) {
					this.gotoAndStop(this.dir);
					this.wolf.gotoAndStop(3);
				}
				if (this.wolf._currentframe == 3 && this.wolf.pain._currentframe == 8 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.block = false;
						this.hurtbounce = 10;
					}
				}
			}
		}
		instance of movieClip 740	{
			onClipEvent (load) {
				this.health = 12;
				this.spd = 4;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 10;
				this.attacking = false;
				this.stunned = false;
				this.stuntime = 200;
				this.swordslash = false;
				this.defence = random(20) + 1;
				this.stance = 0;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 300;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				function checkrange() {
					dist_playerl = 115;
					dxl = _x - _root.hero._x;
					dyl = _y - _root.hero._y;
					this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
					if (this.distl < dist_playerl) {
						this.inrange = true;
					} else {
						this.inrange = false;
					}
				}
				checkproximity();
				checkrange();
				if (!this.attacking && !this.swordslash && !this.stunned) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(1);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.goblin.gotoAndStop(2);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 60, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 20, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 60, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
					if (!this.hitTest(_root.hero)) {
						if (this._x > _root.box._x) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							}
						}
						if (this._x < _root.box._x) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							}
						}
						if (this._y > _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							}
						}
						if (this._y < _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
					this.gotoAndStop(this.dir);
					if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
						this.inline = true;
					} else {
						this.inline = false;
					}
					if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
						this.inline2 = true;
						this.inline = false;
					} else {
						this.inline2 = false;
					}
					if (this._y > _root.box._y && this.inline && !this.inline2) {
						this.dir = 1;
					} else {
						if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
							this.dir = 2;
						}
					}
					if (this._y < _root.box._y && this.inline && !this.inline2) {
						this.dir = 3;
					} else {
						if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
							this.dir = 4;
						}
					}
				}
				if (!this.stunned) {
					if (this.inrange && this.stance == 0) {
						this.stance = 1;
					}
					if (this.stance == 1 && !this.swordslash) {
						this.swordslash = true;
						this.defending = false;
					}
					if (this.stance == 2 && !this.defending) {
						this.defending = true;
						this.swordslash = false;
					}
					if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
						this.goblin.gotoAndStop(4);
					}
					if (this.swordslash && this.goblin.attack._currentframe == 28) {
						this.swordslash = false;
						this.stance = 0;
					}
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(5);
					_root.enemies -= 1;
					this.alive = false;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 3;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 6;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 8;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hurt && this.alive) {
					this.gotoAndStop(this.dir);
					this.goblin.gotoAndStop(3);
				}
				if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.block = false;
						this.hurtbounce = 10;
					}
				}
			}
		}
		instance of movieClip 740	{
			onClipEvent (load) {
				this.health = 12;
				this.spd = 4;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 10;
				this.attacking = false;
				this.stunned = false;
				this.stuntime = 200;
				this.swordslash = false;
				this.defence = random(20) + 1;
				this.stance = 0;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 300;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				function checkrange() {
					dist_playerl = 115;
					dxl = _x - _root.hero._x;
					dyl = _y - _root.hero._y;
					this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
					if (this.distl < dist_playerl) {
						this.inrange = true;
					} else {
						this.inrange = false;
					}
				}
				checkproximity();
				checkrange();
				if (!this.attacking && !this.swordslash && !this.stunned) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(1);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.goblin.gotoAndStop(2);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 60, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 20, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 60, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
					if (!this.hitTest(_root.hero)) {
						if (this._x > _root.box._x) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							}
						}
						if (this._x < _root.box._x) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							}
						}
						if (this._y > _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							}
						}
						if (this._y < _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
					this.gotoAndStop(this.dir);
					if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
						this.inline = true;
					} else {
						this.inline = false;
					}
					if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
						this.inline2 = true;
						this.inline = false;
					} else {
						this.inline2 = false;
					}
					if (this._y > _root.box._y && this.inline && !this.inline2) {
						this.dir = 1;
					} else {
						if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
							this.dir = 2;
						}
					}
					if (this._y < _root.box._y && this.inline && !this.inline2) {
						this.dir = 3;
					} else {
						if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
							this.dir = 4;
						}
					}
				}
				if (!this.stunned) {
					if (this.inrange && this.stance == 0) {
						this.stance = 1;
					}
					if (this.stance == 1 && !this.swordslash) {
						this.swordslash = true;
						this.defending = false;
					}
					if (this.stance == 2 && !this.defending) {
						this.defending = true;
						this.swordslash = false;
					}
					if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
						this.goblin.gotoAndStop(4);
					}
					if (this.swordslash && this.goblin.attack._currentframe == 28) {
						this.swordslash = false;
						this.stance = 0;
					}
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(5);
					_root.enemies -= 1;
					this.alive = false;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 3;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 6;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 8;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hurt && this.alive) {
					this.gotoAndStop(this.dir);
					this.goblin.gotoAndStop(3);
				}
				if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.block = false;
						this.hurtbounce = 10;
					}
				}
			}
		}
		instance of movieClip 556	{
			onClipEvent (load) {
				this.health = 3;
				this.spd = 4;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 10;
				this.attacking = false;
				this.stunned = false;
				this.stuntime = 200;
				this.swordslash = false;
				this.defence = random(20) + 1;
				this.stance = 0;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 200;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				function checkrange() {
					dist_playerl = 115;
					dxl = _x - _root.hero._x;
					dyl = _y - _root.hero._y;
					this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
					if (this.distl < dist_playerl) {
						this.inrange = true;
					} else {
						this.inrange = false;
					}
				}
				checkproximity();
				checkrange();
				if (!this.attacking && !this.swordslash && !this.stunned) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(1);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.goblin.gotoAndStop(2);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 60, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 20, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 60, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
					if (!this.hitTest(_root.hero)) {
						if (this._x > _root.box._x) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							}
						}
						if (this._x < _root.box._x) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							}
						}
						if (this._y > _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							}
						}
						if (this._y < _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
					this.gotoAndStop(this.dir);
					if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
						this.inline = true;
					} else {
						this.inline = false;
					}
					if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
						this.inline2 = true;
						this.inline = false;
					} else {
						this.inline2 = false;
					}
					if (this._y > _root.box._y && this.inline && !this.inline2) {
						this.dir = 1;
					} else {
						if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
							this.dir = 2;
						}
					}
					if (this._y < _root.box._y && this.inline && !this.inline2) {
						this.dir = 3;
					} else {
						if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
							this.dir = 4;
						}
					}
				}
				if (!this.stunned) {
					if (this.inrange && this.stance == 0) {
						this.stance = random(2) + 1;
					}
					if (this.stance == 1 && !this.swordslash) {
						this.swordslash = true;
						this.defending = false;
					}
					if (this.stance == 2 && !this.defending) {
						this.defending = true;
						this.swordslash = false;
					}
					if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
						this.goblin.gotoAndStop(4);
					}
					if (this.swordslash && this.goblin.attack._currentframe == 15) {
						this.swordslash = false;
						this.stance = 0;
					}
					if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
						this.goblin.gotoAndStop(5);
						--this.defence;
					}
					if (this.defending && this.defence <= 0) {
						this.defence = random(20) + 1;
						this.stance = 0;
						this.defending = false;
					}
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(5);
					this.alive = false;
					_root.enemies -= 1;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 3;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
						this.block = true;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 2;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
						this.block = true;
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 6;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 8;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
					this.gotoAndStop(6);
				}
				if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
					this.hurted = true;
					this.stunned = true;
					this.moving = false;
					if (_root.sfx) {
						_root.stunned.start(0, 1);
					}
				}
				if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
					--this.stuntime;
				}
				if (this.stunned && this.stuntime <= 0) {
					this.stunned = false;
					this.stuntime = 200;
					this.gotoAndStop(this.dir);
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hurt && this.alive) {
					this.gotoAndStop(this.dir);
					this.goblin.gotoAndStop(3);
				}
				if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.block = false;
						this.hurtbounce = 10;
					}
				}
			}
		}
		instance of movieClip 654	{
			onClipEvent (load) {
				this.health = 10;
				this.spd = 3;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 10;
				this.attacking = false;
				this.stunned = false;
				this.stuntime = 200;
				this.throwfire = false;
				this.atktime = random(30) + 40;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 400;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				checkproximity();
				if (!this.attacking) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wizard.gotoAndStop(1);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.wizard.gotoAndStop(2);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 60, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 20, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 60, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
					--this.atktime;
					this.wizard.gotoAndStop(1);
					if (!this.hitTest(_root.hero)) {
						if (this._x > _root.box._x) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							}
						}
						if (this._x < _root.box._x) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							}
						}
						if (this._y > _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							}
						}
						if (this._y < _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							}
						}
					}
				}
				if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
						this.inline = true;
					} else {
						this.inline = false;
					}
					if (this._y > _root.box._y - 20 && this._y < _root.box._y + 80) {
						this.inline2 = true;
						this.inline = false;
					} else {
						this.inline2 = false;
					}
					if (this._y > _root.box._y && this.inline && !this.inline2) {
						this.dir = 1;
					} else {
						if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
							this.dir = 2;
						}
					}
					if (this._y < _root.box._y && this.inline && !this.inline2) {
						this.dir = 3;
					} else {
						if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
							this.dir = 4;
						}
					}
				}
				if (this.hitTest(_root.hero) && !this.throwfire && this.alive && !this.hurt && !this.hurted) {
					this.wizard.gotoAndStop(2);
				}
				if (this.atktime <= 0) {
					this.throwfire = true;
				}
				if (this.throwfire && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.wizard.gotoAndStop(4);
				}
				if (this.throwfire && this.wizard.throws._currentframe == 10) {
					this.atktime = random(30) + 40;
					this.throwfire = false;
				}
				if (this.wizard.throws._currentframe == 6) {
					firess = _root.fireen.duplicateMovieClip('fireen_' + _root.ar, _root.getNextHighestDepth());
					firess.fired = true;
					firess.dir = this.dir;
					++_root.ar;
					firess._x = this._x;
					firess._y = this._y;
					_root.flamesoundpl = true;
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(5);
					_root.enemies -= 1;
					this.alive = false;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 3;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hurt && this.alive) {
					this.wizard.gotoAndStop(3);
				}
				if (this.wizard._currentframe == 3 && this.wizard.pain._currentframe == 8 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.hurtbounce = 7;
					}
				}
				if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 3;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 3;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 654	{
			onClipEvent (load) {
				this.health = 10;
				this.spd = 3;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 10;
				this.attacking = false;
				this.stunned = false;
				this.stuntime = 200;
				this.throwfire = false;
				this.atktime = random(30) + 40;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 400;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				checkproximity();
				if (!this.attacking) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wizard.gotoAndStop(1);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.wizard.gotoAndStop(2);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 60, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 20, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 60, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
					--this.atktime;
					this.wizard.gotoAndStop(1);
					if (!this.hitTest(_root.hero)) {
						if (this._x > _root.box._x) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							}
						}
						if (this._x < _root.box._x) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							}
						}
						if (this._y > _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							}
						}
						if (this._y < _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							}
						}
					}
				}
				if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
						this.inline = true;
					} else {
						this.inline = false;
					}
					if (this._y > _root.box._y - 20 && this._y < _root.box._y + 80) {
						this.inline2 = true;
						this.inline = false;
					} else {
						this.inline2 = false;
					}
					if (this._y > _root.box._y && this.inline && !this.inline2) {
						this.dir = 1;
					} else {
						if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
							this.dir = 2;
						}
					}
					if (this._y < _root.box._y && this.inline && !this.inline2) {
						this.dir = 3;
					} else {
						if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
							this.dir = 4;
						}
					}
				}
				if (this.hitTest(_root.hero) && !this.throwfire && this.alive && !this.hurt && !this.hurted) {
					this.wizard.gotoAndStop(2);
				}
				if (this.atktime <= 0) {
					this.throwfire = true;
				}
				if (this.throwfire && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.wizard.gotoAndStop(4);
				}
				if (this.throwfire && this.wizard.throws._currentframe == 10) {
					this.atktime = random(30) + 40;
					this.throwfire = false;
				}
				if (this.wizard.throws._currentframe == 6) {
					firess = _root.fireen.duplicateMovieClip('fireen_' + _root.ar, _root.getNextHighestDepth());
					firess.fired = true;
					firess.dir = this.dir;
					++_root.ar;
					firess._x = this._x;
					firess._y = this._y;
					_root.flamesoundpl = true;
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(5);
					_root.enemies -= 1;
					this.alive = false;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 3;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hurt && this.alive) {
					this.wizard.gotoAndStop(3);
				}
				if (this.wizard._currentframe == 3 && this.wizard.pain._currentframe == 8 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.hurtbounce = 7;
					}
				}
				if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 3;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 3;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 785	{
			onClipEvent (load) {
				this.health = 13;
				this.spd = 5;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 10;
				this.attacking = false;
				this.stunned = false;
				this.stuntime = 200;
				this.swordslash = false;
				this.defence = random(20) + 1;
				this.stance = 0;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 300;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				function checkrange() {
					dist_playerl = 115;
					dxl = _x - _root.hero._x;
					dyl = _y - _root.hero._y;
					this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
					if (this.distl < dist_playerl) {
						this.inrange = true;
					} else {
						this.inrange = false;
					}
				}
				checkproximity();
				checkrange();
				if (!this.attacking && !this.swordslash) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(1);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.knight.gotoAndStop(2);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 60, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 20, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 60, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
					this.knight.gotoAndStop(1);
					if (!this.hitTest(_root.hero)) {
						if (this._x > _root.box._x) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							}
						}
						if (this._x < _root.box._x) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							}
						}
						if (this._y > _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							}
						}
						if (this._y < _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
						this.inline = true;
					} else {
						this.inline = false;
					}
					if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
						this.inline2 = true;
						this.inline = false;
					} else {
						this.inline2 = false;
					}
					if (this._y > _root.box._y && this.inline && !this.inline2) {
						this.dir = 1;
					} else {
						if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
							this.dir = 2;
						}
					}
					if (this._y < _root.box._y && this.inline && !this.inline2) {
						this.dir = 3;
					} else {
						if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
							this.dir = 4;
						}
					}
				}
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.knight.gotoAndStop(4);
				}
				if (this.swordslash && this.knight.attack._currentframe == 20) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.knight.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(5);
					this.alive = false;
					_root.enemies -= 1;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
						this.block = true;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 2;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
						this.block = true;
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 3;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hurt && this.alive) {
					this.knight.gotoAndStop(3);
				}
				if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.block = false;
						this.hurtbounce = 10;
					}
				}
			}
		}
		instance of movieClip 785	{
			onClipEvent (load) {
				this.health = 13;
				this.spd = 5;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 10;
				this.attacking = false;
				this.stunned = false;
				this.stuntime = 200;
				this.swordslash = false;
				this.defence = random(20) + 1;
				this.stance = 0;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 300;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				function checkrange() {
					dist_playerl = 115;
					dxl = _x - _root.hero._x;
					dyl = _y - _root.hero._y;
					this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
					if (this.distl < dist_playerl) {
						this.inrange = true;
					} else {
						this.inrange = false;
					}
				}
				checkproximity();
				checkrange();
				if (!this.attacking && !this.swordslash) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(1);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.knight.gotoAndStop(2);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 60, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 20, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 60, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
					this.knight.gotoAndStop(1);
					if (!this.hitTest(_root.hero)) {
						if (this._x > _root.box._x) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							}
						}
						if (this._x < _root.box._x) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							}
						}
						if (this._y > _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							}
						}
						if (this._y < _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
						this.inline = true;
					} else {
						this.inline = false;
					}
					if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
						this.inline2 = true;
						this.inline = false;
					} else {
						this.inline2 = false;
					}
					if (this._y > _root.box._y && this.inline && !this.inline2) {
						this.dir = 1;
					} else {
						if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
							this.dir = 2;
						}
					}
					if (this._y < _root.box._y && this.inline && !this.inline2) {
						this.dir = 3;
					} else {
						if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
							this.dir = 4;
						}
					}
				}
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.knight.gotoAndStop(4);
				}
				if (this.swordslash && this.knight.attack._currentframe == 20) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.knight.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(5);
					this.alive = false;
					_root.enemies -= 1;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
						this.block = true;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 2;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
						this.block = true;
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 3;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hurt && this.alive) {
					this.knight.gotoAndStop(3);
				}
				if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.block = false;
						this.hurtbounce = 10;
					}
				}
			}
		}
		instance of movieClip 417	{
			onClipEvent (load) {
				this.health = 6;
				this.spd = 2;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 15;
				this.stunned = false;
				this.stuntime = 200;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 250;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				checkproximity();
				if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.play();
						this.gotoAndStop(2);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.slowmove.stop();
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 45, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (!this.attacking && this.spd !== 2) {
					this.timer = 0;
					this.waited = true;
					this.waittime = 0;
					this.moving = false;
					this.spd = 2;
				}
				if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
					this.gotoAndStop(1);
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
					if (this.spd == 2) {
						this.spd = 3;
					}
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(4);
					this.alive = false;
					_root.enemies -= 1;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 2;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hurt && this.alive) {
					this.gotoAndStop(3);
				}
				if (this.pain._currentframe == 6 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.hurtbounce = 15;
					}
				}
				if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 3;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 3;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 837	{
			onClipEvent (load) {
				this.health = 14;
				this.spd = 6;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 10;
				this.attacking = false;
				this.stunned = false;
				this.stuntime = 200;
				this.swordslash = false;
				this.defence = random(20) + 1;
				this.stance = 0;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 200;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				function checkrange() {
					dist_playerl = 130;
					dxl = _x - _root.hero._x;
					dyl = _y - _root.hero._y;
					this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
					if (this.distl < dist_playerl) {
						this.inrange = true;
					} else {
						this.inrange = false;
					}
				}
				checkproximity();
				checkrange();
				if (!this.attacking && !this.swordslash) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(1);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.knight.gotoAndStop(2);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 60, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 20, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 60, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
					this.knight.gotoAndStop(1);
					if (!this.hitTest(_root.hero)) {
						if (this._x > _root.box._x) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							}
						}
						if (this._x < _root.box._x) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							}
						}
						if (this._y > _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							}
						}
						if (this._y < _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
						this.inline = true;
					} else {
						this.inline = false;
					}
					if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
						this.inline2 = true;
						this.inline = false;
					} else {
						this.inline2 = false;
					}
					if (this._y > _root.box._y && this.inline && !this.inline2) {
						this.dir = 1;
					} else {
						if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
							this.dir = 2;
						}
					}
					if (this._y < _root.box._y && this.inline && !this.inline2) {
						this.dir = 3;
					} else {
						if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
							this.dir = 4;
						}
					}
				}
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.knight.gotoAndStop(4);
				}
				if (this.swordslash && this.knight.attack._currentframe == 20) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.knight.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(5);
					this.alive = false;
					_root.enemies -= 1;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
						this.block = true;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
						this.block = true;
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 3;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hurt && this.alive) {
					this.knight.gotoAndStop(3);
				}
				if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.block = false;
						this.hurtbounce = 10;
					}
				}
			}
		}
		instance of movieClip 417	{
			onClipEvent (load) {
				this.health = 6;
				this.spd = 2;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 15;
				this.stunned = false;
				this.stuntime = 200;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 250;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				checkproximity();
				if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.play();
						this.gotoAndStop(2);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.slowmove.stop();
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 45, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (!this.attacking && this.spd !== 2) {
					this.timer = 0;
					this.waited = true;
					this.waittime = 0;
					this.moving = false;
					this.spd = 2;
				}
				if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
					this.gotoAndStop(1);
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
					if (this.spd == 2) {
						this.spd = 3;
					}
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(4);
					this.alive = false;
					_root.enemies -= 1;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 2;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hurt && this.alive) {
					this.gotoAndStop(3);
				}
				if (this.pain._currentframe == 6 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.hurtbounce = 15;
					}
				}
				if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 3;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 3;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 2;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 837	{
			onClipEvent (load) {
				this.health = 14;
				this.spd = 6;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 10;
				this.attacking = false;
				this.stunned = false;
				this.stuntime = 200;
				this.swordslash = false;
				this.defence = random(20) + 1;
				this.stance = 0;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 200;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				function checkrange() {
					dist_playerl = 130;
					dxl = _x - _root.hero._x;
					dyl = _y - _root.hero._y;
					this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
					if (this.distl < dist_playerl) {
						this.inrange = true;
					} else {
						this.inrange = false;
					}
				}
				checkproximity();
				checkrange();
				if (!this.attacking && !this.swordslash) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(1);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.knight.gotoAndStop(2);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 60, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 20, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 60, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
					this.knight.gotoAndStop(1);
					if (!this.hitTest(_root.hero)) {
						if (this._x > _root.box._x) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							}
						}
						if (this._x < _root.box._x) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							}
						}
						if (this._y > _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							}
						}
						if (this._y < _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
						this.inline = true;
					} else {
						this.inline = false;
					}
					if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
						this.inline2 = true;
						this.inline = false;
					} else {
						this.inline2 = false;
					}
					if (this._y > _root.box._y && this.inline && !this.inline2) {
						this.dir = 1;
					} else {
						if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
							this.dir = 2;
						}
					}
					if (this._y < _root.box._y && this.inline && !this.inline2) {
						this.dir = 3;
					} else {
						if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
							this.dir = 4;
						}
					}
				}
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.knight.gotoAndStop(4);
				}
				if (this.swordslash && this.knight.attack._currentframe == 20) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.knight.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(5);
					this.alive = false;
					_root.enemies -= 1;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
						this.block = true;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 5;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
						this.block = true;
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 3;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hurt && this.alive) {
					this.knight.gotoAndStop(3);
				}
				if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.block = false;
						this.hurtbounce = 10;
					}
				}
			}
		}
		instance of movieClip 3646	{
			onClipEvent (load) {
				this.health = 20;
				this.spd = 6;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 10;
				this.attacking = false;
				this.stunned = false;
				this.stuntime = 200;
				this.swordslash = false;
				this.defence = random(20) + 1;
				this.stance = 0;
				if (!this.enemyadded) {
					_root.enemies += 1;
					this.enemyadded = true;
				}
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 300;
					dx = _x - _root.box._x;
					dy = _y - _root.box._y;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.attacking = true;
					} else {
						this.attacking = false;
					}
				}
				function checkrange() {
					dist_playerl = 115;
					dxl = _x - _root.hero._x;
					dyl = _y - _root.hero._y;
					this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
					if (this.distl < dist_playerl) {
						this.inrange = true;
					} else {
						this.inrange = false;
					}
				}
				checkproximity();
				checkrange();
				if (!this.attacking && !this.swordslash) {
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(1);
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.knight.gotoAndStop(2);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 60, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 20, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 60, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
					this.knight.gotoAndStop(1);
					if (!this.hitTest(_root.hero)) {
						if (this._x > _root.box._x) {
							if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
								this._x -= this.spd;
							}
						}
						if (this._x < _root.box._x) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
							}
						}
						if (this._y > _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
							}
						}
						if (this._y < _root.box._y) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
							}
						}
					}
				}
				if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
						this.inline = true;
					} else {
						this.inline = false;
					}
					if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
						this.inline2 = true;
						this.inline = false;
					} else {
						this.inline2 = false;
					}
					if (this._y > _root.box._y && this.inline && !this.inline2) {
						this.dir = 1;
					} else {
						if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
							this.dir = 2;
						}
					}
					if (this._y < _root.box._y && this.inline && !this.inline2) {
						this.dir = 3;
					} else {
						if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
							this.dir = 4;
						}
					}
				}
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.knight.gotoAndStop(4);
				}
				if (this.swordslash && this.knight.attack._currentframe == 6) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.knight.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(5);
					this.alive = false;
					_root.enemies -= 1;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
						this.block = true;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 2;
						_root['firedup_' + i].gotoAndStop(5);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 1;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
						this.block = true;
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 3;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
						this.hurt = true;
						this.hurted = true;
						this.health -= 4;
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hurt && this.alive) {
					this.knight.gotoAndStop(3);
				}
				if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
					this.hurt = false;
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.block = false;
						this.hurtbounce = 10;
					}
				}
			}
		}
	}
	instance of movieClip 3647	{
		onClipEvent (load) {
			this.wave = 1;
			this.message = 0;
			this.told = false;
			this.timer = 100;
		}
		onClipEvent (enterFrame) {
			if (_root.trans._currentframe >= 20 && !this.warped) {
				this.gotoAndStop(this.wave);
				_root.box._x = 511.5;
				_root.box._y = 907.3;
				_root.cam._x = _root.box._x;
				_root.cam._y = _root.box._y - 200;
				this.warped = true;
			}
			if (this.timer >= 0 && _root.enemies <= 0 && !_root.pause) {
				--this.timer;
			}
			if (this.told && _root.enemies == 0 && this.timer <= 0) {
				++this.wave;
				this.told = false;
				this.timer = 100;
			}
			if (!_root.pause) {
				if (this.wave == 1 && !this.told) {
					_root.chatting = true;
					this.chat = true;
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Finally after waiting for what felt like forever you have come. To bad that stupid black smith could not have been more reliable. We went through all that trouble of getting the armor and he waited this long to send you. No matter...';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = 'Your here now and thats what counts. You made a fool of me once before. But it wont happen again!';
					}
					if (this.chat && _root.chatting && this.message == 2) {
						_root.cam.textbox.text = ' ';
						this.told = true;
						_root.chatting = false;
						this.chat = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (this.wave == 2 && !this.told) {
					_root.chatting = true;
					this.chat = true;
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'So you got rid of one wave. Thats childs play. Now we will up the difficulty and test your skill further.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = ' ';
						this.told = true;
						this.chat = false;
						_root.chatting = false;
						_root.warping = true;
						this.warped = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (this.wave == 3 && !this.told) {
					_root.chatting = true;
					this.chat = true;
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'So you managed to defeat another wave. Far from impressive work. Lets see how you will fare against this..';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = ' ';
						this.told = true;
						this.chat = false;
						_root.chatting = false;
						_root.warping = true;
						this.warped = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (this.wave == 4 && !this.told) {
					_root.chatting = true;
					this.chat = true;
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Pfft. So you managed to take down some uimpressive menions. No big deal.. Lets give you a real challenge';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = ' ';
						this.told = true;
						this.chat = false;
						_root.chatting = false;
						_root.warping = true;
						this.warped = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (this.wave == 5 && !this.told) {
					_root.chatting = true;
					this.chat = true;
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Your starting to become a problem.	There is no way you could defeat this wave.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = ' ';
						this.told = true;
						this.chat = false;
						_root.chatting = false;
						_root.warping = true;
						this.warped = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (this.wave == 6 && !this.told) {
					_root.chatting = true;
					this.chat = true;
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'I cant believe you defeated that wave so easily. Now is the time to get serious.';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = ' ';
						this.told = true;
						this.chat = false;
						_root.chatting = false;
						_root.warping = true;
						this.warped = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (this.wave == 7 && !this.told) {
					_root.chatting = true;
					this.chat = true;
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Enough! Try this on for size!';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = ' ';
						this.told = true;
						this.chat = false;
						_root.chatting = false;
						_root.warping = true;
						this.warped = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (this.wave == 8 && !this.told) {
					_root.chatting = true;
					this.chat = true;
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Enough! Try this on for size!';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = ' ';
						this.told = true;
						this.chat = false;
						_root.chatting = false;
						_root.warping = true;
						this.warped = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (this.wave == 9 && !this.told) {
					_root.chatting = true;
					this.chat = true;
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'Its time I handled you myself! You wont be as lucky as you were last time!';
					}
					if (this.chat && _root.chatting && this.message == 1) {
						_root.cam.textbox.text = ' ';
						this.told = true;
						this.chat = false;
						_root.chatting = false;
						_root.warping = true;
						this.warped = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (this.wave == 10 && !this.told) {
					_root.chatting = true;
					this.chat = true;
					if (this.message == 0 && this.chat) {
						_root.cam.textbox.text = 'NO! I cant believe you defeated me again! I will be back!';
					}
					if (this.message == 1 && this.chat) {
						_root.cam.textbox.text = 'You got a Gold Armor set (includes a matching gold helmet). This can be equiped from your equipment screen.';
						_root.getItems = true;
						_root.newitem = 25;
					}
					if (this.chat && _root.chatting && this.message == 2) {
						_root.cam.textbox.text = ' ';
						this.told = true;
						this.chat = false;
						_root.chatting = false;
						_root.warping = true;
						_root.haveset3 = true;
						_root.havehelmet3 = true;
						_root.oldroom = 'ocean';
						_root.room = 'abandoned';
						_root.newitem = 0;
						_root.getItems = false;
						if (_root.sfx) {
							_root.stopmsg.start(0, 1);
						}
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3649	{
	}
	movieClip 3651	{
		frame 2 {
			stop();
		}
	}
	movieClip 3653	{
	}
	movieClip 3655	{
	}
	frame 179 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.genericsound = false;
		_root.goblinsound = true;
	}
	movieClip 3657	{
	}
	movieClip 3658	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 8;
				}
				if (this.hitTest(_root.box) && Key.isDown(65) && !_root.pause && !_root.warping) {
					_root.screen = 4;
					_root.pause = true;
					_root.menusc.gotoAndStop(4);
					_root.menusc._visible = true;
					_root.apush = true;
					_root.menusc.deciding = true;
					if (_root.sfx) {
						_root.openmenu.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'mystiker2';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'mystiker4';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'mystiker6';
				}
			}
		}
	}
	instance of movieClip 740	{
		onClipEvent (load) {
			this.health = 12;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 28) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 654	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.throwfire = false;
			this.atktime = random(30) + 40;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 400;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wizard.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wizard.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				--this.atktime;
				this.wizard.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 20 && this._y < _root.box._y + 80) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.hitTest(_root.hero) && !this.throwfire && this.alive && !this.hurt && !this.hurted) {
				this.wizard.gotoAndStop(2);
			}
			if (this.atktime <= 0) {
				this.throwfire = true;
			}
			if (this.throwfire && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.wizard.gotoAndStop(4);
			}
			if (this.throwfire && this.wizard.throws._currentframe == 10) {
				this.atktime = random(30) + 40;
				this.throwfire = false;
			}
			if (this.wizard.throws._currentframe == 6) {
				firess = _root.fireen.duplicateMovieClip('fireen_' + _root.ar, _root.getNextHighestDepth());
				firess.fired = true;
				firess.dir = this.dir;
				++_root.ar;
				firess._x = this._x;
				firess._y = this._y;
				_root.flamesoundpl = true;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.wizard.gotoAndStop(3);
			}
			if (this.wizard._currentframe == 3 && this.wizard.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 556	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = random(2) + 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 15) {
					this.swordslash = false;
					this.stance = 0;
				}
				if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(5);
					--this.defence;
				}
				if (this.defending && this.defence <= 0) {
					this.defence = random(20) + 1;
					this.stance = 0;
					this.defending = false;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3660	{
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1190	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 2;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1755	{
			onClipEvent (load) {
				this.timer = 600;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.bushcut.start(0, 1);
					}
				}
				if (this._currentframe !== 1 && this.timer > 0) {
					this.timer -= 1;
				}
				if (this._currentframe !== 1 && this.timer <= 0) {
					this.timer = 600;
					this.gotoAndStop(1);
				}
			}
		}
	}
	movieClip 3661	{
	}
	instance daynight of movieClip 1786	{
		onClipEvent (enterFrame) {
			if (!_root.days) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
				if (!_root.sundown) {
					this.gotoAndStop(2);
					if (this.sundown._currentframe == 40) {
						_root.sundown = true;
					}
				}
			}
			if (!_root.days && _root.sundown && this._currentframe !== 3) {
				this.gotoAndStop(3);
			}
			if (_root.days && _root.sundown) {
				this._x = _root.cam._x;
				this._y = _root.can._y;
				this.gotoAndStop(4);
				if (this.sunup._currentframe == 40) {
					_root.sundown = false;
				}
			}
			if (_root.days && !_root.sundown && this._currentframe !== 1) {
				this.gotoAndStop(1);
			}
			if (_root.rainchance == 1) {
				this._x = _root.cam._x;
				this._y = _root.cam._y;
			}
		}
	}
	frame 181 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.genericsound = false;
		_root.goblinsound = true;
	}
	movieClip 3662	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'mystiker';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'mystiker3';
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				_root.enemies -= 1;
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				_root.enemies -= 1;
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 428	{
		onClipEvent (load) {
			this.health = 4;
			this.spd = 1;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 1) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 1;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 1) {
					this.spd = 2;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				_root.enemies -= 1;
				this.alive = false;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.gotoAndStop(5);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(1);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 2359	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.vis = true;
			this._alpha = 100;
			if (!enemiesadded) {
				_root.enemies += 1;
				enemiesadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this._alpha > 0 && this.vis) {
					--this._alpha;
				}
				if (this._alpha <= 0 && this.vis) {
					this.vis = false;
				} else {
					if (this._alpha >= 100 && !this.vis) {
						this.vis = true;
					}
				}
				if (this._alpha < 100 && !this.vis) {
					++this._alpha;
				}
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.ghost.gotoAndStop(1);
					this.ghost.ghost.play();
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.ghost.gotoAndStop(8);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 20, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 20, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 5;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.ghost.gotoAndStop(3);
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 3;
					} else {
						if (_root.sword == 3) {
							this.health -= 4;
						} else {
							if (_root.sword == 4) {
								this.health -= 5;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.ghost.gotoAndStop(2);
			}
			if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 2359	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.vis = true;
			this._alpha = 100;
			if (!enemiesadded) {
				_root.enemies += 1;
				enemiesadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this._alpha > 0 && this.vis) {
					--this._alpha;
				}
				if (this._alpha <= 0 && this.vis) {
					this.vis = false;
				} else {
					if (this._alpha >= 100 && !this.vis) {
						this.vis = true;
					}
				}
				if (this._alpha < 100 && !this.vis) {
					++this._alpha;
				}
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.ghost.gotoAndStop(1);
					this.ghost.ghost.play();
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.ghost.gotoAndStop(8);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 20, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 20, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 5;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.ghost.gotoAndStop(3);
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 3;
					} else {
						if (_root.sword == 3) {
							this.health -= 4;
						} else {
							if (_root.sword == 4) {
								this.health -= 5;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.ghost.gotoAndStop(2);
			}
			if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 2359	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.vis = true;
			this._alpha = 100;
			if (!enemiesadded) {
				_root.enemies += 1;
				enemiesadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this._alpha > 0 && this.vis) {
					--this._alpha;
				}
				if (this._alpha <= 0 && this.vis) {
					this.vis = false;
				} else {
					if (this._alpha >= 100 && !this.vis) {
						this.vis = true;
					}
				}
				if (this._alpha < 100 && !this.vis) {
					++this._alpha;
				}
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.ghost.gotoAndStop(1);
					this.ghost.ghost.play();
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.ghost.gotoAndStop(8);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 20, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 20, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 5;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.ghost.gotoAndStop(3);
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 3;
					} else {
						if (_root.sword == 3) {
							this.health -= 4;
						} else {
							if (_root.sword == 4) {
								this.health -= 5;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.ghost.gotoAndStop(2);
			}
			if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3664	{
	}
	movieClip 3665	{
	}
	frame 183 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.genericsound = false;
		_root.goblinsound = true;
		_root.box._x = 830.2000000000001;
		_root.box._y = 1886.65;
		_root.cam._x = _root.box._x;
		_root.cam._y = _root.box._y - 200;
	}
	movieClip 3666	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'mystiker2';
				}
			}
		}
	}
	instance of movieClip 503	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.skeleton.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.skeleton.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.skeleton.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.skeleton.gotoAndStop(4);
			}
			if (this.swordslash && this.skeleton.attack._currentframe == 13) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.skeleton.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.skeleton.gotoAndStop(3);
			}
			if (this.skeleton._currentframe == 3 && this.skeleton.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 600	{
		onClipEvent (load) {
			this.health = 7;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wolf.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wolf.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.wolf.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.wolf.gotoAndStop(4);
				}
				if (this.swordslash && this.wolf.attack._currentframe == 17) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.wolf.gotoAndStop(3);
			}
			if (this.wolf._currentframe == 3 && this.wolf.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 600	{
		onClipEvent (load) {
			this.health = 7;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wolf.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wolf.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.wolf.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.wolf.gotoAndStop(4);
				}
				if (this.swordslash && this.wolf.attack._currentframe == 17) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.wolf.gotoAndStop(3);
			}
			if (this.wolf._currentframe == 3 && this.wolf.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3668	{
	}
	movieClip 3669	{
	}
	frame 185 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.genericsound = false;
		_root.goblinsound = true;
	}
	movieClip 3670	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'mystiker';
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'mystiker5';
				}
			}
		}
	}
	instance of movieClip 600	{
		onClipEvent (load) {
			this.health = 7;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wolf.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wolf.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.wolf.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.wolf.gotoAndStop(4);
				}
				if (this.swordslash && this.wolf.attack._currentframe == 17) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.wolf.gotoAndStop(3);
			}
			if (this.wolf._currentframe == 3 && this.wolf.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 600	{
		onClipEvent (load) {
			this.health = 7;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wolf.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wolf.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.wolf.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.wolf.gotoAndStop(4);
				}
				if (this.swordslash && this.wolf.attack._currentframe == 17) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.wolf.gotoAndStop(3);
			}
			if (this.wolf._currentframe == 3 && this.wolf.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 2359	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.vis = true;
			this._alpha = 100;
			if (!enemiesadded) {
				_root.enemies += 1;
				enemiesadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this._alpha > 0 && this.vis) {
					--this._alpha;
				}
				if (this._alpha <= 0 && this.vis) {
					this.vis = false;
				} else {
					if (this._alpha >= 100 && !this.vis) {
						this.vis = true;
					}
				}
				if (this._alpha < 100 && !this.vis) {
					++this._alpha;
				}
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.ghost.gotoAndStop(1);
					this.ghost.ghost.play();
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.ghost.gotoAndStop(8);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 20, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 20, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 5;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.ghost.gotoAndStop(3);
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 3;
					} else {
						if (_root.sword == 3) {
							this.health -= 4;
						} else {
							if (_root.sword == 4) {
								this.health -= 5;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.ghost.gotoAndStop(2);
			}
			if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 2359	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.vis = true;
			this._alpha = 100;
			if (!enemiesadded) {
				_root.enemies += 1;
				enemiesadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this._alpha > 0 && this.vis) {
					--this._alpha;
				}
				if (this._alpha <= 0 && this.vis) {
					this.vis = false;
				} else {
					if (this._alpha >= 100 && !this.vis) {
						this.vis = true;
					}
				}
				if (this._alpha < 100 && !this.vis) {
					++this._alpha;
				}
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.ghost.gotoAndStop(1);
					this.ghost.ghost.play();
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.ghost.gotoAndStop(8);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 20, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 20, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 5;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.ghost.gotoAndStop(3);
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 3;
					} else {
						if (_root.sword == 3) {
							this.health -= 4;
						} else {
							if (_root.sword == 4) {
								this.health -= 5;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.ghost.gotoAndStop(2);
			}
			if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3672	{
	}
	movieClip 3673	{
	}
	frame 187 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.genericsound = false;
		_root.goblinsound = true;
		_root.box._x = 830.2000000000001;
		_root.box._y = 1886.65;
		_root.cam._x = _root.box._x;
		_root.cam._y = _root.box._y - 200;
	}
	movieClip 3674	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'mystiker4';
				}
			}
		}
	}
	instance of movieClip 785	{
		onClipEvent (load) {
			this.health = 13;
			this.spd = 5;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 785	{
		onClipEvent (load) {
			this.health = 13;
			this.spd = 5;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 3646	{
		onClipEvent (load) {
			this.health = 25;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 6) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
				if (!_root.havemystikerkey) {
					newkey = _root.keydup.duplicateMovieClip('key', _root.getNextHighestDepth());
					newkey._x = this._x;
					newkey._y = this._y;
					newkey.key = 3;
				}
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	frame 189 {
		_root.walking = 1;
		_root.reveriemusic = false;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.boss1 = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.genericsound = false;
		_root.goblinsound = true;
		_root.box._x = 830.2000000000001;
		_root.box._y = 1886.65;
		_root.cam._x = _root.box._x;
		_root.cam._y = _root.box._y - 200;
	}
	movieClip 3675	{
	}
	movieClip 3677	{
	}
	movieClip 3679	{
	}
	movieClip 3682	{
	}
	movieClip 3684	{
	}
	movieClip 3686	{
	}
	movieClip 3689	{
	}
	movieClip 3690	{
		frame 1 {
			stop();
		}
	}
	movieClip 3693	{
	}
	movieClip 3695	{
	}
	movieClip 3697	{
	}
	movieClip 3700	{
	}
	movieClip 3701	{
		frame 1 {
			stop();
		}
	}
	movieClip 3702	{
		instance of movieClip 3690	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1 && !_root.mystikerunlocked2) {
						this.gotoAndStop(2);
						_root.mystikerunlocked2 = true;
					}
					++i;
				}
				if (_root.mystikerunlocked2 && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 3701	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && !_root.havesword4 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup)) {
					_root.newitem = 26;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got the Mystik Sword! This is the most powerful sword you have found to date! It gleams with a golden blade, its extremely high quality.';
					_root.getItems = true;
					this.gotoAndStop(3);
					if (_root.sfx) {
						_root.openchest.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65)) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					_root.havesword4 = true;
					_root.cam.textbox.play();
					_root.getItems = false;
					if (_root.sfx) {
						_root.chatwindorclose.start(0, 1);
					}
				}
				if (this.hitTest(_root.hero) && !_root.havesword4) {
					this.gotoAndStop(2);
				}
				if (_root.havesword4 && !_root.chatting) {
					this.gotoAndStop(3);
				} else {
					if (!_root.havesword4 && !this.hitTest(_root.hero) && !_root.chatting) {
						this.gotoAndStop(1);
					}
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 3503	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && !_root.mystikerunlocked && _root.havemystikerkey) {
					_root.mystikerunlocked = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.mystikerunlocked && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'mystiker';
				}
			}
		}
	}
	instance of movieClip 785	{
		onClipEvent (load) {
			this.health = 13;
			this.spd = 5;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 785	{
		onClipEvent (load) {
			this.health = 13;
			this.spd = 5;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3704	{
		instance of movieClip 3512	{
			onClipEvent (enterFrame) {
				if (_root.mystikerunlocked && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 3512	{
			onClipEvent (enterFrame) {
				if (_root.mystikerunlocked2 && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 3705	{
	}
	frame 192 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3706	{
		instance of movieClip 3448	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door28locked && _root.keys > 0) {
					_root.door28locked = false;
					_root.keys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door28locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung3';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door28locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.door28locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press A to exit the dialogue.\rPress S to use the lantern and leave the nightmare.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					_root.oldroom = _root.room;
					_root.room = 'pub';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3708	{
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung2';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 194 {
		stop();
		_root.walking = 2;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
		_root.box._x = 852.35;
		_root.box._y = 553.15;
		_root.cam._x = _root.box._x - 200;
		_root.cam._y = _root.box._y;
	}
	movieClip 3716	{
		frame 1 {
			stop();
		}
		frame 10 {
			stop();
		}
	}
	movieClip 3717	{
		instance sw1 of movieClip 3031	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _root.uncovered) {
						this.gotoAndStop(2);
						_root['arrowdup_' + i].removeMovieClip();
					}
					++i;
				}
			}
		}
		instance of movieClip 3716	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this._currentframe == 1) {
						this.play();
						_root.uncovered = true;
					}
					++i;
				}
			}
		}
		instance of movieClip 3716	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
			}
		}
		instance of movieClip 3716	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
			}
		}
		instance of movieClip 3716	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemeis -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemeis -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemeis -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3719	{
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.newitem = 11;
					_root.chatting = true;
					this.chat = true;
					_root.cam.textbox.text = 'You got a small key! You can use this to unlock rooms in this dungeon!';
					_root.getItems = true;
					_root.keys += 1;
					_root.havekey15 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.maps.sw1._currentframe == 2 && !_root.chestappeared17) {
					this.gotoAndStop(3);
					if (this.appears._currentframe == 7) {
						_root.chestappeared17 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.maps.sw1._currentframe !== 2 && !_root.chestappeared17) {
					this.gotoAndStop(4);
				}
				if (_root.havekey15 && _root.chestappeared17) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey15 && _root.chestappeared17) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3720	{
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 196 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3721	{
		instance of movieClip 3448	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung4';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 837	{
		onClipEvent (load) {
			this.health = 14;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 837	{
		onClipEvent (load) {
			this.health = 14;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3723	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.openchest.start(0, 1);
					_root.newitem = 11;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got a small key! This can be used to open locked doors throughout the dungeon!';
					this.chat = true;
					_root.keys += 1;
					_root.getItems = true;
					_root.havekey16 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.enemies > 0 && !_root.chestappeared18) {
					this.gotoAndStop(4);
				}
				if (_root.enemies <= 0 && !_root.chestappeared18) {
					this.gotoAndStop(3);
					_root.interested = true;
					_root.intx = 539.4500000000001;
					_root.inty = 529.4500000000001;
					if (this.appears._currentframe == 7) {
						_root.chestappeared18 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havekey16 && _root.chestappeared18) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey16 && _root.chestappeared18) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3724	{
		instance of movieClip 3462	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 198 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3725	{
		instance of movieClip 3503	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && _root.keys > 0 && _root.door29locked) {
					_root.door29locked = false;
					_root.keys -= 1;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (!_root.door29locked && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 3729	{
	}
	movieClip 3732	{
	}
	movieClip 3733	{
	}
	instance of movieClip 3733	{
		onClipEvent (load) {
			this.message = 0;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				_root.aicon = 7;
			}
			if (this.message == 0) {
				if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
					_root.chatting = true;
					this.chat = true;
					this.apush = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
			}
			if (this.message == 0 && this.chat) {
				_root.cam.textbox.text = 'Thank you so much for defeating those monsters and setting me free. I dont know what would have happened if you didnt come. Will you please take me home?\rPress A to exit the dialogue.\rPress S to use the lantern and free him from the nightmare.';
			}
			if (this.message == 0 && this.chat && Key.isDown(83)) {
				_root.chatting = false;
				_root.cam.textbox.text = ' ';
				_root.warping = true;
				_root.pub1saved = true;
				_root.room = 'pub';
			}
			if (this.chat && _root.chatting && this.message == 1) {
				_root.chatting = false;
				_root.cam.textbox.text = ' ';
				if (_root.sfx) {
					_root.stopmsg.start(0, 1);
				}
			}
			if (Key.isDown(65) && !this.apush && this.chat) {
				++this.message;
				this.apush = true;
			}
			if (!Key.isDown(65) && this.apush && this.chat) {
				this.apush = false;
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.chat = false;
				this.message = 0;
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65) && this.chat) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 3646	{
		onClipEvent (load) {
			this.health = 25;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 6) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3735	{
		frame 1 {
			stop();
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 3512	{
			onClipEvent (enterFrame) {
				if (!_root.door29locked && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 3737	{
		instance of movieClip 3462	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung3';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 206 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3739	{
	}
	movieClip 3744	{
	}
	movieClip 3745	{
		frame 10 {
			stop();
		}
	}
	movieClip 3746	{
		frame 1 {
			stop();
		}
	}
	movieClip 3747	{
		instance of movieClip 3448	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door30locked && _root.keys > 0) {
					_root.door30locked = false;
					_root.keys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door30locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung6';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door30locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.door30locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 3746	{
			onClipEvent (load) {
				this.gotoAndStop(3);
			}
			onClipEvent (enterFrame) {
				if (_root.maps.sw1._visible && _root.maps.sw2._visible && this._currentframe == 3) {
					this.gotoAndStop(2);
				}
				if (this._currentframe == 2 && this.appear._currentframe == 10) {
					this.gotoAndStop(1);
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press A to exit the dialogue.\rPress S to use the lantern and leave the nightmare.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					_root.oldroom = _root.room;
					_root.room = 'pub';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemeis -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemeis -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemeis -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3749	{
		frame 1 {
			stop();
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3752	{
		frame 1 {
			stop();
		}
	}
	instance BG2 of movieClip 3752	{
		onClipEvent (enterFrame) {
			if (_root.maps.sw1._visible && _root.maps.sw2._visible && this._currentframe == 1) {
				this.gotoAndStop(2);
			}
		}
	}
	movieClip 3753	{
		instance sw1 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
					}
					if (this.hitTest(_root['firedup_' + i]) && !this._visible) {
						this._visible = true;
					}
					++i;
				}
			}
		}
		instance sw2 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
					}
					if (this.hitTest(_root['firedup_' + i]) && !this._visible) {
						this._visible = true;
					}
					++i;
				}
			}
		}
	}
	frame 208 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3754	{
		instance of movieClip 3448	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung8';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1743	{
			onClipEvent (enterFrame) {
				if (this._visible && _root.pub1saved) {
					this._visible = false;
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 837	{
		onClipEvent (load) {
			this.health = 14;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 417	{
		onClipEvent (load) {
			this.health = 6;
			this.spd = 2;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 15;
			this.stunned = false;
			this.stuntime = 200;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned && !this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.slowmove.play();
					this.gotoAndStop(2);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.slowmove.stop();
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (!this.attacking && this.spd !== 2) {
				this.timer = 0;
				this.waited = true;
				this.waittime = 0;
				this.moving = false;
				this.spd = 2;
			}
			if (this.attacking && !_root.pause && this.alive && !this.hurt && !this.hurted && !_root.chatting && !this.stunned) {
				this.gotoAndStop(1);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
				if (this.spd == 2) {
					this.spd = 3;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(4);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 2;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(3);
			}
			if (this.pain._currentframe == 6 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 15;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 1;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 2;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 837	{
		onClipEvent (load) {
			this.health = 14;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3757	{
		frame 1 {
			stop();
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	instance BG of movieClip 3757	{
		onClipEvent (enterFrame) {
			if (this._currentframe == 1 && _root.pub1saved) {
				this.gotoAndStop(2);
			}
		}
	}
	movieClip 3758	{
		instance of movieClip 3462	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung5';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung7';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 210 {
		stop();
		_root.walking = 2;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
		_root.box._x = 852.35;
		_root.box._y = 553.15;
		_root.cam._x = _root.box._x - 200;
		_root.cam._y = _root.box._y;
	}
	movieClip 3759	{
	}
	instance of movieClip 600	{
		onClipEvent (load) {
			this.health = 7;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wolf.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wolf.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.wolf.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.wolf.gotoAndStop(4);
				}
				if (this.swordslash && this.wolf.attack._currentframe == 17) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.wolf.gotoAndStop(3);
			}
			if (this.wolf._currentframe == 3 && this.wolf.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 2359	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.vis = true;
			this._alpha = 100;
			if (!enemiesadded) {
				_root.enemies += 1;
				enemiesadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this._alpha > 0 && this.vis) {
					--this._alpha;
				}
				if (this._alpha <= 0 && this.vis) {
					this.vis = false;
				} else {
					if (this._alpha >= 100 && !this.vis) {
						this.vis = true;
					}
				}
				if (this._alpha < 100 && !this.vis) {
					++this._alpha;
				}
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.ghost.gotoAndStop(1);
					this.ghost.ghost.play();
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.ghost.gotoAndStop(8);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 20, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 20, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 5;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.ghost.gotoAndStop(3);
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 3;
					} else {
						if (_root.sword == 3) {
							this.health -= 4;
						} else {
							if (_root.sword == 4) {
								this.health -= 5;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.ghost.gotoAndStop(2);
			}
			if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 2359	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.vis = true;
			this._alpha = 100;
			if (!enemiesadded) {
				_root.enemies += 1;
				enemiesadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this._alpha > 0 && this.vis) {
					--this._alpha;
				}
				if (this._alpha <= 0 && this.vis) {
					this.vis = false;
				} else {
					if (this._alpha >= 100 && !this.vis) {
						this.vis = true;
					}
				}
				if (this._alpha < 100 && !this.vis) {
					++this._alpha;
				}
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.ghost.gotoAndStop(1);
					this.ghost.ghost.play();
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.ghost.gotoAndStop(8);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 20, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 20, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 5;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.ghost.gotoAndStop(3);
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 3;
					} else {
						if (_root.sword == 3) {
							this.health -= 4;
						} else {
							if (_root.sword == 4) {
								this.health -= 5;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.ghost.gotoAndStop(2);
			}
			if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 2359	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.vis = true;
			this._alpha = 100;
			if (!enemiesadded) {
				_root.enemies += 1;
				enemiesadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				if (this._alpha > 0 && this.vis) {
					--this._alpha;
				}
				if (this._alpha <= 0 && this.vis) {
					this.vis = false;
				} else {
					if (this._alpha >= 100 && !this.vis) {
						this.vis = true;
					}
				}
				if (this._alpha < 100 && !this.vis) {
					++this._alpha;
				}
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.ghost.gotoAndStop(1);
					this.ghost.ghost.play();
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.ghost.ghost.gotoAndStop(8);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 20, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 20, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 20, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 20, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 5;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
				this.ghost.gotoAndStop(3);
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 3;
					} else {
						if (_root.sword == 3) {
							this.health -= 4;
						} else {
							if (_root.sword == 4) {
								this.health -= 5;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.ghost.gotoAndStop(2);
			}
			if (this.ghost._currentframe == 2 && this.ghost.ghost._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 2;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3760	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3761	{
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung6';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 212 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3762	{
	}
	instance of movieClip 740	{
		onClipEvent (load) {
			this.health = 12;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			this.vis = true;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (this._alpha > 0 && this.vis) {
				--this._alpha;
			}
			if (this._alpha <= 0 && this.vis) {
				this.vis = false;
			} else {
				if (this._alpha >= 100 && !this.vis) {
					this.vis = true;
				}
			}
			if (this._alpha < 100 && !this.vis) {
				++this._alpha;
			}
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 28) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 740	{
		onClipEvent (load) {
			this.health = 12;
			this.spd = 4;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			this.vis = true;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (this._alpha > 0 && this.vis) {
				--this._alpha;
			}
			if (this._alpha <= 0 && this.vis) {
				this.vis = false;
			} else {
				if (this._alpha >= 100 && !this.vis) {
					this.vis = true;
				}
			}
			if (this._alpha < 100 && !this.vis) {
				++this._alpha;
			}
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.goblin.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.goblin.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.goblin.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.goblin.gotoAndStop(4);
				}
				if (this.swordslash && this.goblin.attack._currentframe == 28) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 6;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 8;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.goblin.gotoAndStop(3);
			}
			if (this.goblin._currentframe == 3 && this.goblin.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3763	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.openchest.start(0, 1);
					_root.newitem = 11;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got a small key! This can be used to open locked doors throughout the dungeon!';
					this.chat = true;
					_root.keys += 1;
					_root.getItems = true;
					_root.havekey17 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.enemies > 0 && !_root.chestappeared19) {
					this.gotoAndStop(4);
				}
				if (_root.enemies <= 0 && !_root.chestappeared19) {
					this.gotoAndStop(3);
					_root.interested = true;
					_root.intx = 539.4500000000001;
					_root.inty = 529.4500000000001;
					if (this.appears._currentframe == 7) {
						_root.chestappeared19 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havekey17 && _root.chestappeared19) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey17 && _root.chestappeared19) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3765	{
		instance of movieClip 3462	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung6';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung9';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 214 {
		stop();
		_root.walking = 2;
		_root.box._x = 168.6;
		_root.box._y = 555.2000000000001;
		_root.cam._x = _root.box._x + 200;
		_root.cam._y = _root.box._y;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3766	{
		instance of movieClip 3503	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && _root.keys > 0 && _root.door31locked) {
					_root.door31locked = false;
					_root.keys -= 1;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (!_root.door31locked && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 3770	{
	}
	movieClip 3774	{
	}
	movieClip 3775	{
	}
	instance of movieClip 3775	{
		onClipEvent (load) {
			this.message = 0;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				_root.aicon = 7;
			}
			if (this.message == 0) {
				if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
					_root.chatting = true;
					this.chat = true;
					this.apush = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
			}
			if (this.message == 0 && this.chat) {
				_root.cam.textbox.text = 'Thank you so much for defeating those monsters and setting me free. I dont know what would have happened if you didnt come. Will you please take me home?\rPress A to exit the dialogue.\rPress S to use the lantern and free him from the nightmare.';
			}
			if (this.message == 0 && this.chat && Key.isDown(83)) {
				_root.chatting = false;
				_root.cam.textbox.text = ' ';
				_root.warping = true;
				_root.pub2saved = true;
				_root.room = 'pub';
			}
			if (this.chat && _root.chatting && this.message == 1) {
				_root.chatting = false;
				_root.cam.textbox.text = ' ';
				if (_root.sfx) {
					_root.stopmsg.start(0, 1);
				}
			}
			if (Key.isDown(65) && !this.apush && this.chat) {
				++this.message;
				this.apush = true;
			}
			if (!Key.isDown(65) && this.apush && this.chat) {
				this.apush = false;
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.chat = false;
				this.message = 0;
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65) && this.chat) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 837	{
		onClipEvent (load) {
			this.health = 14;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 837	{
		onClipEvent (load) {
			this.health = 14;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3776	{
		frame 1 {
			stop();
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 3512	{
			onClipEvent (enterFrame) {
				if (!_root.door31locked && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 3778	{
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung8';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 217 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3779	{
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press A to exit the dialogue.\rPress S to use the lantern and leave the nightmare.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					_root.oldroom = _root.room;
					_root.room = 'pub';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance of movieClip 3448	{
			onClipEvent (enterFrame) {
				if (_root.base.curtain._currentframe !== 1) {
					if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
						_root.oldroom = _root.room;
						_root.warping = true;
						_root.room = 'ndung12';
						plays = true;
					}
					if (_root.sfx && plays) {
						_root.dooropen.start(0, 1);
						plays = false;
					}
				}
			}
		}
		instance of movieClip 1743	{
			onClipEvent (enterFrame) {
				if (_root.pub1saved && _root.pub2saved && this._visible) {
					this._visible = false;
				}
			}
		}
		instance curtain of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
	}
	instance of movieClip 600	{
		onClipEvent (load) {
			this.health = 7;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wolf.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wolf.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.wolf.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.wolf.gotoAndStop(4);
				}
				if (this.swordslash && this.wolf.attack._currentframe == 17) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.wolf.gotoAndStop(3);
			}
			if (this.wolf._currentframe == 3 && this.wolf.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 600	{
		onClipEvent (load) {
			this.health = 7;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 250;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash && !this.stunned) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wolf.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wolf.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
				this.wolf.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted && !this.stunned) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (!this.stunned) {
				if (this.inrange && this.stance == 0) {
					this.stance = 1;
				}
				if (this.stance == 1 && !this.swordslash) {
					this.swordslash = true;
					this.defending = false;
				}
				if (this.stance == 2 && !this.defending) {
					this.defending = true;
					this.swordslash = false;
				}
				if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
					this.wolf.gotoAndStop(4);
				}
				if (this.swordslash && this.wolf.attack._currentframe == 17) {
					this.swordslash = false;
					this.stance = 0;
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 4;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.stunned && !this.hurt && !this.hurted && this._currentframe !== 6 && this.alive) {
				this.gotoAndStop(6);
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurted = true;
				this.stunned = true;
				this.moving = false;
				if (_root.sfx) {
					_root.stunned.start(0, 1);
				}
			}
			if (this.stunned && this.alive && !_root.pause && !_root.chatting && this.stuntime > 0) {
				--this.stuntime;
			}
			if (this.stunned && this.stuntime <= 0) {
				this.stunned = false;
				this.stuntime = 200;
				this.gotoAndStop(this.dir);
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(this.dir);
				this.wolf.gotoAndStop(3);
			}
			if (this.wolf._currentframe == 3 && this.wolf.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3782	{
		frame 1 {
			stop();
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.openchest.start(0, 1);
					_root.newitem = 11;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got a small key! This can be used to open locked doors throughout the dungeon!';
					this.chat = true;
					_root.keys += 1;
					_root.getItems = true;
					_root.havekey18 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.enemies > 0 && !_root.chestappeared20) {
					this.gotoAndStop(4);
				}
				if (_root.enemies <= 0 && !_root.chestappeared20) {
					this.gotoAndStop(3);
					_root.interested = true;
					_root.intx = 539.4500000000001;
					_root.inty = 529.4500000000001;
					if (this.appears._currentframe == 7) {
						_root.chestappeared20 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havekey18 && _root.chestappeared20) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey18 && _root.chestappeared20) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	instance BG of movieClip 3782	{
		onClipEvent (enterFrame) {
			if (_root.pub1saved && _root.pub2saved && this._currentframe == 1) {
				this.gotoAndStop(2);
			}
		}
	}
	movieClip 3783	{
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung11';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 219 {
		stop();
		_root.walking = 2;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
		_root.box._x = 852.35;
		_root.box._y = 553.15;
		_root.cam._x = _root.box._x - 200;
		_root.cam._y = _root.box._y;
	}
	movieClip 3784	{
		instance of movieClip 3448	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung13';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
	}
	instance of movieClip 785	{
		onClipEvent (load) {
			this.health = 13;
			this.spd = 5;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 785	{
		onClipEvent (load) {
			this.health = 13;
			this.spd = 5;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3786	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.openchest.start(0, 1);
					_root.newitem = 11;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got a small key! This can be used to open locked doors throughout the dungeon!';
					this.chat = true;
					_root.keys += 1;
					_root.getItems = true;
					_root.havekey19 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.enemies > 0 && !_root.chestappeared21) {
					this.gotoAndStop(4);
				}
				if (_root.enemies <= 0 && !_root.chestappeared21) {
					this.gotoAndStop(3);
					_root.interested = true;
					_root.intx = 539.4500000000001;
					_root.inty = 529.4500000000001;
					if (this.appears._currentframe == 7) {
						_root.chestappeared21 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havekey19 && _root.chestappeared21) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey19 && _root.chestappeared21) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3787	{
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung10';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 221 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3789	{
		instance of movieClip 3746	{
			onClipEvent (load) {
				this.gotoAndStop(3);
			}
			onClipEvent (enterFrame) {
				if (_root.maps.sw1._visible && _root.maps.sw2._visible && this._currentframe == 3) {
					this.gotoAndStop(2);
				}
				if (this._currentframe == 2 && this.appear._currentframe == 10) {
					this.gotoAndStop(1);
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemeis -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemeis -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 443	{
		onClipEvent (load) {
			this.health = 3;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 7;
			this.stunned = false;
			this.stuntime = 200;
			this.wingsout = false;
			this.chasing = false;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.chasing) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(8) + 1;
					this.timer = random(100) + 50;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(400) + 50;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
					this.gotoAndStop(2);
				} else {
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
						this.gotoAndStop(3);
					}
				}
				if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && this.wingsout) {
					this.gotoAndStop(5);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned && !this.wingsout) {
						this.gotoAndStop(1);
					}
				}
				if (this.moving && !this.hurt && !this.hurted && !this.chasing) {
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd;
								this._x += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 85, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
								this._x += this.spd;
								this._y += this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x + 85, this._y, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 5) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 65, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 6) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
								this._y += this.spd;
								this._x -= this.spd;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y + 65, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
					if (this.dir == 7) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
							}
						}
					}
					if (this.dir == 8) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.spd / 2;
								this._x -= this.spd / 2;
							}
						} else {
							if (_root.BG.hitTest(this._x - 45, this._y, true)) {
								this.dir = random(8) + 1;
								if (_root.BG.hitTest(this._x, this._y - 20, true)) {
									this.dir = random(8) + 1;
								}
							}
						}
					}
				}
			}
			if (this.chasing && !this.ctimed) {
				this.ctime = 70;
				this.ctimed = true;
			}
			if (this.ctime > 0 && this.ctimed) {
				--this.ctime;
			}
			if (this.ctime <= 0 && this.ctimed) {
				this.chasing = false;
				this.ctimed = false;
			}
			if (this.chasing && !_root.pause && !this.hurt && !this.hurted && this.alive) {
				this.gotoAndStop(3);
				if (this._x > _root.box._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.spd;
					}
				}
				if (this._x < _root.box._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.spd;
					}
				}
				if (this._y > _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.spd;
					}
				}
				if (this._y < _root.box._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.spd;
					}
				}
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(6);
				this.alive = false;
				_root.enemeis -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.newboom) && this.alive && !this.stunned && !this.hurt && !this.hurted or this.hitTest(_root.hero.hero.hero.hero.shockwave) && this.alive && !this.stunned && !this.hurt && !this.hurted && !this.hitTest(_root.hero.hero.hero.hero.hammer)) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.gotoAndStop(4);
			}
			if (this.pain._currentframe == 7 && this.hurt) {
				this.chasing = true;
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 2;
				}
				if (_root.armor == 2) {
					_root.health -= 1;
				}
				if (_root.armor == 3) {
					_root.health -= 0;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 1;
				}
				if (_root.helmet == 2) {
					_root.health -= 1;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.box) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3791	{
		frame 1 {
			stop();
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.openchest.start(0, 1);
					_root.newitem = 11;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got a small key! This can be used to open locked doors throughout the dungeon!';
					this.chat = true;
					_root.keys += 1;
					_root.getItems = true;
					_root.havekey20 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.havekey20) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey20) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3794	{
		frame 1 {
			stop();
		}
	}
	instance BG2 of movieClip 3794	{
		onClipEvent (enterFrame) {
			if (_root.maps.sw1._visible && _root.maps.sw2._visible && this._currentframe == 1) {
				this.gotoAndStop(2);
			}
		}
	}
	movieClip 3795	{
		instance of movieClip 3462	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung10';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1294	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
					}
					if (this.hitTest(_root['firedup_' + i]) && !this._visible) {
						this._visible = true;
					}
					++i;
				}
			}
		}
		instance of movieClip 1294	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
					}
					if (this.hitTest(_root['firedup_' + i]) && !this._visible) {
						this._visible = true;
					}
					++i;
				}
			}
		}
		instance sw1 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
					}
					if (this.hitTest(_root['firedup_' + i]) && !this._visible) {
						this._visible = true;
					}
					++i;
				}
			}
		}
		instance sw2 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
					}
					if (this.hitTest(_root['firedup_' + i]) && !this._visible) {
						this._visible = true;
					}
					++i;
				}
			}
		}
	}
	frame 223 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3797	{
		instance of movieClip 3448	{
			onClipEvent (enterFrame) {
				if (_root.base.curtain._currentframe !== 1) {
					if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
						_root.oldroom = _root.room;
						_root.warping = true;
						_root.room = 'ndung14';
						plays = true;
					}
					if (_root.sfx && plays) {
						_root.dooropen.start(0, 1);
						plays = false;
					}
				}
			}
		}
		instance curtain of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
	}
	instance of movieClip 654	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.throwfire = false;
			this.atktime = random(30) + 40;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 400;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wizard.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wizard.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				--this.atktime;
				this.wizard.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 20 && this._y < _root.box._y + 80) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.hitTest(_root.hero) && !this.throwfire && this.alive && !this.hurt && !this.hurted) {
				this.wizard.gotoAndStop(2);
			}
			if (this.atktime <= 0) {
				this.throwfire = true;
			}
			if (this.throwfire && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.wizard.gotoAndStop(4);
			}
			if (this.throwfire && this.wizard.throws._currentframe == 10) {
				this.atktime = random(30) + 40;
				this.throwfire = false;
			}
			if (this.wizard.throws._currentframe == 6) {
				firess = _root.fireen.duplicateMovieClip('fireen_' + _root.ar, _root.getNextHighestDepth());
				firess.fired = true;
				firess.dir = this.dir;
				++_root.ar;
				firess._x = this._x;
				firess._y = this._y;
				_root.flamesoundpl = true;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.wizard.gotoAndStop(3);
			}
			if (this.wizard._currentframe == 3 && this.wizard.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 654	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.throwfire = false;
			this.atktime = random(30) + 40;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 400;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wizard.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wizard.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				--this.atktime;
				this.wizard.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 20 && this._y < _root.box._y + 80) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.hitTest(_root.hero) && !this.throwfire && this.alive && !this.hurt && !this.hurted) {
				this.wizard.gotoAndStop(2);
			}
			if (this.atktime <= 0) {
				this.throwfire = true;
			}
			if (this.throwfire && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.wizard.gotoAndStop(4);
			}
			if (this.throwfire && this.wizard.throws._currentframe == 10) {
				this.atktime = random(30) + 40;
				this.throwfire = false;
			}
			if (this.wizard.throws._currentframe == 6) {
				firess = _root.fireen.duplicateMovieClip('fireen_' + _root.ar, _root.getNextHighestDepth());
				firess.fired = true;
				firess.dir = this.dir;
				++_root.ar;
				firess._x = this._x;
				firess._y = this._y;
				_root.flamesoundpl = true;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.wizard.gotoAndStop(3);
			}
			if (this.wizard._currentframe == 3 && this.wizard.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3798	{
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.newitem = 11;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got a small key! This can be used to open locked doors throughout the dungeon!';
					this.chat = true;
					_root.keys += 1;
					_root.getItems = true;
					_root.havekey21 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					if (_root.sfx) {
						_root.chatwindorclose.start(0, 1);
					}
				}
				if (!_root.maps.sw1._visible && !_root.maps.sw2._visible && !_root.maps.sw3._visible && !_root.maps.sw4._visible && !_root.chestappeared22) {
					this.gotoAndStop(4);
				}
				if (_root.maps.sw1._visible && _root.maps.sw2._visible && _root.maps.sw3._visible && _root.maps.sw4._visible && !_root.chestappeared22) {
					this.gotoAndStop(3);
					_root.interested = true;
					_root.intx = 539.4500000000001;
					_root.inty = 529.4500000000001;
					if (this.appears._currentframe == 7) {
						_root.chestappeared22 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havekey21 && _root.chestappeared22) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey21 && _root.chestappeared22) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3800	{
	}
	movieClip 3801	{
		instance of movieClip 3462	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung11';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance sw3 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
					}
					if (this.hitTest(_root['firedup_' + i]) && !this._visible) {
						this._visible = true;
					}
					++i;
				}
			}
		}
		instance sw4 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
					}
					if (this.hitTest(_root['firedup_' + i]) && !this._visible) {
						this._visible = true;
					}
					++i;
				}
			}
		}
		instance sw1 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
					}
					if (this.hitTest(_root['firedup_' + i]) && !this._visible) {
						this._visible = true;
					}
					++i;
				}
			}
		}
		instance sw2 of movieClip 1294	{
			onClipEvent (load) {
				this._visible = false;
			}
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && this._visible) {
						_root['arrowdup_' + i].flamed = true;
					}
					if (this.hitTest(_root['arrowdup_' + i]) && _root['arrowdup_' + i].flamed && !this._visible) {
						this._visible = true;
					}
					if (this.hitTest(_root['firedup_' + i]) && !this._visible) {
						this._visible = true;
					}
					++i;
				}
			}
		}
	}
	frame 225 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3802	{
		instance of movieClip 3503	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && _root.keys > 0 && _root.door32locked) {
					_root.door32locked = false;
					_root.keys -= 1;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (!_root.door32locked && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
		instance of movieClip 3132	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['firedup_' + i]) && this._currentframe == 1) {
						this.play();
					}
					++i;
				}
				if (this._currentframe == 15) {
					loadMovie('', this);
				}
			}
		}
	}
	movieClip 3805	{
	}
	movieClip 3809	{
	}
	movieClip 3810	{
	}
	instance of movieClip 3810	{
		onClipEvent (load) {
			this.message = 0;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				_root.aicon = 7;
			}
			if (this.message == 0) {
				if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
					_root.chatting = true;
					this.chat = true;
					this.apush = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
			}
			if (this.message == 0 && this.chat) {
				_root.cam.textbox.text = 'Thank you so much for defeating those monsters and setting me free. I dont know what would have happened if you didnt come. Will you please take me home?\rPress A to exit the dialogue.\rPress S to use the lantern and free him from the nightmare.';
			}
			if (this.message == 0 && this.chat && Key.isDown(83)) {
				_root.chatting = false;
				_root.cam.textbox.text = ' ';
				_root.warping = true;
				_root.pub3saved = true;
				_root.room = 'pub';
			}
			if (this.chat && _root.chatting && this.message == 1) {
				_root.chatting = false;
				_root.cam.textbox.text = ' ';
				if (_root.sfx) {
					_root.stopmsg.start(0, 1);
				}
			}
			if (Key.isDown(65) && !this.apush && this.chat) {
				++this.message;
				this.apush = true;
			}
			if (!Key.isDown(65) && this.apush && this.chat) {
				this.apush = false;
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.chat = false;
				this.message = 0;
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65) && this.chat) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 3646	{
		onClipEvent (load) {
			this.health = 25;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 6) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3811	{
		frame 1 {
			stop();
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 3512	{
			onClipEvent (enterFrame) {
				if (!_root.door32locked && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 3813	{
		instance of movieClip 3462	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung13';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 229 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3814	{
		instance of movieClip 3448	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door33locked && _root.keys > 0) {
					_root.door33locked = false;
					_root.keys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door33locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung18';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door33locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.door33locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1743	{
			onClipEvent (enterFrame) {
				if (_root.pub1saved && _root.pub2saved && _root.pub3saved && this._visible) {
					this._visible = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press A to exit the dialogue.\rPress S to use the lantern and leave the nightmare.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					_root.oldroom = _root.room;
					_root.room = 'pub';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3817	{
		frame 1 {
			stop();
		}
	}
	instance BG of movieClip 3817	{
		onClipEvent (enterFrame) {
			if (_root.pub1saved && _root.pub2saved && _root.pub3saved && this._currentframe == 1) {
				this.gotoAndStop(2);
			}
		}
	}
	movieClip 3818	{
		instance of movieClip 3462	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung16';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 231 {
		stop();
		_root.box._x = 519;
		_root.box._y = 209.25;
		_root.cam._x = 519;
		_root.cam._y = _root.box._y + 200;
		_root.walking = 2;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3819	{
		instance of movieClip 3448	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung15';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	instance of movieClip 785	{
		onClipEvent (load) {
			this.health = 13;
			this.spd = 5;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 785	{
		onClipEvent (load) {
			this.health = 13;
			this.spd = 5;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 300;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 115;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 2;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3821	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3822	{
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung17';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 233 {
		stop();
		_root.walking = 2;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
		_root.box._x = 852.35;
		_root.box._y = 553.15;
		_root.cam._x = _root.box._x - 200;
		_root.cam._y = _root.box._y;
	}
	movieClip 3823	{
		instance sw1 of movieClip 3031	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_new' + i]) && this._currentframe == 1) {
						this.gotoAndStop(2);
						_root['arrowdup_new' + i].removeMovieClip();
					}
					++i;
				}
			}
		}
	}
	movieClip 3825	{
		frame 1 {
			stop();
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.newitem = 6;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got the boomerang! You can equip this to the D key from the menu screen by pressing A! While equipped you can throw it with the D key.';
					_root.getItems = true;
					_root.haveboomerang = true;
					this.chat = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					if (_root.sfx) {
						_root.chatwindorclose.start(0, 1);
					}
				}
				if (!_root.haveboomerang && !_root.chestappeared23 && _root.maps.sw1._currentframe == 1) {
					this.gotoAndStop(4);
				}
				if (!_root.haveboomerang && !_root.chestappeared23 && _root.maps.sw1._currentframe == 2) {
					this.gotoAndStop(3);
					if (this.appears._currentframe == 7) {
						_root.chestappeared23 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.haveboomerang && _root.chestappeared23) {
					this.gotoAndStop(2);
				}
				if (!_root.haveboomerang && _root.chestappeared23) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance arrowshooter of movieClip 381	{
			onClipEvent (load) {
				this.dir = 3;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this._currentframe !== this.dir && !this.pickedup) {
					this.gotoAndStop(this.dir);
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe !== 'none' && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 4;
					this.pickedup = true;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i])) {
						_root['arrowdup_' + i].removeMovieClip();
						arrowfire = _root.arrowdups.duplicateMovieClip('arrowdup_new' + _root.ar, _root.getNextHighestDepth());
						arrowfire.fired = true;
						_root.pickobject = 4;
						arrowfire.dir = this.dir;
						++_root.ar;
						arrowfire._x = this._x;
						arrowfire._y = this._y;
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hit or this.hitTest(_root.newboom) && !this.hit) {
					++this.dir;
					this.hit = true;
					timer = 10;
				}
				if (this.hit && timer <= 0) {
					this.hit = false;
				}
				if (this.hit && timer > 0 && !this.hitTest(_root.newboom)) {
					--timer;
				}
				if (this.dir > 4) {
					this.dir = 1;
				}
			}
		}
	}
	movieClip 3826	{
	}
	instance BG2 of movieClip 3826	{
		onClipEvent (enterFrame) {
			if (_root.maps.sw1._visible && _root.maps.sw2._visible && this._currentframe == 1) {
				this.gotoAndStop(2);
			}
		}
	}
	movieClip 3827	{
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung16';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 235 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
		if (_root.room == 'ndung18' && _root.oldroom == 'ndung19') {
			_root.box._x = 120.65;
			_root.box._y = 547.15;
			_root.cam._x = _root.box._x + 250;
			_root.cam._y = _root.box._y;
		}
		if (_root.room == 'ndung18' && _root.oldroom == 'ndung20') {
			_root.box._x = 519;
			_root.box._y = 209.25;
			_root.cam._x = 519;
			_root.cam._y = _root.box._y + 200;
		}
	}
	movieClip 3828	{
		instance of movieClip 3448	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung20';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	movieClip 3830	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3831	{
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door34locked && _root.keys > 0) {
					_root.door34locked = false;
					_root.keys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door34locked) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung19';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door34locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
				}
				if (!_root.door34locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
	}
	frame 237 {
		stop();
		_root.walking = 2;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
		_root.box._x = 852.35;
		_root.box._y = 553.15;
		_root.cam._x = _root.box._x - 200;
		_root.cam._y = _root.box._y;
	}
	movieClip 3833	{
	}
	movieClip 3836	{
		instance sw1 of movieClip 2955	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_new' + i]) && this._currentframe == 1) {
						this.gotoAndStop(2);
						_root['arrowdup_new' + i].removeMovieClip();
					}
					++i;
				}
			}
		}
	}
	movieClip 3838	{
		frame 1 {
			stop();
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.newitem = 11;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got a small key! This can be used to open locked doors throughout the dungeon!';
					this.chat = true;
					_root.keys += 1;
					_root.getItems = true;
					_root.havekey22 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					if (_root.sfx) {
						_root.chatwindorclose.start(0, 1);
					}
				}
				if (_root.maps.sw1._currentframe == 1 && !_root.chestappeared24) {
					this.gotoAndStop(4);
				}
				if (_root.maps.sw1._currentframe == 2 && !_root.chestappeared24) {
					this.gotoAndStop(3);
					if (this.appears._currentframe == 7) {
						_root.chestappeared24 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havekey22 && _root.chestappeared24 && _root.maps.sw1._currentframe == 2) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey22 && _root.chestappeared24 && _root.maps.sw1._currentframe == 2) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
		instance arrowshooter of movieClip 381	{
			onClipEvent (load) {
				this.dir = 3;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this._currentframe !== this.dir && !this.pickedup) {
					this.gotoAndStop(this.dir);
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe !== 'none' && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 4;
					this.pickedup = true;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i])) {
						_root['arrowdup_' + i].removeMovieClip();
						arrowfire = _root.arrowdups.duplicateMovieClip('arrowdup_new' + _root.ar, _root.getNextHighestDepth());
						arrowfire.fired = true;
						_root.pickobject = 4;
						arrowfire.dir = this.dir;
						++_root.ar;
						arrowfire._x = this._x;
						arrowfire._y = this._y;
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hit or this.hitTest(_root.newboom) && !this.hit) {
					++this.dir;
					this.hit = true;
					timer = 10;
				}
				if (this.hit && timer <= 0) {
					this.hit = false;
				}
				if (this.hit && timer > 0 && !this.hitTest(_root.newboom)) {
					--timer;
				}
				if (this.dir > 4) {
					this.dir = 1;
				}
			}
		}
	}
	movieClip 3840	{
	}
	instance BG2 of movieClip 3840	{
		onClipEvent (enterFrame) {
			if (_root.maps.sw1._visible && _root.maps.sw2._visible && this._currentframe == 1) {
				this.gotoAndStop(2);
			}
		}
	}
	movieClip 3841	{
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung18';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 239 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3843	{
	}
	movieClip 3846	{
	}
	movieClip 3849	{
	}
	movieClip 3858	{
	}
	movieClip 3862	{
	}
	movieClip 3863	{
	}
	movieClip 3864	{
		frame 1 {
			stop();
		}
		instance of movieClip 3503	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && _root.keys > 0 && _root.door35locked) {
					_root.door35locked = false;
					_root.keys -= 1;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (!_root.door35locked && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 3863	{
			onClipEvent (load) {
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Thank you so much for defeating those monsters and setting me free. I dont know what would have happened if you didnt come. Will you please take me home?\rPress A to exit the dialogue.\rPress S to use the lantern and free him from the nightmare.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					_root.pub4saved = true;
					_root.room = 'pub';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	instance of movieClip 3864	{
		onClipEvent (enterFrame) {
			if (_root.cagedown && this._currentframe == 1) {
				this.gotoAndStop(2);
			}
		}
	}
	movieClip 3867	{
		frame 1 {
			stop();
		}
		instance of movieClip 3512	{
			onClipEvent (enterFrame) {
				if (!_root.door35locked && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	instance BG of movieClip 3867	{
		onClipEvent (enterFrame) {
			if (this._currentframe == 1 && _root.cagedown) {
				this.gotoAndStop(2);
			}
		}
	}
	movieClip 3869	{
	}
	instance BG2 of movieClip 3869	{
		onClipEvent (enterFrame) {
			if (_root.maps.sw1._visible && _root.maps.sw2._visible && this._currentframe == 1) {
				this.gotoAndStop(2);
			}
		}
	}
	movieClip 3874	{
	}
	movieClip 3876	{
	}
	movieClip 3877	{
	}
	movieClip 3897	{
	}
	movieClip 3907	{
	}
	movieClip 3908	{
		frame 16 {
			stop();
			_root.cagedown = true;
		}
	}
	movieClip 3909	{
		frame 1 {
			stop();
		}
	}
	movieClip 3910	{
		instance of movieClip 3462	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung18';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 2955	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _root.tops.cage._currentframe == 1 or this.hitTest(_root.newboom) && _root.tops.cage._currentframe == 1) {
						_root.tops.cage.gotoAndStop(2);
						_root['arrowdup_' + i].removeMovieClip();
					}
					++i;
				}
			}
		}
	}
	frame 242 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
		if (_root.room == 'ndung21' && _root.oldroom == 'ndung22') {
			_root.box._x = 519;
			_root.box._y = 209.25;
			_root.cam._x = 519;
			_root.cam._y = _root.box._y + 200;
		}
	}
	movieClip 3911	{
		instance of movieClip 3448	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung22';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press A to exit the dialogue.\rPress S to use the lantern and leave the nightmare.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					_root.oldroom = _root.room;
					_root.room = 'smallhome';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3913	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	frame 244 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
		if (_root.room == 'ndung22' && _root.oldroom == 'ndung23') {
			_root.box._x = 120.65;
			_root.box._y = 547.15;
			_root.cam._x = _root.box._x + 250;
			_root.cam._y = _root.box._y;
		}
	}
	movieClip 3918	{
	}
	movieClip 3919	{
		instance of movieClip 1743	{
			onClipEvent (enterFrame) {
				if (_root.pub4saved && this._visible) {
					this._visible = false;
				}
			}
		}
		instance of movieClip 3918	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.newboom) && !_root.chestappears25) {
					_root.chestappears25 = true;
				}
			}
		}
	}
	movieClip 3922	{
		frame 1 {
			stop();
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.openchest.start(0, 1);
					_root.newitem = 11;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got a small key! This can be used to open locked doors throughout the dungeon!';
					this.chat = true;
					_root.keys += 1;
					_root.getItems = true;
					_root.havekey23 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (!_root.chestappeared25 && !_root.chestappears25) {
					this.gotoAndStop(4);
				}
				if (!_root.chestappeared25 && _root.chestappears25) {
					this.gotoAndStop(3);
					if (this.appears._currentframe == 7) {
						_root.chestappeared25 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havekey23 && _root.chestappeared25) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey23 && _root.chestappeared25) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	instance BG of movieClip 3922	{
		onClipEvent (enterFrame) {
			if (_root.pub4saved && this._currentframe == 1) {
				this.gotoAndStop(2);
			}
		}
	}
	movieClip 3923	{
		frame 1 {
			stop();
		}
	}
	instance BG2 of movieClip 3923	{
		onClipEvent (enterFrame) {
			if (_root.maps.sw1._visible && _root.maps.sw2._visible && this._currentframe == 1) {
				this.gotoAndStop(2);
			}
		}
	}
	movieClip 3924	{
		instance of movieClip 3462	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung21';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung23';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 246 {
		stop();
		_root.walking = 2;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
		_root.box._x = 852.35;
		_root.box._y = 553.15;
		_root.cam._x = _root.box._x - 200;
		_root.cam._y = _root.box._y;
		if (_root.room == 'ndung23' && _root.oldroom == 'ndung24') {
			_root.box._x = 120.65;
			_root.box._y = 547.15;
			_root.cam._x = _root.box._x + 250;
			_root.cam._y = _root.box._y;
		}
	}
	movieClip 3925	{
	}
	instance of movieClip 654	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.throwfire = false;
			this.atktime = random(30) + 40;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 400;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wizard.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wizard.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				--this.atktime;
				this.wizard.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 20 && this._y < _root.box._y + 80) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.hitTest(_root.hero) && !this.throwfire && this.alive && !this.hurt && !this.hurted) {
				this.wizard.gotoAndStop(2);
			}
			if (this.atktime <= 0) {
				this.throwfire = true;
			}
			if (this.throwfire && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.wizard.gotoAndStop(4);
			}
			if (this.throwfire && this.wizard.throws._currentframe == 10) {
				this.atktime = random(30) + 40;
				this.throwfire = false;
			}
			if (this.wizard.throws._currentframe == 6) {
				firess = _root.fireen.duplicateMovieClip('fireen_' + _root.ar, _root.getNextHighestDepth());
				firess.fired = true;
				firess.dir = this.dir;
				++_root.ar;
				firess._x = this._x;
				firess._y = this._y;
				_root.flamesoundpl = true;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.wizard.gotoAndStop(3);
			}
			if (this.wizard._currentframe == 3 && this.wizard.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	instance of movieClip 654	{
		onClipEvent (load) {
			this.health = 10;
			this.spd = 3;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.throwfire = false;
			this.atktime = random(30) + 40;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 400;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			checkproximity();
			if (!this.attacking) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.wizard.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.wizard.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				--this.atktime;
				this.wizard.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.throwfire && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 20 && this._y < _root.box._y + 80) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.hitTest(_root.hero) && !this.throwfire && this.alive && !this.hurt && !this.hurted) {
				this.wizard.gotoAndStop(2);
			}
			if (this.atktime <= 0) {
				this.throwfire = true;
			}
			if (this.throwfire && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.wizard.gotoAndStop(4);
			}
			if (this.throwfire && this.wizard.throws._currentframe == 10) {
				this.atktime = random(30) + 40;
				this.throwfire = false;
			}
			if (this.wizard.throws._currentframe == 6) {
				firess = _root.fireen.duplicateMovieClip('fireen_' + _root.ar, _root.getNextHighestDepth());
				firess.fired = true;
				firess.dir = this.dir;
				++_root.ar;
				firess._x = this._x;
				firess._y = this._y;
				_root.flamesoundpl = true;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hurt && this.alive) {
				this.wizard.gotoAndStop(3);
			}
			if (this.wizard._currentframe == 3 && this.wizard.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.hurtbounce = 7;
				}
			}
			if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !this.hurt && !this.hurted && !_root.defend) {
				_root.hurt = true;
				_root.hurted = true;
				if (_root.armor == 1) {
					_root.health -= 3;
				}
				if (_root.armor == 2) {
					_root.health -= 2;
				}
				if (_root.armor == 3) {
					_root.health -= 1;
				}
				if (_root.armor == 4) {
					_root.health -= 0;
				}
				if (_root.helmet == 1) {
					_root.health -= 3;
				}
				if (_root.helmet == 2) {
					_root.health -= 2;
				}
				if (_root.helmet == 3) {
					_root.health -= 1;
				}
				if (_root.helmet == 4) {
					_root.health -= 1;
				}
			}
			if (this.hitTest(_root.hero) && _root.defend && !_root.block) {
				_root.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
		}
	}
	movieClip 3927	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3928	{
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (_root.enemies > 0 && this._currentframe !== 3) {
					this.gotoAndStop(3);
				}
				if (_root.enemies <= 0 && this._currentframe !== 1 && !_root.warping) {
					this.gotoAndStop(1);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && this._currentframe == 1) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung24';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung22';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 248 {
		stop();
		_root.walking = 2;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
		_root.box._x = 852.35;
		_root.box._y = 553.15;
		_root.cam._x = _root.box._x - 200;
		_root.cam._y = _root.box._y;
	}
	movieClip 3929	{
		instance of movieClip 3503	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && _root.keys > 0 && _root.door37locked) {
					_root.door37locked = false;
					_root.keys -= 1;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (!_root.door37locked && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	instance of movieClip 3510	{
		onClipEvent (load) {
			this.message = 0;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				_root.aicon = 7;
			}
			if (this.message == 0) {
				if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
					_root.chatting = true;
					this.chat = true;
					this.apush = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
			}
			if (this.message == 0 && this.chat) {
				_root.cam.textbox.text = 'Thank you so much for defeating those monsters and setting me free. I dont know what would have happened if you didnt come. Will you please take me home?\rPress A to exit the dialogue.\rPress S to use the lantern and free him from the nightmare.';
			}
			if (this.message == 0 && this.chat && Key.isDown(83)) {
				_root.chatting = false;
				_root.cam.textbox.text = ' ';
				_root.warping = true;
				_root.pub5saved = true;
				_root.room = 'smallhome';
			}
			if (this.chat && _root.chatting && this.message == 1) {
				_root.chatting = false;
				_root.cam.textbox.text = ' ';
				if (_root.sfx) {
					_root.stopmsg.start(0, 1);
				}
			}
			if (Key.isDown(65) && !this.apush && this.chat) {
				++this.message;
				this.apush = true;
			}
			if (!Key.isDown(65) && this.apush && this.chat) {
				this.apush = false;
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.chat = false;
				this.message = 0;
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65) && this.chat) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 837	{
		onClipEvent (load) {
			this.health = 14;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 837	{
		onClipEvent (load) {
			this.health = 14;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3931	{
		frame 1 {
			stop();
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 3512	{
			onClipEvent (enterFrame) {
				if (!_root.door37locked && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 3932	{
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung23';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 251 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
		if (_root.room == 'ndung25' && _root.oldroom == 'ndung26') {
			_root.box._x = 120.65;
			_root.box._y = 547.15;
			_root.cam._x = _root.box._x + 250;
			_root.cam._y = _root.box._y;
		}
	}
	movieClip 3934	{
		instance of movieClip 1743	{
			onClipEvent (enterFrame) {
				if (_root.pub5saved && this._visible) {
					this._visible = false;
				}
			}
		}
		instance of movieClip 3918	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.newboom) && !_root.chestappears26) {
					_root.chestappears26 = true;
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press A to exit the dialogue.\rPress S to use the lantern and leave the nightmare.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					_root.oldroom = _root.room;
					_root.room = 'smallhome';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3937	{
		frame 1 {
			stop();
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat)) {
					_root.openchest.start(0, 1);
					_root.newitem = 11;
					_root.chatting = true;
					_root.cam.textbox.play();
					_root.cam.textbox.text = 'You got a small key! This can be used to open locked doors throughout the dungeon!';
					this.chat = true;
					_root.keys += 1;
					_root.getItems = true;
					_root.havekey24 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (!_root.chestappeared26 && !_root.chestappears26) {
					this.gotoAndStop(4);
				}
				if (!_root.chestappeared26 && _root.chestappears26) {
					this.gotoAndStop(3);
					if (this.appears._currentframe == 7) {
						_root.chestappeared26 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havekey24 && _root.chestappeared26) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey24 && _root.chestappeared26) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	instance BG of movieClip 3937	{
		onClipEvent (enterFrame) {
			if (_root.pub5saved && this._currentframe == 1) {
				this.gotoAndStop(2);
			}
		}
	}
	instance BG2 of movieClip 3923	{
		onClipEvent (enterFrame) {
			if (_root.maps.sw1._visible && _root.maps.sw2._visible && this._currentframe == 1) {
				this.gotoAndStop(2);
			}
		}
	}
	movieClip 3938	{
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung26';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 253 {
		stop();
		_root.walking = 2;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
		_root.box._x = 852.35;
		_root.box._y = 553.15;
		_root.cam._x = _root.box._x - 200;
		_root.cam._y = _root.box._y;
	}
	movieClip 3939	{
		instance of movieClip 3503	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && _root.keys > 0 && _root.door38locked) {
					_root.door38locked = false;
					_root.keys -= 1;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (!_root.door38locked && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
	}
	movieClip 3942	{
	}
	movieClip 3945	{
	}
	movieClip 3946	{
	}
	instance of movieClip 3946	{
		onClipEvent (load) {
			this.message = 0;
		}
		onClipEvent (enterFrame) {
			if (this.hitTest(_root.hero)) {
				_root.aicon = 7;
			}
			if (this.message == 0) {
				if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
					_root.chatting = true;
					this.chat = true;
					this.apush = true;
					if (_root.sfx) {
						_root.beginmsg.start(0, 1);
					}
				}
			}
			if (this.message == 0 && this.chat) {
				_root.cam.textbox.text = 'Thank you so much for defeating those monsters and setting me free. I dont know what would have happened if you didnt come. Will you please take me home?\rPress A to exit the dialogue.\rPress S to use the lantern and free him from the nightmare.';
			}
			if (this.message == 0 && this.chat && Key.isDown(83)) {
				_root.chatting = false;
				_root.cam.textbox.text = ' ';
				_root.warping = true;
				_root.pub6saved = true;
				_root.room = 'smallhome';
			}
			if (this.chat && _root.chatting && this.message == 1) {
				_root.chatting = false;
				_root.cam.textbox.text = ' ';
				if (_root.sfx) {
					_root.stopmsg.start(0, 1);
				}
			}
			if (Key.isDown(65) && !this.apush && this.chat) {
				++this.message;
				this.apush = true;
			}
			if (!Key.isDown(65) && this.apush && this.chat) {
				this.apush = false;
			}
			if (!_root.chatting && !Key.isDown(65)) {
				this.chat = false;
				this.message = 0;
				this.counter = 0;
			}
			if (_root.chatting && !Key.isDown(65) && this.chat) {
				this.counter += 0.1;
			}
			if (this.counter > 1.5) {
				this.counter = 1.5;
			}
		}
	}
	instance of movieClip 837	{
		onClipEvent (load) {
			this.health = 14;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	instance of movieClip 837	{
		onClipEvent (load) {
			this.health = 14;
			this.spd = 6;
			this.timer = 0;
			this.waittime = 0;
			this.waited = true;
			this.hurt = false;
			this.moving = false;
			this.alive = true;
			this.hurtbounce = 10;
			this.attacking = false;
			this.stunned = false;
			this.stuntime = 200;
			this.swordslash = false;
			this.defence = random(20) + 1;
			this.stance = 0;
			if (!this.enemyadded) {
				_root.enemies += 1;
				this.enemyadded = true;
			}
		}
		onClipEvent (enterFrame) {
			function checkproximity() {
				dist_player = 200;
				dx = _x - _root.box._x;
				dy = _y - _root.box._y;
				this.dist = Math.sqrt(dx * dx + dy * dy);
				if (this.dist < dist_player) {
					this.attacking = true;
				} else {
					this.attacking = false;
				}
			}
			function checkrange() {
				dist_playerl = 130;
				dxl = _x - _root.hero._x;
				dyl = _y - _root.hero._y;
				this.distl = Math.sqrt(dxl * dxl + dyl * dyl);
				if (this.distl < dist_playerl) {
					this.inrange = true;
				} else {
					this.inrange = false;
				}
			}
			checkproximity();
			checkrange();
			if (!this.attacking && !this.swordslash) {
				if (this.timer <= 0 && this.waited) {
					this.dir = random(4) + 1;
					this.timer = random(60) + 10;
					this.waited = false;
				}
				if (this.timer > 0 && !this.waited) {
					--this.timer;
					this.moving = true;
				}
				if (this.timer <= 0 && !this.waited && !this.randomed) {
					this.waittime = random(100) + 20;
					this.randomed = true;
				}
				if (this.timer <= 0 && !this.waited && this.waittime > 0) {
					--this.waittime;
					this.moving = false;
				}
				if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
					this.waited = true;
					this.randomed = false;
				}
				if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
					this.knight.gotoAndStop(1);
				} else {
					if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.knight.gotoAndStop(2);
					}
				}
				if (this.moving && !this.hurt && !this.hurted) {
					this.gotoAndStop(this.dir);
					if (this.dir == 1) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y - 20, true)) {
								this.dir = 3;
							}
						}
					}
					if (this.dir == 2) {
						if (!_root.BG.hitTest(this._x + 60, this._y, true)) {
							this._x += this.spd;
						} else {
							if (_root.BG.hitTest(this._x + 60, this._y, true)) {
								this.dir = 4;
							}
						}
					}
					if (this.dir == 3) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.spd;
						} else {
							if (_root.BG.hitTest(this._x, this._y + 20, true)) {
								this.dir = 1;
							}
						}
					}
					if (this.dir == 4) {
						if (!_root.BG.hitTest(this._x - 60, this._y, true)) {
							this._x -= this.spd;
						} else {
							if (_root.BG.hitTest(this._x - 60, this._y, true)) {
								this.dir = 2;
							}
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
				this.knight.gotoAndStop(1);
				if (!this.hitTest(_root.hero)) {
					if (this._x > _root.box._x) {
						if (!_root.BG.hitTest(this._x - 45, this._y, true)) {
							this._x -= this.spd;
						}
					}
					if (this._x < _root.box._x) {
						if (!_root.BG.hitTest(this._x + 85, this._y, true)) {
							this._x += this.spd;
						}
					}
					if (this._y > _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.spd;
						}
					}
					if (this._y < _root.box._y) {
						if (!_root.BG.hitTest(this._x, this._y + 65, true)) {
							this._y += this.spd;
						}
					}
				}
			}
			if (this.attacking && !this.swordslash && !this.defending && !_root.pause && !_root.chatting && this.alive && !this.hurt && !this.hurted) {
				this.gotoAndStop(this.dir);
				if (this._x > _root.box._x - 150 && this._x < _root.box._x + 150) {
					this.inline = true;
				} else {
					this.inline = false;
				}
				if (this._y > _root.box._y - 50 && this._y < _root.box._y + 50) {
					this.inline2 = true;
					this.inline = false;
				} else {
					this.inline2 = false;
				}
				if (this._y > _root.box._y && this.inline && !this.inline2) {
					this.dir = 1;
				} else {
					if (this._x < _root.box._x && !this.inline or this._x < _root.box._x or this.inline2) {
						this.dir = 2;
					}
				}
				if (this._y < _root.box._y && this.inline && !this.inline2) {
					this.dir = 3;
				} else {
					if (this._x > _root.box._x && !this.inline or this._x > _root.box._x && this.inline2) {
						this.dir = 4;
					}
				}
			}
			if (this.inrange && this.stance == 0) {
				this.stance = random(2) + 1;
			}
			if (this.stance == 1 && !this.swordslash) {
				this.swordslash = true;
				this.defending = false;
			}
			if (this.stance == 2 && !this.defending) {
				this.defending = true;
				this.swordslash = false;
			}
			if (this.swordslash && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(4);
			}
			if (this.swordslash && this.knight.attack._currentframe == 20) {
				this.swordslash = false;
				this.stance = 0;
			}
			if (this.defending && this.alive && !this.hurt && !this.hurted && !_root.pause && !_root.chatting) {
				this.knight.gotoAndStop(5);
				--this.defence;
			}
			if (this.defending && this.defence <= 0) {
				this.defence = random(20) + 1;
				this.stance = 0;
				this.defending = false;
			}
			if (this.health <= 0 && this.alive) {
				this.gotoAndStop(5);
				this.alive = false;
				_root.enemies -= 1;
			}
			i = 0;
			while (i < _root.ar) {
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.arrowhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					_root['arrowdup_' + i].removeMovieClip();
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['firedup_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 5;
					_root['firedup_' + i].gotoAndStop(5);
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 1;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].thrown && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
					this.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 3;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurt && !this.hurted && !this.defending) {
					this.hurt = true;
					this.hurted = true;
					this.health -= 4;
					if (_root.sfx) {
						_root.shit1.start(0, 1);
					}
				}
				++i;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted) {
				this.hurt = true;
				this.hurted = true;
				this.health -= 3;
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && !this.defending) {
				this.moving = false;
				_root.hits = true;
				this.hurt = true;
				this.hurted = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this.alive && !this.hurt && !this.hurted && this.defending && !this.block) {
				this.block = true;
				if (_root.sfx) {
					_root.metalhit.start(0, 1);
				}
			}
			if (this.hurt && this.alive) {
				this.knight.gotoAndStop(3);
			}
			if (this.knight._currentframe == 3 && this.knight.pain._currentframe == 8 && this.hurt) {
				this.hurt = false;
			}
			if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting or this.block && !this.hurt && !this.hurted && !_root.pause) {
				if (this._x < _root.hero._x) {
					if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
						this._x -= this.hurtbounce;
					}
				}
				if (this._x > _root.hero._x) {
					if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
						this._x += this.hurtbounce;
					}
				}
				if (this._y < _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
						this._y -= this.hurtbounce;
					}
				}
				if (this._y > _root.hero._y) {
					if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
						this._y += this.hurtbounce;
					}
				}
				--this.hurtbounce;
				if (this.hurtbounce <= 0) {
					this.hurted = false;
					this.block = false;
					this.hurtbounce = 10;
				}
			}
		}
	}
	movieClip 3947	{
		frame 1 {
			stop();
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 3512	{
			onClipEvent (enterFrame) {
				if (!_root.door38locked && this._currentframe == 1) {
					this.gotoAndStop(2);
				}
			}
		}
		instance of movieClip 395	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero) && this._currentframe == 1) {
					_root.aicon = 4;
				}
				if (this.hitTest(_root.hero) && (Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && this.counter < 1.5 && _root.alive && !_root.carry && !_root.pickup && !this.chat && !_root.havekey25)) {
					_root.newitem = 12;
					_root.chatting = true;
					this.chat = true;
					_root.cam.textbox.text = 'You got the boss room key! You can use this to unlock the final room!';
					_root.getItems = true;
					this._visible = false;
					_root.bigkeys += 1;
					_root.havekey25 = true;
					if (_root.sfx) {
						_root.openchestsound.start(0, 1);
					}
				}
				if (_root.chatting && this.counter >= 1.5 && Key.isDown(65) && this.chat) {
					_root.cam.textbox.text = ' ';
					_root.newitem = 0;
					_root.chatting = false;
					this.chat = false;
					_root.cam.textbox.play();
					_root.getItems = false;
					_root.chatwindorclose.start(0, 1);
				}
				if (_root.enemies > 0 && !_root.chestappeared27) {
					this.gotoAndStop(4);
				}
				if (_root.enemies <= 0 && !_root.chestappeared27) {
					this.gotoAndStop(3);
					_root.interested = true;
					_root.intx = 507.8;
					_root.inty = 227.85;
					if (this.appears._currentframe == 7) {
						_root.chestappeared27 = true;
						if (_root.sfx) {
							_root.chestappear.start(0, 1);
						}
					}
				}
				if (_root.havekey25 && _root.chestappeared27) {
					this.gotoAndStop(2);
				}
				if (!_root.havekey25 && _root.chestappeared27) {
					this.gotoAndStop(1);
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65)) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3948	{
		instance of movieClip 3468	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung25';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
			}
		}
	}
	frame 255 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = true;
	}
	movieClip 3950	{
		instance of movieClip 3471	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && _root.door39locked && _root.bigkeys > 0) {
					_root.door39locked = false;
					_root.bigkeys -= 1;
				}
				if (this.hitTest(_root.box) && !_root.warping && !_root.warps && !_root.door39locked && !_root.boss4dead) {
					_root.oldroom = _root.room;
					_root.warping = true;
					_root.room = 'ndung28';
					plays = true;
				}
				if (_root.sfx && plays) {
					_root.dooropen.start(0, 1);
					plays = false;
				}
				if (_root.door39locked && this._currentframe !== 1) {
					this.gotoAndStop(1);
				}
				if (!_root.door39locked && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.getkey.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1355	{
			onClipEvent (load) {
				this._visible = false;
				this.message = 0;
			}
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 7;
				}
				if (this.message == 0) {
					if (this.hitTest(_root.hero) && !_root.roll && !_root.pause && _root.alive && this.counter < 1.5 && !_root.chatting && this.message == 0 && Key.isDown(65)) {
						_root.chatting = true;
						this.chat = true;
						this.apush = true;
						if (_root.sfx) {
							_root.beginmsg.start(0, 1);
						}
					}
				}
				if (this.message == 0 && this.chat) {
					_root.cam.textbox.text = 'Press A to exit the dialogue.\rPress S to use the lantern and leave the nightmare.';
				}
				if (this.message == 0 && this.chat && Key.isDown(83)) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					_root.warping = true;
					_root.oldroom = _root.room;
					_root.room = 'ranhouse1';
				}
				if (this.chat && _root.chatting && this.message == 1) {
					_root.chatting = false;
					_root.cam.textbox.text = ' ';
					if (_root.sfx) {
						_root.stopmsg.start(0, 1);
					}
				}
				if (Key.isDown(65) && !this.apush && this.chat) {
					++this.message;
					this.apush = true;
				}
				if (!Key.isDown(65) && this.apush && this.chat) {
					this.apush = false;
				}
				if (!_root.chatting && !Key.isDown(65)) {
					this.chat = false;
					this.message = 0;
					this.counter = 0;
				}
				if (_root.chatting && !Key.isDown(65) && this.chat) {
					this.counter += 0.1;
				}
				if (this.counter > 1.5) {
					this.counter = 1.5;
				}
			}
		}
	}
	movieClip 3952	{
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
		instance of movieClip 1284	{
			onClipEvent (enterFrame) {
				if (this.hitTest(_root.hero)) {
					_root.aicon = 5;
				}
				if (this.hitTest(_root.hero) && Key.isDown(65) && !_root.roll && !_root.pause && this._currentframe == 1 && _root.alive && !_root.carry && !_root.pickup) {
					this.gotoAndStop('none');
					_root.pickobject = 3;
					_root.pickup = true;
					_root.carry = true;
				}
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode) {
						this.gotoAndStop(2);
					}
					if (this.hitTest(_root['bombel_' + i])) {
						this.gotoAndStop(2);
					}
					++i;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && this._currentframe !== 2) {
					this.gotoAndStop(2);
					if (_root.sfx) {
						_root.potshatter.start(0, 1);
					}
				}
			}
		}
	}
	movieClip 3953	{
	}
	frame 257 {
		stop();
		_root.walking = 2;
		_root.box._x = 519;
		_root.box._y = 911;
		_root.cam._x = 504.9;
		_root.cam._y = 702.1;
		_root.neveahmusic = false;
		_root.boss1 = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.dungeon1 = false;
		_root.dungeon2 = false;
		_root.dungeon3 = false;
		_root.dungeon4 = false;
		_root.boss4 = true;
	}
	movieClip 3955	{
		instance of movieClip 3462	{
			onClipEvent (load) {
				this.gotoAndStop(3);
			}
		}
	}
	movieClip 3956	{
	}
	movieClip 3958	{
	}
	movieClip 3960	{
	}
	movieClip 3962	{
	}
	movieClip 3964	{
	}
	movieClip 3965	{
	}
	movieClip 3967	{
	}
	movieClip 3969	{
	}
	movieClip 3971	{
	}
	movieClip 3972	{
		instance of movieClip 3967	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['firedup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					++i;
				}
			}
		}
		instance of movieClip 3969	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['firedup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					++i;
				}
			}
		}
		instance of movieClip 3969	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['firedup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					++i;
				}
			}
		}
		instance of movieClip 3971	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_parent._parent.hurt = true;
						_parent._parent.hurted = true;
						_parent._parent.stundamage -= 1;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
							_root.bossgrowl.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_parent._parent.hurt = true;
						_parent._parent.hurted = true;
						_parent._parent.stundamage -= 2;
						_root['firedup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
							_root.bossgrowl.start(0, 1);
						}
					}
					if (this.hitTest(_root.newboom) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_parent._parent.hurt = true;
						_parent._parent.hurted = true;
						_parent._parent.stundamage -= 3;
						if (_root.sfx) {
							_root.bossgrowl.start(0, 1);
						}
					}
					++i;
				}
			}
		}
	}
	movieClip 3974	{
	}
	movieClip 3976	{
	}
	movieClip 3977	{
		instance of movieClip 3974	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['firedup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					++i;
				}
			}
		}
		instance of movieClip 3969	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['firedup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					++i;
				}
			}
		}
		instance of movieClip 3976	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_parent._parent.hurt = true;
						_parent._parent.hurted = true;
						_parent._parent.stundamage -= 1;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
							_root.bossgrowl.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_parent._parent.hurt = true;
						_parent._parent.hurted = true;
						_parent._parent.stundamage -= 2;
						_root['firedup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
							_root.bossgrowl.start(0, 1);
						}
					}
					if (this.hitTest(_root.newboom) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_parent._parent.hurt = true;
						_parent._parent.hurted = true;
						_parent._parent.stundamage -= 3;
						if (_root.sfx) {
							_root.bossgrowl.start(0, 1);
						}
					}
					++i;
				}
			}
		}
	}
	movieClip 3979	{
	}
	movieClip 3981	{
	}
	movieClip 3982	{
		instance of movieClip 3969	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['firedup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					++i;
				}
			}
		}
		instance of movieClip 3969	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_root['firedup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					++i;
				}
			}
		}
		instance of movieClip 3981	{
			onClipEvent (enterFrame) {
				i = 0;
				while (i < _root.ar) {
					if (this.hitTest(_root['arrowdup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_parent._parent.hurt = true;
						_parent._parent.hurted = true;
						_parent._parent.stundamage -= 1;
						_root['arrowdup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
							_root.bossgrowl.start(0, 1);
						}
					}
					if (this.hitTest(_root['firedup_' + i]) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_parent._parent.hurt = true;
						_parent._parent.hurted = true;
						_parent._parent.stundamage -= 2;
						_root['firedup_' + i].removeMovieClip();
						if (_root.sfx) {
							_root.arrowhit.start(0, 1);
							_root.bossgrowl.start(0, 1);
						}
					}
					if (this.hitTest(_root.newboom) && _parent._parent.alive && !_parent._parent.hurt && !_parent._parent.hurted) {
						_parent._parent.hurt = true;
						_parent._parent.hurted = true;
						_parent._parent.stundamage -= 3;
						if (_root.sfx) {
							_root.bossgrowl.start(0, 1);
						}
					}
					++i;
				}
			}
		}
	}
	movieClip 3983	{
		frame 104 {
			stop();
		}
	}
	movieClip 3985	{
	}
	movieClip 3986	{
	}
	movieClip 3987	{
		frame 23 {
			stop();
		}
	}
	movieClip 3988	{
		frame 1 {
			stop();
		}
	}
	movieClip 3990	{
	}
	movieClip 3991	{
	}
	movieClip 3993	{
	}
	movieClip 3995	{
	}
	movieClip 3997	{
	}
	movieClip 4000	{
	}
	movieClip 4004	{
		frame 80 {
			fires = true;
		}
		frame 81 {
			fires = false;
		}
		frame 104 {
			fires = true;
		}
		frame 105 {
			fires = false;
		}
		frame 128 {
			fires = true;
		}
		frame 129 {
			fires = false;
		}
	}
	movieClip 4006	{
		frame 29 {
			stop();
		}
	}
	movieClip 4010	{
	}
	movieClip 4011	{
		frame 14 {
			stop();
		}
	}
	movieClip 4012	{
	}
	movieClip 4013	{
	}
	movieClip 4014	{
	}
	movieClip 4015	{
		frame 29 {
			stop();
		}
	}
	movieClip 4016	{
		frame 1 {
			stop();
		}
	}
	movieClip 4023	{
	}
	movieClip 4024	{
	}
	movieClip 4025	{
	}
	movieClip 4026	{
	}
	movieClip 4027	{
		frame 25 {
			stop();
		}
	}
	movieClip 4028	{
		frame 1 {
			onEnterFrame = function () {
				golem.head.gotoAndStop(ice);
				golem.arm1.gotoAndStop(ice);
				golem.arm2.gotoAndStop(ice);
				golem.torso.gotoAndStop(ice);
				golem.cloth1.gotoAndStop(ice);
				golem.cloth2.gotoAndStop(ice);
				golem.leg1.gotoAndStop(ice);
				golem.leg2.gotoAndStop(ice);
				golem.foot1.gotoAndStop(ice);
				golem.foot2.gotoAndStop(ice);
			};
		}
		frame 1 {
			stop();
		}
	}
	movieClip 4029	{
		frame 1 {
			stop();
		}
		instance of movieClip 3988	{
			onClipEvent (load) {
				this.health = 50;
				this.spd = 7;
				this.timer = 0;
				this.waittime = 0;
				this.waited = true;
				this.hurt = false;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 10;
				this.stunned = false;
				this.stundamage = 3;
				this.showed = false;
				_root.enemies += 1;
			}
			onClipEvent (enterFrame) {
				if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive && !this.stunned) {
					if (!_root.interested && !this.showed) {
						this.showed = true;
						_root.interested = true;
					}
					if (_root.interested) {
						_root.intx = this._x;
						_root.inty = this._y;
					}
					if (this.health <= 10 && this.spd !== 12) {
						this.spd = 12;
					}
					if (this.timer <= 0 && this.waited) {
						this.dir = random(4) + 1;
						this.timer = random(60) + 10;
						this.waited = false;
					}
					if (this.timer > 0 && !this.waited) {
						--this.timer;
						this.moving = true;
					}
					if (this.timer <= 0 && !this.waited && !this.randomed) {
						this.waittime = random(100) + 20;
						this.randomed = true;
					}
					if (this.timer <= 0 && !this.waited && this.waittime > 0) {
						--this.waittime;
						this.moving = false;
					}
					if (this.waittime <= 0 && this.timer <= 0 && !this.waited) {
						this.waited = true;
						this.randomed = false;
					}
					if (this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
						this.spider.legs.play();
					} else {
						if (!this.moving && !this.hurt && !_root.chatting && this.alive && !this.stunned) {
							this.spider.legs.gotoAndStop(1);
						}
					}
					if (this.moving && !this.hurt && !this.hurted) {
						this.gotoAndStop(this.dir);
						if (this.dir == 1) {
							if (!_root.BG.hitTest(this._x, this._y - 100, true)) {
								this._y -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y - 100, true)) {
									this.dir = 3;
								}
							}
						}
						if (this.dir == 2) {
							if (!_root.BG.hitTest(this._x + 40, this._y, true)) {
								this._x += this.spd;
							} else {
								if (_root.BG.hitTest(this._x + 40, this._y, true)) {
									this.dir = 4;
								}
							}
						}
						if (this.dir == 3) {
							if (!_root.BG.hitTest(this._x, this._y + 100, true)) {
								this._y += this.spd;
							} else {
								if (_root.BG.hitTest(this._x, this._y + 100, true)) {
									this.dir = 1;
								}
							}
						}
						if (this.dir == 4) {
							if (!_root.BG.hitTest(this._x - 40, this._y, true)) {
								this._x -= this.spd;
							} else {
								if (_root.BG.hitTest(this._x - 40, this._y, true)) {
									this.dir = 2;
								}
							}
						}
					}
				}
				if (this.health <= 0 && this.alive) {
					this.gotoAndStop(6);
					_root.enemies -= 1;
					this.alive = false;
				}
				if (this.stunned && !this.hurt && this._currentframe !== 5 && this.alive) {
					this.gotoAndStop(5);
				}
				if (this.stundamage <= 0 && this.alive && !_root.pause && !_root.chatting && !this.stunned) {
					this.stunned = true;
				}
				if (this.stunned && this.spider._currentframe >= 103) {
					this.stunned = false;
					this.stundamage = 3;
				}
				if (this.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurt && !this.hurted && this.stunned && this.alive) {
					this.moving = false;
					_root.hits = true;
					this.hurt = true;
					this.hurted = true;
					flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
					flashes._alpha = random(100) + 40;
					flashes.placed = true;
					flashes._x = this._x;
					flashes._y = this._y;
					flashes._rotation = random(360);
					if (_root.sword == 1) {
						this.health -= 1;
					} else {
						if (_root.sword == 2) {
							this.health -= 2;
						} else {
							if (_root.sword == 3) {
								this.health -= 3;
							} else {
								if (_root.sword == 4) {
									this.health -= 4;
								}
							}
						}
					}
				}
				if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
					if (this._x < _root.hero._x) {
						if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
							this._x -= this.hurtbounce;
						}
					}
					if (this._x > _root.hero._x) {
						if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
							this._x += this.hurtbounce;
						}
					}
					if (this._y < _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
							this._y -= this.hurtbounce;
						}
					}
					if (this._y > _root.hero._y) {
						if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
							this._y += this.hurtbounce;
						}
					}
					--this.hurtbounce;
					if (this.hurtbounce <= 0) {
						this.hurted = false;
						this.hurt = false;
						this.hurtbounce = 10;
					}
				}
				if (this.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
				if (!_root.pause && !_root.chatting && this.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !this.hurt && !this.hurted && !this.stunned) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 2;
					}
					if (_root.armor == 2) {
						_root.health -= 1;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 0;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 2;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 1;
					}
				}
			}
		}
		instance of movieClip 4016	{
			onClipEvent (load) {
				this.health = 60;
				this.hurt = false;
				this.alive = true;
				this.stunned = false;
				this.stuntime = 0;
				this.appeared = false;
				this.counter = random(25) + 75;
				this.inv._visible = false;
				_root.enemies += 1;
				hittime = 100;
			}
			onClipEvent (enterFrame) {
				if (this.alive && !_root.pause) {
					rotatie = 180 + (Math.atan2(_root.box._y - this._y, _root.box._x - this._x) / Math.PI) * 180;
					this.inv._rotation = rotatie;
					if (!_root.interested && !this.showed) {
						this.showed = true;
						_root.interested = true;
					}
					if (_root.interested) {
						_root.intx = this._x;
						_root.inty = this._y;
					}
					if (!this.appeared && this.counter > 0 && !this.stunned) {
						this.gotoAndStop(6);
						--this.counter;
					} else {
						if (this.counter <= 0 && !this.stunned && !this.appeared) {
							this._x = random(872) + 114;
							this._y = random(857) + 191;
							this.appeared = true;
							this.counter = random(300) + 50;
							this.gotoAndStop(1);
						}
					}
					if (this.appears.fires == true && !this.hurt && !this.stunned) {
						flameball = _root.bossfire.duplicateMovieClip('enb_' + _root.ar, _root.getNextHighestDepth());
						++_root.ar;
						angle = this.inv._rotation;
						flameball._x = this._x;
						flameball._y = this._y;
						flameball.fired = true;
						flameball._rotation = angle + 90;
						flameball.dirx = Math.cos(angle * Math.PI / 180) * 15;
						flameball.diry = Math.sin(angle * Math.PI / 180) * 15;
						flameball._x = this._x - Math.cos(angle * Math.PI / 180) * 80;
						flameball._y = this._y - Math.sin(angle * Math.PI / 180) * 80;
					}
					if (this.hitTest(_root.hero.hero.hero.hero.hammer) && !this.stunned && this.appeared) {
						this.stunned = true;
						this.gotoAndStop(3);
						this.stuntime = 100;
						if (_root.sfx) {
							_root.bossgrowl.start(0, 1);
						}
					}
					if (this.stuntime > 0 && this.stunned) {
						--this.stuntime;
					}
					if (this.stuntime <= 0 && this.stunned) {
						this.stunned = false;
						this.gotoAndStop(2);
					}
					if (this.stunned && !this.hurt && this.hitTest(_root.hero.hero.hero.hero.hero.sword)) {
						this.hurt = true;
						flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
						flashes._alpha = random(100) + 40;
						flashes.placed = true;
						flashes._x = this._x;
						flashes._y = this._y;
						flashes._rotation = random(360);
						if (_root.sfx) {
							_root.shit1.start(0, 1);
						}
						if (_root.sword == 1) {
							this.health -= 1;
						} else {
							if (_root.sword == 2) {
								this.health -= 2;
							} else {
								if (_root.sword == 3) {
									this.health -= 3;
								} else {
									if (_root.sword == 4) {
										this.health -= 4;
									}
								}
							}
						}
					}
					this._alpha = hittime;
					if (this.hurt && hittime > 0) {
						hittime -= 10;
					}
					if (this.hurt && hittime <= 0) {
						hittime = 100;
						this._alpha = 100;
						this.hurt = false;
					}
					if (this.appeared && !this.hurt && !this.stunned && this.appears._currentframe == 137) {
						this.gotoAndStop(2);
					}
					if (this.appeared && !this.hurt && !this.stunned && this.disappears._currentframe == 29) {
						this.appeared = false;
					}
				}
				if (this.health <= 0 && this.alive) {
					this.alive = false;
					_root.enemies -= 1;
					this.gotoAndStop(5);
				}
			}
		}
		instance of movieClip 4028	{
			onClipEvent (load) {
				this.health = 40;
				this.ice = 1;
				this.moving = false;
				this.alive = true;
				this.hurtbounce = 10;
				this.stuntime = 300;
				this.allowtime = 150;
				this.showed = false;
				this.pinttime = 200;
				this.hurtbounce = 10;
				accuracy = 0.1;
				_root.enemies += 1;
			}
			onClipEvent (enterFrame) {
				function checkproximity() {
					dist_player = 15;
					dx = _x - this.pinx;
					dy = _y - this.piny;
					this.dist = Math.sqrt(dx * dx + dy * dy);
					if (this.dist < dist_player) {
						this.moving = false;
					} else {
						this.moving = true;
					}
				}
				checkproximity();
				if (!_root.pause && !_root.chatting && !this.hurt && !this.hurted && this.alive) {
					if (!_root.interested && !this.showed) {
						this.showed = true;
						_root.interested = true;
					}
					if (_root.interested) {
						_root.intx = this._x;
						_root.inty = this._y;
					}
					if (!this.pinpointed && this.health > 10 && !_root.interested) {
						this.pinx = _root.box._x;
						this.piny = _root.box._y;
						this.pintime = 130;
						this.pinpointed = true;
					}
					if (!this.pinpointed && this.health <= 10 && !_root.interested) {
						this.pinx = random(772) + 224;
						this.piny = random(713) + 337;
						this.pintime = 60;
						this.pinpointed = true;
					}
					if (!this.moving && this._currentframe !== 1) {
						this.gotoAndStop(1);
					}
					if (!_root.interested && !this.hurted) {
						drag = accuracy;
						this._x += (this.pinx - _x) * drag;
						this._y += (this.piny - _y) * drag;
						this.pintime -= 1;
						if (this.pintime < 0) {
							this.pinpointed = false;
						}
					}
					if (this.moving && !_root.interested && !this.hurted) {
						if (this._x > this.pinx && this._currentframe !== 3) {
							this.gotoAndStop(3);
						}
						if (this._x < this.pinx && this._currentframe !== 2) {
							this.gotoAndStop(2);
						}
					}
					if (this.box.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend) {
						_root.hurt = true;
						_root.hurted = true;
						if (_root.armor == 1) {
							_root.health -= 2;
						}
						if (_root.armor == 2) {
							_root.health -= 2;
						}
						if (_root.armor == 3) {
							_root.health -= 1;
						}
						if (_root.armor == 4) {
							_root.health -= 1;
						}
						if (_root.helmet == 1) {
							_root.health -= 2;
						}
						if (_root.helmet == 2) {
							_root.health -= 1;
						}
						if (_root.helmet == 3) {
							_root.health -= 1;
						}
						if (_root.helmet == 4) {
							_root.health -= 0;
						}
					}
					if (this.box.hitTest(_root.box) && _root.defend && !_root.block) {
						_root.block = true;
						if (_root.sfx) {
							_root.metalhit.start(0, 1);
						}
					}
					i = 0;
					while (i < _root.ar) {
						if (this.box.hitTest(_root['firedup_' + i]) && this.ice < 6 && _root['firedup_' + i]._currentframe !== 5) {
							++this.ice;
							_root['firedup_' + i].gotoAndStop(5);
							if (_root.sfx) {
								_root.shit1.start(0, 1);
								_root.bossgrowl.start(0, 1);
							}
						}
						if (this.hitTest(_root['arrowdup_' + i]) && this.alive && !this.hurted && this.ice >= 6) {
							this.hurted = true;
							this.health -= 2;
							_root['arrowdup_' + i].removeMovieClip();
							if (_root.sfx) {
								_root.bossgrowl.start(0, 1);
							}
						}
						if (this.hitTest(_root['bombnew' + i]) && _root['bombnew' + i].bomb.explode && !this.hurted && this.ice >= 6) {
							this.hurted = true;
							this.health -= 3;
							if (_root.sfx) {
								_root.shit1.start(0, 1);
								_root.bossgrowl.start(0, 1);
							}
						}
						if (this.hitTest(_root['bombel_' + i]) && this.alive && !this.hurted && this.ice >= 6) {
							this.hurted = true;
							this.health -= 5;
							if (_root.sfx) {
								_root.shit1.start(0, 1);
								_root.bossgrowl.start(0, 1);
							}
						}
						if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurted && this.ice >= 6) {
							this.hurted = true;
							this.health -= 3;
							if (_root.sfx) {
								_root.shit1.start(0, 1);
							}
						}
						++i;
					}
				}
				if (this.alive && !_root.pause) {
					if (this.box.hitTest(_root.hero.hero.hero.hero.hero.sword) && !this.hurted && this.ice >= 6) {
						_root.hits = true;
						this.hurted = true;
						flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
						flashes._alpha = random(100) + 40;
						flashes.placed = true;
						flashes._x = this._x;
						flashes._y = this._y;
						flashes._rotation = random(360);
						if (_root.sword == 1) {
							this.health -= 1;
						} else {
							if (_root.sword == 2) {
								this.health -= 2;
							} else {
								if (_root.sword == 3) {
									this.health -= 3;
								} else {
									if (_root.sword == 4) {
										this.health -= 4;
									}
								}
							}
						}
						if (_root.sfx) {
							_root.bossgrowl.start(0, 1);
						}
					}
					if (this.hurted && this.hurtbounce > 0 && !_root.pause && !_root.chatting) {
						--this.hurtbounce;
						if (this.hurtbounce <= 0) {
							this.hurted = false;
							this.hurtbounce = 10;
						}
						if (this._x < _root.hero._x) {
							if (!_root.BG.hitTest(this._x - 25, this._y, true)) {
								this._x -= this.hurtbounce;
							}
						}
						if (this._x > _root.hero._x) {
							if (!_root.BG.hitTest(this._x + 25, this._y, true)) {
								this._x += this.hurtbounce;
							}
						}
						if (this._y < _root.hero._y) {
							if (!_root.BG.hitTest(this._x, this._y - 20, true)) {
								this._y -= this.hurtbounce;
							}
						}
						if (this._y > _root.hero._y) {
							if (!_root.BG.hitTest(this._x, this._y + 20, true)) {
								this._y += this.hurtbounce;
							}
						}
					}
				}
				if (this.hurted && this._alpha > 0) {
					this._alpha -= 10;
				}
				if (!this.hurted && this._alpha < 100) {
					this._alpha += 10;
				}
				if (this.ice == 6 && this.alive && this.allowtime > 0) {
					--this.allowtime;
				}
				if (this.ice == 6 && this.alive && this.allowtime <= 0) {
					this.ice -= 1;
					this.allowtime = 150;
					if (_root.sfx) {
						_root.icefreeze.start(0, 1);
					}
				}
				if (this.ice !== 1 && this.ice !== 6 && this.alive && this.stuntime > 0) {
					--this.stuntime;
				}
				if (this.alive && this.stuntime <= 0 && this.ice !== 1) {
					--this.ice;
					this.stuntime = 300;
					if (_root.sfx) {
						_root.icefreeze.start(0, 1);
					}
				}
				if (this.health <= 0 && this.alive) {
					_root.enemies -= 1;
					this.alive = false;
				}
				if (!this.alive && this._currentframe !== 4) {
					this.hurted = false;
					this._alpha = 100;
					this.gotoAndStop(4);
				}
			}
		}
	}
	instance of movieClip 4029	{
		onClipEvent (load) {
			this.wave = 1;
			this.timer = 50;
		}
		onClipEvent (enterFrame) {
			if (_root.enemies == 0 && this.wave < 4 && this.timer <= 0) {
				++this.wave;
				_root.fade.play();
				this.timer = 50;
			}
			if (this.timer > 0 && _root.enemies == 0) {
				--this.timer;
			}
			if (this._currentframe !== this.wave) {
				if (_root.fade._currentframe >= 15) {
					this.gotoAndStop(this.wave);
				}
			}
			if (this.wave == 4 && this._currentframe == 4) {
				_root.autosave = false;
				_root.warping = true;
				_root.warps = true;
				_root.room = 'final_scene';
			}
		}
	}
	movieClip 4032	{
	}
	movieClip 4033	{
	}
	movieClip 4034	{
	}
	movieClip 4035	{
		frame 8 {
			stop();
		}
	}
	movieClip 4036	{
		frame 8 {
			stop();
			_parent.removeMovieClip();
		}
	}
	movieClip 4037	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
	}
	instance tent1 of movieClip 4037	{
		onClipEvent (load) {
			this.health = 5;
			this.hurt = false;
			this.timer = 10;
			this.alive = true;
		}
		onClipEvent (enterFrame) {
			if (this._currentframe !== 3 && this._currentframe == 2) {
				if (this.box.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 2;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 1;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 0;
					}
				}
				if (this.box.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
			if (this.health <= 0 && this._currentframe !== 3) {
				this.gotoAndStop(3);
				this.alive = false;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt) {
				this.health -= 5;
				this.hurt = true;
				if (_root.sfx) {
					_root.bossgrowl.start(0, 1);
				}
			}
			if (!this.hurt && this.hitTest(_root.hero.hero.hero.hero.hero.sword)) {
				this.hurt = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.alive) {
				if (this.hurt && this.timer > 0) {
					--this.timer;
				}
				if (this.timer <= 0 && this.hurt) {
					this.timer = 10;
					this.hurt = false;
				}
			}
			if (_root.pause && this._visible) {
				this._visible = false;
			}
			if (!_root.pause && !this._visible) {
				this._visible = true;
			}
			if (_root.removetenticle && this._currentframe !== 4) {
				this.gotoAndStop(4);
			}
			if (this._currentframe == 4 && this.dis._currentframe == 8 or _root.warping) {
				this.removeMovieClip();
			}
		}
	}
	instance tent2 of movieClip 4037	{
		onClipEvent (load) {
			this.health = 5;
			this.hurt = false;
			this.timer = 10;
			this.alive = true;
		}
		onClipEvent (enterFrame) {
			if (this._currentframe !== 3 && this._currentframe == 2) {
				if (this.box.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 2;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 1;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 0;
					}
				}
				if (this.box.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
			if (this.health <= 0 && this._currentframe !== 3) {
				this.gotoAndStop(3);
				this.alive = false;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt) {
				this.health -= 5;
				this.hurt = true;
				if (_root.sfx) {
					_root.bossgrowl.start(0, 1);
				}
			}
			if (!this.hurt && this.hitTest(_root.hero.hero.hero.hero.hero.sword)) {
				this.hurt = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.alive) {
				if (this.hurt && this.timer > 0) {
					--this.timer;
				}
				if (this.timer <= 0 && this.hurt) {
					this.timer = 10;
					this.hurt = false;
				}
			}
			if (_root.pause && this._visible) {
				this._visible = false;
			}
			if (!_root.pause && !this._visible) {
				this._visible = true;
			}
			if (_root.removetenticle && this._currentframe !== 4) {
				this.gotoAndStop(4);
			}
			if (this._currentframe == 4 && this.dis._currentframe == 8 or _root.warping) {
				this.removeMovieClip();
			}
		}
	}
	instance tent3 of movieClip 4037	{
		onClipEvent (load) {
			this.health = 5;
			this.hurt = false;
			this.timer = 10;
			this.alive = true;
		}
		onClipEvent (enterFrame) {
			if (this._currentframe !== 3 && this._currentframe == 2) {
				if (this.box.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 2;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 1;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 0;
					}
				}
				if (this.box.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
			if (this.health <= 0 && this._currentframe !== 3) {
				this.gotoAndStop(3);
				this.alive = false;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt) {
				this.health -= 5;
				this.hurt = true;
				if (_root.sfx) {
					_root.bossgrowl.start(0, 1);
				}
			}
			if (!this.hurt && this.hitTest(_root.hero.hero.hero.hero.hero.sword)) {
				this.hurt = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.alive) {
				if (this.hurt && this.timer > 0) {
					--this.timer;
				}
				if (this.timer <= 0 && this.hurt) {
					this.timer = 10;
					this.hurt = false;
				}
			}
			if (_root.pause && this._visible) {
				this._visible = false;
			}
			if (!_root.pause && !this._visible) {
				this._visible = true;
			}
			if (_root.removetenticle && this._currentframe !== 4) {
				this.gotoAndStop(4);
			}
			if (this._currentframe == 4 && this.dis._currentframe == 8 or _root.warping) {
				this.removeMovieClip();
			}
		}
	}
	instance tent4 of movieClip 4037	{
		onClipEvent (load) {
			this.health = 5;
			this.hurt = false;
			this.timer = 10;
			this.alive = true;
		}
		onClipEvent (enterFrame) {
			if (this._currentframe !== 3 && this._currentframe == 2) {
				if (this.box.hitTest(_root.box) && !_root.hurt && !_root.hurted && !_root.defend && !_root.attack) {
					_root.hurt = true;
					_root.hurted = true;
					if (_root.armor == 1) {
						_root.health -= 2;
					}
					if (_root.armor == 2) {
						_root.health -= 2;
					}
					if (_root.armor == 3) {
						_root.health -= 1;
					}
					if (_root.armor == 4) {
						_root.health -= 1;
					}
					if (_root.helmet == 1) {
						_root.health -= 2;
					}
					if (_root.helmet == 2) {
						_root.health -= 1;
					}
					if (_root.helmet == 3) {
						_root.health -= 1;
					}
					if (_root.helmet == 4) {
						_root.health -= 0;
					}
				}
				if (this.box.hitTest(_root.box) && _root.defend && !_root.block) {
					_root.block = true;
					if (_root.sfx) {
						_root.metalhit.start(0, 1);
					}
				}
			}
			if (this.health <= 0 && this._currentframe !== 3) {
				this.gotoAndStop(3);
				this.alive = false;
			}
			if (this.hitTest(_root.hero.hero.hero.hero.hammer) && this.alive && !this.hurt) {
				this.health -= 5;
				this.hurt = true;
				if (_root.sfx) {
					_root.bossgrowl.start(0, 1);
				}
			}
			if (!this.hurt && this.hitTest(_root.hero.hero.hero.hero.hero.sword)) {
				this.hurt = true;
				flashes = _root.imphit.duplicateMovieClip('imphitnew', _root.getNextHighestDepth());
				flashes._alpha = random(100) + 40;
				flashes.placed = true;
				flashes._x = this._x;
				flashes._y = this._y;
				flashes._rotation = random(360);
				if (_root.sfx) {
					_root.shit1.start(0, 1);
				}
				if (_root.sword == 1) {
					this.health -= 1;
				} else {
					if (_root.sword == 2) {
						this.health -= 2;
					} else {
						if (_root.sword == 3) {
							this.health -= 3;
						} else {
							if (_root.sword == 4) {
								this.health -= 4;
							}
						}
					}
				}
			}
			if (this.alive) {
				if (this.hurt && this.timer > 0) {
					--this.timer;
				}
				if (this.timer <= 0 && this.hurt) {
					this.timer = 10;
					this.hurt = false;
				}
			}
			if (_root.pause && this._visible) {
				this._visible = false;
			}
			if (!_root.pause && !this._visible) {
				this._visible = true;
			}
			if (_root.removetenticle && this._currentframe !== 4) {
				this.gotoAndStop(4);
			}
			if (this._currentframe == 4 && this.dis._currentframe == 8 or _root.warping) {
				this.removeMovieClip();
			}
		}
	}
	movieClip 4038	{
	}
	movieClip 4039	{
	}
	movieClip 4042	{
		frame 1 {
			stop();
		}
	}
	frame 259 {
		stop();
		_root.days = true;
		_root.walking = 1;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.boss1 = false;
		_root.intromusic = true;
	}
	movieClip 4043	{
		frame 1 {
			stop();
		}
		frame 2 {
			stop();
		}
		frame 3 {
			stop();
		}
		frame 4 {
			stop();
		}
		frame 5 {
			stop();
		}
		frame 6 {
			stop();
		}
		frame 7 {
			stop();
		}
		frame 8 {
			stop();
		}
		frame 9 {
			stop();
		}
	}
	movieClip 4045	{
	}
	movieClip 4046	{
		frame 1 {
			stop();
		}
	}
	instance of movieClip 4046	{
		onClipEvent (enterFrame) {
			this._x = _root.cam._x;
			this._y = _root.cam._y;
			if (!_root.room !== 'ndung28') {
				_root.pause = true;
				_root.cam._visible = false;
				_root.menusc._visible = false;
			}
			if (!this.apush && Key.isDown(65) && this.scene.intro._currentframe !== 8) {
				this.scene.intro.play();
				this.apush = true;
			}
			if (!this.apush && Key.isDown(65) && this.scene.intro._currentframe == 8) {
				_root.warping = true;
				_root.room = 'credits';
				_root.pause = false;
				_root.cam._visible = true;
				this.apush = true;
			}
			if (this.apush && !Key.isDown(65)) {
				this.apush = false;
			}
		}
	}
	frame 261 {
		stop();
		_root.walking = 1;
		_root.days = true;
		_root.neveahmusic = false;
		_root.shopmusic = false;
		_root.graveyardsound = false;
		_root.reveriemusic = false;
		_root.boss1 = false;
		_root.intromusic = true;
		_root.trans._x = 357.5;
		_root.trans._y = 273.3;
	}
	movieClip 4048	{
	}
	movieClip 4063	{
	}
	button 4066 {
		on (release) {
			getURL('http://www.nextplay.com/?utm_medium=brandedgames_external&utm_campaign=guardian-2&utm_source=ingame&utm_content=ingame', '_blank');
		}
	}
	movieClip 4067	{
	}
	movieClip 4068	{
	}
	movieClip 4069	{
		frame 1430 {
			stop();
			_root.oldtrack = _root.music;
			_root.pause = false;
			_root.apush = true;
			_root.gameloading = false;
			_root.havestone = true;
			_root.room = 'room2';
			_root.oldroom = 'ocean';
			_root.savegame = true;
			_root.gotoAndStop('menu');
		}
	}
