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!

[Release] 1st, 2nd, 3rd Job NPCs

Newbie Spellweaver
Joined
Nov 28, 2007
Messages
55
Reaction score
0
I didn't add 4th job because it doesn't work...

So here are step by step instructions.

Download these files and place them with all your other files.


In Visual C++ thing have your solution open then open the two files.
Click 1stJob.ccthen click File-> Move 1stJob.cc to then click MapleStoryServer
Click 3rdJob.cpp then click File-> Move 3rdJob.cpp to then click MapleStoryServer

Add this to your NPCScripts.h
Code:
			case 1012100: npc_1012100(npc); break; //Athena Pierce
			case 1032001: npc_1032001(npc); break; //Grendel the Really Old
			case 1022000: npc_1022000(npc); break; //Dances with Balrog
			case 1052001: npc_1052001(npc); break; //Dark Lord
			case 2020008: npc_2020008(npc); break; //Tylus - 3rd Job Warrior
			case 2020010: npc_2020010(npc); break; //Rene - 3rd Job Archer
			case 2020011: npc_2020011(npc); break; //Arec - 3rd Job Thief
			case 2020009: npc_2020009(npc); break; //Robeira - 3rd Job Wizard

and this as well
Code:
	static void npc_1012100(NPC* npc); //Athena Pierce
	static void npc_1032001(NPC* npc); //Grendel the Really Old
	static void npc_1022000(NPC* npc); //Dances with Balrog
	static void npc_1052001(NPC* npc); //Dark Lord
	static void npc_2020008(NPC* npc); //Tylus - 3rd Job Warrior
	static void npc_2020010(NPC* npc); //Rene - 3rd Job Archer
	static void npc_2020011(NPC* npc); //Arec - 3rd Job Thief
	static void npc_2020009(NPC* npc); //Robeira - 3rd Job

Go into NPCs.cpp and add this anywhere IF YOU DO NOT ALREADY HAVE IT
Code:
void NPC::setAP(short ap)
{
	player->setAp(ap);
}
void NPC::setSP(short sp)
{
	player->setSp(sp);
}

Go into NPCs.h and add this anywhere IF YOU DO NOT ALREADY HAVE IT
Code:
	void setAP(short ap);
	void setSP(short sp);
Put it under void giveEXP(int exp); or something.


There you go, if you get errors you didnt follow this right.
 
Last edited:
Newbie Spellweaver
Joined
Apr 2, 2008
Messages
59
Reaction score
0
Great, and do most of the skills work properly?
 
Newbie Spellweaver
Joined
Apr 2, 2008
Messages
30
Reaction score
0
nvm finally goti

so this npcs works like if ur lvl 10 u can make ur 1st job?
 
Newbie Spellweaver
Joined
Aug 16, 2007
Messages
91
Reaction score
0
To above post:

Same here and I made it like this..

Code:
    }
    int getPlayerHair();
    int getPlayerEyes();
    void setPlayerHP(short hp);
    short getPlayerHP();
    void addQuest(short questid);
    void endQuest(short questid);
    void giveEXP(int exp);
    void setAP(short ap)
 
Experienced Elementalist
Joined
Oct 26, 2006
Messages
260
Reaction score
62
I always get errors something like this when adding jobs -_-
Code:
1>NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_2020009(class NPC *)" (?npc_2020009@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
1>NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_2020011(class NPC *)" (?npc_2020011@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
1>NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_2020010(class NPC *)" (?npc_2020010@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
1>NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_2020008(class NPC *)" (?npc_2020008@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
1>NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1052001(class NPC *)" (?npc_1052001@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
1>NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1022000(class NPC *)" (?npc_1022000@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
1>NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1032001(class NPC *)" (?npc_1032001@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
1>NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1012100(class NPC *)" (?npc_1012100@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
1>NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1001100(class NPC *)" (?npc_1001100@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
1>NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1001001(class NPC *)" (?npc_1001001@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
1>NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1001000(class NPC *)" (?npc_1001000@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
1>NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_9201001(class NPC *)" (?npc_9201001@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
1>C:\Documents and Settings\Mariokiller64\Desktop\MapleStoryServer\Debug\MapleStoryServer.exe : fatal error LNK1120: 12 unresolved externals
 
Junior Spellweaver
Joined
Dec 3, 2006
Messages
114
Reaction score
0
This should work good as the base for a different set of 2nd job NPC's.
I actually wanted to use the person you have to go to, to retrieve the dark marbles.

^^;
Thanks!
Many good releases, Rei, keep them coming and good luck in future endeavors.
 
Newbie Spellweaver
Joined
Sep 25, 2007
Messages
83
Reaction score
1
i follow ur steps and i got thise errors pleae help me

1>1stJob.cc
1>c:\maplestoryserver\maplestoryserver\1stjob.cc(51) : error C2039: 'setSP' : is not a member of 'NPC'
1> c:\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>c:\maplestoryserver\maplestoryserver\1stjob.cc(121) : error C2039: 'setSP' : is not a member of 'NPC'
1> c:\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>c:\maplestoryserver\maplestoryserver\1stjob.cc(194) : error C2039: 'setSP' : is not a member of 'NPC'
1> c:\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>c:\maplestoryserver\maplestoryserver\1stjob.cc(268) : error C2039: 'setSP' : is not a member of 'NPC'
1> c:\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>3rdJob.cpp
1>c:\maplestoryserver\maplestoryserver\3rdjob.cpp(47) : error C2039: 'setSP' : is not a member of 'NPC'
1> c:\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>c:\maplestoryserver\maplestoryserver\3rdjob.cpp(89) : error C2039: 'setSP' : is not a member of 'NPC'
1> c:\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>c:\maplestoryserver\maplestoryserver\3rdjob.cpp(131) : error C2039: 'setSP' : is not a member of 'NPC'
1> c:\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>c:\maplestoryserver\maplestoryserver\3rdjob.cpp(176) : error C2039: 'setSP' : is not a member of 'NPC'
1> c:\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>Generating Code...
1>Build log was saved at "file://c:\MapleStoryServer\MapleStoryServer\Debug\BuildLog.htm"
1>MapleStoryServer - 8 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
 
Last edited:
Newbie Spellweaver
Joined
Sep 25, 2007
Messages
83
Reaction score
1
its really strange but cant se beafore all the scrips i should add now i add and i think its work
 
Experienced Elementalist
Joined
Oct 26, 2006
Messages
260
Reaction score
62
-_- the files u gave us to download doesn't even work for me -_-

Code:
[SIZE=1]
1>------ Build started: Project: MapleStoryServer, Configuration: Debug Win32 ------
1>Compiling...
1>3rdJob.cpp
1>c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\3rdjob.cpp(47) : error C2039: 'setSP' : is not a member of 'NPC'
1> c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\3rdjob.cpp(89) : error C2039: 'setSP' : is not a member of 'NPC'
1> c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\3rdjob.cpp(131) : error C2039: 'setSP' : is not a member of 'NPC'
1> c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\3rdjob.cpp(176) : error C2039: 'setSP' : is not a member of 'NPC'
1> c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>1stJob.cc
1>c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\1stjob.cc(51) : error C2039: 'setSP' : is not a member of 'NPC'
1> c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\1stjob.cc(72) : error C2039: 'setAP' : is not a member of 'NPC'
1> c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\1stjob.cc(121) : error C2039: 'setSP' : is not a member of 'NPC'
1> c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\1stjob.cc(146) : error C2039: 'setAP' : is not a member of 'NPC'
1> c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\1stjob.cc(194) : error C2039: 'setSP' : is not a member of 'NPC'
1> c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\1stjob.cc(219) : error C2039: 'setAP' : is not a member of 'NPC'
1> c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\1stjob.cc(268) : error C2039: 'setSP' : is not a member of 'NPC'
1> c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\1stjob.cc(289) : error C2039: 'setAP' : is not a member of 'NPC'
1> c:\documents and settings\mariokiller64\desktop\maplestoryserver\maplestoryserver\npcs.h(41) : see declaration of 'NPC'
1>Generating Code...
1>Build log was saved at "file://c:\Documents and Settings\Mariokiller64\Desktop\MapleStoryServer\MapleStoryServer\Debug\BuildLog.htm"
1>MapleStoryServer - 12 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
[/SIZE]
 
Newbie Spellweaver
Joined
Nov 28, 2007
Messages
55
Reaction score
0
Did you read this part? ...

Go into NPCs.cpp and add this anywhere IF YOU DO NOT ALREADY HAVE IT
Code:

void NPC::setAP(short ap)
{
player->setAp(ap);
}
void NPC::setSP(short sp)
{
player->setSp(sp);
}

Go into NPCs.h and add this anywhere IF YOU DO NOT ALREADY HAVE IT
Code:

void setAP(short ap);
void setSP(short sp);

Put it under void giveEXP(int exp); or something.


There you go, if you get errors you didnt follow this right.
 
Newbie Spellweaver
Joined
Sep 25, 2007
Messages
83
Reaction score
1
after u explaind what too doo it working but only first and second job the 3rd dont work for me if u know why can u tell me please
 
Last edited:
Experienced Elementalist
Joined
Oct 26, 2006
Messages
260
Reaction score
62
Are the NPCs different? Because I can't like talk to any of the job advancment NPCs
 
Back
Top