Jump to content

CQuestManager::Click(pid=%d, target_npc_name=%s) - NOT EXIST NPC RACE VNUM[%d]


Recommended Posts

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!

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

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.

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

 

  • 8 months later...
  • 1 year later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.