-
Notifications
You must be signed in to change notification settings - Fork 0
/
filter-power-vanq.py
32 lines (24 loc) · 1.06 KB
/
filter-power-vanq.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
from Scripts.utilities.items import MoveItem
from Scripts import config
sourceBox = Target.PromptTarget( 'Select container to move items out of' )
sourceBoxItem = Items.FindBySerial( sourceBox )
if sourceBoxItem == None:
sourceBox = Mobiles.FindBySerial( sourceBox ).Backpack
else:
sourceBox = sourceBoxItem
targetBox = Target.PromptTarget( 'Select container to move items into' )
targetBoxItem = Items.FindBySerial( targetBox )
if targetBoxItem == None:
targetBox = Mobiles.FindBySerial( targetBox ).Backpack
else:
targetBox = targetBoxItem
Items.UseItem( sourceBox )
Misc.Pause( config.dragDelayMilliseconds )
Items.UseItem( targetBox )
Misc.Pause( config.dragDelayMilliseconds )
for i in sourceBox.Contains:
Journal.Clear()
Items.SingleClick(i.Serial)
Misc.Pause(200)
if Journal.Search("Vanquishing") or Journal.Search("Invulnerability") or Journal.Search("Supremely Accurate") or ((Journal.Search("Exceedingly Accurate") or Journal.Search("Eminently Accurate")) and Journal.Search("Power")):
MoveItem( Items, Misc, i, targetBox )