Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
package net.runelite.client.plugins.microbot.bankseller;

import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem;

@ConfigGroup("bankseller")
public interface BankSellerConfig extends Config {
@ConfigItem(
keyName = "instructions",
name = "Instructions",
description = "",
position = 0
)
default String instructions() {
return "1. Start near a bank at the Grand Exchange.\n" +
"2. The bot will withdraw tradeable items as notes and sell them.";
}
}
package net.runelite.client.plugins.microbot.bankseller;

import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem;

@ConfigGroup("bankseller")
public interface BankSellerConfig extends Config {
@ConfigItem(
keyName = "instructions",
name = "Instructions",
description = "",
position = 0
)
default String instructions() {
return "1. Start near a bank at the Grand Exchange.\n" +
"2. The bot banks first, withdraws all tradeable items as notes\n" +
"and sells each item's full stack in a single offer.\n" +
"3. Items the GE refuses (e.g. F2P trade-restricted items)\n" +
"are put back in the bank and skipped.";
}
}
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
package net.runelite.client.plugins.microbot.bankseller;
import com.google.inject.Provides;
import lombok.extern.slf4j.Slf4j;
import net.runelite.client.config.ConfigManager;
import net.runelite.client.plugins.Plugin;
import net.runelite.client.plugins.PluginDescriptor;
import net.runelite.client.plugins.microbot.Microbot;
import javax.inject.Inject;
import java.awt.AWTException;
import net.runelite.client.plugins.microbot.PluginConstants;
@PluginDescriptor(
name = PluginConstants.KSP + "Bank Seller",
description = "Withdraws tradeable bank items and sells them on the Grand Exchange",
tags = {"bank", "ge", "seller"},
authors = {"KSP"},
version = BankSellerPlugin.version,
minClientVersion = "1.9.8",
iconUrl = "https://chsami.github.io/Microbot-Hub/BankSellerPlugin/assets/bank.png",
cardUrl = "https://chsami.github.io/Microbot-Hub/BankSellerPlugin/assets/card.png",
enabledByDefault = PluginConstants.DEFAULT_ENABLED,
isExternal = PluginConstants.IS_EXTERNAL
)
@Slf4j
public class BankSellerPlugin extends Plugin {
static final String version = "1.0.2";
@Inject
private BankSellerConfig config;
@Provides
BankSellerConfig provideConfig(ConfigManager configManager) {
return configManager.getConfig(BankSellerConfig.class);
}
@Inject
private BankSellerScript bankSellerScript;
@Override
protected void startUp() throws AWTException {
Microbot.pauseAllScripts.compareAndSet(true, false);
bankSellerScript.run(this);
}
@Override
protected void shutDown() {
bankSellerScript.shutdown();
}
}
package net.runelite.client.plugins.microbot.bankseller;

import com.google.inject.Provides;
import lombok.extern.slf4j.Slf4j;
import net.runelite.client.config.ConfigManager;
import net.runelite.client.plugins.Plugin;
import net.runelite.client.plugins.PluginDescriptor;
import net.runelite.client.plugins.microbot.Microbot;

import javax.inject.Inject;
import java.awt.AWTException;
import net.runelite.client.plugins.microbot.PluginConstants;

@PluginDescriptor(
name = PluginConstants.KSP + "Bank Seller",
description = "Withdraws tradeable bank items and sells them on the Grand Exchange",
tags = {"bank", "ge", "seller"},
authors = {"KSP"},
version = BankSellerPlugin.version,
minClientVersion = "1.9.8",
iconUrl = "https://chsami.github.io/Microbot-Hub/BankSellerPlugin/assets/bank.png",
cardUrl = "https://chsami.github.io/Microbot-Hub/BankSellerPlugin/assets/card.png",
enabledByDefault = PluginConstants.DEFAULT_ENABLED,
isExternal = PluginConstants.IS_EXTERNAL
)
@Slf4j
public class BankSellerPlugin extends Plugin {

static final String version = "1.0.3";
@Inject
private BankSellerConfig config;

@Provides
BankSellerConfig provideConfig(ConfigManager configManager) {
return configManager.getConfig(BankSellerConfig.class);
}

@Inject
private BankSellerScript bankSellerScript;

@Override
protected void startUp() throws AWTException {
Microbot.pauseAllScripts.compareAndSet(true, false);
bankSellerScript.run(this);
}

@Override
protected void shutDown() {
bankSellerScript.shutdown();
}
}
Loading
Loading