Rewrite scripts with new opcodes
This commit is contained in:
committed by
Max Weber
parent
75fbb07b41
commit
fc48e2a936
@@ -3,112 +3,112 @@
|
||||
.string_stack_count 1
|
||||
.int_var_count 11
|
||||
.string_var_count 4
|
||||
load_int 83
|
||||
load_int 49
|
||||
load_int 1497
|
||||
iconst 83
|
||||
iconst 49
|
||||
iconst 1497
|
||||
iload 0
|
||||
get_enum_value
|
||||
enum
|
||||
istore 3
|
||||
iload 0
|
||||
get_boostedskilllevels
|
||||
int_to_string
|
||||
widget_put_text
|
||||
stat
|
||||
tostring
|
||||
cc_settext
|
||||
iload 0
|
||||
get_realskilllevels
|
||||
stat_base
|
||||
istore 4
|
||||
iload 0 ; load the skill id from arguments
|
||||
iload 4 ; load the current real skill level
|
||||
load_string "skillTabBaseLevel" ; push event name
|
||||
sconst "skillTabBaseLevel" ; push event name
|
||||
runelite_callback ; invoke callback
|
||||
istore 4 ; store the (possibly) edited real skill level
|
||||
iload 4
|
||||
int_to_string
|
||||
widget_put_text 1
|
||||
tostring
|
||||
cc_settext 1
|
||||
iload 0
|
||||
get_skillexperiences
|
||||
stat_xp
|
||||
istore 5
|
||||
load_string ","
|
||||
sconst ","
|
||||
sstore 1
|
||||
sload 0
|
||||
load_string " XP:"
|
||||
string_append 2
|
||||
sconst " XP:"
|
||||
join_string 2
|
||||
sstore 2
|
||||
iload 5
|
||||
sload 1
|
||||
invoke 46
|
||||
sstore 3
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 6
|
||||
get_varbit 4181
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL35
|
||||
jump LABEL66
|
||||
LABEL35:
|
||||
iload 4
|
||||
load_int 99
|
||||
load_string "skillTabMaxLevel" ; push event name
|
||||
iconst 99
|
||||
sconst "skillTabMaxLevel" ; push event name
|
||||
runelite_callback ; invoke callback
|
||||
if_icmplt LABEL39
|
||||
jump LABEL65
|
||||
LABEL39:
|
||||
load_int 105
|
||||
load_int 105
|
||||
load_int 256
|
||||
iconst 105
|
||||
iconst 105
|
||||
iconst 256
|
||||
iload 4
|
||||
load_int 1
|
||||
iadd
|
||||
get_enum_value
|
||||
iconst 1
|
||||
add
|
||||
enum
|
||||
istore 6
|
||||
sload 2
|
||||
load_string "|Next level at:|Remaining XP:"
|
||||
concat_string
|
||||
sconst "|Next level at:|Remaining XP:"
|
||||
append
|
||||
sstore 2
|
||||
sload 3
|
||||
load_string "|"
|
||||
sconst "|"
|
||||
iload 6
|
||||
sload 1
|
||||
invoke 46
|
||||
load_string "|"
|
||||
sconst "|"
|
||||
iload 6
|
||||
iload 5
|
||||
isub
|
||||
sub
|
||||
sload 1
|
||||
invoke 46
|
||||
string_append 4
|
||||
concat_string
|
||||
join_string 4
|
||||
append
|
||||
sstore 3
|
||||
LABEL65:
|
||||
jump LABEL84
|
||||
LABEL66:
|
||||
sload 2
|
||||
load_string "|Next level at:"
|
||||
concat_string
|
||||
sconst "|Next level at:"
|
||||
append
|
||||
sstore 2
|
||||
sload 3
|
||||
load_string "|"
|
||||
load_int 105
|
||||
load_int 105
|
||||
load_int 256
|
||||
sconst "|"
|
||||
iconst 105
|
||||
iconst 105
|
||||
iconst 256
|
||||
iload 4
|
||||
load_int 1
|
||||
iadd
|
||||
get_enum_value
|
||||
iconst 1
|
||||
add
|
||||
enum
|
||||
sload 1
|
||||
invoke 46
|
||||
string_append 2
|
||||
concat_string
|
||||
join_string 2
|
||||
append
|
||||
sstore 3
|
||||
LABEL84:
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 7
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 8
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 9
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 10
|
||||
invoke 1138
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL96
|
||||
jump LABEL278
|
||||
LABEL96:
|
||||
@@ -116,13 +116,13 @@ LABEL96:
|
||||
invoke 1936
|
||||
istore 7
|
||||
iload 7
|
||||
load_int -1
|
||||
iconst -1
|
||||
if_icmpne LABEL103
|
||||
jump LABEL133
|
||||
LABEL103:
|
||||
iload 7
|
||||
load_int 10
|
||||
idiv
|
||||
iconst 10
|
||||
div
|
||||
istore 7
|
||||
iload 7
|
||||
iload 5
|
||||
@@ -130,35 +130,35 @@ LABEL103:
|
||||
jump LABEL133
|
||||
LABEL111:
|
||||
sload 2
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "XP to regain:"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "XP to regain:"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 2
|
||||
sload 3
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
iload 7
|
||||
iload 5
|
||||
isub
|
||||
sub
|
||||
sload 1
|
||||
invoke 46
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 3
|
||||
load_int 1
|
||||
iconst 1
|
||||
istore 8
|
||||
LABEL133:
|
||||
iload 8
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL137
|
||||
jump LABEL278
|
||||
LABEL137:
|
||||
get_varp 1588
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpgt LABEL141
|
||||
jump LABEL278
|
||||
LABEL141:
|
||||
@@ -171,279 +171,279 @@ LABEL141:
|
||||
6: LABEL144
|
||||
jump LABEL278
|
||||
LABEL144:
|
||||
load_int 20
|
||||
iconst 20
|
||||
invoke 2031
|
||||
istore 10
|
||||
iload 10
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpgt LABEL151
|
||||
jump LABEL170
|
||||
LABEL151:
|
||||
sload 2
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "XP permitted:"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "XP permitted:"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 2
|
||||
sload 3
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
iload 10
|
||||
sload 1
|
||||
invoke 46
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 3
|
||||
jump LABEL188
|
||||
LABEL170:
|
||||
load_int 1
|
||||
iconst 1
|
||||
istore 9
|
||||
sload 2
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "XP permitted:"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "XP permitted:"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 2
|
||||
sload 3
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "NONE"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "NONE"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 3
|
||||
LABEL188:
|
||||
jump LABEL278
|
||||
LABEL189:
|
||||
load_int 30
|
||||
iconst 30
|
||||
invoke 2031
|
||||
istore 10
|
||||
iload 10
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpgt LABEL196
|
||||
jump LABEL215
|
||||
LABEL196:
|
||||
sload 2
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "XP permitted:"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "XP permitted:"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 2
|
||||
sload 3
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
iload 10
|
||||
sload 1
|
||||
invoke 46
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 3
|
||||
jump LABEL233
|
||||
LABEL215:
|
||||
load_int 1
|
||||
iconst 1
|
||||
istore 9
|
||||
sload 2
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "XP permitted:"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "XP permitted:"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 2
|
||||
sload 3
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "NONE"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "NONE"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 3
|
||||
LABEL233:
|
||||
jump LABEL278
|
||||
LABEL234:
|
||||
load_int 40
|
||||
iconst 40
|
||||
invoke 2031
|
||||
istore 10
|
||||
iload 10
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpgt LABEL241
|
||||
jump LABEL260
|
||||
LABEL241:
|
||||
sload 2
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "XP permitted:"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "XP permitted:"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 2
|
||||
sload 3
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
iload 10
|
||||
sload 1
|
||||
invoke 46
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 3
|
||||
jump LABEL278
|
||||
LABEL260:
|
||||
load_int 1
|
||||
iconst 1
|
||||
istore 9
|
||||
sload 2
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "XP permitted:"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "XP permitted:"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 2
|
||||
sload 3
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "NONE"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "NONE"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 3
|
||||
LABEL278:
|
||||
iload 1
|
||||
load_int 5
|
||||
widget_load_child 1
|
||||
load_int 1
|
||||
iconst 5
|
||||
cc_find 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL284
|
||||
jump LABEL294
|
||||
LABEL284:
|
||||
iload 9
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL288
|
||||
jump LABEL291
|
||||
LABEL288:
|
||||
load_int 0
|
||||
widget_put_hidden 1
|
||||
iconst 0
|
||||
cc_sethide 1
|
||||
jump LABEL293
|
||||
LABEL291:
|
||||
load_int 1
|
||||
widget_put_hidden 1
|
||||
iconst 1
|
||||
cc_sethide 1
|
||||
LABEL293:
|
||||
jump LABEL321
|
||||
LABEL294:
|
||||
iload 1
|
||||
load_int 5
|
||||
load_int 5
|
||||
widget_create_child 1
|
||||
load_int 6
|
||||
load_int 0
|
||||
load_int 0
|
||||
load_int 1
|
||||
widget_put_position 1
|
||||
load_int 19
|
||||
load_int 19
|
||||
load_int 0
|
||||
load_int 0
|
||||
widget_put_size 1
|
||||
load_int 940
|
||||
widget_put_spriteid 1
|
||||
load_int 65793
|
||||
widget_put_sprite2 1
|
||||
iconst 5
|
||||
iconst 5
|
||||
cc_create 1
|
||||
iconst 6
|
||||
iconst 0
|
||||
iconst 0
|
||||
iconst 1
|
||||
cc_setposition 1
|
||||
iconst 19
|
||||
iconst 19
|
||||
iconst 0
|
||||
iconst 0
|
||||
cc_setsize 1
|
||||
iconst 940
|
||||
cc_setgraphic 1
|
||||
iconst 65793
|
||||
cc_setgraphicshadow 1
|
||||
iload 9
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL316
|
||||
jump LABEL319
|
||||
LABEL316:
|
||||
load_int 0
|
||||
widget_put_hidden 1
|
||||
iconst 0
|
||||
cc_sethide 1
|
||||
jump LABEL321
|
||||
LABEL319:
|
||||
load_int 1
|
||||
widget_put_hidden 1
|
||||
iconst 1
|
||||
cc_sethide 1
|
||||
LABEL321:
|
||||
iload 3
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL325
|
||||
jump LABEL344
|
||||
LABEL325:
|
||||
get_ismembers
|
||||
load_int 0
|
||||
map_members
|
||||
iconst 0
|
||||
if_icmpeq LABEL329
|
||||
jump LABEL344
|
||||
LABEL329:
|
||||
get_varc 103
|
||||
load_int 0
|
||||
get_varc_int 103
|
||||
iconst 0
|
||||
if_icmpeq LABEL333
|
||||
jump LABEL344
|
||||
LABEL333:
|
||||
load_string "<col=ff0000>"
|
||||
sconst "<col=ff0000>"
|
||||
sload 0
|
||||
load_string ":"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
sconst ":"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
sstore 2
|
||||
load_string "<col=ff0000>"
|
||||
load_string "Members Only"
|
||||
load_string "</col>"
|
||||
string_append 3
|
||||
sconst "<col=ff0000>"
|
||||
sconst "Members Only"
|
||||
sconst "</col>"
|
||||
join_string 3
|
||||
sstore 3
|
||||
LABEL344:
|
||||
invoke 1972
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL348
|
||||
jump LABEL375
|
||||
LABEL348:
|
||||
load_int 2367
|
||||
load_int -2147483644
|
||||
load_int -2147483645
|
||||
load_int -1
|
||||
iconst 2367
|
||||
iconst -2147483644
|
||||
iconst -2147483645
|
||||
iconst -1
|
||||
iload 2
|
||||
sload 2
|
||||
sload 3
|
||||
load_int 495
|
||||
load_string "iIiIssf"
|
||||
iconst 495
|
||||
sconst "iIiIssf"
|
||||
iload 1
|
||||
widget_put_option_click_listener_widget
|
||||
get_varc 218
|
||||
if_setonop
|
||||
get_varc_int 218
|
||||
iload 1
|
||||
if_icmpeq LABEL363
|
||||
jump LABEL374
|
||||
LABEL363:
|
||||
get_varc 217
|
||||
load_int -1
|
||||
get_varc_int 217
|
||||
iconst -1
|
||||
if_icmpeq LABEL367
|
||||
jump LABEL374
|
||||
LABEL367:
|
||||
iload 1
|
||||
load_int -1
|
||||
iconst -1
|
||||
iload 2
|
||||
sload 2
|
||||
sload 3
|
||||
load_int 495
|
||||
iconst 495
|
||||
invoke 2344
|
||||
LABEL374:
|
||||
jump LABEL390
|
||||
LABEL375:
|
||||
load_int 992
|
||||
load_int -2147483645
|
||||
load_int -1
|
||||
iconst 992
|
||||
iconst -2147483645
|
||||
iconst -1
|
||||
iload 2
|
||||
sload 2
|
||||
sload 3
|
||||
load_int 495
|
||||
load_int 25
|
||||
load_int 5
|
||||
idiv
|
||||
load_string "IiIssfi"
|
||||
iconst 495
|
||||
iconst 25
|
||||
iconst 5
|
||||
div
|
||||
sconst "IiIssfi"
|
||||
iload 1
|
||||
widget_put_mouse_hover_listener_widget
|
||||
load_int 0
|
||||
put_varc 2
|
||||
if_setonmouserepeat
|
||||
iconst 0
|
||||
set_varc_int 2
|
||||
LABEL390:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user