Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 17th, 2012  |  syntax: None  |  size: 1.69 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import com.quirlion.script.*;
  2. import com.quirlion.script.types.*;
  3.  
  4. public class alKahridWarriorDoom extends Script {
  5.  
  6.         public int loop() { if (players.getCurrent().isMoving()) return random(5000, 8240);
  7.                 NPC warrior = npcs.getNearestByID(18);
  8.                 NPC banker = npcs.getNearestByID(496, 497);
  9.                 Interface kebabAccept = interfaces.get(228, 3);
  10.                 Interface kebabCont1 = interfaces.get(241, 5);
  11.                 Interface kebabCont2 = interfaces.get(64, 5);
  12.                 GroundItem items = groundItems.getByID(526, 1965, 995, 1173, 1139, 555, 1203, 558, 288, 436, 313);
  13.                 InventoryItem food = inventory.findItem(1971, 1965);
  14.                 InventoryItem bones = inventory.findItem(526);
  15.                 input.MOUSE_SPEED = 6;
  16.                 while (!inventory.isFull()) {
  17.                 if (!players.getCurrent().isInCombat() && players.getCurrent().getLifePoints() > 70) {
  18.                         if (warrior != null) {
  19.                                 warrior.click("Attack");
  20.                         }
  21.                 }
  22.                 if (players.getCurrent().getLifePoints() < 70) {
  23.                         if (food != null) {
  24.                                 food.click("Eat");
  25.                         }
  26.                 }
  27.                 else if (!players.getCurrent().isInCombat()) {
  28.                         items.click("Take");
  29.                         if (bones != null) {
  30.                                 bones.click("Bury");
  31.                         }
  32.                 }
  33.                 }
  34.                 walker.walkTileMM(new Location(3291, 3180));
  35.                 wait (10000);
  36.                 walker.walkTileMM(new Location(3277, 3181));
  37.                 wait (10000);
  38.                 walker.walkTileMM(new Location(3275, 3175));
  39.                 wait (10000);
  40.                 walker.walkTileMM(new Location(3270, 3169));
  41.                 wait (10000);
  42.                 banker.click("Bank");
  43.                 bank.depositAll();
  44.                 bank.close();
  45.                 walker.walkTileMM(new Location(3275, 3175));
  46.                 wait (10000);
  47.                 walker.walkTileMM(new Location(3277, 3181));
  48.                 wait (10000);
  49.                 walker.walkTileMM(new Location(3291, 3180));
  50.                 wait (10000);
  51.                 walker.walkTileMM(new Location(3292, 3169));
  52.                 wait (10000);
  53.                 return 1000;
  54.         }
  55. }