HiiPower 2 Posted March 2, 2017 Share Posted March 2, 2017 I have the following error in syserr: NOT EXIST NPC RACE VNUM[9003] I cannot open npc's shop. This is the piece of the source: DWORD dwCurrentNPCRace = pkChrTarget->GetRaceNum(); if (pkChrTarget->IsNPC()) { map<unsigned int, NPC>::iterator it = m_mapNPC.find(dwCurrentNPCRace); if (it == m_mapNPC.end()) { sys_err("CQuestManager::Click(pid=%d, target_npc_name=%s) - NOT EXIST NPC RACE VNUM[%d]", pc, pkChrTarget->GetName(), dwCurrentNPCRace); return false; } How can I solve it? Thanks in advance! Link to comment Share on other sites More sharing options...
HiiPower 2 Posted March 2, 2017 Author Share Posted March 2, 2017 Update: I've changed the following this: SHOP_HOST_ITEM_MAX_NUM was 80, now 40 (client/server) SHOP_PRICELIST_MAX_NUM was 80, now 40 m_pGrid = M2_NEW CGrid(10, 9); to m_pGrid = M2_NEW CGrid(5, 9); I've updated the shopdialog.py also. Link to comment Share on other sites More sharing options...
kingshero 8 Posted March 2, 2017 Share Posted March 2, 2017 resolve this with lua quest like this to any npc add this quest with change npc race or num change 9003 to any npc race like this Spoiler quest name_quest begin state start begin when 9003.click begin setskin(NOWINDOW) end end end Link to comment Share on other sites More sharing options...
HiiPower 2 Posted March 2, 2017 Author Share Posted March 2, 2017 Thanks 1 Link to comment Share on other sites More sharing options...
Yasin95 0 Posted November 30, 2017 Share Posted November 30, 2017 quest/questnpc.txt add line; 9003 npc_name Link to comment Share on other sites More sharing options...
rawn3cr0 1 Posted January 14, 2019 Share Posted January 14, 2019 Same error.. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now