add bank tags plugin

This commit is contained in:
Dennis
2018-03-29 00:34:54 +02:00
committed by Adam
parent d825950388
commit c6ed38afb2
7 changed files with 536 additions and 0 deletions

View File

@@ -0,0 +1 @@
FD851583852C34596F250D63AEDB0A13B294129108A9DB52B6BDF2D51EDA0BFC

View File

@@ -0,0 +1,69 @@
.id 279
.int_stack_count 1
.string_stack_count 0
.int_var_count 1
.string_var_count 2
load_string ""
sstore 0
load_string ""
sstore 1
invoke 514
load_int 1
if_icmpeq LABEL8
jump LABEL34
LABEL8:
invoke 280
sstore 1
sload 1
string_length
load_int 0
if_icmpgt LABEL15
jump LABEL34
LABEL15:
iload 0
load_int -1
if_icmpne LABEL19
jump LABEL23
LABEL19:
iload 0
get_item_name
tolowercase
sstore 0
LABEL1337: ; check if the bank tags plugin is active
load_int 1 ; true
load_int 0 ; load active boolean
load_string "bankTagsActive" ; push event name
runelite_callback ; invoke callback
if_icmpeq LABEL1338 ; if the plugin is active then jump to the label that decides if the
; item should be shown
jump LABEL23 ; if the plugin is not active then jump to the normal label
LABEL1338: ; let the bank tag plugin decide if the item should be shown
load_int 0 ; load return value
iload 0 ; load item id
sload 0 ; load item name
sload 1 ; load search string
load_string "bankSearchFilter" ; push event name
runelite_callback ; invoke callback
pop_int ; pop item id
pop_string ; pop search string
pop_string ; pop item name
return ; return value
LABEL23:
sload 0
sload 1
load_int 0
string_indexof_from
load_int -1
if_icmpne LABEL30
jump LABEL32
LABEL30:
load_int 1
return
LABEL32:
load_int 0
return
LABEL34:
load_int 1
return
load_int -1
return

View File

@@ -0,0 +1 @@
27446C2A53527645827D4EDE100B50607D0D2177947649C7E9BEA155FDF78BBC

View File

@@ -0,0 +1,43 @@
.id 300
.int_stack_count 0
.string_stack_count 0
.int_var_count 0
.string_var_count 1
get_varc 11
load_int 1
if_icmpeq LABEL4
jump LABEL5
LABEL4:
close_window
LABEL5:
invoke 677
load_string "Show items whose names contain the following text:"
load_string "setSearchBankInputText" ; load event name
runelite_callback ; invoke callback
load_int 10616867
widget_put_text_widget
load_int 11
put_varc 5
load_string ""
invoke 222
load_string ""
sstore 0
load_int 112
load_int -2147483640
load_int -2147483639
sload 0
load_string "izs"
load_int 10616868
widget_put_key_listener_widget
load_int 138
load_string ""
load_int 10616868
widget_put_dialog_abort_listener_widget
invoke 1972
load_int 1
if_icmpeq LABEL30
jump LABEL31
LABEL30:
invoke 1983
LABEL31:
return

View File

@@ -0,0 +1 @@
BD8E0D58CD175BCE02F9A63A35E5F025E87A3A31C4DFAA8282926B69CD5FD60B

View File

@@ -0,0 +1,170 @@
.id 278
.int_stack_count 7
.string_stack_count 0
.int_var_count 7
.string_var_count 0
iload 0
load_int -1
if_icmpne LABEL4
jump LABEL130
LABEL4:
widget_put_actions_null
iload 0
load_int 20594
if_icmpeq LABEL9
jump LABEL33
LABEL9:
iload 0
load_int -1
1200
load_int 7
load_string "Clear-All"
widget_put_action
load_int 8
load_string "Clear"
widget_put_action
load_int 0
widget_put_opacity
load_int 285
load_int -2147483645
load_int -2147483643
load_int -2147483642
load_int -2147483641
load_int 0
iload 3
iload 4
iload 5
iload 6
load_string "IiIiiIIII"
widget_put_drag_release_listener
jump LABEL111
LABEL33:
iload 0
4209
iload 0
if_icmpne LABEL38
jump LABEL59
LABEL38:
iload 0
load_int 0
1200
load_int 8
load_string "Release"
widget_put_action
load_int 120
widget_put_opacity
load_int 285
load_int -2147483645
load_int -2147483643
load_int -2147483642
load_int -2147483641
load_int 120
iload 3
iload 4
iload 5
iload 6
load_string "IiIiiIIII"
widget_put_drag_release_listener
jump LABEL111
LABEL59:
iload 0
iload 1
1200
load_int 1 ; if the bank tags plugin is not active this will not get changed and thus
; overridden by the Withdraw-1 option
load_string "Edit-tags" ; push menu action name
iload 0 ; push item id
widget_get_index ; push the item index for setting the widget flag
load_string "setBankItemMenu" ; push event name
runelite_callback ; invoke callback
pop_int ; pop widget index
pop_int ; pop item id
widget_put_action ; add edit tags menu action
load_int 1
load_string "Withdraw-1"
widget_put_action
load_int 2
load_string "Withdraw-5"
widget_put_action
load_int 3
load_string "Withdraw-10"
widget_put_action
get_varbit 3960
load_int 0
if_icmpgt LABEL75
jump LABEL81
LABEL75:
load_int 4
load_string "Withdraw-"
get_varbit 3960
int_to_string
string_append 2
widget_put_action
LABEL81:
load_int 5
load_string "Withdraw-X"
widget_put_action
load_int 6
load_string "Withdraw-All"
widget_put_action
load_int 7
load_string "Withdraw-All-but-1"
widget_put_action
get_varbit 3755
load_int 0
if_icmpeq LABEL94
jump LABEL97
LABEL94:
load_int 8
load_string "Placeholder"
widget_put_action
LABEL97:
load_int 0
widget_put_opacity
load_int 285
load_int -2147483645
load_int -2147483643
load_int -2147483642
load_int -2147483641
load_int 0
iload 3
iload 4
iload 5
iload 6
load_string "IiIiiIIII"
widget_put_drag_release_listener
LABEL111:
load_int 10
load_string "Examine"
widget_put_action
load_string "<col=ff9040>"
iload 0
get_item_name
load_string "</col>"
string_append 3
widget_put_name
load_int 284
load_int -2147483645
load_int -2147483643
load_int -2147483647
load_int -2147483646
iload 3
load_int 0
load_string "IiiiIi"
widget_put_drag_start_listener
jump LABEL142
LABEL130:
load_int 255
widget_put_opacity
load_int 6512
load_int 1
1200
widget_put_actions_null
load_int -1
load_string ""
widget_put_drag_start_listener
load_int -1
load_string ""
widget_put_drag_release_listener
LABEL142:
return