52 lines
1.5 KiB
Plaintext
52 lines
1.5 KiB
Plaintext
.id 96
|
|
.int_stack_count 1
|
|
.string_stack_count 1
|
|
.int_var_count 1
|
|
.string_var_count 1
|
|
sload 0 ; load input
|
|
iload 0 ; load chat type
|
|
load_string "chatboxInput" ; event name
|
|
runelite_callback ; invoke callback
|
|
pop_int ; pop chat type
|
|
string_length ; get string length of chat message
|
|
iload 0 ; load 0
|
|
if_icmpne LABEL100 ; if length is not 0, continue
|
|
return
|
|
LABEL100:
|
|
get_varbit 4394
|
|
load_int 1
|
|
if_icmpeq LABEL4
|
|
jump LABEL24
|
|
LABEL4:
|
|
iload 0
|
|
load_int 1
|
|
if_icmpeq LABEL8
|
|
jump LABEL16
|
|
LABEL8:
|
|
get_localplayer_name
|
|
load_string ": "
|
|
load_string "<col=2020ef>"
|
|
sload 0
|
|
load_string "</col>"
|
|
string_append 5
|
|
send_game_message
|
|
jump LABEL23
|
|
LABEL16:
|
|
get_localplayer_name
|
|
load_string ": "
|
|
load_string "<col=0000ff>"
|
|
sload 0
|
|
load_string "</col>"
|
|
string_append 5
|
|
send_game_message
|
|
LABEL23:
|
|
jump LABEL27
|
|
LABEL24:
|
|
sload 0
|
|
iload 0
|
|
chatbox_input
|
|
LABEL27:
|
|
get_gamecycle
|
|
put_varc 61
|
|
return
|