Подведи собственные итоги года совместно с YOUGAME и забери ценные призы! Перейти

Часть функционала AutoResell | 3.1

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
22 Ноя 2025
Сообщения
8
Реакции
0
Выберите загрузчик игры
  1. OptiFine
  2. Прочие моды
Ну это прощу не бить палками это моя первая тема фт и сп байпасит пишите ваше мнение авто перепродажа вашего аукциона

Код:
Expand Collapse Copy
/// by Zalupa3001
@FunctionRegister(name = "AutoResell", type = Category.Misc)
public class AutoResell extends Function {

    private final ModeSetting mode = new ModeSetting("Мод:", "Князь", "Князь", "Игрок");

    private final StopWatch mainTimer = new StopWatch();
    private final StopWatch actionTimer = new StopWatch();
    private int stage = 0;

    public AutoResell() {
        addSettings(mode);
    }

    @Override
    public boolean onEnable() {
        super.onEnable();
        mainTimer.reset();
        actionTimer.reset();
        stage = 0;
        return false;
    }

    @Subscribe
    private void onUpdate(EventUpdate e) {
        if (mc.player == null) return;

        if (mode.is("Князь")) {
            handlePrince();
        } else {
            handlePlayer();
        }
    }

    private void handlePrince() {
        if (mainTimer.isReached(61000)) {
            mc.player.sendChatMessage("/ah resell");
            mainTimer.reset();
        }
    }

    private void handlePlayer() {
        if (stage == 0) {
            if (mainTimer.isReached(61000)) {
                mc.player.sendChatMessage("/ah");
                stage = 1;
                actionTimer.reset();
            }
        }

        else if (stage == 1) {
            if (actionTimer.isReached(500)) {
                if (mc.currentScreen instanceof ContainerScreen) {
                    if (clickItem(Items.ENDER_CHEST)) {
                        stage = 2;
                        actionTimer.reset();
                    }
                }
                if (actionTimer.isReached(5000)) {
                    resetCycle();
                }
            }
        }

        else if (stage == 2) {
            if (actionTimer.isReached(500)) {
                if (mc.currentScreen instanceof ContainerScreen) {
                    if (clickItem(Items.CLOCK)) {
                        stage = 3;
                        actionTimer.reset();
                    }
                }
                if (actionTimer.isReached(5000)) {
                    resetCycle();
                }
            }
        }

        else if (stage == 3) {
            if (actionTimer.isReached(300)) {
                mc.player.closeScreen();
                resetCycle();
            }
        }
    }

    private void resetCycle() {
        stage = 0;
        mainTimer.reset();
    }

    private boolean clickItem(Item itemToFind) {
        if (!(mc.currentScreen instanceof ContainerScreen)) return false;

        ContainerScreen<?> screen = (ContainerScreen<?>) mc.currentScreen;
        Container container = screen.getContainer();

        for (Slot slot : container.inventorySlots) {
            if (slot.getHasStack() && slot.getStack().getItem() == itemToFind) {

                mc.playerController.windowClick(
                        container.windowId,
                        slot.slotNumber,
                        0,
                        ClickType.PICKUP,
                        mc.player
                );
                return true;
            }
        }
        return false;
    }
}

ss:
Пожалуйста, авторизуйтесь для просмотра ссылки.
 
Ну это прощу не бить палками это моя первая тема фт и сп байпасит пишите ваше мнение авто перепродажа вашего аукциона

Код:
Expand Collapse Copy
/// by Zalupa3001
@FunctionRegister(name = "AutoResell", type = Category.Misc)
public class AutoResell extends Function {

    private final ModeSetting mode = new ModeSetting("Мод:", "Князь", "Князь", "Игрок");

    private final StopWatch mainTimer = new StopWatch();
    private final StopWatch actionTimer = new StopWatch();
    private int stage = 0;

    public AutoResell() {
        addSettings(mode);
    }

    @Override
    public boolean onEnable() {
        super.onEnable();
        mainTimer.reset();
        actionTimer.reset();
        stage = 0;
        return false;
    }

    @Subscribe
    private void onUpdate(EventUpdate e) {
        if (mc.player == null) return;

        if (mode.is("Князь")) {
            handlePrince();
        } else {
            handlePlayer();
        }
    }

    private void handlePrince() {
        if (mainTimer.isReached(61000)) {
            mc.player.sendChatMessage("/ah resell");
            mainTimer.reset();
        }
    }

    private void handlePlayer() {
        if (stage == 0) {
            if (mainTimer.isReached(61000)) {
                mc.player.sendChatMessage("/ah");
                stage = 1;
                actionTimer.reset();
            }
        }

        else if (stage == 1) {
            if (actionTimer.isReached(500)) {
                if (mc.currentScreen instanceof ContainerScreen) {
                    if (clickItem(Items.ENDER_CHEST)) {
                        stage = 2;
                        actionTimer.reset();
                    }
                }
                if (actionTimer.isReached(5000)) {
                    resetCycle();
                }
            }
        }

        else if (stage == 2) {
            if (actionTimer.isReached(500)) {
                if (mc.currentScreen instanceof ContainerScreen) {
                    if (clickItem(Items.CLOCK)) {
                        stage = 3;
                        actionTimer.reset();
                    }
                }
                if (actionTimer.isReached(5000)) {
                    resetCycle();
                }
            }
        }

        else if (stage == 3) {
            if (actionTimer.isReached(300)) {
                mc.player.closeScreen();
                resetCycle();
            }
        }
    }

    private void resetCycle() {
        stage = 0;
        mainTimer.reset();
    }

    private boolean clickItem(Item itemToFind) {
        if (!(mc.currentScreen instanceof ContainerScreen)) return false;

        ContainerScreen<?> screen = (ContainerScreen<?>) mc.currentScreen;
        Container container = screen.getContainer();

        for (Slot slot : container.inventorySlots) {
            if (slot.getHasStack() && slot.getStack().getItem() == itemToFind) {

                mc.playerController.windowClick(
                        container.windowId,
                        slot.slotNumber,
                        0,
                        ClickType.PICKUP,
                        mc.player
                );
                return true;
            }
        }
        return false;
    }
}

ss:
Пожалуйста, авторизуйтесь для просмотра ссылки.
его не так сложно сделать, но годно
 
Ну это прощу не бить палками это моя первая тема фт и сп байпасит пишите ваше мнение авто перепродажа вашего аукциона

Код:
Expand Collapse Copy
/// by Zalupa3001
@FunctionRegister(name = "AutoResell", type = Category.Misc)
public class AutoResell extends Function {

    private final ModeSetting mode = new ModeSetting("Мод:", "Князь", "Князь", "Игрок");

    private final StopWatch mainTimer = new StopWatch();
    private final StopWatch actionTimer = new StopWatch();
    private int stage = 0;

    public AutoResell() {
        addSettings(mode);
    }

    @Override
    public boolean onEnable() {
        super.onEnable();
        mainTimer.reset();
        actionTimer.reset();
        stage = 0;
        return false;
    }

    @Subscribe
    private void onUpdate(EventUpdate e) {
        if (mc.player == null) return;

        if (mode.is("Князь")) {
            handlePrince();
        } else {
            handlePlayer();
        }
    }

    private void handlePrince() {
        if (mainTimer.isReached(61000)) {
            mc.player.sendChatMessage("/ah resell");
            mainTimer.reset();
        }
    }

    private void handlePlayer() {
        if (stage == 0) {
            if (mainTimer.isReached(61000)) {
                mc.player.sendChatMessage("/ah");
                stage = 1;
                actionTimer.reset();
            }
        }

        else if (stage == 1) {
            if (actionTimer.isReached(500)) {
                if (mc.currentScreen instanceof ContainerScreen) {
                    if (clickItem(Items.ENDER_CHEST)) {
                        stage = 2;
                        actionTimer.reset();
                    }
                }
                if (actionTimer.isReached(5000)) {
                    resetCycle();
                }
            }
        }

        else if (stage == 2) {
            if (actionTimer.isReached(500)) {
                if (mc.currentScreen instanceof ContainerScreen) {
                    if (clickItem(Items.CLOCK)) {
                        stage = 3;
                        actionTimer.reset();
                    }
                }
                if (actionTimer.isReached(5000)) {
                    resetCycle();
                }
            }
        }

        else if (stage == 3) {
            if (actionTimer.isReached(300)) {
                mc.player.closeScreen();
                resetCycle();
            }
        }
    }

    private void resetCycle() {
        stage = 0;
        mainTimer.reset();
    }

    private boolean clickItem(Item itemToFind) {
        if (!(mc.currentScreen instanceof ContainerScreen)) return false;

        ContainerScreen<?> screen = (ContainerScreen<?>) mc.currentScreen;
        Container container = screen.getContainer();

        for (Slot slot : container.inventorySlots) {
            if (slot.getHasStack() && slot.getStack().getItem() == itemToFind) {

                mc.playerController.windowClick(
                        container.windowId,
                        slot.slotNumber,
                        0,
                        ClickType.PICKUP,
                        mc.player
                );
                return true;
            }
        }
        return false;
    }
}

ss:
Пожалуйста, авторизуйтесь для просмотра ссылки.
Крутое СС братан, спасибо
 
Ну это прощу не бить палками это моя первая тема фт и сп байпасит пишите ваше мнение авто перепродажа вашего аукциона

Код:
Expand Collapse Copy
/// by Zalupa3001
@FunctionRegister(name = "AutoResell", type = Category.Misc)
public class AutoResell extends Function {

    private final ModeSetting mode = new ModeSetting("Мод:", "Князь", "Князь", "Игрок");

    private final StopWatch mainTimer = new StopWatch();
    private final StopWatch actionTimer = new StopWatch();
    private int stage = 0;

    public AutoResell() {
        addSettings(mode);
    }

    @Override
    public boolean onEnable() {
        super.onEnable();
        mainTimer.reset();
        actionTimer.reset();
        stage = 0;
        return false;
    }

    @Subscribe
    private void onUpdate(EventUpdate e) {
        if (mc.player == null) return;

        if (mode.is("Князь")) {
            handlePrince();
        } else {
            handlePlayer();
        }
    }

    private void handlePrince() {
        if (mainTimer.isReached(61000)) {
            mc.player.sendChatMessage("/ah resell");
            mainTimer.reset();
        }
    }

    private void handlePlayer() {
        if (stage == 0) {
            if (mainTimer.isReached(61000)) {
                mc.player.sendChatMessage("/ah");
                stage = 1;
                actionTimer.reset();
            }
        }

        else if (stage == 1) {
            if (actionTimer.isReached(500)) {
                if (mc.currentScreen instanceof ContainerScreen) {
                    if (clickItem(Items.ENDER_CHEST)) {
                        stage = 2;
                        actionTimer.reset();
                    }
                }
                if (actionTimer.isReached(5000)) {
                    resetCycle();
                }
            }
        }

        else if (stage == 2) {
            if (actionTimer.isReached(500)) {
                if (mc.currentScreen instanceof ContainerScreen) {
                    if (clickItem(Items.CLOCK)) {
                        stage = 3;
                        actionTimer.reset();
                    }
                }
                if (actionTimer.isReached(5000)) {
                    resetCycle();
                }
            }
        }

        else if (stage == 3) {
            if (actionTimer.isReached(300)) {
                mc.player.closeScreen();
                resetCycle();
            }
        }
    }

    private void resetCycle() {
        stage = 0;
        mainTimer.reset();
    }

    private boolean clickItem(Item itemToFind) {
        if (!(mc.currentScreen instanceof ContainerScreen)) return false;

        ContainerScreen<?> screen = (ContainerScreen<?>) mc.currentScreen;
        Container container = screen.getContainer();

        for (Slot slot : container.inventorySlots) {
            if (slot.getHasStack() && slot.getStack().getItem() == itemToFind) {

                mc.playerController.windowClick(
                        container.windowId,
                        slot.slotNumber,
                        0,
                        ClickType.PICKUP,
                        mc.player
                );
                return true;
            }
        }
        return false;
    }
}

ss:
Пожалуйста, авторизуйтесь для просмотра ссылки.
ну спасибо а смысл Князь и игрок?
 
Ну это прощу не бить палками это моя первая тема фт и сп байпасит пишите ваше мнение авто перепродажа вашего аукциона

Код:
Expand Collapse Copy
/// by Zalupa3001
@FunctionRegister(name = "AutoResell", type = Category.Misc)
public class AutoResell extends Function {

    private final ModeSetting mode = new ModeSetting("Мод:", "Князь", "Князь", "Игрок");

    private final StopWatch mainTimer = new StopWatch();
    private final StopWatch actionTimer = new StopWatch();
    private int stage = 0;

    public AutoResell() {
        addSettings(mode);
    }

    @Override
    public boolean onEnable() {
        super.onEnable();
        mainTimer.reset();
        actionTimer.reset();
        stage = 0;
        return false;
    }

    @Subscribe
    private void onUpdate(EventUpdate e) {
        if (mc.player == null) return;

        if (mode.is("Князь")) {
            handlePrince();
        } else {
            handlePlayer();
        }
    }

    private void handlePrince() {
        if (mainTimer.isReached(61000)) {
            mc.player.sendChatMessage("/ah resell");
            mainTimer.reset();
        }
    }

    private void handlePlayer() {
        if (stage == 0) {
            if (mainTimer.isReached(61000)) {
                mc.player.sendChatMessage("/ah");
                stage = 1;
                actionTimer.reset();
            }
        }

        else if (stage == 1) {
            if (actionTimer.isReached(500)) {
                if (mc.currentScreen instanceof ContainerScreen) {
                    if (clickItem(Items.ENDER_CHEST)) {
                        stage = 2;
                        actionTimer.reset();
                    }
                }
                if (actionTimer.isReached(5000)) {
                    resetCycle();
                }
            }
        }

        else if (stage == 2) {
            if (actionTimer.isReached(500)) {
                if (mc.currentScreen instanceof ContainerScreen) {
                    if (clickItem(Items.CLOCK)) {
                        stage = 3;
                        actionTimer.reset();
                    }
                }
                if (actionTimer.isReached(5000)) {
                    resetCycle();
                }
            }
        }

        else if (stage == 3) {
            if (actionTimer.isReached(300)) {
                mc.player.closeScreen();
                resetCycle();
            }
        }
    }

    private void resetCycle() {
        stage = 0;
        mainTimer.reset();
    }

    private boolean clickItem(Item itemToFind) {
        if (!(mc.currentScreen instanceof ContainerScreen)) return false;

        ContainerScreen<?> screen = (ContainerScreen<?>) mc.currentScreen;
        Container container = screen.getContainer();

        for (Slot slot : container.inventorySlots) {
            if (slot.getHasStack() && slot.getStack().getItem() == itemToFind) {

                mc.playerController.windowClick(
                        container.windowId,
                        slot.slotNumber,
                        0,
                        ClickType.PICKUP,
                        mc.player
                );
                return true;
            }
        }
        return false;
    }
}

ss:
Пожалуйста, авторизуйтесь для просмотра ссылки.
в чем прикол функции?
 
Ну это прощу не бить палками это моя первая тема фт и сп байпасит пишите ваше мнение авто перепродажа вашего аукциона

Код:
Expand Collapse Copy
/// by Zalupa3001
@FunctionRegister(name = "AutoResell", type = Category.Misc)
public class AutoResell extends Function {

    private final ModeSetting mode = new ModeSetting("Мод:", "Князь", "Князь", "Игрок");

    private final StopWatch mainTimer = new StopWatch();
    private final StopWatch actionTimer = new StopWatch();
    private int stage = 0;

    public AutoResell() {
        addSettings(mode);
    }

    @Override
    public boolean onEnable() {
        super.onEnable();
        mainTimer.reset();
        actionTimer.reset();
        stage = 0;
        return false;
    }

    @Subscribe
    private void onUpdate(EventUpdate e) {
        if (mc.player == null) return;

        if (mode.is("Князь")) {
            handlePrince();
        } else {
            handlePlayer();
        }
    }

    private void handlePrince() {
        if (mainTimer.isReached(61000)) {
            mc.player.sendChatMessage("/ah resell");
            mainTimer.reset();
        }
    }

    private void handlePlayer() {
        if (stage == 0) {
            if (mainTimer.isReached(61000)) {
                mc.player.sendChatMessage("/ah");
                stage = 1;
                actionTimer.reset();
            }
        }

        else if (stage == 1) {
            if (actionTimer.isReached(500)) {
                if (mc.currentScreen instanceof ContainerScreen) {
                    if (clickItem(Items.ENDER_CHEST)) {
                        stage = 2;
                        actionTimer.reset();
                    }
                }
                if (actionTimer.isReached(5000)) {
                    resetCycle();
                }
            }
        }

        else if (stage == 2) {
            if (actionTimer.isReached(500)) {
                if (mc.currentScreen instanceof ContainerScreen) {
                    if (clickItem(Items.CLOCK)) {
                        stage = 3;
                        actionTimer.reset();
                    }
                }
                if (actionTimer.isReached(5000)) {
                    resetCycle();
                }
            }
        }

        else if (stage == 3) {
            if (actionTimer.isReached(300)) {
                mc.player.closeScreen();
                resetCycle();
            }
        }
    }

    private void resetCycle() {
        stage = 0;
        mainTimer.reset();
    }

    private boolean clickItem(Item itemToFind) {
        if (!(mc.currentScreen instanceof ContainerScreen)) return false;

        ContainerScreen<?> screen = (ContainerScreen<?>) mc.currentScreen;
        Container container = screen.getContainer();

        for (Slot slot : container.inventorySlots) {
            if (slot.getHasStack() && slot.getStack().getItem() == itemToFind) {

                mc.playerController.windowClick(
                        container.windowId,
                        slot.slotNumber,
                        0,
                        ClickType.PICKUP,
                        mc.player
                );
                return true;
            }
        }
        return false;
    }
}

ss:
Пожалуйста, авторизуйтесь для просмотра ссылки.
чорный рессейл
 
Ну это прощу не бить палками это моя первая тема фт и сп байпасит пишите ваше мнение авто перепродажа вашего аукциона

Код:
Expand Collapse Copy
/// by Zalupa3001
@FunctionRegister(name = "AutoResell", type = Category.Misc)
public class AutoResell extends Function {

    private final ModeSetting mode = new ModeSetting("Мод:", "Князь", "Князь", "Игрок");

    private final StopWatch mainTimer = new StopWatch();
    private final StopWatch actionTimer = new StopWatch();
    private int stage = 0;

    public AutoResell() {
        addSettings(mode);
    }

    @Override
    public boolean onEnable() {
        super.onEnable();
        mainTimer.reset();
        actionTimer.reset();
        stage = 0;
        return false;
    }

    @Subscribe
    private void onUpdate(EventUpdate e) {
        if (mc.player == null) return;

        if (mode.is("Князь")) {
            handlePrince();
        } else {
            handlePlayer();
        }
    }

    private void handlePrince() {
        if (mainTimer.isReached(61000)) {
            mc.player.sendChatMessage("/ah resell");
            mainTimer.reset();
        }
    }

    private void handlePlayer() {
        if (stage == 0) {
            if (mainTimer.isReached(61000)) {
                mc.player.sendChatMessage("/ah");
                stage = 1;
                actionTimer.reset();
            }
        }

        else if (stage == 1) {
            if (actionTimer.isReached(500)) {
                if (mc.currentScreen instanceof ContainerScreen) {
                    if (clickItem(Items.ENDER_CHEST)) {
                        stage = 2;
                        actionTimer.reset();
                    }
                }
                if (actionTimer.isReached(5000)) {
                    resetCycle();
                }
            }
        }

        else if (stage == 2) {
            if (actionTimer.isReached(500)) {
                if (mc.currentScreen instanceof ContainerScreen) {
                    if (clickItem(Items.CLOCK)) {
                        stage = 3;
                        actionTimer.reset();
                    }
                }
                if (actionTimer.isReached(5000)) {
                    resetCycle();
                }
            }
        }

        else if (stage == 3) {
            if (actionTimer.isReached(300)) {
                mc.player.closeScreen();
                resetCycle();
            }
        }
    }

    private void resetCycle() {
        stage = 0;
        mainTimer.reset();
    }

    private boolean clickItem(Item itemToFind) {
        if (!(mc.currentScreen instanceof ContainerScreen)) return false;

        ContainerScreen<?> screen = (ContainerScreen<?>) mc.currentScreen;
        Container container = screen.getContainer();

        for (Slot slot : container.inventorySlots) {
            if (slot.getHasStack() && slot.getStack().getItem() == itemToFind) {

                mc.playerController.windowClick(
                        container.windowId,
                        slot.slotNumber,
                        0,
                        ClickType.PICKUP,
                        mc.player
                );
                return true;
            }
        }
        return false;
    }
}

ss:
Пожалуйста, авторизуйтесь для просмотра ссылки.
круто бро, код хромает на самом деле
Например ...
private void handlePrince() {
if (mainTimer.isReached(61000)) {
mc.player.sendChatMessage("/ah resell");
mainTimer.reset();
}
}

Зачем ты все время обьявляешь в одной переименной не судьба сделать ?

Ну ладно, работать будет думаю.
Крутое СС братан, спасибо
тебе по коду сложно понять что делает бот ? Ну тут вроде не 4000 строчек что-бы сс просить.
от сс тут смысла нету.
 
Назад
Сверху Снизу