Enemy/Player Display HP Mod

Posts 1–15 of 36 · Page 1 of 3
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).

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:
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
Fuck you, I love you.

EDIT: You just made it when I came into this site.

EDIT2: My father bought me the new Nike watch for my birthday. BRB
Ok nilly, but Now I want try to modify your hack to make a toggle on off system to be implemented in autopatcher... I will follow the "guide" you provided in that thread, if you have any hint, I will SURE accept it.

I see you modified a lot of "bytes" !! maybe the blob files shoudl include all this mod?

---------- Post added at 02:13 PM ---------- Previous post was at 02:11 PM ----------

Anyway, you are great!!
question nilly? Why you post alot of tutorial but that you made not just a customer with all this
Quote Originally Posted by raikoug View Post
Ok nilly, but Now I want try to modify your hack to make a toggle on off system to be implemented in autopatcher... I will follow the "guide" you provided in that thread, if you have any hint, I will SURE accept it.

I see you modified a lot of "bytes" !! maybe the blob files shoudl include all this mod?

---------- Post added at 02:13 PM ---------- Previous post was at 02:11 PM ----------

Anyway, you are great!!
The patcher isn't very practical. At least for what I do. Since this mod adds bytes to the client, I would have to make a whole new client and update any blob files that would be affected by the increase in size. Then release the client and all the blob files. The propblem is 1) it'a more work than I care to do and 2) I don't release clients.

Quote Originally Posted by pings View Post
question nilly? Why you post alot of tutorial but that you made not just a customer with all this
I feel releasing code is better than releasing clients. When an update comes around, people can always look at this and update it for the new client. I could do both, but why? We got plenty of people here willing to make and release clients. Why make more work for myself?
Quote Originally Posted by nilly View Post
The patcher isn't very practical. At least for what I do. Since this mod adds bytes to the client, I would have to make a whole new client and update any blob files that would be affected by the increase in size. Then release the client and all the blob files. The propblem is 1) it'a more work than I care to do and 2) I don't release clients.



I feel releasing code is better than releasing clients. When an update comes around, people can always look at this and update it for the new client. I could do both, but why? We got plenty of people here willing to make and release clients. Why make more work for myself?
it is not I understand you, but people like that is not how to edit this is really hard :S
-------------------------EDIT-------------------------------
i open Yogda AFTER?
Or needs to put the code Plz?
Quote Originally Posted by pings View Post
it is not I understand you, but people like that is not how to edit this is really hard :S
This is a hacking forum. Hacking isnt simple.
If you are not able to do it, you can either learn it or leave.
Not ask people to randomly release clients.

And again Im not rude to you, Im just recommending. If youll try it too much youll be really mad that you wont achieve it.
If youll continue asking you might get banned eventually.

Its your descision in the end tho.
Quote Originally Posted by runekri3 View Post
This is a hacking forum. Hacking isnt simple.
If you are not able to do it, you can either learn it or leave.
Not ask people to randomly release clients.

And again Im not rude to you, Im just recommending. If youll try it too much youll be really mad that you wont achieve it.
If youll continue asking you might get banned eventually.

Its your descision in the end tho.
LOL? you hate me !!! I call or put, this Is what the problem with you?
Seriousness is going to consult somebody I really believe you need, has every time I write a message in somewhere you and you say words nasty. why
Quote Originally Posted by pings View Post
LOL? you hate me !!! I call or put, this Is what the problem with you?
Seriousness is going to consult somebody I really believe you need, has every time I write a message in somewhere you and you say words nasty. why
Ughhhh.

You wouldnt be saying that if you would be hacking rotmg since february.
Now that fallen is down I dont know where the text is.

Oh nope I found it.
It is a modified version of the "wall of text" which I have been referring to 1000x of times.
It is a hello to a new community so ignore that part. Read it where it talks about me. I hope it will clarify things a bit.
Hello, I am runekri3.

So I am new to this forums and I thought that I should inform people that I am going to join those forums.
But theres not really a nice place to say it so I guessed why not suggest something and say hello at the same time.

The suggestion is to make a section or something for such "hello" topics.
It may sound unnecessary and stupid but
if you just randomly join a community, its kind of wierd. And typing 7km text about you in a random topic is wierd aswell.

So if admins, mods or someone like that make a section of that sorts, thanks =)

Now since there isnt such a section (hopefully yet) I will post the "topic" here.


Well I am here for mainly rotmg.
That makes doesnt make any sense tho, because I have quited rotmg already.
And thats why Im not gonna be active at only rotmg section.
Now you probably ask, why the heck rotmg when I have quited it already ??

The reasons why I quited are not really important except it wasnt for the game.

Now I am a FAN of private servers. They may sound boring because you can get anything you want BUT
I play them with my brother and in a such way that it doesnt get really boring (infact slower than the real game)
Oh and I am not going to tell how we play it... or maybe if you really want ill give you a hint: Multiple people

So rotmg is basically a perfect game for a server.


Now back to me (ill come back to rotmg later)

First of first I am going to say it honestly, I am 14.
I am not going to lie about my age so if you are that I am too young then I completely understand you.
However I ensure that I will be as mature as I can.
(Also if and admin has anything against it then feel free to ban me but I hope theres not really such age restrictions)

Well I live in Estonia, Tallinn (please tell if your an estonian aswell)
And thus my main language isnt English.
And watching my age its kind of unfortunate that my English is probably rubbish but I hope its not.
Im a gamer, kind of hacker (pretty nooby :S)

And sorts of programmer, atleast with hopes to becaome one.
My main language is python which I can understand best and so on.
I also can use java. I have most experience for it from rsps developement.

Some old rotmg hackers may remember me from fallenhacks forums.
It should be still active at a new site. Not really sure tho.
Well I was one of 2 moderators there. Other one was online once a month, so basically i was alone.
There was also the admin fallenhacks. It was the first site to make a semi godmode after everything move to server side.
It was a really big deal back then. MPGH made first rotmg post like 4 months after this site.
I was one of the most active there and many people liked it but I quited the community because the forum was going kinda bad.
After I left it died. But it was revived couple weeks after.


Now with my final conclusion that I WILL MAKE a rotmg private server
I am kind of back to rotmg, though I wont really play the original game.

But since my knowledge of such possibilities.
I have taken a completely different approach.

I will literally ONLY use the damage/icons and such from original game.
Even the concept will not be the same (unless you call fighting game a concept)

Although if there is a possibility in helping developing the right private server, Im all in.
Though I am probably not really useful since I cant really help with my coding skills


Oh and dont forget, I am not here for only rotmg.
I am looking forward to playing other games. (you calling hacking and making private servers and remaking the game playing right?)



So I hope that the community accepts me as a new member =)

TL;DR
Yeah, I kind of see what you are saying there.
Well you are going to see such walls of texts from me alot.
Quote Originally Posted by runekri3 View Post
Ughhhh.

You wouldnt be saying that if you would be hacking rotmg since february.
Now that fallen is down I dont know where the text is.

Oh nope I found it.
It is a modified version of the "wall of text" which I have been referring to 1000x of times.
It is a hello to a new community so ignore that part. Read it where it talks about me. I hope it will clarify things a bit.
good understand now! sorry i im noob! on hacking this games "
the last time I edit a client I mix all the client script

my question plz do you help me or no
i open the yogda so after where i put the code? Webmain/classes/after?

i find no work !! 0 file
com.company.assembleegameclient.objects:GameObject/damage
Holy fuck nilly, great job. Always surprised and satisfied at your updates.
anyway, nilly, it's interesting the bar above!
This was made with RABCDAsm, so you'll need to use that.
Quote Originally Posted by nilly View Post
This was made with RABCDAsm, so you'll need to use that.
kk i have now, i can search the file? with this program?
Posts 1–15 of 36 · Page 1 of 3

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?