Can now speak to Wormbrain through the jail cell
Fixed some Wormbrain typos
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
package content.region.misthalin.varrock.quest.dragonslayer
|
package content.region.misthalin.varrock.quest.dragonslayer
|
||||||
|
|
||||||
import core.api.sendMessage
|
import core.api.sendMessage
|
||||||
import org.rs09.consts.Scenery
|
|
||||||
import core.game.interaction.InteractionListener
|
|
||||||
import core.game.interaction.IntType
|
import core.game.interaction.IntType
|
||||||
|
import core.game.interaction.InteractionListener
|
||||||
|
import core.game.world.map.Location
|
||||||
|
import org.rs09.consts.NPCs
|
||||||
|
import org.rs09.consts.Scenery
|
||||||
|
|
||||||
class DSListeners : InteractionListener {
|
class DSListeners : InteractionListener {
|
||||||
override fun defineListeners() {
|
override fun defineListeners() {
|
||||||
@@ -11,5 +13,17 @@ class DSListeners : InteractionListener {
|
|||||||
sendMessage(player, "It's locked tight.")
|
sendMessage(player, "It's locked tight.")
|
||||||
return@on true
|
return@on true
|
||||||
}
|
}
|
||||||
|
// Talk to Wormbrain
|
||||||
|
setDest(IntType.NPC, intArrayOf(NPCs.WORMBRAIN_745), "talk-to") { player, node ->
|
||||||
|
val npc = node.asNpc()
|
||||||
|
val p = player.asPlayer()
|
||||||
|
val dis = player.location.withinMaxnormDistance(npc.location, 1)
|
||||||
|
if (dis){
|
||||||
|
return@setDest Location.create( p.location.x, p.location.y, 0)
|
||||||
|
}
|
||||||
|
else return@setDest Location.create( npc.location.x, npc.location.y, 0)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
+2
-5
@@ -96,7 +96,7 @@ public final class WormbrainDialogue extends DialoguePlugin {
|
|||||||
stage = 505;
|
stage = 505;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
player("Alrigt, then, 10,000 it is.");
|
player("Alright, then, 10,000 it is.");
|
||||||
stage = 506;
|
stage = 506;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -154,7 +154,7 @@ public final class WormbrainDialogue extends DialoguePlugin {
|
|||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
player("Sorry, thought this was a zoo.");
|
player("Sorry, thought this was a zoo.");
|
||||||
stage = 20;
|
stage = 15;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -181,9 +181,6 @@ public final class WormbrainDialogue extends DialoguePlugin {
|
|||||||
case 15:
|
case 15:
|
||||||
end();
|
end();
|
||||||
break;
|
break;
|
||||||
case 20:
|
|
||||||
end();
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user