Whats this coded in? C++?
Whats this coded in? C++?
Dead_Man: This is written in C#
Cypher: Thanks alot, although for now we're just happy that it works. Still, two arguments at once would be leet to do a "morph 1337 0.5".
Yep, quite easy to implement.
Are you having trouble because you're doing the hooks and callbacks in C# and injected ASM?
I love teleporting. Hey, ¿what the hell is doing that wolf in durotar?
Well that and I have no clue wtf I'm doing.
Incoming retarded interpretations, please no flaming :P
When the callback function is called, the there's a pointer to the whole string on the stack. (And also ESI is currently pointing to that string so we grab it from ESI)
Problem is that I have no idea how I'd copy that string to some place save, because as soon as the function is executed the buffer where the string was stored gets overridden. That only leaves that we'd have to grab that string during the call, that means ASM madness. :/
Right now we're just grabbing 4 bytes each and copy them to a save location in the codecave.
pseudocode:
mov edi, [esi] ; (1st 4 bytes)
mov codeCave, edi
mov edi, [esi+4] ; (2nd 4 bytes)
mov codeCave+4, edi
push codeCave
call StringToInt
mov edi, eax
Then use edi in the morph function.
On a side note: It however keeps things very interesting if you have no clue and try to hunt something down.
try something like this
push edi // save it.
push [arg2] // arg 2 = remaining string.
call StringToInt
mov edi, eax // move it somewhere it won't get trashed
call GetLocalPlrBase // get your playerbase
mov eax, [eax+8]
mov [eax+84h], edi // unitfield_displayid
push 1
push 1
call UpdateModel
pop edi
retn // the caller cleans the stack.
So you're doing it all in ASM? **** that.
At that point I'd just give up and write a hook function in C++ then make it call that instead .
Love the morpher, however is it resizeable? As I love the implementation of a saved list of morphs, but when you've got more than about 3 and of any reasonable length, they get a bit lost in the tiny window =)
Wanted to keep it tiny but if that's wanted (I obviously understand why :O), I'll add that.
WOW EPIX REP >9000... well, however much i can.. hah..
Wow i love this program, im assuming that its not detectable or bannable. ive dealt with model editing and supposedly unless if gives you a special edge its not bannable? . so anyways let me know if you had gm probs on live servers. other than that thanks alot much easier than creating your own patch to change the race of a toon haha. +rep
Last edited by vennomm; 03-21-2009 at 04:25 AM.
I'm afraid he's right. And hes had to say this thousands of times over, That we will NEVER know for sure if something is completely safe. You just have to ask yourself if its worth it. I use hacks on a daily basis, And i'm fine. But i do know the risks involved.
Anyways, Keep up the good work sku i hope to see your title function out in the open soon. +Rep
Other players in the game cant see the morphs, that would be cool if they could =[