not sure if this is what you're looking for..
cast long to int
trade.offer(995, Math.toIntExact(amountToTrade));
this will throw ArithmeticException if overflow (amountToTrade greater than 2,147,483,647)
toggle entity hover debug and hover over some tithe farm objects gives me below error.
Mirror client version: 2.1? using osbot 2.4.107
Console output / terminal output
[ERROR][Bot #1][01/04 07:42:04 PM]: renderer
java.lang.AbstractMethodError: client.emu.EmuClient.getTileVisibilityArray()[[Z
at org.osbot.rs07.api.map.Position.isVisible(ti:150)
at org.osbot.eb.onPaint(ns:362)
at org.osbot.rs07.canvas.WrappedCanvas.IiIIiiiIiIii(hj:168)
at org.osbot.rs07.canvas.WrappedCanvas.getGraphics(hj:22)
at client.Iae.run(Unknown Source)
Crash report if a crash occurred: N/A
Script that you ran: N/A
Hooks that failed: Dunno
JVM/Browser bit version (32 / 64): 64
download the regular client.
when you run it, click "Mirror Mode" instead of "Stealth Injection
you have to have a runescape client open and it will detect it