im using these instructions to add the NPCitem stuff
<a href='index.php?showtopic=6793&hl=m_bnpcitemconfig' target='_blank'>index.php?..._bnpcitemconfig</a>
and it all goes swimmingly until i get to this :
when i add that i get a load of compile errors, all like this:add these to npc.h's CNpc {
Code: Select all
std::vector<CNpcItem> m_vNpcItem; int m_iNpcitemType; int m_iNpcitemMax;
Npc.h(40) : error C2065: 'CNpcItem' : undeclared identifier
Npc.h(40) : error C2955: 'vector' : use of class template requires template argument list
vector(244) : see declaration of 'vector'
Npc.h(40) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Map.cpp
Npc.h(40) : error C2065: 'CNpcItem' : undeclared identifier
Npc.h(40) : error C2955: 'vector' : use of class template requires template argument list
vector(244) : see declaration of 'vector'
about 6 of them ,
now if i do this: (after much messing about trying things)
Code: Select all
std::vector<class CNpcItem> m_vNpcItem;
int m_iNpcitemType;
int m_iNpcitemMax;
it compiles perfectly, and HG seems to load npcitem.cfg perfectly,
but it doeasnt actually appear to be working i cant see any of the extra items dropping, so i have obviously gone wrong somewhere.
can anyone tell me what i need to do to fix those compile errors, apart from what i did cause that obviously doesnt work, am i putting that part of the code in the wrong place or somethign ?
edit, nvm iv removed it im not gonna use it