Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY! > Extenders
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 14.06.2007, 14:36   #10
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

Quote:
Originally Posted by hel View Post
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.
humordwarf is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:18.