Adventure Bots

- Fixed News: Logs being sold spam.

- Slight tweaks to adventure bots.
This commit is contained in:
Badhad
2021-04-02 17:41:21 -04:00
parent 8ba1784c4e
commit ede7068d0e
2 changed files with 9 additions and 2 deletions
@@ -483,7 +483,15 @@ class ScriptAPI(private val bot: Player) {
} }
val canSell = OfferManager.addBotOffer(actualId, itemAmt) val canSell = OfferManager.addBotOffer(actualId, itemAmt)
if (canSell && saleIsBigNews(actualId, itemAmt)) { if (canSell && saleIsBigNews(actualId, itemAmt)) {
Repository.sendNews("2009Scape just offered " + itemAmt + " " + ItemDefinition.forId(actualId).name.toLowerCase() + " on the GE.") when (actualId){
1511 -> continue
1513 -> continue
1515 -> continue
1517 -> continue
1519 -> continue
1521 -> continue
else -> Repository.sendNews("2009Scape just offered " + itemAmt + " " + ItemDefinition.forId(actualId).name.toLowerCase() + " on the GE.")
}
} }
bot.bank.remove(item).also { SystemLogger.logAI("$item has been listed on the GE.") } bot.bank.remove(item).also { SystemLogger.logAI("$item has been listed on the GE.") }
bot.bank.refresh() bot.bank.refresh()
@@ -809,7 +809,6 @@ class Adventurer(val style: CombatStyle): Script() {
} }
init { init {
skills[Skills.AGILITY] = 99 skills[Skills.AGILITY] = 99
inventory.add(Item(1359))//Rune Axe inventory.add(Item(1359))//Rune Axe
skills[Skills.WOODCUTTING] = 95 skills[Skills.WOODCUTTING] = 95