Newbie Spellweaver
- Joined
- Apr 4, 2008
- Messages
- 50
- Reaction score
- 0
##################################################
Hey, I just made the shops in MapleIsland.
All items are the same as GMS/EMS/...
In total there are 3 shops.
Amherst - Potion Shop
Amherst - Weapon Shop
Southperry - Armor Shop
Here's a little guide.
1) Download this .zip file with 3 XML files in it. [
You must be registered to see links
]2) Extract it, and place the XML files in the MapleStoryServer/Shops map.
3) Open the page NPCsScripts.h
Add this:
Code:
case 11000: npc_11000(npc); break;
case 11100: npc_11100(npc); break;
case 21000: npc_21000(npc); break;
And this:
Code:
static void npc_11000(NPC* npc);
static void npc_11100(NPC* npc);
static void npc_21000(NPC* npc);
It doesn't matter where, as long it's not in another NPC "
Code:
void NPCsScripts::npc_11000(NPC* npc){
int state = npc->getState();
if(state == 0){
npc->showShop();
}
npc->end();
}
void NPCsScripts::npc_11100(NPC* npc){
int state = npc->getState();
if(state == 0){
npc->showShop();
}
npc->end();
}
void NPCsScripts::npc_21000(NPC* npc){
int state = npc->getState();
if(state == 0){
npc->showShop();
}
npc->end();
}
Good luck,
Hope ya like it!
##################################################