Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Kerning Wpn & Armour Shops

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 :

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:
Newbie Spellweaver
Joined
Nov 9, 2006
Messages
15
Reaction score
0
Re: [Release] Kerning Wpn & Armour Shops

first good job
 
Elite Diviner
Joined
Feb 28, 2007
Messages
446
Reaction score
4
Re: [Release] Kerning Wpn & Armour Shops

I think this

Code:
case 1051001: npc_1051000(npc); break;
Should be
Code:
case 1051001: npc_1051001(npc); break;
?
 
Newbie Spellweaver
Joined
Jul 9, 2007
Messages
47
Reaction score
0
Re: [Release] Kerning Wpn & Armour Shops

I think this

Code:
case 1051001: npc_1051000(npc); break;
Should be
Code:
case 1051001: npc_1051001(npc); break;
?


ohyea sorry about that , typo :) just noticed it now
 
Newbie Spellweaver
Joined
Apr 5, 2008
Messages
40
Reaction score
0
Re: [Release] Kerning Wpn & Armour Shops

Ty! Good work!

=D
 
Newbie Spellweaver
Joined
Apr 6, 2008
Messages
17
Reaction score
0
Re: [Release] Kerning Wpn & Armour Shops

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();
     }

Where am im going 2 put them ? =S...I dont have Potsandwepshops.cpp
 
Newbie Spellweaver
Joined
Mar 30, 2008
Messages
20
Reaction score
0
Re: [Release] Kerning Wpn & Armour Shops

Yeah what do you mean pots and wepsshop cpp? O_O
 
Newbie Spellweaver
Joined
Aug 13, 2007
Messages
15
Reaction score
0
Re: [Release] Kerning Wpn & Armour Shops

u forgot
Code:
#include "NPCs.h"
#include "NPCsScripts.h"

other than that, good work
 
Junior Spellweaver
Joined
Dec 3, 2006
Messages
114
Reaction score
0
Re: [Release] Kerning Wpn & Armour Shops

Thanks!
Added in ~

Only 3 more city shops left for Vic Island.
Does anyone know where I can get the NPC ID's?
 
Newbie Spellweaver
Joined
Jul 9, 2007
Messages
47
Reaction score
0
Re: [Release] Kerning Wpn & Armour Shops

Thanks!
Added in ~

Only 3 more city shops left for Vic Island.
Does anyone know where I can get the NPC ID's?

mapletip , or sauna.gibbed
 
Junior Spellweaver
Joined
Dec 18, 2006
Messages
174
Reaction score
0
Re: [Release] Kerning Wpn & Armour Shops

but that is not the real shop...

i though it was xD
 
Newbie Spellweaver
Joined
Apr 4, 2008
Messages
49
Reaction score
0
Re: [Release] Kerning Wpn & Armour Shops

well i cant get it working .. when i click the npc's nothing happening
 
Newbie Spellweaver
Joined
Sep 25, 2007
Messages
83
Reaction score
1
Re: [Release] Kerning Wpn & Armour Shops

1>c:\maplestoryserver\maplestoryserver\potsandwepshops.cpp(1) : error C2653: 'NPCsScripts' : is not a class or namespace name
1>c:\maplestoryserver\maplestoryserver\potsandwepshops.cpp(1) : error C2065: 'NPC' : undeclared identifier
1>c:\maplestoryserver\maplestoryserver\potsandwepshops.cpp(1) : error C2065: 'npc' : undeclared identifier
1>c:\maplestoryserver\maplestoryserver\potsandwepshops.cpp(1) : error C2448: 'npc_1051000' : function-style initializer appears to be a function definition
1>c:\maplestoryserver\maplestoryserver\potsandwepshops.cpp(8) : error C2653: 'NPCsScripts' : is not a class or namespace name
1>c:\maplestoryserver\maplestoryserver\potsandwepshops.cpp(8) : error C2065: 'NPC' : undeclared identifier
1>c:\maplestoryserver\maplestoryserver\potsandwepshops.cpp(8) : error C2065: 'npc' : undeclared identifier
1>c:\maplestoryserver\maplestoryserver\potsandwepshops.cpp(8) : error C2448: 'npc_1051001' : function-style initializer appears to be a function definition
1>Build log was saved at "file://c:\MapleStoryServer\MapleStoryServer\Debug\BuildLog.htm"
1>MapleStoryServer - 8 error(s), 0 warning(s)
 
Newbie Spellweaver
Joined
Apr 2, 2008
Messages
59
Reaction score
0
Re: [Release] Kerning Wpn & Armour Shops

Good release, im gonna test it as soon as i can
 
Newbie Spellweaver
Joined
Jul 9, 2007
Messages
47
Reaction score
0
Re: [Release] Kerning Wpn & Armour Shops

1>c:\maplestoryserver\maplestoryserver\potsandwepshops.cpp(1) : error C2653: 'NPCsScripts' : is not a class or namespace name
1>c:\maplestoryserver\maplestoryserver\potsandwepshops.cpp(1) : error C2065: 'NPC' : undeclared identifier
1>c:\maplestoryserver\maplestoryserver\potsandwepshops.cpp(1) : error C2065: 'npc' : undeclared identifier
1>c:\maplestoryserver\maplestoryserver\potsandwepshops.cpp(1) : error C2448: 'npc_1051000' : function-style initializer appears to be a function definition
1>c:\maplestoryserver\maplestoryserver\potsandwepshops.cpp(8) : error C2653: 'NPCsScripts' : is not a class or namespace name
1>c:\maplestoryserver\maplestoryserver\potsandwepshops.cpp(8) : error C2065: 'NPC' : undeclared identifier
1>c:\maplestoryserver\maplestoryserver\potsandwepshops.cpp(8) : error C2065: 'npc' : undeclared identifier
1>c:\maplestoryserver\maplestoryserver\potsandwepshops.cpp(8) : error C2448: 'npc_1051001' : function-style initializer appears to be a function definition
1>Build log was saved at "file://c:\MapleStoryServer\MapleStoryServer\Debug\BuildLog.htm"
1>MapleStoryServer - 8 error(s), 0 warning(s)

dont 4get to add this :
Code:
#include "NPCs.h"
#include "NPCsScripts.h"

to the top of ure PotsAndShops.cpp file
 
Newbie Spellweaver
Joined
Apr 4, 2008
Messages
50
Reaction score
0
Re: [Release] Kerning Wpn & Armour Shops

Hehe, nice. ^^
I'll test it out soon.

I release Henesys weap, armor & potshop soon.
 
Junior Spellweaver
Joined
Jul 14, 2008
Messages
130
Reaction score
2
Re: [Release] Kerning Wpn & Armour Shops

nice..r
 
Back
Top