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
|
||||
get_varc_string 22
|
||||
get_varc_string_old 22
|
||||
string_length
|
||||
istore 1
|
||||
iload 1
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpgt LABEL18
|
||||
jump LABEL193
|
||||
LABEL18:
|
||||
get_varc 5
|
||||
get_varc_int 5
|
||||
switch
|
||||
1: LABEL21
|
||||
2: LABEL44
|
||||
@@ -46,90 +46,90 @@ LABEL21:
|
||||
return
|
||||
jump LABEL192
|
||||
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:
|
||||
get_varc_string 22
|
||||
add_ignore
|
||||
get_varc_string_old 22
|
||||
ignore_add
|
||||
jump LABEL43
|
||||
LABEL37:
|
||||
get_varc 5
|
||||
load_int 5
|
||||
get_varc_int 5
|
||||
iconst 5
|
||||
if_icmpeq LABEL41
|
||||
jump LABEL43
|
||||
LABEL41:
|
||||
get_varc_string 22
|
||||
remove_ignore
|
||||
get_varc_string_old 22
|
||||
ignore_del
|
||||
LABEL43:
|
||||
jump LABEL192
|
||||
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 LABEL109
|
||||
LABEL51:
|
||||
get_varc 5
|
||||
load_int 2
|
||||
get_varc_int 5
|
||||
iconst 2
|
||||
if_icmpeq LABEL55
|
||||
jump LABEL58
|
||||
LABEL55:
|
||||
get_varc_string 22
|
||||
add_friend
|
||||
get_varc_string_old 22
|
||||
friend_add
|
||||
jump LABEL109
|
||||
LABEL58:
|
||||
get_varc 5
|
||||
load_int 3
|
||||
get_varc_int 5
|
||||
iconst 3
|
||||
if_icmpeq LABEL62
|
||||
jump LABEL65
|
||||
LABEL62:
|
||||
get_varc_string 22
|
||||
remove_friend
|
||||
get_varc_string_old 22
|
||||
friend_del
|
||||
jump LABEL109
|
||||
LABEL65:
|
||||
get_varc 5
|
||||
load_int 6
|
||||
get_varc_int 5
|
||||
iconst 6
|
||||
if_icmpeq LABEL69
|
||||
jump LABEL109
|
||||
LABEL69:
|
||||
get_varc 203
|
||||
load_int 0
|
||||
get_varc_int 203
|
||||
iconst 0
|
||||
if_icmpeq LABEL76
|
||||
get_varc 203
|
||||
load_int -1
|
||||
get_varc_int 203
|
||||
iconst -1
|
||||
if_icmpeq LABEL76
|
||||
jump LABEL82
|
||||
LABEL76:
|
||||
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
|
||||
LABEL82:
|
||||
5005
|
||||
load_int 2
|
||||
chat_getfilter_private
|
||||
iconst 2
|
||||
if_icmpeq LABEL86
|
||||
jump LABEL97
|
||||
LABEL86:
|
||||
5000
|
||||
load_int 1
|
||||
5016
|
||||
chatfilter_update
|
||||
chat_getfilter_public
|
||||
iconst 1
|
||||
chat_getfilter_trade
|
||||
chat_setfilter
|
||||
invoke 178
|
||||
invoke 553
|
||||
istore 0
|
||||
@@ -139,123 +139,123 @@ LABEL86:
|
||||
invoke 89
|
||||
LABEL97:
|
||||
get_varbit 4394
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL101
|
||||
jump LABEL104
|
||||
LABEL101:
|
||||
get_varc_string 23
|
||||
remove_friend
|
||||
get_varc_string_old 23
|
||||
friend_del
|
||||
jump LABEL107
|
||||
LABEL104:
|
||||
get_varc_string 23
|
||||
get_varc_string 22
|
||||
privmsg
|
||||
get_varc_string_old 23
|
||||
get_varc_string_old 22
|
||||
chat_sendprivate
|
||||
LABEL107:
|
||||
get_gamecycle
|
||||
put_varc 61
|
||||
clientclock
|
||||
set_varc_int 61
|
||||
LABEL109:
|
||||
jump LABEL192
|
||||
LABEL110:
|
||||
get_varc_string 22
|
||||
get_varc_string_old 22
|
||||
invoke 212
|
||||
numeric_input
|
||||
resume_countdialog
|
||||
jump LABEL192
|
||||
LABEL114:
|
||||
get_varc_string 22
|
||||
string_remove_html
|
||||
put_varc_string 128
|
||||
get_varc_string 22
|
||||
string_input_1
|
||||
get_varc_string_old 22
|
||||
removetags
|
||||
set_varc_string_old 128
|
||||
get_varc_string_old 22
|
||||
resume_namedialog
|
||||
jump LABEL192
|
||||
LABEL120:
|
||||
get_varc_string 22
|
||||
string_input_2
|
||||
get_varc_string_old 22
|
||||
resume_stringdialog
|
||||
jump LABEL192
|
||||
LABEL123:
|
||||
get_varc 203
|
||||
load_int 0
|
||||
get_varc_int 203
|
||||
iconst 0
|
||||
if_icmpeq LABEL130
|
||||
get_varc 203
|
||||
load_int -1
|
||||
get_varc_int 203
|
||||
iconst -1
|
||||
if_icmpeq LABEL130
|
||||
jump LABEL136
|
||||
LABEL130:
|
||||
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
|
||||
LABEL136:
|
||||
get_varc_string 22
|
||||
string_remove_html
|
||||
put_varc_string 129
|
||||
get_varc_string 22
|
||||
join_clanchat
|
||||
get_varc_string_old 22
|
||||
removetags
|
||||
set_varc_string_old 129
|
||||
get_varc_string_old 22
|
||||
clan_joinchat
|
||||
jump LABEL192
|
||||
LABEL142:
|
||||
iload 1
|
||||
load_int 10
|
||||
iconst 10
|
||||
if_icmpgt LABEL146
|
||||
jump LABEL152
|
||||
LABEL146:
|
||||
get_varc_string 22
|
||||
load_int 0
|
||||
load_int 9
|
||||
string_substring
|
||||
get_varc_string_old 22
|
||||
iconst 0
|
||||
iconst 9
|
||||
substring
|
||||
sstore 0
|
||||
jump LABEL154
|
||||
LABEL152:
|
||||
get_varc_string 22
|
||||
get_varc_string_old 22
|
||||
sstore 0
|
||||
LABEL154:
|
||||
sload 0
|
||||
tolowercase
|
||||
5021
|
||||
lowercase
|
||||
chat_setmessagefilter
|
||||
invoke 553
|
||||
invoke 84
|
||||
jump LABEL192
|
||||
LABEL160:
|
||||
get_varc 203
|
||||
load_int 0
|
||||
get_varc_int 203
|
||||
iconst 0
|
||||
if_icmpeq LABEL167
|
||||
get_varc 203
|
||||
load_int -1
|
||||
get_varc_int 203
|
||||
iconst -1
|
||||
if_icmpeq LABEL167
|
||||
jump LABEL173
|
||||
LABEL167:
|
||||
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
|
||||
LABEL173:
|
||||
get_varc_string 22
|
||||
load_int 0
|
||||
put_varc 62
|
||||
put_varc_string 28
|
||||
get_varc_string_old 22
|
||||
iconst 0
|
||||
set_varc_int 62
|
||||
set_varc_string_old 28
|
||||
invoke 95
|
||||
load_int 552
|
||||
load_int -2147483645
|
||||
load_int 1
|
||||
load_string "I1"
|
||||
load_int 10616843
|
||||
widget_put_render_listener_widget
|
||||
iconst 552
|
||||
iconst -2147483645
|
||||
iconst 1
|
||||
sconst "I1"
|
||||
iconst 10616843
|
||||
if_setontimer
|
||||
jump LABEL192
|
||||
LABEL185:
|
||||
load_int 0
|
||||
load_int 1
|
||||
iconst 0
|
||||
iconst 1
|
||||
invoke 299
|
||||
return
|
||||
jump LABEL192
|
||||
LABEL190:
|
||||
get_varc_string 22
|
||||
get_varc_string_old 22
|
||||
invoke 2061
|
||||
LABEL192:
|
||||
jump LABEL199
|
||||
LABEL193:
|
||||
get_varc 5
|
||||
get_varc_int 5
|
||||
switch
|
||||
16: LABEL198
|
||||
7: LABEL196
|
||||
@@ -269,7 +269,7 @@ LABEL196:
|
||||
LABEL198:
|
||||
return
|
||||
LABEL199:
|
||||
load_int 1
|
||||
load_int 1
|
||||
iconst 1
|
||||
iconst 1
|
||||
invoke 299
|
||||
return
|
||||
|
||||
@@ -12,111 +12,111 @@
|
||||
jump LABEL84
|
||||
LABEL3:
|
||||
iload 1
|
||||
get_varc 175
|
||||
get_varc_int 175
|
||||
if_icmplt LABEL7
|
||||
jump LABEL9
|
||||
LABEL7:
|
||||
load_int 0
|
||||
iconst 0
|
||||
return
|
||||
LABEL9:
|
||||
sload 0
|
||||
string_remove_html
|
||||
is_ignore
|
||||
load_int 1
|
||||
removetags
|
||||
ignore_test
|
||||
iconst 1
|
||||
if_icmpeq LABEL15
|
||||
jump LABEL17
|
||||
LABEL15:
|
||||
load_int 0
|
||||
iconst 0
|
||||
return
|
||||
LABEL17:
|
||||
load_int 1
|
||||
iconst 1
|
||||
return
|
||||
jump LABEL84
|
||||
LABEL20:
|
||||
iload 1
|
||||
get_varc 175
|
||||
get_varc_int 175
|
||||
if_icmplt LABEL24
|
||||
jump LABEL26
|
||||
LABEL24:
|
||||
load_int 0
|
||||
iconst 0
|
||||
return
|
||||
LABEL26:
|
||||
sload 0
|
||||
string_remove_html
|
||||
is_ignore
|
||||
load_int 1
|
||||
removetags
|
||||
ignore_test
|
||||
iconst 1
|
||||
if_icmpeq LABEL32
|
||||
jump LABEL34
|
||||
LABEL32:
|
||||
load_int 0
|
||||
iconst 0
|
||||
return
|
||||
LABEL34:
|
||||
5005
|
||||
load_int 0
|
||||
chat_getfilter_private
|
||||
iconst 0
|
||||
if_icmpeq LABEL38
|
||||
jump LABEL40
|
||||
LABEL38:
|
||||
load_int 1
|
||||
iconst 1
|
||||
return
|
||||
LABEL40:
|
||||
5005
|
||||
load_int 1
|
||||
chat_getfilter_private
|
||||
iconst 1
|
||||
if_icmpeq LABEL44
|
||||
jump LABEL51
|
||||
LABEL44:
|
||||
sload 0
|
||||
is_friend
|
||||
load_int 1
|
||||
friend_test
|
||||
iconst 1
|
||||
if_icmpeq LABEL49
|
||||
jump LABEL51
|
||||
LABEL49:
|
||||
load_int 1
|
||||
iconst 1
|
||||
return
|
||||
LABEL51:
|
||||
load_int 0
|
||||
iconst 0
|
||||
return
|
||||
jump LABEL84
|
||||
LABEL54:
|
||||
iload 1
|
||||
get_varc 175
|
||||
get_varc_int 175
|
||||
if_icmplt LABEL58
|
||||
jump LABEL60
|
||||
LABEL58:
|
||||
load_int 0
|
||||
iconst 0
|
||||
return
|
||||
LABEL60:
|
||||
iload 0
|
||||
load_int 5
|
||||
iconst 5
|
||||
if_icmpeq LABEL64
|
||||
jump LABEL76
|
||||
LABEL64:
|
||||
get_varbit 1627
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL68
|
||||
jump LABEL76
|
||||
LABEL68:
|
||||
get_gamecycle
|
||||
clientclock
|
||||
iload 1
|
||||
isub
|
||||
load_int 500
|
||||
sub
|
||||
iconst 500
|
||||
if_icmpge LABEL74
|
||||
jump LABEL76
|
||||
LABEL74:
|
||||
load_int 0
|
||||
iconst 0
|
||||
return
|
||||
LABEL76:
|
||||
5005
|
||||
load_int 2
|
||||
chat_getfilter_private
|
||||
iconst 2
|
||||
if_icmpne LABEL80
|
||||
jump LABEL82
|
||||
LABEL80:
|
||||
load_int 1
|
||||
iconst 1
|
||||
return
|
||||
LABEL82:
|
||||
load_int 0
|
||||
iconst 0
|
||||
return
|
||||
LABEL84:
|
||||
load_int 0
|
||||
iconst 0
|
||||
return
|
||||
load_int -1
|
||||
iconst -1
|
||||
return
|
||||
|
||||
@@ -3,5 +3,5 @@
|
||||
.string_stack_count 0
|
||||
.int_var_count 0
|
||||
.string_var_count 0
|
||||
load_string ": "
|
||||
sconst ": "
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user