Jump to content
  • 0
Sign in to follow this  
madman

562 hunter problem

Question

[code]
case 6055://Baby imp
if(!p.isAnimating()) {
p.turnTo(n);
p.animate(6605);
World.getWorld().registerEvent(new Event(500) {
[MENTION=15855]Over[/MENTION]ride
public void execute() {
if(!n.isDead() && p.DoubleXP == false) {
n.setDead(true);
n.setHidden(true);
n.getDefinition().getRespawn();
p.getActionSender().sendMessage("You catch the baby impling!");
p.getInventory().addItem(11238, 1);
p.getSkills().addXp(21, 10005);
}
if(!n.isDead() && p.DoubleXP == true) {
n.setDead(true);
p.getActionSender().sendMessage("You catch the baby impling!")
p.getInventory().addItem(11238, 1);
p.getSkills().addXp(21, 20010);
}
}
});
}
break;
[/code]
i cant get the imp to respawn

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
aren't imps npc's? if they are you just get them to respawn in the npc definitions

Share this post


Link to post
Share on other sites
  • 0
yeah tried that though that was the problem 2 but i guess not

Share this post


Link to post
Share on other sites
Sign in to follow this  

×