noxworld-dev / opennox

OpenNox main repository.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow creature status to by recognised by script.

Ephreaym opened this issue · comments

I'd be helpful to get the status of npc's and players to improve the bot tactics. For example if a creature is blocking or not.

NPC's and monsters blocking status is determined in fact by having an appropriate action on top of action stack (ACTION_BLOCK_ATTACK 21)
(See

if (((c1 && *(uint8_t*)(v12 + 88) != 16) || (!c1 && nox_xxx_mobActionGet_50A020(v5) != 21)) ||
for NPCs,
(v8 = *(uint32_t*)(a1 + 748), nox_xxx_mobActionGet_50A020(a1) == 21) &&
for SkeletonDamage)

Thanks @angrykirc ! I was thinking to check the monster (animation?) state, but action stack should do the trick too 👍