Got an iPhone or iPad? We have a brand new Pastebin App for both devices, and it's totally free! Click here to download the new Pastebin App for iOS.
Guest

Untitled

By: a guest on Feb 9th, 2010  |  syntax: None  |  size: 2.17 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. import java.awt.Graphics;
  2.  
  3. import org.rsbot.event.listeners.PaintListener;
  4. import org.rsbot.script.Script;
  5. import org.rsbot.script.ScriptManifest;
  6. import org.rsbot.script.wrappers.RSInterfaceChild;
  7. import org.rsbot.script.wrappers.RSTile;
  8.  
  9.  
  10. public class HuntingCrossbow extends Script implements PaintListener {
  11.        
  12.         @ScriptManifest(name = "ParaWoadLeaves", authors = {"Parameter"}, version = 1.0
  13.                         category = "Money", description = "<h1>Crossbow Buyter" + " by OctavioPT</h1>"
  14.                         + "<p>Start this script in the Bank of Yanille<br>"
  15.                         + "<p><big>PLEASE SELL YOUR X-BOWS AT MEDIUM OR HIGH!!</big></p>")
  16.        
  17.         int Leon = 5111;
  18.         int Bank = 495;
  19.         int Closed = 1533;
  20.         int Open = 1534;
  21.        
  22.         RSTile[] toDoor= { new RSTile(2613, 3092),new RSTile(2599, 3097),new RSTile(2585, 3097),
  23.             new RSTile(2573, 3089),new RSTile(2563, 3082) };
  24.        
  25.         RSTile[] DoorToLeon= { new RSTile(2563, 3082),new RSTile(2567, 3089) };
  26.        
  27.         RSTile[] toBank= reversePath(toDoor);
  28.        
  29.         public boolean atShop() {
  30.                 getNearestNPCByID(Leon);
  31.                 atNPC(null, "Talk");
  32.         }
  33.        
  34.         private final RSInterfaceChild[] ifaces = {
  35.                         getInterface(243, 7), getInterface(228, 2), getInterface(64, 5), getInterface(241, 5),
  36.                         getInterface(232, 5), getInterface(241, 4), getInterface(64, 4), getInterface(243, 4)
  37.         };
  38.        
  39.        
  40.         private int getConversationProccess() {
  41.                 if(ifaces[5].containsText("Here, have two, you're a generous person."))
  42.                         return 8;
  43.                 else if(ifaces[5].containsText("Ok that's more than fair."))
  44.                         return 7;
  45.                 else if(ifaces[6].containsText("How about 20 coins?"))
  46.                         return 6;
  47.                 else if(ifaces[4].containsText("How about 20 coins?"))
  48.                         return 5;
  49.                 else if(ifaces[5].containsText("How much are you willing to pay?"))
  50.                         return 4;
  51.                 else if(ifaces[6].containsText("Yes please, I need woad leaves."))
  52.                         return 3;
  53.                 else if(ifaces[1].containsText("Yes please, I need woad leaves."))
  54.                         return 2;
  55.                 else if(ifaces[7].containsText("I'm the head gardener around here."))
  56.                         return 1;
  57.                 else
  58.                         return 0;
  59.         }
  60.        
  61.        
  62.         @Override
  63.         public int loop() {
  64.                 // TODO Auto-generated method stub
  65.                 return 0;
  66.         }
  67.         @Override
  68.         public void onRepaint(Graphics arg0) {
  69.                 // TODO Auto-generated method stub
  70.                
  71.         }
  72.  
  73. }