Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guard tower Aiserver explodes #197

Open
UTengine opened this issue Mar 28, 2023 · 0 comments
Open

Guard tower Aiserver explodes #197

UTengine opened this issue Mar 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@UTengine
Copy link
Contributor

UTengine commented Mar 28, 2023

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

image
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) {

@stevewgr stevewgr added the bug Something isn't working label May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants