update spellbook script

This commit is contained in:
Lucwousin
2019-11-14 14:02:42 +01:00
parent 2140672de5
commit 10dbc5e6bc
2 changed files with 263 additions and 236 deletions

View File

@@ -1 +1 @@
401615A4A80516444D88DB3612D803C47C67B151C6588666701911DDACA79534 F4729C2DE16BB31A779316E5D5080A9B5E6871C752BB4534863E0790D5F35154

View File

@@ -21,10 +21,10 @@ LABEL10:
iconst 1 iconst 1
iconst 0 iconst 0
iload 3 iload 3
if_setsize if_setsize
iconst 190 iconst 190
iconst 6 iconst 6
sub sub
iconst 240 iconst 240
istore 12 istore 12
istore 11 istore 11
@@ -33,54 +33,54 @@ LABEL10:
iconst 1 iconst 1
iconst 0 iconst 0
iload 3 iload 3
if_setposition if_setposition
iconst 0 iconst 0
iload 4 iload 4
if_sethide if_sethide
sload 0 sload 0
iconst 190 iconst 190
iconst 494 iconst 494
parawidth parawidth
sload 1 sload 1
iconst 190 iconst 190
iconst 494 iconst 494
parawidth parawidth
invoke 1045 invoke 1045
iconst 14 iconst 14
add add
istore 13 istore 13
iload 13 iload 13
iconst 0 iconst 0
iconst 0 iconst 0
iconst 1 iconst 1
iload 5 iload 5
if_setsize if_setsize
iload 13 iload 13
iconst 0 iconst 0
iconst 0 iconst 0
iconst 1 iconst 1
iload 6 iload 6
if_setsize if_setsize
iconst 190 iconst 190
iload 13 iload 13
iconst 2 iconst 2
multiply multiply
sub sub
iconst 3 iconst 3
div div
istore 13 istore 13
iload 13 iload 13
iconst 0 iconst 0
iconst 0 iconst 0
iconst 1 iconst 1
iload 5 iload 5
if_setposition if_setposition
iload 13 iload 13
iconst 0 iconst 0
iconst 2 iconst 2
iconst 1 iconst 1
iload 6 iload 6
if_setposition if_setposition
jump LABEL147 jump LABEL147
LABEL76: LABEL76:
get_varbit 6718 get_varbit 6718
@@ -93,16 +93,16 @@ LABEL80:
iconst 1 iconst 1
iconst 1 iconst 1
iload 3 iload 3
if_setsize if_setsize
iconst 0 iconst 0
iconst 0 iconst 0
iconst 1 iconst 1
iconst 1 iconst 1
iload 3 iload 3
if_setposition if_setposition
iconst 1 iconst 1
iload 4 iload 4
if_sethide if_sethide
iconst -1 iconst -1
iload 10 iload 10
iload 5 iload 5
@@ -123,10 +123,10 @@ LABEL109:
iconst 1 iconst 1
iconst 0 iconst 0
iload 3 iload 3
if_setsize if_setsize
iconst 190 iconst 190
iconst 6 iconst 6
sub sub
iconst 240 iconst 240
istore 12 istore 12
istore 11 istore 11
@@ -135,39 +135,39 @@ LABEL109:
iconst 1 iconst 1
iconst 0 iconst 0
iload 3 iload 3
if_setposition if_setposition
iconst 0 iconst 0
iload 4 iload 4
if_sethide if_sethide
sload 1 sload 1
iconst 190 iconst 190
iconst 494 iconst 494
parawidth parawidth
iconst 14 iconst 14
add add
iconst 0 iconst 0
iconst 0 iconst 0
iconst 1 iconst 1
iload 6 iload 6
if_setsize if_setsize
iconst 0 iconst 0
iconst 0 iconst 0
iconst 1 iconst 1
iconst 1 iconst 1
iload 6 iload 6
if_setposition if_setposition
LABEL147: LABEL147:
iload 0 iload 0
cc_deleteall cc_deleteall
iload 1 iload 1
cc_deleteall cc_deleteall
iload 2 iload 2
cc_deleteall cc_deleteall
iconst 105 iconst 105
iconst 103 iconst 103
iconst 1981 iconst 1981
get_varbit 4070 get_varbit 4070
enum enum
istore 14 istore 14
iload 14 iload 14
iconst 1982 iconst 1982
@@ -206,10 +206,10 @@ LABEL183:
if_icmpeq LABEL187 if_icmpeq LABEL187
jump LABEL188 jump LABEL188
LABEL187: LABEL187:
return return
LABEL188: LABEL188:
iload 14 iload 14
enum_getoutputcount enum_getoutputcount
istore 15 istore 15
iload 15 iload 15
define_array 105 define_array 105
@@ -222,60 +222,78 @@ LABEL188:
iload 10 iload 10
iconst 0 iconst 0
if_icmpeq LABEL203 if_icmpeq LABEL203
jump LABEL235 jump LABEL242
LABEL203: LABEL203:
get_varbit 6718 get_varbit 6718
iconst 1 iconst 1
if_icmpeq LABEL207 if_icmpeq LABEL207
jump LABEL235 jump LABEL242
LABEL207: LABEL207:
iload 18 iload 18
iload 15 iload 15
if_icmplt LABEL211 if_icmplt LABEL211
jump LABEL234 jump LABEL241
LABEL211: LABEL211:
iconst 105 iconst 105
iconst 111 iconst 111
iload 14 iload 14
iload 18 iload 18
enum enum
istore 17 istore 17
invoke 3160
iconst 1
if_icmpeq LABEL221
jump LABEL224
LABEL221:
iload 17
invoke 3159
istore 17
LABEL224:
iconst 0 iconst 0
iload 17 iload 17
iconst 596 iconst 596
oc_param oc_param
if_sethide if_sethide
iload 16 iload 16
iload 18 iload 18
set_array_int set_array_int
iload 16 iload 16
iconst 1 iconst 1
add add
istore 16 istore 16
iload 18 iload 18
iconst 1 iconst 1
add add
istore 18 istore 18
jump LABEL207 jump LABEL207
LABEL234: LABEL241:
jump LABEL273 jump LABEL287
LABEL235: LABEL242:
iload 18 iload 18
iload 15 iload 15
if_icmplt LABEL239 if_icmplt LABEL246
jump LABEL273 jump LABEL287
LABEL239: LABEL246:
iconst 105 iconst 105
iconst 111 iconst 111
iload 14 iload 14
iload 18 iload 18
enum enum
istore 17 istore 17
invoke 3160
iconst 1
if_icmpeq LABEL256
jump LABEL259
LABEL256:
iload 17
invoke 3159
istore 17
LABEL259:
iload 17 iload 17
invoke 2619 invoke 2619
iconst 1 iconst 1
if_icmpeq FILTER_SPELL if_icmpeq FILTER_SPELL
jump LABEL263 jump LABEL277
FILTER_SPELL: FILTER_SPELL:
iconst 1 ; boolean the callback modifies iconst 1 ; boolean the callback modifies
iload 17 iload 17
@@ -289,82 +307,82 @@ 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 LABEL250 if_icmpeq LABEL264
jump LABEL263 jump LABEL277
LABEL250: LABEL264:
iconst 0 iconst 0
iload 17 iload 17
iconst 596 iconst 596
oc_param oc_param
if_sethide if_sethide
iload 16 iload 16
iload 18 iload 18
set_array_int set_array_int
iload 16 iload 16
iconst 1 iconst 1
add add
istore 16 istore 16
jump LABEL268 jump LABEL282
LABEL263: LABEL277:
iconst 1 iconst 1
iload 17 iload 17
iconst 596 iconst 596
oc_param oc_param
if_sethide if_sethide
LABEL268: LABEL282:
iload 18 iload 18
iconst 1 iconst 1
add add
istore 18 istore 18
jump LABEL235 jump LABEL242
LABEL273: LABEL287:
iload 16 iload 16
iconst 2 iconst 2
if_icmpge LABEL277 if_icmpge LABEL291
jump LABEL285 jump LABEL299
LABEL277: LABEL291:
iconst 0 iconst 0
iconst 0 iconst 0
iload 16 iload 16
iconst 1 iconst 1
sub sub
iload 14 iload 14
invoke 2621 invoke 2621
jump LABEL316 jump LABEL330
LABEL285: LABEL299:
iload 16 iload 16
iconst 0 iconst 0
if_icmple LABEL289 if_icmple LABEL303
jump LABEL316 jump LABEL330
LABEL289: LABEL303:
iload 0 iload 0
iconst 4 iconst 4
iconst 0 iconst 0
cc_create cc_create
iconst 0 iconst 0
iconst 0 iconst 0
iconst 1 iconst 1
iconst 1 iconst 1
cc_setsize cc_setsize
iconst 0 iconst 0
iconst 0 iconst 0
iconst 1 iconst 1
iconst 1 iconst 1
cc_setposition cc_setposition
iconst 16750623 iconst 16750623
cc_setcolour cc_setcolour
iconst 495 iconst 495
cc_settextfont cc_settextfont
iconst 1 iconst 1
cc_settextshadow cc_settextshadow
iconst 1 iconst 1
iconst 1 iconst 1
iconst 0 iconst 0
cc_settextalign cc_settextalign
sconst "No spells match your selected filters." sconst "No spells match your selected filters."
cc_settext cc_settext
return return
LABEL316: LABEL330:
iconst 24 iconst 24
istore 19 istore 19
iconst 0 iconst 0
@@ -381,58 +399,58 @@ LABEL316:
sconst "isMobileSpellbookEnabled" sconst "isMobileSpellbookEnabled"
runelite_callback runelite_callback
iconst 1 iconst 1
if_icmpeq LABEL332 if_icmpeq LABEL346
jump LABEL422 jump LABEL436
LABEL332: LABEL346:
iload 16 iload 16
iconst 15 iconst 15
if_icmple LABEL336 if_icmple LABEL350
jump LABEL341 jump LABEL355
LABEL336: LABEL350:
iconst 40 iconst 40
iconst 3 iconst 3
sconst "resizeSpell" sconst "resizeSpell"
runelite_callback runelite_callback
istore 20 istore 20
istore 19 istore 19
jump LABEL360 jump LABEL374
LABEL341: LABEL355:
iload 16 iload 16
iconst 20 iconst 20
if_icmple LABEL345 if_icmple LABEL359
jump LABEL350 jump LABEL364
LABEL345: LABEL359:
iconst 40 iconst 40
iconst 4 iconst 4
istore 20 istore 20
istore 19 istore 19
jump LABEL360 jump LABEL374
LABEL350: LABEL364:
iconst 4 iconst 4
iconst 7 iconst 7
iload 16 iload 16
iconst 8 iconst 8
add add
iconst 9 iconst 9
div div
invoke 1046 invoke 1046
invoke 1045 invoke 1045
istore 20 istore 20
LABEL360: LABEL374:
iconst 0 iconst 0
iconst 5 iconst 5
iconst 7 iconst 7
iload 19 iload 19
scale scale
iload 11 iload 11
iload 19 iload 19
iload 20 iload 20
multiply multiply
sub sub
iload 20 iload 20
iconst 1 iconst 1
sub sub
div div
invoke 1046 invoke 1046
invoke 1045 invoke 1045
istore 23 istore 23
@@ -440,60 +458,60 @@ LABEL360:
iload 16 iload 16
iload 20 iload 20
iconst 1 iconst 1
sub sub
add add
iload 20 iload 20
div div
invoke 1045 invoke 1045
istore 21 istore 21
iload 21 iload 21
iconst 2 iconst 2
if_icmpge LABEL391 if_icmpge LABEL405
jump LABEL405 jump LABEL419
LABEL391: LABEL405:
iconst 0 iconst 0
iload 23 iload 23
iload 12 iload 12
iload 19 iload 19
iload 21 iload 21
multiply multiply
sub sub
iload 21 iload 21
iconst 1 iconst 1
sub sub
div div
invoke 1046 invoke 1046
invoke 1045 invoke 1045
istore 22 istore 22
LABEL405: LABEL419:
iload 21 iload 21
iload 19 iload 19
multiply multiply
iload 21 iload 21
iconst 1 iconst 1
sub sub
iload 22 iload 22
multiply multiply
add add
istore 24 istore 24
iconst 0 iconst 0
iconst 0 iconst 0
iconst 1 iconst 1
iconst 1 iconst 1
iload 0 iload 0
if_setposition if_setposition
jump LABEL577 jump LABEL591
LABEL422: LABEL436:
get_varbit 6718 get_varbit 6718
iconst 1 iconst 1
if_icmpeq LABEL426 if_icmpeq LABEL440
jump LABEL498 jump LABEL512
LABEL426: LABEL440:
get_varbit 4070 get_varbit 4070
switch switch
1: LABEL443 1: LABEL457
2: LABEL458 2: LABEL472
3: LABEL473 3: LABEL487
iconst 7 iconst 7
iconst 10 iconst 10
iconst 0 iconst 0
@@ -507,9 +525,9 @@ LABEL426:
iconst 1 iconst 1
iconst 0 iconst 0
iload 0 iload 0
if_setposition if_setposition
jump LABEL487 jump LABEL501
LABEL443: LABEL457:
iconst 4 iconst 4
iconst 7 iconst 7
iconst 20 iconst 20
@@ -523,9 +541,9 @@ LABEL443:
iconst 1 iconst 1
iconst 0 iconst 0
iload 0 iload 0
if_setposition if_setposition
jump LABEL487 jump LABEL501
LABEL458: LABEL472:
iconst 6 iconst 6
iconst 8 iconst 8
iconst 6 iconst 6
@@ -539,9 +557,9 @@ LABEL458:
iconst 1 iconst 1
iconst 0 iconst 0
iload 0 iload 0
if_setposition if_setposition
jump LABEL487 jump LABEL501
LABEL473: LABEL487:
iconst 4 iconst 4
iconst 9 iconst 9
iconst 21 iconst 21
@@ -555,51 +573,51 @@ LABEL473:
iconst 1 iconst 1
iconst 0 iconst 0
iload 0 iload 0
if_setposition if_setposition
LABEL487: LABEL501:
iload 21 iload 21
iload 19 iload 19
multiply multiply
iload 21 iload 21
iconst 1 iconst 1
sub sub
iload 22 iload 22
multiply multiply
add add
istore 24 istore 24
jump LABEL577 jump LABEL591
LABEL498: LABEL512:
iload 16 iload 16
iconst 28 iconst 28
if_icmple LABEL502 if_icmple LABEL516
jump LABEL505 jump LABEL519
LABEL502: LABEL516:
iconst 4 iconst 4
istore 20 istore 20
jump LABEL515 jump LABEL529
LABEL505: LABEL519:
iconst 4 iconst 4
iconst 7 iconst 7
iload 16 iload 16
iconst 8 iconst 8
add add
iconst 9 iconst 9
div div
invoke 1046 invoke 1046
invoke 1045 invoke 1045
istore 20 istore 20
LABEL515: LABEL529:
iconst 0 iconst 0
iload 19 iload 19
iload 11 iload 11
iload 19 iload 19
iload 20 iload 20
multiply multiply
sub sub
iload 20 iload 20
iconst 1 iconst 1
sub sub
div div
invoke 1046 invoke 1046
invoke 1045 invoke 1045
istore 23 istore 23
@@ -607,44 +625,44 @@ LABEL515:
iload 16 iload 16
iload 20 iload 20
iconst 1 iconst 1
sub sub
add add
iload 20 iload 20
div div
invoke 1045 invoke 1045
istore 21 istore 21
iload 21 iload 21
iconst 2 iconst 2
if_icmpge LABEL543 if_icmpge LABEL557
jump LABEL557 jump LABEL571
LABEL543: LABEL557:
iconst 0 iconst 0
iload 23 iload 23
iload 12 iload 12
iload 19 iload 19
iload 21 iload 21
multiply multiply
sub sub
iload 21 iload 21
iconst 1 iconst 1
sub sub
div div
invoke 1046 invoke 1046
invoke 1045 invoke 1045
istore 22 istore 22
LABEL557: LABEL571:
iload 21 iload 21
iload 19 iload 19
multiply multiply
iload 21 iload 21
iconst 1 iconst 1
sub sub
iload 22 iload 22
multiply multiply
add add
iload 12 iload 12
iconst 30 iconst 30
sub sub
invoke 1045 invoke 1045
istore 24 istore 24
iconst 0 iconst 0
@@ -652,14 +670,14 @@ LABEL557:
iconst 1 iconst 1
iconst 1 iconst 1
iload 0 iload 0
if_setposition if_setposition
LABEL577: LABEL591:
iload 20 iload 20
iload 19 iload 19
multiply multiply
iload 20 iload 20
iconst 1 iconst 1
sub sub
iload 23 iload 23
multiply multiply
add ; start of the label until here calcs total width add ; start of the label until here calcs total width
@@ -669,16 +687,16 @@ LABEL577:
iconst 0 iconst 0
iconst 0 iconst 0
iload 0 iload 0
if_setsize if_setsize
iconst -1 iconst -1
istore 25 istore 25
iload 19 iload 19
iload 23 iload 23
add add
istore 26 istore 26
iload 19 iload 19
iload 22 iload 22
add add
istore 27 istore 27
iconst 0 iconst 0
istore 28 istore 28
@@ -686,22 +704,31 @@ LABEL577:
istore 29 istore 29
iconst 0 iconst 0
istore 18 istore 18
LABEL607: LABEL621:
iload 18 iload 18
iload 16 iload 16
if_icmplt LABEL611 if_icmplt LABEL625
jump LABEL741 jump LABEL762
LABEL611: LABEL625:
iconst 105 iconst 105
iconst 111 iconst 111
iload 14 iload 14
iload 18 iload 18
get_array_int get_array_int
enum enum
istore 17 istore 17
invoke 3160
iconst 1
if_icmpeq LABEL636
jump LABEL639
LABEL636:
iload 17
invoke 3159
istore 17
LABEL639:
iload 17 iload 17
iconst 596 iconst 596
oc_param oc_param
istore 25 istore 25
iload 19 iload 19
iload 19 iload 19
@@ -712,17 +739,17 @@ LABEL611:
iconst 0 iconst 0
iconst 0 iconst 0
iload 25 iload 25
if_setsize if_setsize
iload 18 iload 18
iload 20 iload 20
mod mod
iload 26 iload 26
multiply multiply
iload 18 iload 18
iload 20 iload 20
div div
iload 27 iload 27
multiply multiply
istore 29 istore 29
istore 28 istore 28
iload 28 iload 28
@@ -737,82 +764,82 @@ LABEL611:
iload 25 iload 25
invoke 2614 invoke 2614
iconst 1 iconst 1
if_icmpeq LABEL652 if_icmpeq LABEL673
jump LABEL668 jump LABEL689
LABEL652: LABEL673:
iload 19 iload 19
iconst 40 iconst 40
if_icmpge LABEL656 if_icmpge LABEL677
jump LABEL662 jump LABEL683
LABEL656: LABEL677:
iload 17 iload 17
iconst 599 iconst 599
oc_param oc_param
iload 25 iload 25
if_setgraphic if_setgraphic
jump LABEL667 jump LABEL688
LABEL662: LABEL683:
iload 17 iload 17
iconst 597 iconst 597
oc_param oc_param
iload 25 iload 25
if_setgraphic if_setgraphic
LABEL667: LABEL688:
jump LABEL683 jump LABEL704
LABEL668: LABEL689:
iload 19 iload 19
iconst 40 iconst 40
if_icmpge LABEL672 if_icmpge LABEL693
jump LABEL678 jump LABEL699
LABEL672: LABEL693:
iload 17 iload 17
iconst 600 iconst 600
oc_param oc_param
iload 25 iload 25
if_setgraphic if_setgraphic
jump LABEL683 jump LABEL704
LABEL678: LABEL699:
iload 17 iload 17
iconst 598 iconst 598
oc_param oc_param
iload 25 iload 25
if_setgraphic if_setgraphic
LABEL683: LABEL704:
iload 25 iload 25
invoke 2615 invoke 2615
iload 10 iload 10
iconst 1 iconst 1
if_icmpeq LABEL689 if_icmpeq LABEL710
jump LABEL716 jump LABEL737
LABEL689: LABEL710:
iload 1 iload 1
iconst 5 iconst 5
iload 18 iload 18
cc_create cc_create
iload 19 iload 19
iload 19 iload 19
iconst 0 iconst 0
iconst 0 iconst 0
cc_setsize cc_setsize
iload 28 iload 28
iload 29 iload 29
iconst 0 iconst 0
iconst 0 iconst 0
cc_setposition cc_setposition
iload 17 iload 17
iconst 1 iconst 1
cc_setobject cc_setobject
iconst 255 iconst 255
cc_settrans cc_settrans
iconst 2612 iconst 2612
iload 17 iload 17
iload 1 iload 1
iload 2 iload 2
iload 12 iload 12
sconst "oIIi" sconst "oIIi"
cc_setonclick cc_setonclick
jump LABEL736 jump LABEL757
LABEL716: LABEL737:
iconst 2622 iconst 2622
iconst 1 iconst 1
iload 17 iload 17
@@ -822,7 +849,7 @@ LABEL716:
iload 12 iload 12
sconst "1oIiIi" sconst "1oIiIi"
iload 25 iload 25
if_setonmouserepeat if_setonmouserepeat
iconst 2622 iconst 2622
iconst 0 iconst 0
iload 17 iload 17
@@ -832,12 +859,12 @@ LABEL716:
iload 12 iload 12
sconst "1oIiIi" sconst "1oIiIi"
iload 25 iload 25
if_setonmouseleave if_setonmouseleave
LABEL736: LABEL757:
iload 18 iload 18
iconst 1 iconst 1
add add
istore 18 istore 18
jump LABEL607 jump LABEL621
LABEL741: LABEL762:
return return