Nilly's - Auto-pot / Auto-Special if Priest / Auto-Nexus - Code
Everyone has to start somewhere. You have to decompile the swf client with rabcdasm (you can download a dupe client in this forum, it's clean).
If you don't know how to decompile with rabcdasm your client, you have to search rabcdasm for win on google, than put everything in a folder, client too, it's better if you rename the swf client in "client.swf".
once in the folder make 2 txt files:
one with these:
save it as decompile.bat
an the other with these
and rename it with recompile.bat
(notice to change the extension and if you don't see myfile.txt, you have to right click and properties, than change extension from there)
if you have changed client name, no problem, if you didn't than you have to replace all "client" part with the name of your client.
double click decompile.bat and wait untill cmd close
now you will have the folder client-1, go to
client-1\com\company\assembleegameclient\objects
open player.class with notepad or else, search function update (it starts with trait, and end with end trait), and just before the the end, before returnvalue, copy the first parte of code.
the second one, same file, go down to the end of file, and above the last line copy the second part of code.
Done.
now double click recompile.bat, good game with the new client
---------- Post added at 05:19 AM ---------- Previous post was at 05:14 AM ----------
the function start extactly so:
and end excvtaly
and the place for first code is just above returnvalue.
If you don't know how to decompile with rabcdasm your client, you have to search rabcdasm for win on google, than put everything in a folder, client too, it's better if you rename the swf client in "client.swf".
once in the folder make 2 txt files:
one with these:
Code:
swfdecompress client.swf abcexport client.swf rabcdasm client-1.abc
an the other with these
Code:
rabcasm client-1\client-1.main.asasm abcreplace client.swf 1 client-1\client-1.main.abc
(notice to change the extension and if you don't see myfile.txt, you have to right click and properties, than change extension from there)
if you have changed client name, no problem, if you didn't than you have to replace all "client" part with the name of your client.
double click decompile.bat and wait untill cmd close
now you will have the folder client-1, go to
client-1\com\company\assembleegameclient\objects
open player.class with notepad or else, search function update (it starts with trait, and end with end trait), and just before the the end, before returnvalue, copy the first parte of code.
the second one, same file, go down to the end of file, and above the last line copy the second part of code.
Done.
now double click recompile.bat, good game with the new client

---------- Post added at 05:19 AM ---------- Previous post was at 05:14 AM ----------
the function start extactly so:
Code:
trait method QName(PackageNamespace(""), "update") flag OVERRIDE
Code:
returnvalue
end ; code
end ; body
end ; method
end ; trait
http://www.mpgh.net/forum/654-realm-...ml#post6563042
If you guys don't know how to add this or unclear about somethings, the process is virtually identical to adding the aim-bot. The post I linked above describes how to make changes (aim-bot in that case) to the client using rabcdasm. Check it out, hopefully it will clear up a few things.
Hmm, my guess is you missed a returnvalue and stuck the first part in the wrong place. In the file, functions have the form similar to the below code section:
Make sure to put the first part of the code right before the returnvalue of that function and not some other function.
Edit: raikoug beat me to it. Double explanations for everyone.
If you guys don't know how to add this or unclear about somethings, the process is virtually identical to adding the aim-bot. The post I linked above describes how to make changes (aim-bot in that case) to the client using rabcdasm. Check it out, hopefully it will clear up a few things.
Hmm, my guess is you missed a returnvalue and stuck the first part in the wrong place. In the file, functions have the form similar to the below code section:
Code:
trait method QName(PackageNamespace(""), "update") flag OVERRIDE
method
refid "com.company.assembleegameclient.objects:Player/update"
param QName(PackageNamespace(""), "int")
param QName(PackageNamespace(""), "int")
returns QName(PackageNamespace(""), "Boolean")
body
maxstack 8
localcount 13
initscopedepth 7
maxscopedepth 8
code
.
.
.
. [bunch of code here]
.
.
returnvalue
end ; code
end ; body
end ; method
end ; trait
Edit: raikoug beat me to it. Double explanations for everyone.

Can you share your Player.class.asasm?
I'm definitely doing something wrong...
I'm definitely doing something wrong...
I did exactly as explained : insert the code in "update" juste before the returnvalue.
Then insert the two new methods at the end of the file..
Compile FINE (if the 2 methods were misplaced i will have compilation errors
) , replace abc...
Profit? err...no
Tried on a non logged wizzi, on a fresh prod client : the hp pot is not used, i always D/c...
I know how this whole stuff work (methods, code, compile) since your brilliant tutorials, i even managed to find stuff by myself, but there is something wrong ..
> my character doesnt die when low hp >It seems he try to use a pot but "Error" > D/C ..
will try something else
Then insert the two new methods at the end of the file..
Compile FINE (if the 2 methods were misplaced i will have compilation errors
) , replace abc...Profit? err...no
Tried on a non logged wizzi, on a fresh prod client : the hp pot is not used, i always D/c...

I know how this whole stuff work (methods, code, compile) since your brilliant tutorials, i even managed to find stuff by myself, but there is something wrong ..
> my character doesnt die when low hp >It seems he try to use a pot but "Error" > D/C ..
will try something else
hum, I hadn't time to try it weel the first time, I had no pot, and obviously it wen to nexus, now I've tried it again and i took some pot from tutorial, nothing, it doen't use pot...
Ok I went ahead and followed the directions myself with a fresh client. Yes there is a problem. Kind of puzzled how others managed to get it to work following the instructions.
Anyways the second part of the tutorial is the problem. Don't insert the code where I told you in original post (can't edit it now :/ ). Instead insert it just below the update function like so...

I'm not sure why it matters where the functions are placed in the class. Figured it would be easiest to just place them down at the bottom of the class. Apparently this caused problems.
Anyways the second part of the tutorial is the problem. Don't insert the code where I told you in original post (can't edit it now :/ ). Instead insert it just below the update function like so...

I'm not sure why it matters where the functions are placed in the class. Figured it would be easiest to just place them down at the bottom of the class. Apparently this caused problems.

If i modify the original client, it works, but If I modify another clietn, with other hacks, it doesn't recompile the asam
A mana pot is only used when needed and only works in conjunction with priest special ability (no other classes have auto-mana pot). So if your health drops below 50% and you don't have enough mana to case spell, it will check for a mana pot. If it finds one it will drink it.
If you think something else is going on, please describe what is happening in more detail including what potions/tome you're using.
---------- Post added at 08:49 AM ---------- Previous post was at 08:47 AM ----------
Which hacked client you using?
If you think something else is going on, please describe what is happening in more detail including what potions/tome you're using.
---------- Post added at 08:49 AM ---------- Previous post was at 08:47 AM ----------
Which hacked client you using?
I'll take a look at the hacked client problem later. If one of you can confirm that the hacked client compiles fine without the above code and then fails with it. It would be appreciated.
