Added automatic screenshots (#657)

* Added automatic screenshots

This branch is based off of the screenshots branch, but it will also require the develop branch to be merged first to not cause a git conflict with adding more QoL options to ClientSettings.java, so we'll want to pull the develop branch onto this branch eventually (or, I suppose, the master branch after it's merged).

In other words, we can add 2 new QoL settings to ClientSettings at a later time (after my develop branch fixes/improvements PR is merged).

* Fixed params for auto screenshots

* Added auto screenshots toggle

* Fixed auto screenshots var typo
This commit is contained in:
ipkpjersi
2024-09-20 23:14:45 -04:00
committed by GitHub
parent e404eadb3b
commit 0120892521
3 changed files with 31 additions and 0 deletions
+20
View File
@@ -5684,6 +5684,16 @@ public class Game extends RSApplet {
needDrawTabArea = true;
tabID = 1;
tabAreaAltered = true;
if(ClientSettings.SCREENSHOTS_ENABLED && ClientSettings.AUTOMATIC_SCREENSHOTS_ENABLED) {
java.util.Timer timer = new java.util.Timer();
java.util.TimerTask delayedScreenshot = new java.util.TimerTask() {
@Override
public void run() {
screenshot(false, "stats");
}
};
timer.schedule(delayedScreenshot, 300);
}
}
if (super.saveClickX >= 597 && super.saveClickX <= 627 && super.saveClickY >= 168 && super.saveClickY < 205 && tabInterfaceIDs[2] != -1) {
needDrawTabArea = true;
@@ -11302,6 +11312,16 @@ public class Game extends RSApplet {
tabAreaAltered = true;
aBoolean1149 = false;
pktType = -1;
if (ClientSettings.SCREENSHOTS_ENABLED && ClientSettings.AUTOMATIC_SCREENSHOTS_ENABLED && i5 == 5292) {
java.util.Timer timer = new java.util.Timer();
java.util.TimerTask delayedScreenshot = new java.util.TimerTask() {
@Override
public void run() {
screenshot(false, "bank");
}
};
timer.schedule(delayedScreenshot, 600);
}
return true;
}
if (pktType == 79) {