Code:
; zekikez
; Sends text to chat window
; to update look for "QName(PackageNamespace(""), "REMOVED_FROM_STAGE")" a couple lines below it after "addEventListener" there should be a getlex
; note: removed from stage will give a lot of results.
; look for something like this:
; getlex QName(PackageNamespace("_-06U"), "_-nS")
; callproperty QName(PackageNamespace(""), "_-0wC"), 0
; coerce QName(PackageNamespace("_-3a"), "_-1cT")
; setlocal2
trait method QName(PackageNamespace(""), "SendToChat")
method
refid "com.company.assembleegameclient.game:_-1Xo/SendToChat"
param QName(PackageNamespace(""), "String") ; name or "" or other special strings. Search "*HELP*" for example
param QName(PackageNamespace(""), "String") ; message or other special strings. Search "helpCommand" for example
returns QName(PackageNamespace(""), "void")
body
maxstack 5
localcount 5
initscopedepth 4
maxscopedepth 5
code
; universal way of retrieving the class that will execute the dispatch below
; getlex QName(PackageNamespace("_-06U"), "_-nS")
; callproperty QName(PackageNamespace(""), "_-0wC"), 0
; coerce QName(PackageNamespace("_-3a"), "_-1cT")
; setlocal 4
; getlocal 4
; getlex QName(PackageNamespace("_-8B"), "_-0BL")
; callproperty QName(PackageNamespace(""), "getInstance"), 1
; setlocal 5
; getlocal 5
; end of universal way
;easiest method here by using a local variable
getlocal0
getproperty QName(PrivateNamespace("*", null), "_-0gz") ; params object
; end easiest method
getlex QName(PackageNamespace("_-1IY"), "_-06c") ; search '/help' and scroll down this name should be the one above "Parameter"
getlocal1 ; some sort of chat text event. contains username, star etc
getlocal2
callproperty QName(PackageNamespace(""), "make"), 2
callpropvoid QName(PackageNamespace(""), "dispatch"), 1
returnvoid
end ; code
end ; body
end ; method
end ; trait