mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
Fixed Varrock essence miner bot
Essence miner bot will now sell the acquired pure essence on the GE after it reaches at least 500
This commit is contained in:
parent
891cdf7de1
commit
1106cbac25
1 changed files with 14 additions and 1 deletions
|
|
@ -1,10 +1,13 @@
|
|||
package content.global.bots
|
||||
|
||||
import content.data.Quests
|
||||
import core.game.bots.*
|
||||
import core.game.interaction.DestinationFlag
|
||||
import core.game.interaction.IntType
|
||||
import core.game.interaction.InteractionListeners
|
||||
import core.game.interaction.MovementPulse
|
||||
import core.game.node.entity.skill.Skills
|
||||
import core.game.node.item.Item
|
||||
import core.game.world.map.Location
|
||||
import core.game.world.map.zone.ZoneBorders
|
||||
import org.rs09.consts.Items
|
||||
|
|
@ -24,6 +27,11 @@ class VarrockEssenceMiner : Script(){
|
|||
when(state){
|
||||
State.TO_ESSENCE -> {
|
||||
bot.interfaceManager.close()
|
||||
if (bot.bank.getAmount(Items.PURE_ESSENCE_7936) > 500) {
|
||||
state = State.TELE_GE
|
||||
return
|
||||
}
|
||||
|
||||
if(!auburyZone.insideBorder(bot))
|
||||
scriptAPI.walkTo(auburyZone.randomLoc)
|
||||
else {
|
||||
|
|
@ -99,7 +107,6 @@ class VarrockEssenceMiner : Script(){
|
|||
scriptAPI.sellOnGE(Items.PURE_ESSENCE_7936)
|
||||
state = State.TO_ESSENCE
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -118,4 +125,10 @@ class VarrockEssenceMiner : Script(){
|
|||
script.bot = SkillingBotAssembler().produce(SkillingBotAssembler.Wealth.POOR,bot.startLocation)
|
||||
return script
|
||||
}
|
||||
|
||||
init {
|
||||
quests.add(Quests.RUNE_MYSTERIES)
|
||||
inventory.add(Item(Items.ADAMANT_PICKAXE_1271))
|
||||
skills[Skills.MINING] = 31
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue