This menu item allow you to open a browser window showing the RealmEye page of the player you clicked.
1) You must locate the class where the menu is drawn. Easy => look for "Unlock" in files..
You will be in a method dealing with "Unlock", "Lock", "Trade" items..
For me its in _-aa\_-0BN.asasm
2) Add this just before the returnvoid
Code:
;-----------------------------------------------------------------------------
; ADD RealmEye Shortcut
;-----------------------------------------------------------------------------
findpropstrict QName(PackageNamespace("_-aa"), "_-T6")
getlex QName(PackageNamespace("com.company.util"), "AssetLibrary")
pushstring "lofiInterface2"
pushbyte 3
callproperty QName(PackageNamespace("", "#0"), "_-0U6"), 2
pushint 16777215
pushstring "RealmEye-Me !"
constructprop QName(PackageNamespace("_-aa"), "_-T6"), 3
coerce QName(PackageNamespace("_-aa"), "_-T6")
setlocal3
getlocal3
getlex QName(PackageNamespace("flash.events"), "MouseEvent")
getproperty QName(PackageNamespace("", "#0"), "CLICK")
getlocal0
getproperty QName(PrivateNamespace("*", "_-aa:_-0BN"), "_realmeye")
callpropvoid QName(PackageNamespace("", "#0"), "addEventListener"), 2
findpropstrict QName(ProtectedNamespace("_-81"), "_-0Fn")
getlocal3
callpropvoid QName(ProtectedNamespace("_-81"), "_-0Fn"), 1
;-------------------------------------------------------------------------------------
So if we click on the button, the method "_realmeye" will be called
Lets add it !
3) We have just edited a method.
Copy this code UNDER THE METHOD WE'VE JUST MODIFIED !
(under the end; method)
Code:
;---------------------------------------------------------------------------------
trait method QName(PrivateNamespace("*", "_-aa:_-0BN"), "_realmeye")
method
refid "_-aa:_-0BN/_realmeye"
param QName(PackageNamespace("flash.events"), "Event")
returns QName(PackageNamespace("", "#0"), "void")
body
maxstack 4
localcount 4
initscopedepth 10
maxscopedepth 11
code
; Initialize URLRequest
findpropstrict QName(PackageNamespace("flash.net"), "URLRequest")
constructprop QName(PackageNamespace("flash.net"), "URLRequest"), 0
coerce QName(PackageNamespace("flash.net"), "URLRequest")
setlocal1
;Set URL base
pushstring "https://www.realmeye.com/player/"
setlocal2
;Get clicked player name
getlocal0
getproperty QName(PackageNamespace("", "#0"), "player_")
getproperty QName(PackageNamespace("", "#0"), "name_")
setlocal3
;Add playername to URL
getlocal2
getlocal3
add
setlocal3
;set the URLRequest Url to our url
getlocal1
getlocal3
setproperty QName(PackageNamespace("", "#0"), "url")
; Open Browser Window
findpropstrict QName(PackageNamespace("flash.net"), "navigateToURL")
getlocal1
pushstring "_blank"
callpropvoid QName(PackageNamespace("flash.net"), "navigateToURL"), 2
; to be like other menu items we call remove
findpropstrict QName(ProtectedNamespace("_-81"), "remove")
callpropvoid QName(ProtectedNamespace("_-81"), "remove"), 0
returnvoid
end ; code
end ; body
end ; method
end ; trait
;-------------------------------------------------------------------------------
If you plan to update this code, remember that you need to update
* _-aa with the folder where your file is
* _-0BN with the file name we are currently editing
* _-T6, _-81", and "_-0Fn" with the good names . See how the other menu items are build to find new names.