// NPC made by Arcainne if (playerenters) { show; blockagain; drawunderplayer; } if (playertouchsme) { toweapons Whisper Magic; } if (hasweapon(Whisper Magic)) { show; } if (weaponfired&&playerbombs>10&&playerdarts>10) { freezeplayer 2; this.teley = playery + 2; this.telex1 = playerx + random(0, 1); this.telex2 = playerx + random(1, 2); playerdir = up; playersprite = 19; showimg 0,magicvial.png,playerx+.6,playery; changeimgvis 0,0; sleep 1; changeimgvis 0,0; play fish2.wav; playersprite = 22; sleep 1; hideimg 0; playersprite = 33; playerdir = 2; timeout = .05; } else timeout = 0; if (timeout&&playermp<99) { showimg 1, crystalflash.mng, this.telex1, this.teley; showimg 2, crystalflash.mng, this.telex2, this.teley; this.teley -= random(.05, 1); this.telex1 -= random(-1, 1); this.telex2 -= random(-1, 1); if (this.teley < playery - 2) { this.teley = playery + 2; } if (this.telex1 < playerx) { this.telex1 += random(1, 2); } if (this.telex1 > playerx + 2) { this.telex1 -= random(1, 2); } if (this.telex2 < playerx) { this.telex2 += random(1, 2); } if (this.telex2 > playerx + 2) { this.telex2 -= random(1, 2); } if (this.teley > playery + 3) { this.teley -= random(2, 3); } playerbombs-=.05; playerdarts-=.05; playermp += 5; freezeplayer .05; timeout = .05; play chest.wav; } if (timeout&&playermp>99) { timeout = 0; freezeplayer 0; hideimg 1; hideimg 2; }