Hey again,
so this is about some problem i currently have while taking a closer look at how a game works.
To be exact,i'm looking for the method to cast a spell
it's a thiscall function with 2 arguments which both are const
so my problem in this now is the following:
as the arguments are const i think i should give the spellid at the adresse given as argument(at least one of it),am i right here?
so for this i'd have to allocate memory,write my id in there,move the arguments on the stack,set ecx to an instance of the class and call the function.
this is how theory goes,it partly works this way,i'm getting a nice "you don't have this spell" debug message ingame, so at least the way i'm calling the function seems to be right.
Now, how would YOU go on? i'm sure that the consts are really constant as i had a hook on them once and for all different spells it gave me the same output.
i know that there are 2 adresses that, in the moment of casting, have the spellid as value(breakpointed the function and searched the memory then), but i can't find a static pointer to them at all.*
thanks for your help and sorry that it is not belonging to wow but more general
my main reason for doing all this is to learn from it,that's why i chose a game without any kind of bot or hacks.
streppel
*edit:
i tryed writing those adresses too and giving them as arguments to the function but it dodn't work either