hey guys, so im making this minigame where the player kills a boss then automaticaly gets teleported to the next room, anyway i already have 1 of my boss npcs telee the player after death (ballak the pummeler) and im gonna make it so more of the npcs do that aswell, my problem is though the code im using to tele player after death wont work for my other npc, it compiles fine, runs fine, but asoon as i attack the npc it teles, i want it so the player needs to kill it first. here my code to make the npc tele (the working one)
Code:
if (this.getId() == 10141) {
killer.setNextWorldTile(new WorldTile(3139, 3091, 1));}
this one dosent work (they are right by eachother to)
Code:
if (this.getId() == 9949) {
killer.setNextWorldTile(new WorldTile(136, 4242, 0));
}
Could someone help me out? thanks