Hi All,
i just want to know how to become Monster Aggro at a Player.(NewAI)
I found the MonsterReal__GetChasePt function. Its Only Called when a Monster become Aggro...
I Thought that i rename the Vars right but with the Monster Around Iterator as little helper to become the monsterpointers, the server crashes...
Does anyone have a idea how to fix it (or another way to the new ai) ?
Thats how i call the function: (Monster Iterator)
int *pMonster, *pObject, nRange = 4;
pObject = KemA::CPlayer::GetPlayerMonsterList(((int*) PlayerPointer)[80],&((int*) PlayerPointer)[81],nRange);
while ( pObject )
{
KemA::Server::ConsoleWriteBlue("pObject");
//KemA::CMonster::CMonsterReal__GetChasePt((int) pObject, (int) PlayerPointer, );
}
Header:
static signed int (__thiscall *CMonsterReal__GetChasePt)(int MonsterPointer, int PlayerPointer) = (signed int (__thiscall*)(int a5, int a6))0x0043E470;
thx for all suggestions
(sry for my bad english)
i just want to know how to become Monster Aggro at a Player.(NewAI)
I found the MonsterReal__GetChasePt function. Its Only Called when a Monster become Aggro...
I Thought that i rename the Vars right but with the Monster Around Iterator as little helper to become the monsterpointers, the server crashes...
Does anyone have a idea how to fix it (or another way to the new ai) ?
Thats how i call the function: (Monster Iterator)
int *pMonster, *pObject, nRange = 4;
pObject = KemA::CPlayer::GetPlayerMonsterList(((int*) PlayerPointer)[80],&((int*) PlayerPointer)[81],nRange);
while ( pObject )
{
KemA::Server::ConsoleWriteBlue("pObject");
//KemA::CMonster::CMonsterReal__GetChasePt((int) pObject, (int) PlayerPointer, );
}
Header:
static signed int (__thiscall *CMonsterReal__GetChasePt)(int MonsterPointer, int PlayerPointer) = (signed int (__thiscall*)(int a5, int a6))0x0043E470;
thx for all suggestions
(sry for my bad english)
Last edited: