Unstuck green dragon bots
Converted Edgeville <-> GE Shortcut to use Listener Made Green Dragon bots use that listener so they don't all get stuck outside the GE tunnel ::botinfo no longer requires moderator privileges Added option to ForceMovement that lets the entity stay locked
This commit is contained in:
@@ -20,6 +20,8 @@ import core.tools.RandomFunction
|
||||
import org.rs09.consts.Items
|
||||
import rs09.game.ai.AIRepository
|
||||
import rs09.game.ai.pvmbots.CombatBotAssembler
|
||||
import rs09.game.interaction.IntType
|
||||
import rs09.game.interaction.InteractionListeners
|
||||
import rs09.game.node.entity.combat.CombatSwingHandler
|
||||
import rs09.game.node.entity.combat.handlers.MagicSwingHandler
|
||||
import rs09.game.node.entity.combat.handlers.MeleeSwingHandler
|
||||
@@ -173,7 +175,7 @@ class GreenDragonKiller(val style: CombatStyle, area: ZoneBorders? = null) : Scr
|
||||
else {
|
||||
val shortcut = scriptAPI.getNearestNode("Underwall Tunnel",true)
|
||||
shortcut ?: return
|
||||
shortcut.interaction.handle(bot,shortcut.interaction[0])
|
||||
InteractionListeners.run(shortcut.id, IntType.SCENERY, "climb-into", bot, shortcut)
|
||||
}
|
||||
} else {
|
||||
if (!edgevilleLine.insideBorder(bot) && bot.location.y < 3520) {
|
||||
@@ -197,7 +199,7 @@ class GreenDragonKiller(val style: CombatStyle, area: ZoneBorders? = null) : Scr
|
||||
if(bot.location == Location.create(3136, 3517, 0)){
|
||||
val shortcut = scriptAPI.getNearestNode("Underwall Tunnel",true)
|
||||
shortcut ?: return
|
||||
shortcut.interaction.handle(bot,shortcut.interaction[0])
|
||||
InteractionListeners.run(shortcut.id, IntType.SCENERY, "climb-into", bot, shortcut)
|
||||
} else {
|
||||
scriptAPI.walkTo(Location.create(3136, 3517, 0))
|
||||
}
|
||||
|
||||
@@ -197,7 +197,7 @@ class MiscCommandSet : CommandSet(Privilege.ADMIN){
|
||||
/**
|
||||
* Lists information about a bot
|
||||
*/
|
||||
define("botinfo", Privilege.MODERATOR, "::botinfo <lt>botname<gt>", "Prints debug information about a bot"){ player, args ->
|
||||
define("botinfo", Privilege.STANDARD, "::botinfo <lt>botname<gt>", "Prints debug information about a bot"){ player, args ->
|
||||
val scriptInstances = AIRepository.PulseRepository
|
||||
|
||||
// Find the bot with the given name (non-case sensitive)
|
||||
|
||||
Reference in New Issue
Block a user