
Untitled
By: a guest on
Apr 17th, 2012 | syntax:
None | size: 1.69 KB | hits: 14 | expires: Never
import com.quirlion.script.*;
import com.quirlion.script.types.*;
public class alKahridWarriorDoom extends Script {
public int loop() { if (players.getCurrent().isMoving()) return random(5000, 8240);
NPC warrior = npcs.getNearestByID(18);
NPC banker = npcs.getNearestByID(496, 497);
Interface kebabAccept = interfaces.get(228, 3);
Interface kebabCont1 = interfaces.get(241, 5);
Interface kebabCont2 = interfaces.get(64, 5);
GroundItem items = groundItems.getByID(526, 1965, 995, 1173, 1139, 555, 1203, 558, 288, 436, 313);
InventoryItem food = inventory.findItem(1971, 1965);
InventoryItem bones = inventory.findItem(526);
input.MOUSE_SPEED = 6;
while (!inventory.isFull()) {
if (!players.getCurrent().isInCombat() && players.getCurrent().getLifePoints() > 70) {
if (warrior != null) {
warrior.click("Attack");
}
}
if (players.getCurrent().getLifePoints() < 70) {
if (food != null) {
food.click("Eat");
}
}
else if (!players.getCurrent().isInCombat()) {
items.click("Take");
if (bones != null) {
bones.click("Bury");
}
}
}
walker.walkTileMM(new Location(3291, 3180));
wait (10000);
walker.walkTileMM(new Location(3277, 3181));
wait (10000);
walker.walkTileMM(new Location(3275, 3175));
wait (10000);
walker.walkTileMM(new Location(3270, 3169));
wait (10000);
banker.click("Bank");
bank.depositAll();
bank.close();
walker.walkTileMM(new Location(3275, 3175));
wait (10000);
walker.walkTileMM(new Location(3277, 3181));
wait (10000);
walker.walkTileMM(new Location(3291, 3180));
wait (10000);
walker.walkTileMM(new Location(3292, 3169));
wait (10000);
return 1000;
}
}