Skip to content

Instantly share code, notes, and snippets.

View its-jackson's full-sized avatar

Jackson its-jackson

  • PolymorphicScripts
  • Barrie
View GitHub Profile
package scripts
import org.tribot.script.sdk.*
import org.tribot.script.sdk.Combat.*
import org.tribot.script.sdk.Waiting.wait
import org.tribot.script.sdk.antiban.Antiban
import org.tribot.script.sdk.frameworks.behaviortree.*
import org.tribot.script.sdk.painting.Painting
import org.tribot.script.sdk.script.TribotScript
import org.tribot.script.sdk.script.TribotScriptManifest
@its-jackson
its-jackson / StateTreeWoodcutter.kt
Last active July 2, 2024 16:18
Employs state based delays through its state tree, ensuring specific tasks are completed in a controlled manner. It also has anticipation models by preparing for the next action (like hovering the next tree, spec orb) and adjusting behavior based on local time.
package scripts
import org.tribot.script.sdk.*
import org.tribot.script.sdk.Combat.*
import org.tribot.script.sdk.Waiting.wait
import org.tribot.script.sdk.antiban.Antiban
import org.tribot.script.sdk.frameworks.behaviortree.*
import org.tribot.script.sdk.painting.Painting
import org.tribot.script.sdk.script.TribotScript
import org.tribot.script.sdk.script.TribotScriptManifest
package scripts.nexus.sdk.mouse
import com.allatori.annotations.DoNotRename
import org.tribot.api.input.Mouse.getPos
import org.tribot.script.sdk.ScriptListening.addMouseClickListener
import org.tribot.script.sdk.Waiting.wait
import org.tribot.script.sdk.interfaces.MouseClickListener
import org.tribot.script.sdk.painting.MousePaint
import org.tribot.script.sdk.painting.Painting.*
import java.awt.*
package scripts.nexus.sdk.routine.api.mort.myre.fungus
import org.tribot.script.sdk.*
import org.tribot.script.sdk.antiban.Antiban
import org.tribot.script.sdk.painting.Painting
import org.tribot.script.sdk.painting.template.basic.BasicPaintTemplate
import org.tribot.script.sdk.pricing.Pricing
import org.tribot.script.sdk.query.Query
import org.tribot.script.sdk.tasks.BankTask
import org.tribot.script.sdk.types.GameObject
package scripts.kotlin.api.framework.routine.api.woodcutting
import org.tribot.script.sdk.MyPlayer
import org.tribot.script.sdk.painting.Painting
import org.tribot.script.sdk.tasks.BankTask
import org.tribot.script.sdk.types.WorldTile
import scripts.kotlin.api.DepositBoxManager
import scripts.kotlin.api.agents.woodcutting.AutomaticAxe
import scripts.kotlin.api.canReach
import scripts.kotlin.api.framework.routine.*
package scripts.kotlin.api.framework.routine.api.binary.tree
import org.tribot.script.sdk.Options
import org.tribot.script.sdk.antiban.Antiban
import scripts.kotlin.api.framework.routine.RoutineStatus
import scripts.kotlin.api.framework.routine.api.Logger
import kotlin.reflect.KMutableProperty0
interface Node {
fun execute(): RoutineStatus
package scripts.kotlin.api.framework.routine.api.woodcutting
import org.tribot.script.sdk.MyPlayer
import org.tribot.script.sdk.painting.Painting
import org.tribot.script.sdk.tasks.BankTask
import org.tribot.script.sdk.types.WorldTile
import scripts.kotlin.api.DepositBoxManager
import scripts.kotlin.api.agents.woodcutting.AutomaticAxe
import scripts.kotlin.api.canReach
import scripts.kotlin.api.framework.routine.*
package scripts.kotlin.api.antiban
import org.tribot.script.sdk.MyPlayer
import java.security.MessageDigest
import kotlin.math.abs
import kotlin.math.cos
import kotlin.math.ln
import kotlin.math.sqrt
import kotlin.random.Random
package scripts.kotlin.api.framework.routine.api.interfaces
import scripts.kotlin.api.framework.routine.api.Consumable
import scripts.kotlin.api.framework.routine.api.Logger
interface ConsumableManager {
val logger: Logger
fun consume(consumable: Consumable): Boolean
package scripts.kotlin.api.framework.routine.api.interfaces
import scripts.kotlin.api.framework.routine.api.Consumable
interface TribotConsumableManager : ConsumableManager {
val consumables: Array<Consumable>
override fun checkAll(): Consumable? {
for (c in consumables) {
if (consume(c)) {