41 Commits
Author SHA1 Message Date
stormy 2fc47a0ab7 Note why isTricking is deprecated 2024-03-29 20:01:42 +01:00
stormy 02afb9735b Restore isTricking function for compat with legacy scripts 2024-03-29 17:13:19 +01:00
stormy a3fac1cf8c botframe: add a checkbox for fog of war 2024-03-07 16:39:27 +01:00
stormy cc90560145 camerahandler: more vanilla, less headachey fast movement. 2024-03-07 16:39:27 +01:00
stormy 93e95e07f0 extension: add accessors for camera position 2024-03-07 16:39:27 +01:00
stormy 38308f9c3c Overflow fixes - should help bot stability on crowded worlds 2024-03-07 14:36:49 +01:00
Kaila Btw b86f75e1a3 Restore System Tray Functionality
This will restore minimize to system tray functionality for APOS.
2024-03-06 11:44:02 -05:00
seditionist 7c10f4b9d6 Solve sleep word from image hashes 2024-02-06 13:57:17 +00:00
Millz 15b2427c77 Added timestamps to chat messages 2024-02-02 10:22:24 +00:00
Millz e24e6b3e17 Added isWithinArea() to Script.java. Updated checks for PathWalker to use new method for leaving Al Kharid gate 2024-01-31 10:28:12 +00:00
Millz 35dc016059 Added option to disable captcha logging. Al Kharid gate fix. Starting coord randomisation to improve pathing failures 2024-01-29 16:28:33 +00:00
stormy 960e9a7a31 Consistent whitespace. 2023-12-12 14:53:27 +01:00
Millz 1254397c43 merged master 2023-12-08 10:55:54 +00:00
Millz 7be49312bd Changed window title to be toggled via in-game command. Changed arg separator to = 2023-12-08 10:52:57 +00:00
Millz b66257d257 command line args 2023-12-08 10:52:57 +00:00
Millz d924b90fac Changed window title to be toggled via in-game command. Changed arg separator to = 2023-12-08 10:24:15 +00:00
stormy 280ae928ae De-ugly the UI with the new buttons
Restore the Seal of Awesomeness to its full glory.
2023-12-08 10:44:21 +01:00
Millz 74f657f644 command line args 2023-12-08 09:26:51 +00:00
dginovker 1485dcf57f Check for non-Windows when compiling scripts from script menu with sh 2023-09-25 13:40:41 +09:00
dginovker e650911d80 Convert some code to work on more than only Linux and Windows (BSD, MacOS), fix script compile script not compiling due to French characters in code 2023-09-25 01:15:25 +09:00
Kaila_Btw 467647bb56 Use AI to generate javadoc notation
This should help a bit when writing scripts and not knowing what method does what.
2023-09-04 18:13:38 -04:00
Kaila_Btw 642e21703b Update server port for uranium
this is to match https://gitlab.com/open-runescape-classic/core/-/merge_requests/3730/commits
Port was 43235 for uranium, now it is 43601

As far as I can tell APOS node is just port but stripping the leading 4. APOS connected and logged in fine after change
2023-09-04 17:14:35 -04:00
Kaila_Btw 2bc8c3aee5 Fix graphics randomly toggling off
sorry this was not fixed sooner
2023-09-04 10:36:50 -04:00
Kaila Btw 9ba7c19dc5 Fix deRefresh 2023-04-03 21:27:17 +00:00
Kaila_Btw 93113af8f8 60s or longer sleep time
Give the server a break yall
2023-03-31 18:27:08 -04:00
Kaila_Btw 1bfe3c0a0a Hide Screen refresh debugg screen printout 2023-03-31 02:29:55 -04:00
Kaila_Btw 29a1c4b484 1 frame screen refresh for gui elements
Briefly toggles on render for 1 frame (20ms) every 60s that pass while render is off, this is to refresh onscreen gui with new information, as well as prevent leaving render off longterm defaulting to the zoomed out minimap image that is common. The call for render toggle is on game message, so this only works while botting (that is ideal) and will trigger if time is right and a game message appears. Then onPaintTick is active at that point, so we let that call the 1 frame toggle off.  Using game message now could take a while to get another game message.

Stormy said this should not affect the bot resource usage at all really.
2023-03-31 02:25:08 -04:00
Kaila_Btw bc1cf9f755 Add Interlace toggle to GUI
Added to the right of Textured 3D toggle box
2023-03-31 00:12:39 -04:00
Kaila_Btw 9d8c03db0d Screenshot functionaliy reDesign
LoginListener - Increase Wait times, Testing showed that being logged in ensures current time in ms > next_attempt and client will always log in 1 time immediately if you leave autologin on and manually click logout (preserving current behavior, and reminding the user they left autolog On) thus timing was increased for subsequent attempts.

Keyboard Handler/BotFrame - Full screenshot functionality rewrite. Added interlacer and gfx temporary toggle support, bot will turn off interlacer, toggle on graphics, take the screenshot, then restore them to previous states. thread.sleep allows time for drawcallback to render a couple new frames before image is taken. Added folder and playerName generation, will create folder structure 
*/screenshot/playername/filename_playername_date_time.png 
before saving the image. This is because java Image.write will NOT save a file if the folder path is non-existant. Using the file name structure generates a new file name 1x per second, unfortunately same file names will overwrite, but this allows 1 screenshot per second for infinity. It also perfectly mirror runelite screenshot naming convention.
2023-03-30 23:23:12 -04:00
Kaila_Btw 64296b9fc7 More LoginListener changes
Sets lowest time to 35 seconds, after 10 attempts goes up to ~2 mins minimum, increasing to 4 mins quickly, and 6-7 mins after long periods.  Fixed the multiple next_attempts per login Attempt, feature is functioning correctly now.
2023-03-30 19:33:02 -04:00
Kaila_Btw d3bc6e46c5 Simplify and correct values
Also slightly increases autolog time, as Ken suggested we can decrease it later if the problem resolves with this fix.

Also makes the random variable larger for i>11. now a random range of 10s
2023-03-30 18:57:19 -04:00
Kaila_Btw f4af0cc461 Fix Autolog timing to not DDOS server.
This is because APOS can't run a loop with the way Login Listener is written, this will start at 5s(+=1s) autolog for 2 attempts, then 15s(+=5s) autolog for the next 8 attempts (2 minute total)  (there is currently only a 5s autolog, no WONDER there are issues when server reboots. ) then it will start at around a 1min login delay and ramp up to ~2.7 min delay at n = 50, and a ~ 4.2 min delay as n => 500. and a 4.6 min delay as n> 500k (so no worries about leaving a client autologging, it will converge on ~4.6666 (6 repeating) mins at infinity).

Toggling autologin will not reset your autologin counter, but when done the bot controller will always immediately attempt to log in, and if it cannot then it will go back to waiting. Perhaps a future addition can reset the counter? 

system.out.println shows exactly how long till next autolog attempt, shown in seconds, as well as how many auto login attempts (since you were last online, this resets when you login)

1 small bug, onLoginResponse appears to process 2 times before bot goes back to

 `if (System.currentTimeMillis() < next_attempt) return;` to wait for next_attempt system time. 

This does produce 2x chat messages in the client console, as well as counts "i" twice as fast as intender. HOWEVER, the bot only logs in 1x per cycle, and it still produces the intended login timing results when tested (5s, 5s, 15s, 15s, ... , 30s, ... , 60s, ... ,120s)

this calculator can be used to visualize the different equations as "i" increases in value. 
https://www.desmos.com/calculator

Graphs are an interesting way to visualize it. The value of the number x in 
x = (i*15)/(i+60)
will begin to converge on a fixed value as "i" approaches ~240, notice we don't get too much increase in the beginning, that is good. Then we apply that x(i) to the equation y = (Math.random() * 30000) + (30000x(i)) + 30000. we want large values of i to converge on y = 5 for about a 4 - 5 min login retry timer after ~150-200 retrys. The size of (60) determines how flat our curve is initially (it has a reducing effect on the growth of the numerator). The Size of 15 determines where on the y axis our curve will converge to. convergence doesn't matter too much because we are only going to i=240, so we wont check very large values. All said and done we get this result (calculated with excel):
2023-03-30 18:57:19 -04:00
dginovker 8b416c2146 Fix scripts not being compilable on Linux 2023-01-22 14:45:12 +00:00
dginovker f79821b165 Big improvements to APOS script search 2022-11-23 16:06:42 +09:00
dginovker 27a9bca48c Fix APOS not finding compiled scripts in subfolders due to faulty logic 2022-11-23 04:44:06 +00:00
dginovker aa2240ad40 Add Open Folder and Compile Scripts button to Script Chooser UI 2022-11-16 08:08:49 +09:00
Abyte0 81b64eb829 Switching script on the fly and switching account on the fly require the LoginListener and ScriptListener to be public so we can call them from outside the bot assembly 2022-09-30 00:24:57 -04:00
Chomp 2a38bbe110 update rsclassic.jar and client
* add hooks for Camera auto, angle, and rotationY
* update renderRoofsHook
* update README
2022-07-05 19:04:25 -06:00
Chomp 6ec8ef092f update rsclassic.jar and client
* ::roofs command
* cameraRefocusHook method signature
2022-06-27 16:58:36 -06:00
Chomp a94858cbd0 update BotFrame on script start/stop and autologin enable/disable 2022-06-22 22:45:23 -06:00
Chomp d8478eeb5a v3.0.0
* Adds commands ::menu ::debug
* Adds Camera/Keyboard/Mouse handlers
* Adds various new hooks and script methods
* Adds quests.txt ids
* Updates apache-ant to 1.10.12
* Updates and adds various new scripts
* Refactors client
2022-06-19 11:58:44 -06:00