- import java.awt.Graphics;
- import org.rsbot.event.listeners.PaintListener;
- import org.rsbot.script.Script;
- import org.rsbot.script.ScriptManifest;
- import org.rsbot.script.wrappers.RSInterfaceChild;
- import org.rsbot.script.wrappers.RSTile;
- public class HuntingCrossbow extends Script implements PaintListener {
- @ScriptManifest(name = "ParaWoadLeaves", authors = {"Parameter"}, version = 1.0
- category = "Money", description = "<h1>Crossbow Buyter" + " by OctavioPT</h1>"
- + "<p>Start this script in the Bank of Yanille<br>"
- + "<p><big>PLEASE SELL YOUR X-BOWS AT MEDIUM OR HIGH!!</big></p>")
- int Leon = 5111;
- int Bank = 495;
- int Closed = 1533;
- int Open = 1534;
- RSTile[] toDoor= { new RSTile(2613, 3092),new RSTile(2599, 3097),new RSTile(2585, 3097),
- new RSTile(2573, 3089),new RSTile(2563, 3082) };
- RSTile[] DoorToLeon= { new RSTile(2563, 3082),new RSTile(2567, 3089) };
- RSTile[] toBank= reversePath(toDoor);
- public boolean atShop() {
- getNearestNPCByID(Leon);
- atNPC(null, "Talk");
- }
- private final RSInterfaceChild[] ifaces = {
- getInterface(243, 7), getInterface(228, 2), getInterface(64, 5), getInterface(241, 5),
- getInterface(232, 5), getInterface(241, 4), getInterface(64, 4), getInterface(243, 4)
- };
- private int getConversationProccess() {
- if(ifaces[5].containsText("Here, have two, you're a generous person."))
- return 8;
- else if(ifaces[5].containsText("Ok that's more than fair."))
- return 7;
- else if(ifaces[6].containsText("How about 20 coins?"))
- return 6;
- else if(ifaces[4].containsText("How about 20 coins?"))
- return 5;
- else if(ifaces[5].containsText("How much are you willing to pay?"))
- return 4;
- else if(ifaces[6].containsText("Yes please, I need woad leaves."))
- return 3;
- else if(ifaces[1].containsText("Yes please, I need woad leaves."))
- return 2;
- else if(ifaces[7].containsText("I'm the head gardener around here."))
- return 1;
- else
- return 0;
- }
- @Override
- public int loop() {
- // TODO Auto-generated method stub
- return 0;
- }
- @Override
- public void onRepaint(Graphics arg0) {
- // TODO Auto-generated method stub
- }
- }