project: Update xp drop script

This commit is contained in:
Owain van Brakel
2022-01-20 00:30:33 +01:00
parent a8671b6b41
commit 6a9d8d643a
2 changed files with 362 additions and 350 deletions

View File

@@ -1 +1 @@
A4641387DC1A542BDEB6F3728D23944F968EF2FD3EA2868B5B6AAF6961D0C6E0 6D7631FB41674C37039A83E08EF9D82B807CC0438AC68FDF5600B3547140298C

View File

@@ -8,7 +8,7 @@
if_icmpeq LABEL4 if_icmpeq LABEL4
jump LABEL9 jump LABEL9
LABEL4: LABEL4:
get_varc_int 207 get_varc_int 953
iconst -1 iconst -1
if_icmpeq LABEL8 if_icmpeq LABEL8
jump LABEL9 jump LABEL9
@@ -30,15 +30,15 @@ LABEL9:
iload 0 iload 0
iconst 1 iconst 1
if_icmpeq LABEL25 if_icmpeq LABEL25
jump LABEL81 jump LABEL93
LABEL25: LABEL25:
get_varc_int 207 get_varc_int 953
iconst -1 iconst -1
if_icmpne LABEL29 if_icmpne LABEL29
jump LABEL80 jump LABEL92
LABEL29: LABEL29:
get_varc_int 207 get_varc_int 960
iconst 269500481 iconst -10
if_icmpeq LABEL33 if_icmpeq LABEL33
jump LABEL39 jump LABEL39
LABEL33: LABEL33:
@@ -47,55 +47,67 @@ LABEL33:
iload 8 iload 8
iload 9 iload 9
invoke 997 invoke 997
jump LABEL65 jump LABEL63
LABEL39: LABEL39:
iload 35 iload 35
iconst 105 iconst 105
iconst 83 iconst 83
iconst 681 iconst 681
get_varc_int 207 get_varc_int 953
coordx
enum enum
set_array_int set_array_int
iload 35 iload 35
get_varc_int 207 get_varc_int 960
coordy
set_array_int 1 set_array_int 1
iload 35 iload 35
get_array_int get_array_int
iconst -1 iconst -1
if_icmpne LABEL56 if_icmpne LABEL54
jump LABEL65 jump LABEL63
LABEL56: LABEL54:
iload 35 iload 35
get_array_int 1 get_array_int 1
iconst 0 iconst 0
if_icmpgt LABEL61 if_icmpgt LABEL59
jump LABEL65 jump LABEL63
LABEL61: LABEL59:
iload 35 iload 35
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL65: LABEL63:
get_varc_int 208 get_varc_int 954
get_varc_int 209 get_varc_int 955
get_varc_int 210 get_varc_int 956
get_varc_int 211 get_varc_int 957
get_varc_int 212 get_varc_int 958
get_varc_int 213 get_varc_int 959
iconst -1 iconst -1
set_varc_int 213 set_varc_int 959
set_varc_int 212 set_varc_int 958
set_varc_int 211 set_varc_int 957
set_varc_int 210 set_varc_int 956
set_varc_int 209 set_varc_int 955
set_varc_int 208 set_varc_int 954
set_varc_int 207 set_varc_int 953
get_varc_int 961
get_varc_int 962
get_varc_int 963
get_varc_int 964
get_varc_int 965
get_varc_int 966
iconst -1
set_varc_int 966
set_varc_int 965
set_varc_int 964
set_varc_int 963
set_varc_int 962
set_varc_int 961
set_varc_int 960
jump LABEL25 jump LABEL25
LABEL80: LABEL92:
jump LABEL518 jump LABEL530
LABEL81: LABEL93:
sconst "newXpDrop" sconst "newXpDrop"
runelite_callback runelite_callback
iconst 10 iconst 10
@@ -105,9 +117,9 @@ LABEL81:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL90 if_icmpgt LABEL102
jump LABEL100 jump LABEL112
LABEL90: LABEL102:
iload 35 iload 35
iconst 10 iconst 10
set_array_int set_array_int
@@ -118,7 +130,7 @@ LABEL90:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL100: LABEL112:
iconst 0 iconst 0
stat_xp stat_xp
iload 11 iload 11
@@ -126,9 +138,9 @@ LABEL100:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL109 if_icmpgt LABEL121
jump LABEL119 jump LABEL131
LABEL109: LABEL121:
iload 35 iload 35
iconst 0 iconst 0
set_array_int set_array_int
@@ -139,7 +151,7 @@ LABEL109:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL119: LABEL131:
iconst 2 iconst 2
stat_xp stat_xp
iload 12 iload 12
@@ -147,9 +159,9 @@ LABEL119:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL128 if_icmpgt LABEL140
jump LABEL138 jump LABEL150
LABEL128: LABEL140:
iload 35 iload 35
iconst 2 iconst 2
set_array_int set_array_int
@@ -160,7 +172,7 @@ LABEL128:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL138: LABEL150:
iconst 4 iconst 4
stat_xp stat_xp
iload 13 iload 13
@@ -168,9 +180,9 @@ LABEL138:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL147 if_icmpgt LABEL159
jump LABEL157 jump LABEL169
LABEL147: LABEL159:
iload 35 iload 35
iconst 4 iconst 4
set_array_int set_array_int
@@ -181,7 +193,7 @@ LABEL147:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL157: LABEL169:
iconst 6 iconst 6
stat_xp stat_xp
iload 14 iload 14
@@ -189,9 +201,9 @@ LABEL157:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL166 if_icmpgt LABEL178
jump LABEL176 jump LABEL188
LABEL166: LABEL178:
iload 35 iload 35
iconst 6 iconst 6
set_array_int set_array_int
@@ -202,7 +214,7 @@ LABEL166:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL176: LABEL188:
iconst 1 iconst 1
stat_xp stat_xp
iload 15 iload 15
@@ -210,9 +222,9 @@ LABEL176:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL185 if_icmpgt LABEL197
jump LABEL195 jump LABEL207
LABEL185: LABEL197:
iload 35 iload 35
iconst 1 iconst 1
set_array_int set_array_int
@@ -223,7 +235,7 @@ LABEL185:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL195: LABEL207:
iconst 3 iconst 3
stat_xp stat_xp
iload 16 iload 16
@@ -232,7 +244,7 @@ LABEL195:
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt HP_XP_GAINED if_icmpgt HP_XP_GAINED
jump LABEL214 jump LABEL226
HP_XP_GAINED: HP_XP_GAINED:
iload 35 iload 35
iconst 3 iconst 3
@@ -246,7 +258,7 @@ HP_XP_GAINED:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL214: LABEL226:
iconst 5 iconst 5
stat_xp stat_xp
iload 17 iload 17
@@ -254,9 +266,9 @@ LABEL214:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL223 if_icmpgt LABEL235
jump LABEL233 jump LABEL245
LABEL223: LABEL235:
iload 35 iload 35
iconst 5 iconst 5
set_array_int set_array_int
@@ -267,7 +279,7 @@ LABEL223:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL233: LABEL245:
iconst 16 iconst 16
stat_xp stat_xp
iload 18 iload 18
@@ -275,9 +287,9 @@ LABEL233:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL242 if_icmpgt LABEL254
jump LABEL252 jump LABEL264
LABEL242: LABEL254:
iload 35 iload 35
iconst 16 iconst 16
set_array_int set_array_int
@@ -288,7 +300,7 @@ LABEL242:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL252: LABEL264:
iconst 15 iconst 15
stat_xp stat_xp
iload 19 iload 19
@@ -296,9 +308,9 @@ LABEL252:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL261 if_icmpgt LABEL273
jump LABEL271 jump LABEL283
LABEL261: LABEL273:
iload 35 iload 35
iconst 15 iconst 15
set_array_int set_array_int
@@ -309,7 +321,7 @@ LABEL261:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL271: LABEL283:
iconst 17 iconst 17
stat_xp stat_xp
iload 20 iload 20
@@ -317,9 +329,9 @@ LABEL271:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL280 if_icmpgt LABEL292
jump LABEL290 jump LABEL302
LABEL280: LABEL292:
iload 35 iload 35
iconst 17 iconst 17
set_array_int set_array_int
@@ -330,7 +342,7 @@ LABEL280:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL290: LABEL302:
iconst 12 iconst 12
stat_xp stat_xp
iload 21 iload 21
@@ -338,9 +350,9 @@ LABEL290:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL299 if_icmpgt LABEL311
jump LABEL309 jump LABEL321
LABEL299: LABEL311:
iload 35 iload 35
iconst 12 iconst 12
set_array_int set_array_int
@@ -351,7 +363,7 @@ LABEL299:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL309: LABEL321:
iconst 20 iconst 20
stat_xp stat_xp
iload 22 iload 22
@@ -359,9 +371,9 @@ LABEL309:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL318 if_icmpgt LABEL330
jump LABEL328 jump LABEL340
LABEL318: LABEL330:
iload 35 iload 35
iconst 20 iconst 20
set_array_int set_array_int
@@ -372,7 +384,7 @@ LABEL318:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL328: LABEL340:
iconst 14 iconst 14
stat_xp stat_xp
iload 23 iload 23
@@ -380,9 +392,9 @@ LABEL328:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL337 if_icmpgt LABEL349
jump LABEL347 jump LABEL359
LABEL337: LABEL349:
iload 35 iload 35
iconst 14 iconst 14
set_array_int set_array_int
@@ -393,7 +405,7 @@ LABEL337:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL347: LABEL359:
iconst 13 iconst 13
stat_xp stat_xp
iload 24 iload 24
@@ -401,9 +413,9 @@ LABEL347:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL356 if_icmpgt LABEL368
jump LABEL366 jump LABEL378
LABEL356: LABEL368:
iload 35 iload 35
iconst 13 iconst 13
set_array_int set_array_int
@@ -414,7 +426,7 @@ LABEL356:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL366: LABEL378:
iconst 7 iconst 7
stat_xp stat_xp
iload 26 iload 26
@@ -422,9 +434,9 @@ LABEL366:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL375 if_icmpgt LABEL387
jump LABEL385 jump LABEL397
LABEL375: LABEL387:
iload 35 iload 35
iconst 7 iconst 7
set_array_int set_array_int
@@ -435,7 +447,7 @@ LABEL375:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL385: LABEL397:
iconst 11 iconst 11
stat_xp stat_xp
iload 27 iload 27
@@ -443,9 +455,9 @@ LABEL385:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL394 if_icmpgt LABEL406
jump LABEL404 jump LABEL416
LABEL394: LABEL406:
iload 35 iload 35
iconst 11 iconst 11
set_array_int set_array_int
@@ -456,7 +468,7 @@ LABEL394:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL404: LABEL416:
iconst 8 iconst 8
stat_xp stat_xp
iload 28 iload 28
@@ -464,9 +476,9 @@ LABEL404:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL413 if_icmpgt LABEL425
jump LABEL423 jump LABEL435
LABEL413: LABEL425:
iload 35 iload 35
iconst 8 iconst 8
set_array_int set_array_int
@@ -477,7 +489,7 @@ LABEL413:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL423: LABEL435:
iconst 9 iconst 9
stat_xp stat_xp
iload 29 iload 29
@@ -485,9 +497,9 @@ LABEL423:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL432 if_icmpgt LABEL444
jump LABEL442 jump LABEL454
LABEL432: LABEL444:
iload 35 iload 35
iconst 9 iconst 9
set_array_int set_array_int
@@ -498,7 +510,7 @@ LABEL432:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL442: LABEL454:
iconst 18 iconst 18
stat_xp stat_xp
iload 30 iload 30
@@ -506,9 +518,9 @@ LABEL442:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL451 if_icmpgt LABEL463
jump LABEL461 jump LABEL473
LABEL451: LABEL463:
iload 35 iload 35
iconst 18 iconst 18
set_array_int set_array_int
@@ -519,7 +531,7 @@ LABEL451:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL461: LABEL473:
iconst 19 iconst 19
stat_xp stat_xp
iload 31 iload 31
@@ -527,9 +539,9 @@ LABEL461:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL470 if_icmpgt LABEL482
jump LABEL480 jump LABEL492
LABEL470: LABEL482:
iload 35 iload 35
iconst 19 iconst 19
set_array_int set_array_int
@@ -540,7 +552,7 @@ LABEL470:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL480: LABEL492:
iconst 22 iconst 22
stat_xp stat_xp
iload 32 iload 32
@@ -548,9 +560,9 @@ LABEL480:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL489 if_icmpgt LABEL501
jump LABEL499 jump LABEL511
LABEL489: LABEL501:
iload 35 iload 35
iconst 22 iconst 22
set_array_int set_array_int
@@ -561,7 +573,7 @@ LABEL489:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL499: LABEL511:
iconst 21 iconst 21
stat_xp stat_xp
iload 33 iload 33
@@ -569,9 +581,9 @@ LABEL499:
istore 36 istore 36
iload 36 iload 36
iconst 0 iconst 0
if_icmpgt LABEL508 if_icmpgt LABEL520
jump LABEL518 jump LABEL530
LABEL508: LABEL520:
iload 35 iload 35
iconst 21 iconst 21
set_array_int set_array_int
@@ -582,7 +594,7 @@ LABEL508:
iconst 1 iconst 1
add add
istore 35 istore 35
LABEL518: LABEL530:
iconst 0 iconst 0
istore 37 istore 37
iconst 0 iconst 0
@@ -609,67 +621,67 @@ LABEL518:
sstore 0 sstore 0
iload 35 iload 35
iconst 0 iconst 0
if_icmpgt LABEL546 if_icmpgt LABEL558
jump LABEL789 jump LABEL801
LABEL546: LABEL558:
iload 16 iload 16
iconst 0 iconst 0
if_icmpgt LABEL550 if_icmpgt LABEL562
jump LABEL789 jump LABEL801
LABEL550: LABEL562:
clientclock clientclock
get_varc_int 76 get_varc_int 76
sub sub
iconst 10 iconst 10
if_icmpgt LABEL556 if_icmpgt LABEL568
jump LABEL789 jump LABEL801
LABEL556: LABEL568:
get_varbit 4693 get_varbit 4693
iconst 1 iconst 1
if_icmpeq LABEL560 if_icmpeq LABEL572
jump LABEL571 jump LABEL583
LABEL560: LABEL572:
invoke 1972 invoke 1972
iconst 0 iconst 0
if_icmpeq LABEL564 if_icmpeq LABEL576
jump LABEL571 jump LABEL583
LABEL564: LABEL576:
iconst 495 iconst 495
iconst 495 iconst 495
iconst 25 iconst 25
istore 41 istore 41
istore 40 istore 40
istore 39 istore 39
jump LABEL585 jump LABEL597
LABEL571: LABEL583:
get_varbit 4693 get_varbit 4693
iconst 2 iconst 2
if_icmpeq LABEL575 if_icmpeq LABEL587
jump LABEL585 jump LABEL597
LABEL575: LABEL587:
invoke 1972 invoke 1972
iconst 0 iconst 0
if_icmpeq LABEL579 if_icmpeq LABEL591
jump LABEL585 jump LABEL597
LABEL579: LABEL591:
iconst 496 iconst 496
iconst 496 iconst 496
iconst 25 iconst 25
istore 41 istore 41
istore 40 istore 40
istore 39 istore 39
LABEL585: LABEL597:
iload 8 iload 8
if_getheight if_getheight
istore 42 istore 42
iload 42 iload 42
iconst 100 iconst 100
if_icmplt LABEL592 if_icmplt LABEL604
jump LABEL594 jump LABEL606
LABEL592: LABEL604:
iconst 100 iconst 100
istore 42 istore 42
LABEL594: LABEL606:
iload 41 iload 41
iconst 105 iconst 105
iconst 105 iconst 105
@@ -682,58 +694,58 @@ LABEL594:
iconst 1 iconst 1
add add
istore 43 istore 43
LABEL606: LABEL618:
iload 37 iload 37
iload 35 iload 35
if_icmplt LABEL610 if_icmplt LABEL622
jump LABEL784 jump LABEL796
LABEL610: LABEL622:
iload 38 iload 38
iconst 0 iconst 0
if_icmpeq LABEL614 if_icmpeq LABEL626
jump LABEL623 jump LABEL635
LABEL614: LABEL626:
iload 0 iload 0
iconst 0 iconst 0
if_icmpeq LABEL618 if_icmpeq LABEL630
jump LABEL623 jump LABEL635
LABEL618: LABEL630:
iload 37 iload 37
get_array_int get_array_int
set_varc_int 72 set_varc_int 72
iconst 1 iconst 1
istore 38 istore 38
LABEL623: LABEL635:
get_varc_int 71 get_varc_int 71
iconst 0 iconst 0
if_icmpgt LABEL627 if_icmpgt LABEL639
jump LABEL638 jump LABEL650
LABEL627: LABEL639:
get_varc_int 71 get_varc_int 71
clientclock clientclock
iload 43 iload 43
sub sub
if_icmpgt LABEL633 if_icmpgt LABEL645
jump LABEL638 jump LABEL650
LABEL633: LABEL645:
get_varc_int 71 get_varc_int 71
iload 43 iload 43
add add
istore 44 istore 44
jump LABEL640 jump LABEL652
LABEL638: LABEL650:
clientclock clientclock
istore 44 istore 44
LABEL640: LABEL652:
iload 44 iload 44
clientclock clientclock
iload 43 iload 43
iload 10 iload 10
multiply multiply
add add
if_icmplt LABEL648 if_icmplt LABEL660
jump LABEL781 jump LABEL793
LABEL648: LABEL660:
iconst 105 iconst 105
iconst 73 iconst 73
iconst 1163 iconst 1163
@@ -770,27 +782,27 @@ LABEL648:
iconst 1 iconst 1
add add
istore 37 istore 37
LABEL684: LABEL696:
get_varbit 4696 get_varbit 4696
iconst 1 iconst 1
if_icmpeq LABEL688 if_icmpeq LABEL700
jump LABEL732 jump LABEL744
LABEL688: LABEL700:
iload 37 iload 37
iload 35 iload 35
if_icmplt LABEL692 if_icmplt LABEL704
jump LABEL732 jump LABEL744
LABEL692: LABEL704:
iload 45 iload 45
iconst 5 iconst 5
if_icmplt LABEL696 if_icmplt LABEL708
jump LABEL732 jump LABEL744
LABEL696: LABEL708:
iload 46 iload 46
iconst 1000000 iconst 1000000
if_icmplt LABEL700 if_icmplt LABEL712
jump LABEL732 jump LABEL744
LABEL700: LABEL712:
iload 46 iload 46
iload 37 iload 37
get_array_int 1 get_array_int 1
@@ -822,8 +834,8 @@ LABEL700:
iconst 1 iconst 1
add add
istore 37 istore 37
jump LABEL684 jump LABEL696
LABEL732: LABEL744:
iload 46 iload 46
sconst "," sconst ","
invoke 46 invoke 46
@@ -832,22 +844,22 @@ LABEL732:
sstore 0 sstore 0
iload 0 iload 0
iconst 1 iconst 1
if_icmpeq LABEL740 if_icmpeq LABEL752
jump LABEL745 jump LABEL757
LABEL740: LABEL752:
sconst "<img=11>" sconst "<img=11>"
sconst " " sconst " "
sload 0 sload 0
join_string 3 join_string 3
sstore 0 sstore 0
LABEL745: LABEL757:
iload 47 iload 47
iconst 0 iconst 0
cc_find cc_find
iconst 1 iconst 1
if_icmpeq LABEL751 if_icmpeq LABEL763
jump LABEL766 jump LABEL778
LABEL751: LABEL763:
sload 0 sload 0
cc_settext cc_settext
iconst 0 iconst 0
@@ -863,7 +875,7 @@ LABEL751:
iload 40 iload 40
sload 0 sload 0
invoke 996 invoke 996
LABEL766: LABEL778:
iconst 1005 iconst 1005
iload 47 iload 47
iload 44 iload 44
@@ -878,24 +890,24 @@ LABEL766:
iload 10 iload 10
mod mod
set_varc_int 70 set_varc_int 70
jump LABEL783 jump LABEL795
LABEL781: LABEL793:
iload 35 iload 35
istore 37 istore 37
LABEL783: LABEL795:
jump LABEL606 jump LABEL618
LABEL784: LABEL796:
iload 1 iload 1
iload 3 iload 3
iload 8 iload 8
iload 9 iload 9
invoke 997 invoke 997
LABEL789: LABEL801:
iload 0 iload 0
iconst 0 iconst 0
if_icmpeq LABEL793 if_icmpeq LABEL805
jump LABEL812 jump LABEL824
LABEL793: LABEL805:
iload 3 iload 3
iload 4 iload 4
iload 5 iload 5
@@ -915,5 +927,5 @@ LABEL793:
iload 9 iload 9
iload 10 iload 10
invoke 1003 invoke 1003
LABEL812: LABEL824:
return return