Thanks, i have another question then
i have this:
Code:
string ContextTargetName()
{
for (int i = 0; i < MaxCreatures; i++)
{
DWORD currentCID = *(DWORD *)(BattlelistBegin + BattlelistStep * i);
if (currentCID == *(DWORD *)(CONTEXT_MENU_CREATUREID))
{
return (char*)((BattlelistBegin + BattlelistStep * i) + 0x04);
}
}
return NULL;
}
And ok by
Code:
GuiHandle.addLabel(CHARACTER, 10, 80, 80, const_cast<char*>(ContextTargetName().c_str()), 235, 235, 235);
i get name of creature where i used context menu. But this name reset only when i reset client. For example: i use Righ click mouse on monster "Dragon" , choose "Check" and i see label with name "Dragon", probably ok, but after this i trying use this on Demon and still i see "Dragon", when i reset client and use it on Demon i see "Demon" but when i try again on another monster i see again name of character which i used first after run client. How i can clean this from memory, / refresh?