fix outdated script

This commit is contained in:
ThatGamerBlue
2021-06-16 13:05:50 +01:00
parent 2c2a729620
commit 72df29d7c8
2 changed files with 142 additions and 132 deletions

View File

@@ -1 +1 @@
348D3B5E9FC422BBA32893290548D211483BCC1004AAB06B0B9EC0A014E1387C B750CFDCB915248ACB21FF15B1795492EF13C56842E963ACD81761F4787BF16C

View File

@@ -222,17 +222,17 @@ LABEL188:
iload 10 iload 10
iconst 0 iconst 0
if_icmpeq LABEL203 if_icmpeq LABEL203
jump LABEL256 jump LABEL242
LABEL203: LABEL203:
get_varbit 6718 get_varbit 6718
iconst 1 iconst 1
if_icmpeq LABEL207 if_icmpeq LABEL207
jump LABEL256 jump LABEL242
LABEL207: LABEL207:
iload 18 iload 18
iload 15 iload 15
if_icmplt LABEL211 if_icmplt LABEL211
jump LABEL255 jump LABEL241
LABEL211: LABEL211:
iconst 105 iconst 105
iconst 111 iconst 111
@@ -249,15 +249,6 @@ LABEL221:
invoke 3159 invoke 3159
istore 17 istore 17
LABEL224: LABEL224:
iload 17
invoke 4130
iconst 0
if_icmpeq LABEL232
invoke 2174
iconst 1
if_icmpeq LABEL232
jump LABEL245
LABEL232:
iconst 0 iconst 0
iload 17 iload 17
iconst 596 iconst 596
@@ -270,27 +261,19 @@ LABEL232:
iconst 1 iconst 1
add add
istore 16 istore 16
jump LABEL250
LABEL245:
iconst 1
iload 17
iconst 596
oc_param
if_sethide
LABEL250:
iload 18 iload 18
iconst 1 iconst 1
add add
istore 18 istore 18
jump LABEL207 jump LABEL207
LABEL255: LABEL241:
jump LABEL301 jump LABEL287
LABEL256: LABEL242:
iload 18 iload 18
iload 15 iload 15
if_icmplt LABEL260 if_icmplt LABEL246
jump LABEL301 jump LABEL287
LABEL260: LABEL246:
iconst 105 iconst 105
iconst 111 iconst 111
iload 14 iload 14
@@ -299,18 +282,18 @@ LABEL260:
istore 17 istore 17
invoke 3160 invoke 3160
iconst 1 iconst 1
if_icmpeq LABEL270 if_icmpeq LABEL256
jump LABEL273 jump LABEL259
LABEL270: LABEL256:
iload 17 iload 17
invoke 3159 invoke 3159
istore 17 istore 17
LABEL273: LABEL259:
iload 17 iload 17
invoke 2619 invoke 2619
iconst 1 iconst 1
if_icmpeq FILTER_SPELL if_icmpeq FILTER_SPELL
jump LABEL291 jump LABEL277
FILTER_SPELL: FILTER_SPELL:
iconst 1 ; boolean the callback modifies iconst 1 ; boolean the callback modifies
iload 17 iload 17
@@ -324,9 +307,9 @@ FILTER_SPELL:
pop_string ; pop the name pop_string ; pop the name
pop_int ; and the widgetID pop_int ; and the widgetID
iconst 1 ; default true, so the script still functions without plugin on iconst 1 ; default true, so the script still functions without plugin on
if_icmpeq LABEL278 if_icmpeq LABEL264
jump LABEL291 jump LABEL277
LABEL278: LABEL264:
iconst 0 iconst 0
iload 17 iload 17
iconst 596 iconst 596
@@ -339,27 +322,27 @@ LABEL278:
iconst 1 iconst 1
add add
istore 16 istore 16
jump LABEL296 jump LABEL282
LABEL291: LABEL277:
iconst 1 iconst 1
iload 17 iload 17
iconst 596 iconst 596
oc_param oc_param
if_sethide if_sethide
LABEL296: LABEL282:
iload 18 iload 18
iconst 1 iconst 1
add add
istore 18 istore 18
jump LABEL256 jump LABEL242
LABEL301: LABEL287:
iconst 0 iconst 0
istore 19 istore 19
iload 16 iload 16
iconst 2 iconst 2
if_icmpge LABEL307 if_icmpge LABEL293
jump LABEL315 jump LABEL301
LABEL307: LABEL293:
iconst 0 iconst 0
iconst 0 iconst 0
iload 16 iload 16
@@ -367,13 +350,13 @@ LABEL307:
sub sub
iload 14 iload 14
invoke 2621 invoke 2621
jump LABEL350 jump LABEL336
LABEL315: LABEL301:
iload 16 iload 16
iconst 0 iconst 0
if_icmple LABEL319 if_icmple LABEL305
jump LABEL350 jump LABEL336
LABEL319: LABEL305:
iload 0 iload 0
iconst 4 iconst 4
iload 19 iload 19
@@ -405,7 +388,7 @@ LABEL319:
add add
istore 19 istore 19
return return
LABEL350: LABEL336:
iconst 24 iconst 24
istore 20 istore 20
iconst 0 iconst 0
@@ -418,37 +401,37 @@ LABEL350:
istore 24 istore 24
iload 12 iload 12
istore 25 istore 25
iconst 0 iload 10
sconst "isMobileSpellbookEnabled" sconst "isMobileSpellbookEnabled"
runelite_callback runelite_callback
iconst 1 iconst 1
if_icmpeq LABEL366 if_icmpeq LABEL352
jump LABEL456 jump LABEL442
LABEL366: LABEL352:
iload 16 iload 16
iconst 15 iconst 15
if_icmple LABEL370 if_icmple LABEL356
jump LABEL375 jump LABEL361
LABEL370: LABEL356:
iconst 40 iconst 40
iconst 3 iconst 3
sconst "resizeSpell" sconst "resizeSpell"
runelite_callback runelite_callback
istore 21 istore 21
istore 20 istore 20
jump LABEL394 jump LABEL380
LABEL375: LABEL361:
iload 16 iload 16
iconst 20 iconst 20
if_icmple LABEL379 if_icmple LABEL365
jump LABEL384 jump LABEL370
LABEL379: LABEL365:
iconst 40 iconst 40
iconst 4 iconst 4
istore 21 istore 21
istore 20 istore 20
jump LABEL394 jump LABEL380
LABEL384: LABEL370:
iconst 4 iconst 4
iconst 7 iconst 7
iload 16 iload 16
@@ -459,7 +442,7 @@ LABEL384:
invoke 1046 invoke 1046
invoke 1045 invoke 1045
istore 21 istore 21
LABEL394: LABEL380:
iconst 0 iconst 0
iconst 5 iconst 5
iconst 7 iconst 7
@@ -489,9 +472,9 @@ LABEL394:
istore 22 istore 22
iload 22 iload 22
iconst 2 iconst 2
if_icmpge LABEL425 if_icmpge LABEL411
jump LABEL439 jump LABEL425
LABEL425: LABEL411:
iconst 0 iconst 0
iload 24 iload 24
iload 12 iload 12
@@ -506,7 +489,7 @@ LABEL425:
invoke 1046 invoke 1046
invoke 1045 invoke 1045
istore 23 istore 23
LABEL439: LABEL425:
iload 22 iload 22
iload 20 iload 20
multiply multiply
@@ -523,18 +506,18 @@ LABEL439:
iconst 1 iconst 1
iload 0 iload 0
if_setposition if_setposition
jump LABEL611 jump LABEL597
LABEL456: LABEL442:
get_varbit 6718 get_varbit 6718
iconst 1 iconst 1
if_icmpeq LABEL460 if_icmpeq LABEL446
jump LABEL532 jump LABEL518
LABEL460: LABEL446:
get_varbit 4070 get_varbit 4070
switch switch
1: LABEL477 1: LABEL463
2: LABEL492 2: LABEL478
3: LABEL507 3: LABEL493
iconst 7 iconst 7
iconst 10 iconst 10
iconst 0 iconst 0
@@ -549,8 +532,8 @@ LABEL460:
iconst 0 iconst 0
iload 0 iload 0
if_setposition if_setposition
jump LABEL521 jump LABEL507
LABEL477: LABEL463:
iconst 4 iconst 4
iconst 7 iconst 7
iconst 20 iconst 20
@@ -565,8 +548,8 @@ LABEL477:
iconst 0 iconst 0
iload 0 iload 0
if_setposition if_setposition
jump LABEL521 jump LABEL507
LABEL492: LABEL478:
iconst 6 iconst 6
iconst 8 iconst 8
iconst 6 iconst 6
@@ -581,23 +564,23 @@ LABEL492:
iconst 0 iconst 0
iload 0 iload 0
if_setposition if_setposition
jump LABEL521 jump LABEL507
LABEL507: LABEL493:
iconst 5 iconst 5
iconst 9 iconst 9
iconst 16 iconst 16
iconst 6 iconst 3
istore 23 istore 23
istore 24 istore 24
istore 22 istore 22
istore 21 istore 21
iconst 0 iconst 0
iconst 3 iconst 0
iconst 1 iconst 1
iconst 0 iconst 0
iload 0 iload 0
if_setposition if_setposition
LABEL521: LABEL507:
iload 22 iload 22
iload 20 iload 20
multiply multiply
@@ -608,17 +591,17 @@ LABEL521:
multiply multiply
add add
istore 25 istore 25
jump LABEL611 jump LABEL597
LABEL532: LABEL518:
iload 16 iload 16
iconst 28 iconst 28
if_icmple LABEL536 if_icmple LABEL522
jump LABEL539 jump LABEL525
LABEL536: LABEL522:
iconst 4 iconst 4
istore 21 istore 21
jump LABEL549 jump LABEL535
LABEL539: LABEL525:
iconst 4 iconst 4
iconst 7 iconst 7
iload 16 iload 16
@@ -629,7 +612,7 @@ LABEL539:
invoke 1046 invoke 1046
invoke 1045 invoke 1045
istore 21 istore 21
LABEL549: LABEL535:
iconst 0 iconst 0
iload 20 iload 20
iload 11 iload 11
@@ -656,9 +639,9 @@ LABEL549:
istore 22 istore 22
iload 22 iload 22
iconst 2 iconst 2
if_icmpge LABEL577 if_icmpge LABEL563
jump LABEL591 jump LABEL577
LABEL577: LABEL563:
iconst 0 iconst 0
iload 24 iload 24
iload 12 iload 12
@@ -673,7 +656,7 @@ LABEL577:
invoke 1046 invoke 1046
invoke 1045 invoke 1045
istore 23 istore 23
LABEL591: LABEL577:
iload 22 iload 22
iload 20 iload 20
multiply multiply
@@ -694,7 +677,7 @@ LABEL591:
iconst 1 iconst 1
iload 0 iload 0
if_setposition if_setposition
LABEL611: LABEL597:
iload 21 iload 21
iload 20 iload 20
multiply multiply
@@ -731,12 +714,12 @@ LABEL611:
istore 32 istore 32
iconst 0 iconst 0
istore 18 istore 18
LABEL645: LABEL631:
iload 18 iload 18
iload 16 iload 16
if_icmplt LABEL649 if_icmplt LABEL635
jump LABEL789 jump LABEL800
LABEL649: LABEL635:
iconst 105 iconst 105
iconst 111 iconst 111
iload 14 iload 14
@@ -746,13 +729,13 @@ LABEL649:
istore 17 istore 17
invoke 3160 invoke 3160
iconst 1 iconst 1
if_icmpeq LABEL660 if_icmpeq LABEL646
jump LABEL663 jump LABEL649
LABEL660: LABEL646:
iload 17 iload 17
invoke 3159 invoke 3159
istore 17 istore 17
LABEL663: LABEL649:
iload 17 iload 17
iconst 596 iconst 596
oc_param oc_param
@@ -789,59 +772,86 @@ LABEL663:
if_setposition if_setposition
iload 17 iload 17
iload 27 iload 27
iload 20
invoke 2614 invoke 2614
istore 30 istore 30
istore 26 istore 26
iload 26 iload 26
iconst 1 iconst 1
if_icmpeq LABEL700 if_icmpeq LABEL687
jump LABEL716 jump LABEL703
LABEL700: LABEL687:
iload 20 iload 20
iconst 40 iconst 40
if_icmpge LABEL704 if_icmpge LABEL691
jump LABEL710 jump LABEL697
LABEL704: LABEL691:
iload 17 iload 17
iconst 599 iconst 599
oc_param oc_param
iload 27 iload 27
if_setgraphic if_setgraphic
jump LABEL715 jump LABEL702
LABEL710: LABEL697:
iload 17 iload 17
iconst 597 iconst 597
oc_param oc_param
iload 27 iload 27
if_setgraphic if_setgraphic
LABEL715: LABEL702:
jump LABEL731 jump LABEL742
LABEL716: LABEL703:
iload 20 iload 20
iconst 40 iconst 40
if_icmpge LABEL720 if_icmpge LABEL707
jump LABEL726 jump LABEL713
LABEL720: LABEL707:
iload 17 iload 17
iconst 600 iconst 600
oc_param oc_param
iload 27 iload 27
if_setgraphic if_setgraphic
jump LABEL731 jump LABEL718
LABEL726: LABEL713:
iload 17 iload 17
iconst 598 iconst 598
oc_param oc_param
iload 27 iload 27
if_setgraphic if_setgraphic
LABEL731: LABEL718:
iload 30
iconst -1
if_icmpne LABEL722
jump LABEL742
LABEL722:
iload 0
iconst 5
iload 19
cc_create
iload 20
iload 20
iconst 0
iconst 0
cc_setsize
iload 31
iload 32
iconst 0
iconst 0
cc_setposition
iload 30
cc_setgraphic
iload 19
iconst 1
add
istore 19
LABEL742:
iload 27 iload 27
invoke 2615 invoke 2615
iload 10 iload 10
iconst 1 iconst 1
if_icmpeq LABEL737 if_icmpeq LABEL748
jump LABEL764 jump LABEL775
LABEL737: LABEL748:
iload 1 iload 1
iconst 5 iconst 5
iload 18 iload 18
@@ -868,8 +878,8 @@ LABEL737:
iload 12 iload 12
sconst "oIIi" sconst "oIIi"
cc_setonclick cc_setonclick
jump LABEL784 jump LABEL795
LABEL764: LABEL775:
iconst 2622 iconst 2622
iconst 1 iconst 1
iload 17 iload 17
@@ -890,11 +900,11 @@ LABEL764:
sconst "1oIiIi" sconst "1oIiIi"
iload 27 iload 27
if_setonmouseleave if_setonmouseleave
LABEL784: LABEL795:
iload 18 iload 18
iconst 1 iconst 1
add add
istore 18 istore 18
jump LABEL645 jump LABEL631
LABEL789: LABEL800:
return return