Rewrite scripts with new opcodes
This commit is contained in:
committed by
Max Weber
parent
75fbb07b41
commit
fc48e2a936
@@ -3,28 +3,28 @@
|
||||
.string_stack_count 0
|
||||
.int_var_count 2
|
||||
.string_var_count 1
|
||||
get_varc 5
|
||||
load_int 14
|
||||
get_varc_int 5
|
||||
iconst 14
|
||||
if_icmpeq LABEL4
|
||||
jump LABEL7
|
||||
LABEL4:
|
||||
load_int 1
|
||||
put_varc 66
|
||||
iconst 1
|
||||
set_varc_int 66
|
||||
return
|
||||
LABEL7:
|
||||
load_int -1
|
||||
iconst -1
|
||||
istore 0
|
||||
load_string ""
|
||||
sconst ""
|
||||
sstore 0
|
||||
049 359
|
||||
get_varc_string 359
|
||||
string_length
|
||||
istore 1
|
||||
iload 1
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpgt LABEL18
|
||||
jump LABEL184
|
||||
LABEL18:
|
||||
get_varc 5
|
||||
get_varc_int 5
|
||||
switch
|
||||
1: LABEL21
|
||||
2: LABEL44
|
||||
@@ -46,87 +46,87 @@ LABEL21:
|
||||
return
|
||||
jump LABEL183
|
||||
LABEL23:
|
||||
get_ignorecount
|
||||
load_int 0
|
||||
ignore_count
|
||||
iconst 0
|
||||
if_icmplt LABEL27
|
||||
jump LABEL30
|
||||
LABEL27:
|
||||
load_string "Unable to update ignore list - system busy."
|
||||
send_game_message
|
||||
sconst "Unable to update ignore list - system busy."
|
||||
mes
|
||||
jump LABEL43
|
||||
LABEL30:
|
||||
get_varc 5
|
||||
load_int 4
|
||||
get_varc_int 5
|
||||
iconst 4
|
||||
if_icmpeq LABEL34
|
||||
jump LABEL37
|
||||
LABEL34:
|
||||
049 359
|
||||
add_ignore
|
||||
get_varc_string 359
|
||||
ignore_add
|
||||
jump LABEL43
|
||||
LABEL37:
|
||||
get_varc 5
|
||||
load_int 5
|
||||
get_varc_int 5
|
||||
iconst 5
|
||||
if_icmpeq LABEL41
|
||||
jump LABEL43
|
||||
LABEL41:
|
||||
049 359
|
||||
remove_ignore
|
||||
get_varc_string 359
|
||||
ignore_del
|
||||
LABEL43:
|
||||
jump LABEL183
|
||||
LABEL44:
|
||||
get_friendcount
|
||||
load_int 0
|
||||
friend_count
|
||||
iconst 0
|
||||
if_icmplt LABEL48
|
||||
jump LABEL51
|
||||
LABEL48:
|
||||
load_string "Unable to complete action - system busy."
|
||||
send_game_message
|
||||
sconst "Unable to complete action - system busy."
|
||||
mes
|
||||
jump LABEL106
|
||||
LABEL51:
|
||||
get_varc 5
|
||||
load_int 2
|
||||
get_varc_int 5
|
||||
iconst 2
|
||||
if_icmpeq LABEL55
|
||||
jump LABEL58
|
||||
LABEL55:
|
||||
049 359
|
||||
add_friend
|
||||
get_varc_string 359
|
||||
friend_add
|
||||
jump LABEL106
|
||||
LABEL58:
|
||||
get_varc 5
|
||||
load_int 3
|
||||
get_varc_int 5
|
||||
iconst 3
|
||||
if_icmpeq LABEL62
|
||||
jump LABEL65
|
||||
LABEL62:
|
||||
049 359
|
||||
remove_friend
|
||||
get_varc_string 359
|
||||
friend_del
|
||||
jump LABEL106
|
||||
LABEL65:
|
||||
get_varc 5
|
||||
load_int 6
|
||||
get_varc_int 5
|
||||
iconst 6
|
||||
if_icmpeq LABEL69
|
||||
jump LABEL106
|
||||
LABEL69:
|
||||
get_varbit 8119
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL73
|
||||
jump LABEL79
|
||||
LABEL73:
|
||||
load_int 1
|
||||
load_int 1
|
||||
iconst 1
|
||||
iconst 1
|
||||
invoke 299
|
||||
load_string "You must set a name before you can chat."
|
||||
send_game_message
|
||||
sconst "You must set a name before you can chat."
|
||||
mes
|
||||
return
|
||||
LABEL79:
|
||||
5005
|
||||
load_int 2
|
||||
chat_getfilter_private
|
||||
iconst 2
|
||||
if_icmpeq LABEL83
|
||||
jump LABEL94
|
||||
LABEL83:
|
||||
5000
|
||||
load_int 1
|
||||
5016
|
||||
chatfilter_update
|
||||
chat_getfilter_public
|
||||
iconst 1
|
||||
chat_getfilter_trade
|
||||
chat_setfilter
|
||||
invoke 178
|
||||
invoke 553
|
||||
istore 0
|
||||
@@ -136,122 +136,122 @@ LABEL83:
|
||||
invoke 89
|
||||
LABEL94:
|
||||
get_varbit 4394
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL98
|
||||
jump LABEL101
|
||||
LABEL98:
|
||||
049 360
|
||||
remove_friend
|
||||
get_varc_string 360
|
||||
friend_del
|
||||
jump LABEL104
|
||||
LABEL101:
|
||||
049 360
|
||||
049 359
|
||||
load_string "privateMessage" ; load event name
|
||||
load_int 0 ; whether or not to skip
|
||||
get_varc_string 360
|
||||
get_varc_string 359
|
||||
sconst "privateMessage" ; load event name
|
||||
iconst 0 ; whether or not to skip
|
||||
runelite_callback ; invoke callback
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL104 ; if skipped, do not message
|
||||
privmsg
|
||||
chat_sendprivate
|
||||
LABEL104:
|
||||
get_gamecycle
|
||||
put_varc 61
|
||||
clientclock
|
||||
set_varc_int 61
|
||||
LABEL106:
|
||||
jump LABEL183
|
||||
LABEL107:
|
||||
049 359
|
||||
get_varc_string 359
|
||||
invoke 212
|
||||
numeric_input
|
||||
resume_countdialog
|
||||
jump LABEL183
|
||||
LABEL111:
|
||||
049 359
|
||||
string_remove_html
|
||||
050 361
|
||||
049 359
|
||||
string_input_1
|
||||
get_varc_string 359
|
||||
removetags
|
||||
set_varc_string 361
|
||||
get_varc_string 359
|
||||
resume_namedialog
|
||||
jump LABEL183
|
||||
LABEL117:
|
||||
049 359
|
||||
string_input_2
|
||||
get_varc_string 359
|
||||
resume_stringdialog
|
||||
jump LABEL183
|
||||
LABEL120:
|
||||
get_varbit 8119
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL124
|
||||
jump LABEL130
|
||||
LABEL124:
|
||||
load_int 1
|
||||
load_int 1
|
||||
iconst 1
|
||||
iconst 1
|
||||
invoke 299
|
||||
load_string "You must set a name before you can chat."
|
||||
send_game_message
|
||||
sconst "You must set a name before you can chat."
|
||||
mes
|
||||
return
|
||||
LABEL130:
|
||||
049 359
|
||||
string_remove_html
|
||||
050 362
|
||||
049 359
|
||||
join_clanchat
|
||||
get_varc_string 359
|
||||
removetags
|
||||
set_varc_string 362
|
||||
get_varc_string 359
|
||||
clan_joinchat
|
||||
jump LABEL183
|
||||
LABEL136:
|
||||
iload 1
|
||||
load_int 10
|
||||
iconst 10
|
||||
if_icmpgt LABEL140
|
||||
jump LABEL146
|
||||
LABEL140:
|
||||
049 359
|
||||
load_int 0
|
||||
load_int 9
|
||||
string_substring
|
||||
get_varc_string 359
|
||||
iconst 0
|
||||
iconst 9
|
||||
substring
|
||||
sstore 0
|
||||
jump LABEL148
|
||||
LABEL146:
|
||||
049 359
|
||||
get_varc_string 359
|
||||
sstore 0
|
||||
LABEL148:
|
||||
sload 0
|
||||
tolowercase
|
||||
5021
|
||||
lowercase
|
||||
chat_setmessagefilter
|
||||
invoke 553
|
||||
invoke 84
|
||||
jump LABEL183
|
||||
LABEL154:
|
||||
get_varbit 8119
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL158
|
||||
jump LABEL164
|
||||
LABEL158:
|
||||
load_int 1
|
||||
load_int 1
|
||||
iconst 1
|
||||
iconst 1
|
||||
invoke 299
|
||||
load_string "You must set a name before you can chat."
|
||||
send_game_message
|
||||
sconst "You must set a name before you can chat."
|
||||
mes
|
||||
return
|
||||
LABEL164:
|
||||
049 359
|
||||
load_int 0
|
||||
put_varc 62
|
||||
050 358
|
||||
get_varc_string 359
|
||||
iconst 0
|
||||
set_varc_int 62
|
||||
set_varc_string 358
|
||||
invoke 95
|
||||
load_int 552
|
||||
load_int -2147483645
|
||||
load_int 1
|
||||
load_string "I1"
|
||||
load_int 10616845
|
||||
widget_put_render_listener_widget
|
||||
iconst 552
|
||||
iconst -2147483645
|
||||
iconst 1
|
||||
sconst "I1"
|
||||
iconst 10616845
|
||||
if_setontimer
|
||||
jump LABEL183
|
||||
LABEL176:
|
||||
load_int 0
|
||||
load_int 1
|
||||
iconst 0
|
||||
iconst 1
|
||||
invoke 299
|
||||
return
|
||||
jump LABEL183
|
||||
LABEL181:
|
||||
049 359
|
||||
get_varc_string 359
|
||||
invoke 2061
|
||||
LABEL183:
|
||||
jump LABEL190
|
||||
LABEL184:
|
||||
get_varc 5
|
||||
get_varc_int 5
|
||||
switch
|
||||
16: LABEL189
|
||||
7: LABEL187
|
||||
@@ -265,7 +265,7 @@ LABEL187:
|
||||
LABEL189:
|
||||
return
|
||||
LABEL190:
|
||||
load_int 1
|
||||
load_int 1
|
||||
iconst 1
|
||||
iconst 1
|
||||
invoke 299
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user