This is what I have, I just implemented what you gave me:
NPC Code:
//#CLIENTSIDE
function onWeaponFired()
{
if (player.dir=0){ putbomb(1, x+0.5 % 64, y-1 % 64); }
if (player.dir=1){ putbomb(1, x-1.5 % 64, y+1 % 64); }
if (player.dir=2){ putbomb(1, x+0.5 % 64, y+2.5 % 64); }
if (player.dir=3){ putbomb(1, x+2.5 % 64, y+1 % 64); }
player.bombs - 1;
}