-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathLockpick.java
57 lines (34 loc) · 944 Bytes
/
Lockpick.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package scripts;
import org.tribot.api2007.Inventory;
import org.tribot.api2007.NPCs;
import org.tribot.api2007.types.RSNPC;
import org.tribot.script.Script;
import org.tribot.script.ScriptManifest;
@ScriptManifest(authors = {"Daher"}, version = 1.0, category = "Agility", name = "Daher THE KING", description = "idkf")
public class Lockpicker extends Script {
public void run() {
while(true){
loop();
}
}
private void loop() {
npcInteracting();
shopBuying();
sleep(100, 200);
}
public void shopBuying(){
if(Shop.isShopOpen() && !Inventory.isFull()) {
Shop.buy(10, 1523);
sleep(500, 700);
}
}
public void npcInteracting(){
RSNPC[] g = NPCs.findNearest(3193);
if(g.length > 0 && !Shop.isShopOpen()){
if(g[0].isOnScreen()){
g[0].click("Trade Martin Thwait");
sleep(500, 700);
}
}
}
}