Merge remote-tracking branch 'upstream/master' into master

Nice insider info btw, be nice if you shared it, so-called "open source" client.
This commit is contained in:
ThatGamerBlue
2021-05-28 21:39:25 +01:00
481 changed files with 53410 additions and 51723 deletions

View File

@@ -765,7 +765,7 @@ LABEL681:
jump LABEL726
LABEL685:
get_varc_string 359 ; Skip truncating of varcstr 22 by not calling 280
lowercase ; instead get the var directly and lowercase it
lowercase ; instead get the var directly and lowercase it
sstore 0
sload 0
string_length

View File

@@ -111,11 +111,11 @@
iload 19
iload 20
sconst "iiiIIIIIIIIIIIIIIIII"
cc_setonop
iload 0 ; button component id
iload 1 ; 0-9
cc_setonop
iload 0 ; button component id
iload 1 ; 0-9
sconst "bankpinButtonSetup"
runelite_callback
runelite_callback
pop_int ; 0-9
pop_int ; button component id
return

View File

@@ -208,19 +208,19 @@ LABEL165:
iconst 126
istore 20
iconst 0
3801
activeclansettings_find_affined
iconst 1
if_icmpeq LABEL202
jump LABEL222
LABEL202:
iconst 0
3851
activeclanchannel_find_affined
iconst 1
if_icmpeq LABEL207
jump LABEL222
LABEL207:
sload 0
3860
activeclanchannel_getuserslot
istore 17
iload 17
iconst -1
@@ -228,10 +228,10 @@ LABEL207:
jump LABEL217
LABEL214:
iload 17
3857
activeclanchannel_getuserrank
istore 18
LABEL217:
3853
activeclanchannel_getrankkick
iconst 2956
invoke 4456
istore 20
@@ -288,6 +288,10 @@ LABEL245:
if_icmpeq LABEL256
jump LABEL1266
LABEL256:
iload 10 ; message uid
sconst "chatMessageBuilding"
runelite_callback
pop_int ; pop uid
iload 11
switch
1: LABEL259
@@ -312,14 +316,9 @@ LABEL256:
91: LABEL280
jump LABEL928
LABEL259:
iload 10 ; The id of the messageNode of the message being built
sconst ""
sconst "addTimestamp"
runelite_callback
pop_int ; pop message id
sload 12
sconst ":"
join_string 3 ; + 1 for timestamp
join_string 2
sload 1
sload 14
sconst "</col>"
@@ -339,14 +338,9 @@ LABEL259:
istore 7
jump LABEL942
LABEL280:
iload 10 ; The id of the messageNode of the message being built
sconst ""
sconst "addTimestamp"
runelite_callback
pop_int ; pop message id
sload 12
sconst ":"
join_string 3 ; + 1 for timestamp
join_string 2
sload 3
sload 14
sconst "</col>"
@@ -366,17 +360,12 @@ LABEL280:
istore 7
jump LABEL942
LABEL301:
iload 10 ; The id of the messageNode of the message being built
sconst ""
sconst "addTimestamp"
runelite_callback
pop_int ; pop message id
sconst "From "
sload 12
sconst ":"
sconst "privateChatFrom"
runelite_callback ; for prepending color tags
join_string 4 ; + 1 for timestamp
join_string 3
sconst "privChatUsername"
runelite_callback
sload 2
sload 14
sconst "</col>"
@@ -396,15 +385,10 @@ LABEL301:
istore 7
jump LABEL942
LABEL323:
iload 10 ; The id of the messageNode of the message being built
sconst ""
sconst "addTimestamp"
runelite_callback
pop_int ; pop message id
sload 9
sload 14
sconst "</col>"
join_string 4 ; + 1 for timestamp
join_string 3
iload 8
iload 9
iconst 10616888
@@ -420,15 +404,10 @@ LABEL323:
istore 7
jump LABEL942
LABEL341:
iload 10 ; The id of the messageNode of the message being built
sconst ""
sconst "addTimestamp"
runelite_callback
pop_int ; pop message id
sload 2
sload 14
sconst "</col>"
join_string 4 ; + 1 for timestamp
join_string 3
iload 8
iload 9
iconst 10616888
@@ -461,17 +440,12 @@ LABEL362:
LABEL373:
jump LABEL942
LABEL374:
iload 10 ; The id of the messageNode of the message being built
sconst ""
sconst "addTimestamp"
runelite_callback
pop_int ; pop message id
sconst "To "
sload 12
sconst ":"
sconst "privateChatTo"
runelite_callback ; for chat recolors
join_string 4 ; + 1 for timestamp
join_string 3
sconst "privChatUsername"
runelite_callback
sload 2
sload 14
sconst "</col>"
@@ -529,11 +503,6 @@ LABEL414:
istore 7
jump LABEL942
LABEL432:
iload 10 ; The id of the messageNode of the message being built
sconst ""
sconst "addTimestamp"
runelite_callback
pop_int ; pop message id
sconst "["
sload 5
sload 13
@@ -541,7 +510,7 @@ LABEL432:
sconst "] "
sload 12
sconst ":"
join_string 8 ; + 1 for time stamp
join_string 7
sload 6
sload 14
sconst "</col>"
@@ -562,20 +531,20 @@ LABEL432:
jump LABEL942
LABEL458:
iconst 0
3801
activeclansettings_find_affined
iconst 1
if_icmpeq LABEL463
jump LABEL583
LABEL463:
iconst 0
3851
activeclanchannel_find_affined
iconst 1
if_icmpeq LABEL468
jump LABEL583
LABEL468:
sload 12
removetags
3860
activeclanchannel_getuserslot
istore 17
iload 17
iconst -1
@@ -583,7 +552,7 @@ LABEL468:
jump LABEL549
LABEL476:
iload 17
3857
activeclanchannel_getuserrank
invoke 4302
istore 16
sstore 16
@@ -623,17 +592,12 @@ LABEL485:
istore 7
jump LABEL548
LABEL515:
iload 10 ; The id of the messageNode of the message being built
sconst ""
sconst "addTimestamp"
runelite_callback
pop_int ; pop message id
sconst "["
sload 7
sload 13
sconst "</col>"
sconst "]"
join_string 6 ; + 1 for timestamp
join_string 5
iconst -1
iconst 0
iconst 0
@@ -732,19 +696,19 @@ LABEL583:
LABEL612:
jump LABEL942
LABEL613:
3800
activeclansettings_find_listened
iconst 1
if_icmpeq LABEL617
jump LABEL736
LABEL617:
3850
activeclanchannel_find_listened
iconst 1
if_icmpeq LABEL621
jump LABEL736
LABEL621:
sload 12
removetags
3860
activeclanchannel_getuserslot
istore 17
iload 17
iconst -1
@@ -752,7 +716,7 @@ LABEL621:
jump LABEL702
LABEL629:
iload 17
3857
activeclanchannel_getuserrank
invoke 4302
istore 16
sstore 16
@@ -897,14 +861,14 @@ LABEL765:
jump LABEL942
LABEL766:
iconst 0
3851
activeclanchannel_find_affined
iconst 1
if_icmpeq LABEL771
jump LABEL796
LABEL771:
sconst "["
sload 7
3852
activeclanchannel_getclanname
sconst "</col>"
sconst "]"
join_string 5
@@ -950,14 +914,14 @@ LABEL796:
LABEL815:
jump LABEL942
LABEL816:
3850
activeclanchannel_find_listened
iconst 1
if_icmpeq LABEL820
jump LABEL845
LABEL820:
sconst "["
sload 7
3852
activeclanchannel_getclanname
sconst "</col>"
sconst "]"
join_string 5
@@ -1003,13 +967,7 @@ LABEL845:
LABEL864:
jump LABEL942
LABEL865:
iload 10 ; The id of the messageNode of the message being built
sconst ""
sconst "addTimestamp"
runelite_callback
pop_int ; pop message id
sload 14
join_string 2
invoke 2066
istore 13
sstore 15
@@ -1077,13 +1035,7 @@ LABEL913:
LABEL927:
jump LABEL942
LABEL928:
iload 10 ; The id of the messageNode of the message being built
sconst ""
sconst "addTimestamp"
runelite_callback
pop_int ; pop message id
sload 14
join_string 2 ; prepend the timestamp
iload 8
iload 9
iconst 10616888
@@ -1207,20 +1159,20 @@ LABEL1017:
jump LABEL1050
LABEL1021:
iconst 0
3851
activeclanchannel_find_affined
iconst 1
if_icmpeq LABEL1026
jump LABEL1050
LABEL1026:
sload 12
removetags
3860
activeclanchannel_getuserslot
istore 17
iload 17
iconst -1
if_icmpeq LABEL1038
iload 17
3857
activeclanchannel_getuserrank
iconst -1
if_icmple LABEL1038
jump LABEL1050

View File

@@ -400,6 +400,10 @@ CHAT_FILTER:
if_icmpeq LABEL356 ; Check if we are building this message
jump LABEL530
LABEL356:
iload 12 ; message uid
sconst "chatMessageBuilding"
runelite_callback
pop_int
iload 17
switch
3: LABEL359
@@ -409,19 +413,14 @@ LABEL356:
jump LABEL446
LABEL359:
iload 7
iload 12 ; Load the id of the messageNode
sconst "" ; Push a container for the timestamp
sconst "addTimestamp" ; Push event name
runelite_callback ; Invoke callback
pop_int ; Pop the id of the messageNode
sload 4
sconst "splitPrivChatUsernameColor"
runelite_callback
sconst "From "
sload 1
sconst ":"
sconst "privateChatSplitFrom"
runelite_callback
sconst "</col>"
join_string 6 ; Add the timestamp to the message
join_string 5
sload 4
sload 0
sconst "</col>"
@@ -443,19 +442,14 @@ LABEL359:
jump LABEL462
LABEL385:
iload 7
iload 12 ; Load the id of the messageNode
sconst "" ; Push container for the timestamp
sconst "addTimestamp" ; Push event name
runelite_callback ; Invoke callback
pop_int ; Pop the id of the messageNode
sload 4
sconst "splitPrivChatUsernameColor"
runelite_callback
sconst "To "
sload 1
sconst ":"
sconst "privateChatSplitTo"
runelite_callback
sconst "</col>"
join_string 6 ; Add the timestamp to the message
join_string 5
sload 4
sload 0
sconst "</col>"
@@ -477,15 +471,10 @@ LABEL385:
jump LABEL462
LABEL411:
iload 7
iload 12 ; Load the id of the messageNode
sconst "" ; Push a container for the timestamp
sconst "addTimestamp" ; Push event name
runelite_callback ; Invoke callback
pop_int ; Pop the id of the messageNode
sload 4 ; Load the log in/out message
sload 4
sload 0
sconst "</col>"
join_string 4
join_string 3
iload 9
iload 10
iconst 10682368

View File

@@ -10,9 +10,9 @@
pop_int ; pop chat type
string_length ; get string length of chat message
iconst 0 ; load 0
if_icmpne LABEL100 ; if length is not 0, continue
if_icmpne CONTINUE ; if length is not 0, continue
return
LABEL100:
CONTINUE:
get_varbit 4394
iconst 1
if_icmpeq LABEL4
@@ -53,7 +53,7 @@ LABEL31:
sload 0
iload 0
iconst 0
5010
chat_sendclan
jump LABEL39
LABEL36:
sload 0

View File

@@ -270,17 +270,27 @@ LABEL222:
istore 5
istore 6
LABEL226:
iload 6 ; prefix length
iload 5 ; chat type
sconst "preChatSendpublic"
runelite_callback
istore 5 ; chat type
istore 6 ; prefix length
get_varc_string 335 ; load input string
string_length ; get length
iconst 0 ; load 0
if_icmpeq LABEL420 ; if (%varcstring355 == 0) jump to script223 call
iload 5
iconst 44
if_icmpeq LABEL230
jump LABEL260
LABEL230:
3800
activeclansettings_find_listened
iconst 1
if_icmpeq LABEL234
jump LABEL257
LABEL234:
3850
activeclanchannel_find_listened
iconst 1
if_icmpeq LABEL238
jump LABEL257
@@ -292,7 +302,7 @@ LABEL238:
LABEL242:
return
LABEL243:
3803
activeclansettings_getallowunaffined
iconst 1
if_icmpeq LABEL247
jump LABEL254
@@ -321,7 +331,7 @@ LABEL260:
jump LABEL307
LABEL264:
iconst 0
3851
activeclanchannel_find_affined
iconst 1
if_icmpeq LABEL269
jump LABEL304
@@ -340,7 +350,7 @@ LABEL277:
LABEL278:
chat_playername
removetags
3860
activeclanchannel_getuserslot
istore 7
iload 7
iconst -1
@@ -348,8 +358,8 @@ LABEL278:
jump LABEL298
LABEL286:
iload 7
3857
3854
activeclanchannel_getuserrank
activeclanchannel_getranktalk
if_icmpge LABEL291
jump LABEL298
LABEL291:

View File

@@ -35,7 +35,7 @@ LABEL24:
iload 3
sconst "destroyOnOpKey" ; load event name
runelite_callback ; invoke callback
pop_int
pop_int
iconst 2266
iconst 1
iconst 0

View File

@@ -3,10 +3,10 @@
.string_stack_count 0
.int_var_count 16
.string_var_count 2
; callback "friend_cc_settext"
; callback "friendsChatSetText"
; Fired just before the client pops the name off the stack
; Modified by the friendnotes plugin to show the icon
; callback "friend_cc_setposition"
; callback "friendsChatSetPosition"
; Fired just before the client sets the position of "friend changed their name" icon
; Modified by the friendnotes plugin to offset the name changed icon
iload 1
@@ -300,7 +300,7 @@ LABEL234:
add
istore 10
sload 0
sconst "friend_cc_settext"
sconst "friendsChatSetText"
runelite_callback
cc_settext
iconst 0
@@ -382,7 +382,7 @@ LABEL293:
add
iconst 0
iconst 0
sconst "friend_cc_setposition"
sconst "friendsChatSetPosition"
runelite_callback
cc_setposition 1
iconst 1093

View File

@@ -10,6 +10,7 @@
iconst 1
if_icmpeq LABEL4
jump CONFIRM_KICK ; Jump to our new label instead
jump LABEL7
LABEL4:
sconst "You can't kick players from your team during Wilderness Wars."
mes
@@ -20,8 +21,7 @@ LABEL7:
invoke 96
sload 0
clan_kickuser
jump LABEL73
LABEL73:
RETURN:
return
CONFIRM_KICK:
sload 0 ; Username we are trying to kick
@@ -30,5 +30,5 @@ CONFIRM_KICK:
runelite_callback
pop_string ; Pop username
iconst 0 ; Compare against zero
if_icmpgt LABEL73 ; Early return for chatbox panel confirmation
if_icmpgt RETURN ; Early return for chatbox panel confirmation
jump LABEL7

View File

@@ -7,13 +7,13 @@
invoke 41
get_varbit 4439
iconst 1
sub
sub
istore 7
iconst 105
iconst 118
iconst 150
iload 7
enum
enum
istore 8
iload 8
iconst -1
@@ -22,19 +22,19 @@
LABEL16:
iconst 1
iload 2
if_sethide
if_sethide
iconst 0
iload 3
if_sethide
if_sethide
iconst 1
iload 4
if_sethide
if_sethide
iconst 1
iload 5
if_sethide
if_sethide
iload 0
iload 1
cc_find
cc_find
iconst 1
if_icmpeq LABEL34
jump LABEL36
@@ -42,16 +42,16 @@ LABEL34:
sconst "Grand Exchange"
sconst "setGETitle" ;
runelite_callback ;
cc_settext
cc_settext
LABEL36:
return
return
LABEL37:
iconst 0
iload 2
if_sethide
if_sethide
iconst 0
iload 2
if_settrans
if_settrans
iload 7
stockmarket_isofferempty
iconst 1
@@ -60,42 +60,42 @@ LABEL37:
LABEL48:
iconst 1
iload 3
if_sethide
if_sethide
iconst 1
iload 4
if_sethide
if_sethide
iconst 0
iload 5
if_sethide
if_sethide
iload 0
iload 1
cc_find
cc_find
iconst 1
if_icmpeq LABEL63
jump LABEL65
LABEL63:
sconst "Grand Exchange: Set up offer"
cc_settext
cc_settext
LABEL65:
return
return
LABEL66:
iconst 1
iload 3
if_sethide
if_sethide
iconst 0
iload 4
if_sethide
if_sethide
iconst 1
iload 5
if_sethide
if_sethide
iload 0
iload 1
cc_find
cc_find
iconst 1
if_icmpeq LABEL81
jump LABEL83
LABEL81:
sconst "Grand Exchange: Offer status"
cc_settext
cc_settext
LABEL83:
return
return

View File

@@ -3,10 +3,10 @@
.string_stack_count 0
.int_var_count 13
.string_var_count 2
; callback "ignore_cc_settext"
; callback "friendsChatSetText"
; Fired just before the client pops the name off the stack
; Modified by the friendnotes plugin to show the icon
; callback "ignore_cc_setposition"
; callback "friendsChatSetPosition"
; Fired just before the client sets the position of "ignored person changed their name" icon
; Modified by the friendnotes plugin to offset the name changed icon
iload 1
@@ -157,7 +157,7 @@ LABEL117:
add
istore 8
sload 0
sconst "ignore_cc_settext"
sconst "friendsChatSetText"
runelite_callback
cc_settext
iconst 0
@@ -216,7 +216,7 @@ LABEL117:
add
iconst 0
iconst 0
sconst "ignore_cc_setposition"
sconst "friendsChatSetPosition"
runelite_callback
cc_setposition 1
iconst 1093

View File

@@ -43,7 +43,8 @@ LABEL9:
sconst "forceStackStones" ; push event name
runelite_callback ; invoke callback
iconst 0 ; if 0 is returned, continue normal layout
if_icmpeq LABEL49
if_icmpne LABEL29
jump LABEL49
LABEL29:
iconst 0
iload 3

View File

@@ -5,7 +5,7 @@
.string_var_count 0
iconst 896
sconst "innerZoomLimit"
runelite_callback
runelite_callback
iconst 128
sconst "outerZoomLimit"
runelite_callback
@@ -13,7 +13,7 @@
istore 5
iconst 896
sconst "innerZoomLimit"
runelite_callback
runelite_callback
iconst 128
sconst "outerZoomLimit"
runelite_callback
@@ -40,7 +40,7 @@ LABEL25:
get_varc_int 74
iconst 128
sconst "outerZoomLimit"
runelite_callback
runelite_callback
sub
iload 7
multiply
@@ -52,7 +52,7 @@ LABEL34:
get_varc_int 73
iconst 128
sconst "outerZoomLimit"
runelite_callback
runelite_callback
sub
iload 7
multiply

View File

@@ -1 +0,0 @@
FDFF71BAC7D5E10C1E88F445D60100552D0C5B14A66F8648FFEC39573ECFBE8E

View File

@@ -1,269 +0,0 @@
.id 299
.int_stack_count 2
.string_stack_count 0
.int_var_count 3
.string_var_count 0
sconst "resetChatboxInput"
runelite_callback
iconst 1
iconst 10616869
if_sethide
iconst 0
iconst 10616885
if_sethide
invoke 923
iconst 0
istore 2
iload 1
iconst 1
if_icmpeq LABEL13
jump LABEL27
LABEL13:
invoke 553
istore 2
iload 2
invoke 84
iload 2
invoke 89
invoke 223
iconst 1
invoke 927
invoke 1972
iconst 1
if_icmpeq LABEL26
jump LABEL27
LABEL26:
invoke 1984
LABEL27:
invoke 1972
iconst 1
if_icmpeq LABEL31
jump LABEL32
LABEL31:
invoke 2581
LABEL32:
get_varc_int 5
switch
19: LABEL35
20: LABEL41
21: LABEL41
7: LABEL35
8: LABEL38
9: LABEL41
15: LABEL41
jump LABEL43
LABEL35:
sconst "0"
resume_countdialog
jump LABEL43
LABEL38:
sconst ""
resume_namedialog
jump LABEL43
LABEL41:
sconst ""
resume_stringdialog
LABEL43:
iconst 0
set_varc_int 5
iload 0
iconst 1
if_icmpeq LABEL49
jump LABEL51
LABEL49:
sconst ""
set_varc_string 359
LABEL51:
iconst 0
iconst -8
iconst 1
iconst 1
iconst 10616873
if_setposition
iconst 0
iconst 40
iconst 1
iconst 0
iconst 10616873
if_setsize
iconst 0
iconst 22
iconst 1
iconst 1
iconst 10616874
if_setposition
iconst 0
iconst 20
iconst 1
iconst 0
iconst 10616874
if_setsize
iconst 0
iconst 10616873
if_sethide
iconst 0
iconst 10616874
if_sethide
iconst 1
iconst 10616878
if_sethide
iconst 1
iconst 10616884
if_sethide
iconst 0
iconst 0
iconst 10616882
if_setscrollpos
iconst 10616882
cc_deleteall
iconst 10616883
cc_deleteall
iconst 0
iconst -8
iconst 1
iconst 1
iconst 10616873
if_setposition
iconst 0
iconst 40
iconst 1
iconst 0
iconst 10616873
if_setsize
iconst 1
iconst 1
iconst 0
iconst 10616873
if_settextalign
iconst 496
iconst 10616873
if_settextfont
iconst 496
iconst 10616874
if_settextfont
iconst 128
iconst 10616874
if_setcolour
iconst -1
sconst ""
iconst 10616874
if_setonmouseover
iconst -1
sconst ""
iconst 10616874
if_setonmouseleave
sconst ""
iconst 10616874
if_settext
iconst 0
iconst 22
iconst 1
iconst 1
iconst 10616874
if_setposition
iconst -1
sconst ""
iconst 10616869
if_setonclick
iconst -1
sconst ""
iconst 10616874
if_setonclick
iconst -1
sconst ""
iconst 10616874
if_setonkey
iconst 1
iconst 10616871
if_sethide
iconst -1
sconst ""
iconst 10616869
if_setonclick
iconst -1
sconst ""
iconst 10616869
if_setontimer
iconst 10616869
cc_deleteall
iconst 10616875
cc_deleteall
iconst 10616876
cc_deleteall
iconst 10616877
cc_deleteall
iconst 1
iconst 10616875
if_sethide
iconst 1
iconst 10616876
if_sethide
iconst 1
iconst 10616877
if_sethide
iconst -1
sconst ""
iconst 10616875
if_setonmouserepeat
iconst -1
sconst ""
iconst 10616876
if_setonmouserepeat
iconst -1
sconst ""
iconst 10616877
if_setonmouserepeat
iconst -1
sconst ""
iconst 10616875
if_setonmouseleave
iconst -1
sconst ""
iconst 10616876
if_setonmouseleave
iconst -1
sconst ""
iconst 10616877
if_setonmouseleave
iconst -1
sconst ""
iconst 10616875
if_setontimer
iconst -1
sconst ""
iconst 10616876
if_setontimer
iconst -1
sconst ""
iconst 10616877
if_setontimer
iconst -1
sconst ""
iconst 10616875
if_setonclick
iconst -1
sconst ""
iconst 10616876
if_setonclick
iconst -1
sconst ""
iconst 10616877
if_setonclick
get_varc_int 41
iconst 1337
if_icmpeq LABEL230
jump LABEL234
LABEL230:
invoke 2526
pop_int
clientclock
set_varc_int 384
LABEL234:
invoke 1972
iconst 1
if_icmpeq LABEL238
jump LABEL239
LABEL238:
invoke 2581
LABEL239:
return

View File

@@ -11,8 +11,8 @@
iconst 0
iload 0
iconst 25
sconst "scrollWheelZoomIncrement"
runelite_callback
sconst "scrollWheelZoomIncrement"
runelite_callback
multiply
sub
istore 1

View File

@@ -21,6 +21,7 @@
sconst "skillTabBaseLevel" ; push event name
runelite_callback ; invoke callback
istore 4 ; store the (possibly) edited real skill level
pop_int ; pop the skill id we pushed
iload 4
tostring
cc_settext 1

View File

@@ -212,7 +212,7 @@ LABEL177:
if_setnoclickthrough
iconst 1
iconst 10616867
2006
if_setnoscrollthrough
LABEL183:
iconst 0
istore 4

View File

@@ -18,13 +18,13 @@ LABEL10:
return
LABEL11:
; switch on op index
iload 0
switch
iload 0
switch
1: LOOK_NORTH
2: LOOK_SOUTH
3: LOOK_EAST
4: LOOK_WEST
jump LABEL10
jump LABEL10
LOOK_NORTH:
iconst 0
istore 1
@@ -48,10 +48,10 @@ LOOK:
sound_synth
iconst 225
sconst "lookPreservePitch"
runelite_callback
runelite_callback
iconst 5
randominc
add
add
iload 1 ; load target angle
cam_forceangle
cam_forceangle
return

View File

@@ -9,12 +9,12 @@
iconst 0 ; load active boolean
sconst "getSearchingTagTab" ; push event name
runelite_callback ; invoke callback
if_icmpne LABEL2
if_icmpne RELAYOUT
; Let layout continue if current bank tab is 0
get_varbit 4150
iconst 0
if_icmpeq LABEL2
if_icmpeq RELAYOUT
; Reset the current bank tab to 0 otherwise
iconst 0
@@ -24,7 +24,7 @@
sconst "debug"
runelite_callback
LABEL2:
RELAYOUT:
iload 0
iload 1
iload 2