View previous topic :: View next topic |
Author |
Message |
Ilrilan
Joined: 29 Aug 2006 Posts: 11
|
Posted: Thu Aug 31, 2006 6:15 Post subject: Can someone write SetRace() for creature object? It'll work. |
|
|
I try to change this variable in server's memory by ArtMoney - it works. But i can't find needed offsets... |
|
Back to top |
|
|
Ilrilan
Joined: 29 Aug 2006 Posts: 11
|
Posted: Thu Sep 28, 2006 13:47 Post subject: I found it. But it fault with error... :-( |
|
|
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
Why? I just copy code from SetBodyPart and change offsets... They works - in debug mode i see true value. |
|
Back to top |
|
|
|