Add killcount command

This commit is contained in:
Adam
2018-07-08 11:10:23 -04:00
parent a4b3b6d272
commit 80fe6d4788
10 changed files with 644 additions and 6 deletions

View File

@@ -0,0 +1 @@
7D172258726F2B866D2EFFB0F2E401D0551A377DCA7F72CCD8839AC88B3EA6A2

View File

@@ -0,0 +1,51 @@
.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