forked from 2009Scape/Server
Adventure Bots
- Fixed News: Logs being sold spam. - Slight tweaks to adventure bots.
This commit is contained in:
parent
02129f0008
commit
b3664669ca
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)
|
||||
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.refresh()
|
||||
|
|
|
|||
|
|
@ -809,7 +809,6 @@ class Adventurer(val style: CombatStyle): Script() {
|
|||
}
|
||||
|
||||
init {
|
||||
|
||||
skills[Skills.AGILITY] = 99
|
||||
inventory.add(Item(1359))//Rune Axe
|
||||
skills[Skills.WOODCUTTING] = 95
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue