Guard tower Aiserver explodes
Description
NPC_POS ActType 104(pNpc->m_byMoveType"4") with cotcnt0 makes AI explode and refuses it to load. Alot of npc's use this type from guard towers to delos npc's that are stationary and not allowed to chase enemy players. I'm not sure but maybe some npc's in war too like keeper or victory gate.
Screenshots
CreateNpcThread - Path type Error : nid=%d, sid=%d, name=%s, acttype=%d, path=%d
Files
\src\server\AIServer\AIServerDlg.cpp
To Reproduce
Insert Guard tower with acttype 104 to database.
Tasks
Include specific tasks in the order they need to be done in. Include links to specific lines of code where the task should happen at.
- [ 201 5300 104 601 897 603 895 1 60 0 NULL 0 0 0 0 906 591 614 885] Task 1 K_NPC_POS
- [5300 Guard tower 5301 100 NULL 0 0 2 0 62 1 1 1 0 90 0 0 100000 0 0 15000 497 497 0 1500 0 0 1000 300139 0 0 255 255 255 255 255 255 255 200 30 35 35 0 0 1 1 ] Task 2 K_NPC
Explosion bypasses with current code: if (pNpc->m_byMoveType >= 2 && NpcPosSet.m_DotCnt == 0 && pNpc->m_byMoveType != 4) instead of: if (pNpc->m_byMoveType >= 2 && NpcPosSet.m_DotCnt == 0) {