-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSteals.java
More file actions
86 lines (75 loc) · 2.08 KB
/
Copy pathSteals.java
File metadata and controls
86 lines (75 loc) · 2.08 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import org.parabot.environment.api.utils.Time;
import org.parabot.environment.scripts.framework.Strategy;
import org.rev317.min.api.methods.Inventory;
import org.rev317.min.api.methods.Menu;
import org.rev317.min.api.methods.Players;
import org.rev317.min.api.methods.SceneObjects;
import org.rev317.min.api.methods.Skill;
import org.rev317.min.api.wrappers.SceneObject;
import org.rev317.min.api.wrappers.Tile;
public class Steals implements Strategy {
@Override
public boolean activate() {
if (!Inventory.isFull()) {
return true;
}
return false;
}
@Override
public void execute() {
int curLvl;
Tile safe = new Tile(2660,3316);
SceneObject stall = null;
int stallActCode = 0;
curLvl = Skill.THIEVING.getRealLevel();
if (Main.powerT == true) {
if( curLvl < 20 ) {
stall = SceneObjects.getClosest(1616);
stallActCode = 34384;
} // Bread
if( curLvl >= 20 && curLvl < 35 ) {
stall = SceneObjects.getClosest(1615);
stallActCode = 34383;
} // Silk
if( curLvl >= 35 && curLvl < 50 ) {
stall = SceneObjects.getClosest(1619);
stallActCode = 34387;
} // Fur
if( curLvl >= 50 && curLvl < 65 ) {
stall = SceneObjects.getClosest(1614);
stallActCode = 34382;
} // Silver
if( curLvl >= 65 && curLvl < 75 ) {
stall = SceneObjects.getClosest(1618);
stallActCode = 34386;
} // Spice
if( curLvl >= 75 ) {
stall = SceneObjects.getClosest(1617);
stallActCode = 34385;
} // Gems
} else {
stall = SceneObjects.getClosest(Main.stallID);
stallActCode = Main.actID;
}
if (stall != null && Players.getMyPlayer().getAnimation() == -1) {
if(stallActCode == 34382) {
try{
safe.walkTo();
Time.sleep(3000);
Menu.sendAction(900, stall.getHash(), stall.getLocalRegionX(),
stall.getLocalRegionY(),stallActCode, 3);
Time.sleep(200);
} catch (Exception a) {
}
}
if(stallActCode != 34382) {
try{
Menu.sendAction(900, stall.getHash(), stall.getLocalRegionX(),
stall.getLocalRegionY(),stallActCode, 3);
Time.sleep(200);
} catch (Exception b) {
}
}
}
}
}