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!

1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

Status
Not open for further replies.
Initiate Mage
Joined
Apr 25, 2008
Messages
3
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

Zero™;3348427 said:
I get the exact same problem [GM] paint, compiles perfectly. I am not sure if it's a rev008 source change that is causing it since I only installed it when I changed to rev008.

Could be just a miss line or something also how would you know?

When it compiles nicely, it doesnt mean you are missing a line. This has something to do with the source actually. Rev 008 is having its share of problems even tho i fixed the major ones like the not being able to shop, thats technically the only prob i had till i wanted to use this script cause i want my server to be as close to gms as possible. Anyways, the regular NPC's work and also i am having some nasty problems with the improved horntail script that im currently trying to fix. When i fix ill release.​
 
Newbie Spellweaver
Joined
Apr 8, 2008
Messages
92
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

im using rev7, whever u talk to the job guy u will dc
 
Newbie Spellweaver
Joined
Mar 23, 2008
Messages
58
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

It worked when I tried it with clean rev 8 files so I'm not sure whats causing the problems you guys are having.
 
Junior Spellweaver
Joined
Mar 2, 2008
Messages
159
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

Could you please upload your .cpp files to mediafire any anywhere except rapidshare?
Because the codes are messed up and un-organized,
Thanks for the release btw.
 
Newbie Spellweaver
Joined
Mar 23, 2008
Messages
58
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

Could you please upload your .cpp files to mediafire any anywhere except rapidshare?
Because the codes are messed up and un-organized,
Thanks for the release btw.

Only the last part was disorganized I'd say, but I just organized it to make it simpler. Though it probably can't get simpler than this:
 
Junior Spellweaver
Joined
Feb 8, 2008
Messages
113
Reaction score
1
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

Rev 7...DC after talking to NPC (Back to Login screen) - NPC Screen is still open =/
 
Junior Spellweaver
Joined
Apr 7, 2008
Messages
121
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

For those that have problems with DC after talking to NPC, try adding else before those ifs. It solved the DC problem. (May need a rebuild)
 
Last edited:
Newbie Spellweaver
Joined
Apr 13, 2008
Messages
14
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

Don't you need to add "Levels.h"?

Because the NPC searches for your level. Let me try it out...
 
Newbie Spellweaver
Joined
Apr 12, 2008
Messages
68
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

The only thing I want to know, is how do you edit so that the monsters drop the black marbles? What folder and what code (I know the code but Just wanna be sure)

Edit: Nvm, fixed.
 
Newbie Spellweaver
Joined
Jul 7, 2007
Messages
12
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

For those that have problems with DC after talking to NPC, try adding else before those ifs. It solved the DC problem. (May need a rebuild)

hi, may i ask witch if's i needa add an else to? or if there is another way to fix the dc problem.
 
Initiate Mage
Joined
May 3, 2008
Messages
1
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

I put in everything you said, and I get this;
1>------ Build started: Project: MapleStoryServer, Configuration: Release Win32 ------
1>Linking...
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072007(class NPC *)" (?npc_1072007@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072005(class NPC *)" (?npc_1072005@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072004(class NPC *)" (?npc_1072004@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072006(class NPC *)" (?npc_1072006@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072003(class NPC *)" (?npc_1072003@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072002(class NPC *)" (?npc_1072002@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072001(class NPC *)" (?npc_1072001@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072000(class NPC *)" (?npc_1072000@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1022000(class NPC *)" (?npc_1022000@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1032001(class NPC *)" (?npc_1032001@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1012100(class NPC *)" (?npc_1012100@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1052001(class NPC *)" (?npc_1052001@NPCsScripts@@CAXPAVNPC@@@Z)
1>C:\Users\Fiosre\Desktop\TitanMSRev005\MapleStoryServer\Release\MapleStoryServer.exe : fatal error LNK1120: 12 unresolved externals
1>Build log was saved at "file://c:\Users\Fiosre\Desktop\TitanMSRev005\MapleStoryServer\MapleStoryServer\Release\BuildLog.htm"
1>MapleStoryServer - 13 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
Halp?
 
Newbie Spellweaver
Joined
Mar 23, 2008
Messages
58
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

I put in everything you said, and I get this;
1>------ Build started: Project: MapleStoryServer, Configuration: Release Win32 ------
1>Linking...
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072007(class NPC *)" (?npc_1072007@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072005(class NPC *)" (?npc_1072005@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072004(class NPC *)" (?npc_1072004@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072006(class NPC *)" (?npc_1072006@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072003(class NPC *)" (?npc_1072003@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072002(class NPC *)" (?npc_1072002@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072001(class NPC *)" (?npc_1072001@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072000(class NPC *)" (?npc_1072000@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1022000(class NPC *)" (?npc_1022000@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1032001(class NPC *)" (?npc_1032001@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1012100(class NPC *)" (?npc_1012100@NPCsScripts@@CAXPAVNPC@@@Z)
1>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1052001(class NPC *)" (?npc_1052001@NPCsScripts@@CAXPAVNPC@@@Z)
1>C:\Users\Fiosre\Desktop\TitanMSRev005\MapleStoryServer\Release\MapleStoryServer.exe : fatal error LNK1120: 12 unresolved externals
1>Build log was saved at "file://c:\Users\Fiosre\Desktop\TitanMSRev005\MapleStoryServer\MapleStoryServer\Release\BuildLog.htm"
1>MapleStoryServer - 13 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
Halp?

If you added the scripts for the npcs into a file that's not already in the project, you'll have to add it to the project.
 
Newbie Spellweaver
Joined
Jan 6, 2005
Messages
46
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

EDIT: fixed most of the errors, now all i got is this:
NPCs.cpp
c:\program files\amorams\maplestoryserver\maplestoryserver\npcs.cpp(277) : error C2084: function 'void NPC::setPlayerHP(short)' already has a body
c:\program files\amorams\maplestoryserver\maplestoryserver\npcs.h(142) : see previous definition of 'setPlayerHP'


help plx
 
Newbie Spellweaver
Joined
Mar 23, 2008
Messages
58
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

EDIT: fixed most of the errors, now all i got is this:
NPCs.cpp
c:\program files\amorams\maplestoryserver\maplestoryserver\npcs.cpp(277) : error C2084: function 'void NPC::setPlayerHP(short)' already has a body
c:\program files\amorams\maplestoryserver\maplestoryserver\npcs.h(142) : see previous definition of 'setPlayerHP'


help plx


probably means you added this
Code:
void NPC::setPlayerHP(short hp){
    player->setHP(hp);
}

instead of this
Code:
void NPC::setSP(short sp)
{
    player->setSp(sp);
}
 
Newbie Spellweaver
Joined
Jan 6, 2005
Messages
46
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

its like this:

int NPC::checkhasItem(Player* player, int item){
return Inventory::hasItem(player, item);
}
int NPC::getItemAmount(int itemid){
return player->inv->getItemAmount(itemid);
}
void NPC::setSp(short sp)
{
player->setSp(sp);
}
void NPC::setPlayerHP(short hp){
player->setHP(hp);
}

and thats how its supposed to be or so it is said in the tut

this:
Code:
void NPC::setSP(short sp)
{
    player->setSp(sp);
}

above this:
Code:
void NPC::setPlayerHP(short hp){
    player->setHP(hp);
}
 
Newbie Spellweaver
Joined
Mar 23, 2008
Messages
58
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

its like this:

int NPC::checkhasItem(Player* player, int item){
return Inventory::hasItem(player, item);
}
int NPC::getItemAmount(int itemid){
return player->inv->getItemAmount(itemid);
}
void NPC::setSp(short sp)
{
player->setSp(sp);
}
void NPC::setPlayerHP(short hp){
player->setHP(hp);
}

and thats how its supposed to be or so it is said in the tut

according to the error you got, it's saying that this
Code:
 void NPC::setPlayerHP(short hp){  
    player->setHP(hp);
}
is in your npcs.cpp file twice, all you have to do is delete one of them
 
Newbie Spellweaver
Joined
Jan 6, 2005
Messages
46
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

once i delete one of those and place the setSP above the setHP i get this:
Code:
NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072007(class NPC *)" (?npc_1072007@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072005(class NPC *)" (?npc_1072005@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072004(class NPC *)" (?npc_1072004@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072006(class NPC *)" (?npc_1072006@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072003(class NPC *)" (?npc_1072003@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072002(class NPC *)" (?npc_1072002@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072001(class NPC *)" (?npc_1072001@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072000(class NPC *)" (?npc_1072000@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
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)
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)
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)
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)
 
Newbie Spellweaver
Joined
Mar 23, 2008
Messages
58
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

once i delete one of those and place the setSP above the setHP i get this:
Code:
NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072007(class NPC *)" (?npc_1072007@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072005(class NPC *)" (?npc_1072005@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072004(class NPC *)" (?npc_1072004@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072006(class NPC *)" (?npc_1072006@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072003(class NPC *)" (?npc_1072003@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072002(class NPC *)" (?npc_1072002@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072001(class NPC *)" (?npc_1072001@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1072000(class NPC *)" (?npc_1072000@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
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)
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)
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)
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)

Did you add the file to the project that you put the script in?
 
Newbie Spellweaver
Joined
Jan 6, 2005
Messages
46
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

what ye talking about? a file into a project? lol sry, i have been using C++ for like 4 hours now and still kinda clueless xD
 
Newbie Spellweaver
Joined
Mar 23, 2008
Messages
58
Reaction score
0
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)

what ye talking about? a file into a project? lol sry, i have been using C++ for like 4 hours now and still kinda clueless xD

this is the project :p
monsoon2004 - 1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.) - RaGEZONE Forums
 
Status
Not open for further replies.
Back
Top