Quote:
Originally Posted by hel
omg...i can't even understand, what is virtual user functions (is it point, where dll may call server functions, or is it one function, which operate with users? -_-).
...going to google. 
|
yeah, try to search about c++ static, virtual "reserved words" =)
but i'll try to explain:
Code:
class CSomeClass
{
public:
int n1;
int n2;
void DoSomething();
};
offset of n1 == 0
offset of n2 == 4
BUT
Code:
class CSomeClass
{
public:
int n1;
int n2;
virtual void DoSomething();
};
offset of n1 == 4
offset of n2 == 8
and at zero offset there is pointer to array of virtual functions
so, almost every c++ class inside l2server has virtual functions and they are all different.. CCreature - one address, CNPC - another, User - 0x00602C04
so we can check by dword (qword in x64) value at offset 0 what this class is.