// NPC made by Arcainne if (playerenters) { show; hideimg 0; hideimg 1; hideimg 2; hideimg 3; timeout = 0; } if (playertouchsme) { toweapons Bind; } if (weaponfired && playermp > 50) { setarray this.newx, 1; setarray this.newy, 1; setstring this.level, #L; this.newx=playerx; this.newy=playery; freezeplayer 10; this.teley = playery + 2; this.telex1 = playerx + random(0, 1); this.telex2 = playerx + random(1, 2); this.imgy = 63; this.imgh = 1; this.iy = playery + 1; changeimgvis 2, 1; showimg 3, shadow-64x48.gif, playerx - .5, playery + 2; changeimgvis 3, 0; playersprite = 24; timeout = .05; } if (timeout) { if (!this.imgy > 0 && !this.imgh < 64 || this.imgy > 0 && this.imgh < 64) { showimg 0, crystalflash.mng, this.telex1, this.teley; showimg 1, 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); } if (this.imgy > 0 && this.imgh < 64) { showimg 2, bluehoardorb.gif, playerx - .5, this.iy; changeimgpart 2, 0, this.imgy, 64, this.imgh; this.iy -= .1; this.imgy--; this.imgh++; playermp -= .5; } timeout = .05; } if (this.imgy == 0 && this.imgh == 64) { showimg 2, bluehoardorb.gif, playerx - .5, this.iy; changeimgpart 2, 0, 0, 64, 64; freezeplayer 1; hideimg 0; hideimg 1; putnpc no-shield.gif, Bind1.txt, playerx + 1, playery + 2; sleep 1; timereverywhere; timeout = 0; freezeplayer 0; play chest.wav; hideimg 2; hideimg 3; this.imgy = 63; this.imgh = 1; } if (weaponfired && playermp < 50) { timeout = 0; play arrowon.wav; }