Newbie Spellweaver
- Joined
- Jul 9, 2007
- Messages
- 47
- Reaction score
- 0
here u go , working kerning city weapon and armour stores , its to save u time from making ure own, they sell thief items from lvl 10-50 . just put these 2files into ure shops folder -
and then , go to ure NPCsScripts.h and add the following lines, in their lists . u will see where to add them because there is already a list of something similar :
and then add the following lines to your Potsandwepshops.cpp ( or wherever u want it makes no difference)
And if you do infact create your own file called PotsAndShops .. Dont forget to add this to the top otherwise nothing will work :
You must be registered to see links
and then , go to ure NPCsScripts.h and add the following lines, in their lists . u will see where to add them because there is already a list of something similar :
Code:
case 1051000: npc_1051000(npc); break;
Code:
case 1051001: npc_1051001(npc); break;
Code:
static void npc_1051000(NPC* npc);
Code:
static void npc_1051001(NPC* npc);
and then add the following lines to your Potsandwepshops.cpp ( or wherever u want it makes no difference)
Code:
void NPCsScripts::npc_1051000(NPC* npc){
int state = npc->getState();
if(state == 0){
npc->showShop();
}
npc->end();
}
Code:
void NPCsScripts::npc_1051001(NPC* npc){
int state = npc->getState();
if(state == 0){
npc->showShop();
}
npc->end();
}
And if you do infact create your own file called PotsAndShops .. Dont forget to add this to the top otherwise nothing will work :
Code:
#include "NPCs.h"
#include "NPCsScripts.h"
Last edited: