Enemy/Player Display HP Mod
This modification basically turns the damage done to objects into an hp notification. I feel it is uniquely different from the hp notification's found in ODom to warrant release (beside the fact that it is a client modification). Everyone who finds this useful should thank raikoug, as I wouldn't have done this without his request (http://www.mpgh.net/forum/655-realm-...eft-enemy.html).
For the first 2 parts, here is a pic that should help answer some questions about placement:

And here is a pic:

BTW the quest hp bar isn't apart of this. It is just something I did and didn't bother to remove for pic.
Edit: This code if for v123.5.1
Code:
Display Enemy/Player Health Mod:
In com.company.assembleegameclient.objects:GameObject/damage, starting from the end of the function, place this code just before the first
getlex QName(PackageNamespace(""), "map_")
getproperty QName(PackageNamespace(""), "mapOverlay_")
findpropstrict QName(PackageNamespace("_-015"), "_-OP")
you encounter while searching upward.
getlocal0
getlex QName(PackageNamespace(""), "_-aY")
getlocal2
subtract
dup
setlocal 13
convert_d
getlex QName(PackageNamespace(""), "_-LT")
convert_d
divide
callproperty QName(PackageNamespace(""), "g2r_color"), 1
setlocal 14
Then replace the code (a little bit further down from the code above):
pushstring "-"
getlocal2
add
with
getlocal 13
Finally replace the code (a little bit further down):
pushint 16711680
with
getlocal 14
Function used:
Place this function just after com.company.assembleegameclient.objects:GameObject/damage.
trait method QName(PackageNamespace(""), "g2r_color")
method
refid "com.company.assembleegameclient.objects:GameObject/g2r_color"
param QName(PackageNamespace(""), "Number")
returns QName(PackageNamespace(""), "int")
body
maxstack 7
localcount 2
initscopedepth 1
maxscopedepth 1
code
getlocal1
pushdouble .5
ifgt OVER_50
pushint 16776960 ; yellow
pushint 1280
findpropstrict QName(PackageNamespace(""), "int")
pushbyte 50
getlocal1
pushbyte 100
multiply
subtract
callproperty QName(PackageNamespace(""), "int"), 1
multiply
subtract
returnvalue
OVER_50:
pushint 65280 ; green
pushint 327680
findpropstrict QName(PackageNamespace(""), "int")
pushbyte 100
getlocal1
pushbyte 100
multiply
subtract
callproperty QName(PackageNamespace(""), "int"), 1
multiply
add
returnvalue
end ; code
end ; body
end ; method
end ; trait
Heal Display Mod:
In com.company.assembleegameclient.net:_-1f/_-Lx, place this code just after the first setlocal2.
getlocal1
getproperty QName(PackageNamespace(""), "color_")
pushint 65280
ifne NOT_HP
getlocal1
getproperty QName(PackageNamespace(""), "text_")
pushbyte 0
pushbyte 1
callproperty QName(Namespace("http://adobe.com/AS3/2006/builtin"), "slice"), 2
pushstring "+"
ifne NOT_HP
findpropstrict QName(PackageNamespace(""), "int")
getlocal1
getproperty QName(PackageNamespace(""), "text_")
callproperty QName(PackageNamespace(""), "int"), 1
getlocal2
getproperty QName(PackageNamespace(""), "_-aY")
add
dup
getlocal1
swap
pushstring " ["
add
getlocal1
getproperty QName(PackageNamespace(""), "text_")
add
pushstring "]"
add
setproperty QName(PackageNamespace(""), "text_")
getlocal2
swap
getlocal2
getproperty QName(PackageNamespace(""), "_-LT")
convert_d
divide
callproperty QName(PackageNamespace(""), "g2r_color"), 1
getlocal1
swap
setproperty QName(PackageNamespace(""), "color_")
NOT_HP:

And here is a pic:

BTW the quest hp bar isn't apart of this. It is just something I did and didn't bother to remove for pic.
Edit: This code if for v123.5.1

