why dont you do:
NPC Code:
NPC Code:
// NPC made by Lord Helmut
if (playerenters && !hasweapon(Bomb)) {
setgifpart b_chest.png,0,0,32,32;
}
if(playertouchsme && !hasweapon(Bomb)) {
toweapons Bomb;
}
if (playerenters && hasweapon(Bomb)) {
setgifpart b_chest.png,32,0,32,32;
}