Created
August 22, 2014 23:14
-
-
Save anonymous/586e76f1e9d79c5c27a6 to your computer and use it in GitHub Desktop.
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
import java.awt.*; | |
import java.awt.event.*; | |
import java.util.Map; | |
import javax.swing.*; | |
import org.parabot.environment.api.utils.Time; | |
import org.parabot.environment.scripts.Category; | |
import org.parabot.environment.scripts.Script; | |
import org.parabot.environment.scripts.ScriptManifest; | |
import org.parabot.environment.scripts.framework.Strategy; | |
import org.rev317.min.api.methods.Inventory; | |
import org.rev317.min.api.wrappers.*; | |
import org.rev317.min.api.wrappers.Item; | |
import org.rev317.min.api.methods.Players; | |
@ScriptManifest(author = "sjoerdieman", category = Category.FLETCHING, description = "Tipping all your bolts", name = "BoltTipper", servers = { "Soulsplit & Torva" }, version = 1.00) | |
public class BoltTipper extends Script { | |
/* | |
// Normal bolts \\ | |
9140 // Iron bolts | |
9141 // Steel bolts | |
9142 // Mithril bolts | |
9143 // Adamant bolts | |
9144 // Runite bolts | |
// Bolt Tips \\ | |
9189 // Sapphire bolt tips | |
9190 // Emerald bolt tips | |
9191 // Ruby bolt tips | |
9192 // Diamond bolt tips | |
9193 // Dragonstone bolt tips | |
9194 // Onyx bolt tips | |
// Tipped Bolts \\ | |
9240 // Sapphire bolts (e) | |
9241 // Emerald bolts (e) | |
9242 // Ruby bolts (e) | |
9243 // Diamond bolts (e) | |
9244 // Dragonstone bolts (e) | |
9245 // Onyx bolts (e) | |
// Banks \\ | |
26972 // Edgeville Bank | |
25808 // Seers Bank | |
*/ | |
public int[] bankBooth = new int[] {26972, 25808}; | |
public int boltToTip; | |
public int sbt = 9189; | |
public int ebt = 9190; | |
public int rbt = 9191; | |
public int dbt = 9192; | |
public int dsbt = 9193; | |
public int obt = 9194; | |
public double getVersion() { | |
return 1.00; | |
} | |
public boolean onStart(Map<String, String> args) { | |
if (args.get("what").contains("pp")) { | |
if (args.get("sort").contains("s")) { | |
boltToTip = 9140; | |
} | |
} else if (args.get("what").contains("al")) { | |
if (args.get("sort").contains("s")) { | |
boltToTip = 9141; | |
} | |
} else if (args.get("what").contains("by")) { | |
if (args.get("sort").contains("s")) { | |
boltToTip = 9142; | |
} | |
} else if (args.get("what").contains("ia")) { | |
if (args.get("sort").contains("s")) { | |
boltToTip = 9143; | |
} | |
} else if (args.get("what").contains("yx")) { | |
if (args.get("sort").contains("s")) { | |
boltToTip = 9145; | |
} | |
} else { | |
if (args.get("sort").contains("s")) { | |
boltToTip = 9144; | |
} | |
} | |
return true; | |
} | |
public void onFinish() { | |
} | |
public void tip() { | |
for (Item t : Inventory.getItems(sbt/ebt/rbt/dbt/dsbt/obt)) { | |
t.interact(0); | |
Time.sleep(200, 500); | |
for (Item b : Inventory.getItems(9140/9141/9142/9143/9144)) { | |
b.interact(0); | |
} | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment