-
-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/development' into development
- Loading branch information
Showing
96 changed files
with
5,619 additions
and
1,508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...e-client/src/main/java/net/runelite/client/plugins/microbot/holidayevent/CollectSnow.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package net.runelite.client.plugins.microbot.holidayevent; | ||
|
||
import net.runelite.api.events.GameTick; | ||
import net.runelite.client.plugins.microbot.Microbot; | ||
import net.runelite.client.plugins.microbot.util.gameobject.Rs2GameObject; | ||
import net.runelite.client.plugins.microbot.util.math.Rs2Random; | ||
import net.runelite.client.plugins.microbot.util.player.Rs2Player; | ||
|
||
public class CollectSnow { | ||
private static long randomDelay; | ||
|
||
public static boolean nearTheSnow() { | ||
return Rs2GameObject.findObjectByIdAndDistance(19035, 1) != null; | ||
} | ||
|
||
public static void onGameTick(GameTick event) { | ||
if (Rs2Player.checkIdleLogout(randomDelay)) { | ||
randomDelay = Rs2Random.between(1000,3000); | ||
if (Rs2GameObject.getGameObjects(19035) != null | ||
&& nearTheSnow()) { | ||
Rs2GameObject.interact(19035, "Take"); | ||
Microbot.log("Done tooken snow cus about to log"); | ||
} else { | ||
Microbot.log("Restart plugin 1 tile to snow");} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.