Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
780 B
3
Indexable
Never
@Subscribe
    private void onGameTick(GameTick event) {
        if (this.client.getGameState() != GameState.LOGGED_IN)
            return;
        
        if(tickTimeout())
        {
            return;
        }

        activateSpec();
    }

    public boolean tickTimeout()
    {
        if (this.timeout > 0) {
            this.timeout--;
            return true;
        }
        return false;
    }

    public void activateSpec()
    {
        if (!this.config.Dragmode() && !this.config.Hallydrag() && !this.config.KillUrselfMode() && EthanApiPlugin.getClient().getVarpValue(173) == 0 && EthanApiPlugin.getClient().getEnergy() > 100) {
            MousePackets.queueClickPacket();
            WidgetPackets.queueWidgetActionPacket(1, 10485787, -1, -1);
        }
    }
Leave a Comment