Compare commits
No commits in common. "06a0688a0dd70d25da3c48c5a4bdebd724dba184" and "242b2835f7b85b4c55ea03df3d59b21d0675dc04" have entirely different histories.
06a0688a0d
...
242b2835f7
12 changed files with 455 additions and 699 deletions
2
.github/README.md
vendored
2
.github/README.md
vendored
|
@ -1,6 +1,6 @@
|
|||
<h1 style="text-align:center;"> Auction House Flipper - Lilase</h1>
|
||||
<div style="display:flex;align-items: center;justify-content: center;">
|
||||
<img src="https://raw.githubusercontent.com/night0721/Lilase/master/src/main/resources/assets/lilase.jpg" width="300" alt="icon"/>
|
||||
<img src="https://cdn.discordapp.com/attachments/842014909264953354/1082373275038003210/lilase.png" width="300" alt="icon"/>
|
||||
</div>
|
||||
|
||||
# Introduction:
|
||||
|
|
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
@ -22,8 +22,11 @@ jobs:
|
|||
${{ runner.os }}-gradle-
|
||||
- name: Build
|
||||
run: chmod +x gradlew && ./gradlew build --stacktrace --info
|
||||
- name: List working directory contents
|
||||
run: ls -R
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: build-artifacts
|
||||
path: versions/1.8.9-forge/build/libs/Lilase.jar
|
||||
# ./gradlew setupDecompWorkspace
|
||||
|
|
|
@ -10,7 +10,7 @@ import me.night0721.lilase.Lilase;
|
|||
|
||||
public class AHConfig extends Config {
|
||||
public AHConfig() {
|
||||
super(new Mod("Lilase", ModType.SKYBLOCK, "/assets/lilase.jpg", 84, 84), "lilase.json");
|
||||
super(new Mod("Lilase", ModType.SKYBLOCK, "/assets/lilase.png", 84, 84), "lilase.json");
|
||||
initialize();
|
||||
addListener("WEBHOOK", () -> Lilase.configHandler.setString("Webhook", WEBHOOK));
|
||||
addListener("REMOTE_CONTROL", () -> Lilase.configHandler.setBoolean("RemoteControl", REMOTE_CONTROL));
|
||||
|
|
|
@ -102,11 +102,11 @@ public class ChatReceivedEvent {
|
|||
Utils.addTitle("You got sent to Limbo or Lobby!");
|
||||
Flipper.state = FlipperState.NONE;
|
||||
if (Lilase.cofl.isOpen()) Lilase.cofl.toggleAuction();
|
||||
Thread.sleep(30000 + new Random().nextInt(5000));
|
||||
Thread.sleep(5000 + new Random().nextInt(500));
|
||||
Utils.sendServerMessage("/lobby");
|
||||
Thread.sleep(30000 + new Random().nextInt(5000));
|
||||
Thread.sleep(5000 + new Random().nextInt(500));
|
||||
Utils.sendServerMessage("/skyblock");
|
||||
Thread.sleep(30000 + new Random().nextInt(5000));
|
||||
Thread.sleep(5000 + new Random().nextInt(500));
|
||||
Utils.sendServerMessage("/hub");
|
||||
if (!Lilase.cofl.isOpen()) Lilase.cofl.toggleAuction();
|
||||
// Thread bzchillingthread = new Thread(bazaarChilling);
|
||||
|
|
|
@ -95,7 +95,6 @@ public class SniperFlipperEvents {
|
|||
while (tries < 50) {
|
||||
if (InventoryUtils.inventoryNameStartsWith("BIN Auction View")) {
|
||||
clickWindow(latestWindowId, 31);
|
||||
Thread.sleep(300 + new Random().nextInt(100));
|
||||
clickWindow(latestWindowId + 1, 11);
|
||||
tries++;
|
||||
Thread.sleep(BED_SPAM_DELAY);
|
||||
|
@ -116,13 +115,8 @@ public class SniperFlipperEvents {
|
|||
if (spam != null && spam.isAlive()) {
|
||||
spam.interrupt();
|
||||
}
|
||||
try {
|
||||
clickWindow(latestWindowId, 31);
|
||||
Thread.sleep(300 + new Random().nextInt(100));
|
||||
clickWindow(latestWindowId + 1, 11);
|
||||
} catch (Exception ignored) {
|
||||
|
||||
}
|
||||
clickWindow(latestWindowId, 31);
|
||||
clickWindow(latestWindowId + 1, 11);
|
||||
} else {
|
||||
Utils.debugLog("Auction was bought by someone else, closing window");
|
||||
Lilase.mc.thePlayer.closeScreen();
|
||||
|
|
|
@ -18,7 +18,6 @@ import java.awt.*;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Random;
|
||||
|
||||
import static me.night0721.lilase.config.AHConfig.SEND_MESSAGE;
|
||||
import static me.night0721.lilase.events.SniperFlipperEvents.ah_full;
|
||||
|
@ -118,10 +117,10 @@ public class Claimer extends Sniper {
|
|||
if (ScoreboardUtils.cleanSB(list.toString()).contains("Status: Sold")) {
|
||||
toClaim.add(i);
|
||||
try {
|
||||
Thread.sleep(400 + new Random().nextInt(100));
|
||||
Thread.sleep(300);
|
||||
clickWindow(Lilase.mc.thePlayer.openContainer.windowId, i);
|
||||
Thread.sleep(500 + new Random().nextInt(100));
|
||||
clickWindow(Lilase.mc.thePlayer.openContainer.windowId, 31);
|
||||
Thread.sleep(300);
|
||||
clickWindow(Lilase.mc.thePlayer.openContainer.windowId + 1, 31);
|
||||
if (SEND_MESSAGE) {
|
||||
try {
|
||||
webhook.addEmbed(new DiscordWebhook.EmbedObject()
|
||||
|
|
|
@ -353,7 +353,6 @@ public class Flipper {
|
|||
.addField("Item:", name, true)
|
||||
.addField("Price:", format.format(price), true)
|
||||
.addField("Target Price:", format.format(target), true)
|
||||
.addField("Profit:", df.format(target - price), true)
|
||||
.addField("Profit Percentage:", df.format((double) (target - price) / price * 100f) + "%", true)
|
||||
.setColor(Color.decode(color));
|
||||
}
|
||||
|
|
|
@ -18,7 +18,6 @@ import java.awt.*;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Random;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
|
@ -121,10 +120,9 @@ public class Relister extends Sniper {
|
|||
int target = Math.round(price * 0.98f);
|
||||
String uuid = is.getTagCompound().getCompoundTag("ExtraAttributes").getString("uuid");
|
||||
clickWindow(Lilase.mc.thePlayer.openContainer.windowId, i);
|
||||
Thread.sleep(300 + new Random().nextInt(100));
|
||||
clickWindow(Lilase.mc.thePlayer.openContainer.windowId, 31);
|
||||
Thread.sleep(300 + new Random().nextInt(100));
|
||||
|
||||
Thread.sleep(300);
|
||||
clickWindow(Lilase.mc.thePlayer.openContainer.windowId + 1, 31);
|
||||
Thread.sleep(300);
|
||||
if (SEND_MESSAGE) {
|
||||
try {
|
||||
webhook.addEmbed(new DiscordWebhook.EmbedObject()
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 66 KiB |
BIN
src/main/resources/assets/lilase.png
Normal file
BIN
src/main/resources/assets/lilase.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 MiB |
|
@ -9,8 +9,8 @@
|
|||
"updateUrl": "https://github.com/night0721/Lilase/releases",
|
||||
"authorList": ["night0721"],
|
||||
"credits": "JellyLab/FarmHelper",
|
||||
"logoFile": "assets/lilase.jpg",
|
||||
"logoFile": "assets/lilase.png",
|
||||
"screenshots": [],
|
||||
"dependencies": []
|
||||
}
|
||||
]
|
||||
]
|
Loading…
Reference in a new issue