scripts: Update spec redraw

This commit is contained in:
Owain van Brakel
2020-02-06 15:03:59 +01:00
parent 817c27e003
commit 236243ea4b
2 changed files with 99 additions and 81 deletions

View File

@@ -1 +1 @@
14DBDBF6FB86760F32965613C7393403F142073AA388332F9A5C97B69FE65D19 3444503072AEE70EEB53938C1FDC826A7530B62BB5FAB65402A22BAB08D7B76D

View File

@@ -25,56 +25,74 @@ LABEL17:
iload 1 iload 1
iconst 0 iconst 0
if_icmple LABEL21 if_icmple LABEL21
jump LABEL25 jump LABEL31
LABEL21: LABEL21:
iconst 1 ; What we compare the boolean with iconst 1 ; What we compare the boolean with
iconst 0 ; Boolean iconst 0 ; Boolean
sconst "drawSpecbarAnyway" sconst "drawSpecbarAnyway"
runelite_callback runelite_callback
if_icmpeq LABEL25 if_icmpeq LABEL41
iconst 1 iconst 1
iconst 38862883 iconst 38862883
if_sethide if_sethide
iconst 190
iconst 28
iconst 0
iconst 0
iconst 38862850
if_setsize
return return
LABEL25: LABEL31:
invoke 1972
iconst 1
if_icmpeq LABEL35
jump LABEL41
LABEL35:
iconst 190
iconst 16
iconst 0
iconst 0
iconst 38862850
if_setsize
LABEL41:
iconst 0 iconst 0
istore 2 istore 2
iconst 38862883 iconst 38862883
if_gethide if_gethide
iconst 1 iconst 1
if_icmpeq LABEL32 if_icmpeq LABEL48
jump LABEL34 jump LABEL50
LABEL32: LABEL48:
iconst 1 iconst 1
istore 2 istore 2
LABEL34: LABEL50:
iconst 0 iconst 0
iconst 38862883 iconst 38862883
if_sethide if_sethide
get_varp 301 get_varp 301
iconst 0 iconst 0
if_icmpgt LABEL41 if_icmpgt LABEL57
jump LABEL45 jump LABEL61
LABEL41: LABEL57:
iconst 16776960 iconst 16776960
iconst 38862888 iconst 38862888
if_setcolour if_setcolour
jump LABEL48 jump LABEL64
LABEL45: LABEL61:
iconst 16 iconst 16
iconst 38862888 iconst 38862888
if_setcolour if_setcolour
LABEL48: LABEL64:
get_varp 300 get_varp 300
istore 3 istore 3
iload 3 iload 3
iconst 0 iconst 0
if_icmplt LABEL54 if_icmplt LABEL70
jump LABEL56 jump LABEL72
LABEL54: LABEL70:
iconst 0 iconst 0
istore 3 istore 3
LABEL56: LABEL72:
sconst "Special Attack: " sconst "Special Attack: "
iload 3 iload 3
iconst 10 iconst 10
@@ -96,23 +114,23 @@ LABEL56:
iconst 0 iconst 0
if_icmple RETURN ; Return if the weapon isn't supposed to have a spec if_icmple RETURN ; Return if the weapon isn't supposed to have a spec
jump CONTINUE ; Idk why I'm doing it like this but it's the jagex way jump CONTINUE ; Idk why I'm doing it like this but it's the jagex way
RETURN: RETURN:
return return
CONTINUE: CONTINUE:
iload 3 iload 3
iload 1 iload 1
if_icmpge LABEL73 if_icmpge LABEL89
jump LABEL77 jump LABEL93
LABEL73: LABEL89:
iconst 3767611 iconst 3767611
iconst 38862887 iconst 38862887
if_setcolour if_setcolour
jump LABEL80 jump LABEL96
LABEL77: LABEL93:
iconst 12907 iconst 12907
iconst 38862887 iconst 38862887
if_setcolour if_setcolour
LABEL80: LABEL96:
iconst 94 iconst 94
iconst 3 iconst 3
inv_getobj inv_getobj
@@ -136,13 +154,13 @@ LABEL80:
sstore 0 sstore 0
iload 4 iload 4
switch switch
22737: LABEL108 22737: LABEL124
22740: LABEL108 22740: LABEL124
22743: LABEL108 22743: LABEL124
22731: LABEL108 22731: LABEL124
22734: LABEL108 22734: LABEL124
jump LABEL116 jump LABEL132
LABEL108: LABEL124:
iconst 111 iconst 111
iconst 115 iconst 115
iconst 1739 iconst 1739
@@ -151,51 +169,51 @@ LABEL108:
sconst " 5-100% " sconst " 5-100% "
join_string 2 join_string 2
sstore 0 sstore 0
LABEL116: LABEL132:
get_varbit 5712 get_varbit 5712
iconst 0 iconst 0
if_icmpeq LABEL120 if_icmpeq LABEL136
jump LABEL185 jump LABEL201
LABEL120: LABEL136:
iload 4 iload 4
iconst 11235 iconst 11235
if_icmpeq LABEL136 if_icmpeq LABEL152
iload 4 iload 4
iconst 20408 iconst 20408
if_icmpeq LABEL136 if_icmpeq LABEL152
iload 4 iload 4
iconst 12765 iconst 12765
if_icmpeq LABEL136 if_icmpeq LABEL152
iload 4 iload 4
iconst 12768 iconst 12768
if_icmpeq LABEL136 if_icmpeq LABEL152
iload 4 iload 4
iconst 12767 iconst 12767
if_icmpeq LABEL136 if_icmpeq LABEL152
jump LABEL169 jump LABEL185
LABEL136: LABEL152:
iconst 94 iconst 94
iconst 13 iconst 13
inv_getobj inv_getobj
iconst 11212 iconst 11212
if_icmpeq LABEL157 if_icmpeq LABEL173
iconst 94 iconst 94
iconst 13 iconst 13
inv_getobj inv_getobj
iconst 11227 iconst 11227
if_icmpeq LABEL157 if_icmpeq LABEL173
iconst 94 iconst 94
iconst 13 iconst 13
inv_getobj inv_getobj
iconst 11228 iconst 11228
if_icmpeq LABEL157 if_icmpeq LABEL173
iconst 94 iconst 94
iconst 13 iconst 13
inv_getobj inv_getobj
iconst 11229 iconst 11229
if_icmpeq LABEL157 if_icmpeq LABEL173
jump LABEL169 jump LABEL185
LABEL157: LABEL173:
sconst "Descent of Dragons: Deal a double attack with dragon arrows that inflicts up to 50% more damage (minimum damage of 8 per hit). (" sconst "Descent of Dragons: Deal a double attack with dragon arrows that inflicts up to 50% more damage (minimum damage of 8 per hit). ("
iconst 111 iconst 111
iconst 105 iconst 105
@@ -208,7 +226,7 @@ LABEL157:
sconst "%)" sconst "%)"
join_string 3 join_string 3
sstore 0 sstore 0
LABEL169: LABEL185:
iconst 526 iconst 526
iconst -2147483645 iconst -2147483645
iconst -1 iconst -1
@@ -224,11 +242,11 @@ LABEL169:
sconst "I" sconst "I"
iconst 38862883 iconst 38862883
if_setonmouseleave if_setonmouseleave
jump LABEL189 jump LABEL205
LABEL185: LABEL201:
iconst -1 iconst -1
sconst "" sconst ""
iconst 38862883 iconst 38862883
if_setonmouserepeat if_setonmouserepeat
LABEL189: LABEL205:
return return