logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Can someone write SetRace() for creature object? It'll work.

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development
View previous topic :: View next topic  
Author Message
Ilrilan



Joined: 29 Aug 2006
Posts: 11

PostPosted: Thu Aug 31, 2006 6:15    Post subject: Can someone write SetRace() for creature object? It'll work. Reply with quote

I try to change this variable in server's memory by ArtMoney - it works. But i can't find needed offsets... Sad
Back to top
View user's profile Send private message
Ilrilan



Joined: 29 Aug 2006
Posts: 11

PostPosted: Thu Sep 28, 2006 13:47    Post subject: I found it. But it fault with error... :-( Reply with quote

Thanks to virusman, but i need it for windows server.

Code:

void CNWNXFunction::SetRace(char *value)
{
        if (*(pGameObject+0x8) == 0x5) // object type creature
        {
         *(((char*)*(pGameObject + 0xC60)) + 0x3E4) = (char)atoi(value);
      }
}


Access writing violation Sad
Why? I just copy code from SetBodyPart and change offsets... They works - in debug mode i see true value.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group