Jump to content
  • 0
Sign in to follow this  
chrischris567

Dementhium [637] Minigame Help

Question

Does anybody know how to make it so when you kill an NPC you are teleported to a new room? For example, you are in a room with a rat. You kill the rat and then it teleports you to a room with a dragon. Kill the dragon then it teleports you to a room with the king black dragon. Those NPCs are just an example. Any ideas? :D

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
If your source has working slayer find where it gives the xp on the npcs death and make it so it'll tele you for the certain npc.

Share this post


Link to post
Share on other sites
  • 0
[quote name='shadow fita']If your source has working slayer find where it gives the xp on the npcs death and make it so it'll tele you for the certain npc.[/QUOTE]

It doesn't have a certain NPC ID it has if you completed the task. See?

public void killedTask() {
player.getSkills().addExperience(Skills.SLAYER, task.getXPAmount());

Share this post


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

×