npc_list fields what do they mean?

Post Reply
kasaga
Posts: 14
Joined: Sun Feb 24, 2013 12:31 pm

npc_list fields what do they mean?

Post by kasaga » Fri Dec 18, 2015 1:08 am

How does one decode these fields of npc_list?:

npcid: Say I take 17064144 (0x 1 046 0D0) that gives me 1 , zone 70, and an id 208 (id 000 to FFF), I believe this is right, can I simply change 1 to a 2 to guarantee I don't step on another id in the last 3, or is that reserved for something?
Say 0x2 046 001 would make a npc at zone 70 with id 001 ?

flag: What do the bits in this field represent?

namevis: 0 to 200 it seems once it goes above 0 its no longer npc's when sorting by that column. I assume all NPC's should have 0. What do the above 0 values represent?

status: 0 to 18 not sure what this does either.

flags: What do the bits in this field represent?

Any input is appreciated, I have been searching for a pretty significant time and just cant find some of the information perhaps some of it is in very obvious places, perhaps there is a database key posted someplace that I missed so go easy on me if that's the case.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: npc_list fields what do they mean?

Post by kjLotus » Fri Dec 18, 2015 1:31 am

npcid: yes
flag: it's assigned to "moving" - so nothing, probably
namevis: git grep namevis
status: git grep STATUS_
flags: git grep m_flags

easiest to check where they get loaded from the database and what it's being assigned to, and searching for references on that symbol (in this case its LoadNPCList)

kasaga
Posts: 14
Joined: Sun Feb 24, 2013 12:31 pm

Re: npc_list fields what do they mean?

Post by kasaga » Fri Dec 18, 2015 11:18 am

Welp status seemed easy to find with looking up symbols that way. Had to get to bed was 3am lol.
STATUS_NORMAL = 0; // most common
STATUS_UPDATE = 1;
STATUS_DISAPPEAR = 2; // npc invisible or item invisible.
STATUS_3 = 3; /*3 & 4 & 18probably reserved /*
STATUS_4 = 4;
STATUS_CUTSCENE_ONLY = 6;
STATUS_18 = 18;
STATUS_SHUTDOWN = 20; // not sure what status shutdown means. Dont think this one gets used.



Gonna bash away and try to figure out the flags settings and what they can equal to do what so I can make a quick reference and be able to make a npc more easily or edit a current npc. I will post my findings if or when I figure it out. Thanks for the tips on what to start at Lotus.

Post Reply