-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathauto_LootMove.py
36 lines (29 loc) · 879 Bytes
/
auto_LootMove.py
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
from System.Collections.Generic import List
loot_time_ms = 5000
looted_corpses = []
def goToLocation(x, y):
route = PathFinding.Route()
route.X = x
route.Y = y
route.MaxRetry = -1
PathFinding.Go(route)
Misc.Pause(50)
def findCorpse():
corpse = Items.Filter()
corpse.Enabled = True
corpse.OnGround = True
corpse.Movable = False
corpse.RangeMax = 25
corpse.IsCorpse = True
corpses = Items.ApplyFilter(corpse)
Misc.Pause(50)
return corpses
while True:
for corpse in findCorpse():
if not corpse.Serial in looted_corpses:
Misc.SendMessage(corpse.Name)
Misc.SendMessage(corpse.Serial)
Misc.SendMessage(corpse.Position)
goToLocation(corpse.Position.X, corpse.Position.Y)
looted_corpses.append(corpse.Serial)
Misc.Pause(loot_time_ms)