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 =/
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)
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...
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.
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)
Quote:
Originally Posted by
zomgno1
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.
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?
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)
Quote:
Originally Posted by
Fiosre
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.
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
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)
Quote:
Originally Posted by
rivo3622
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);
}
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
Quote:
this:
Code:
void NPC::setSP(short sp)
{
player->setSp(sp);
}
above this:
Code:
void NPC::setPlayerHP(short hp){
player->setHP(hp);
}
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)
Quote:
Originally Posted by
rivo3622
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
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)
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)
Quote:
Originally Posted by
rivo3622
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?
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
Re: [Release]1st and 2nd Job Npcs (Have to collect dark marbles for 2nd job adv.)
Quote:
Originally Posted by
rivo3622
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
http://i35.photobucket.com/albums/d1...4/helpness.jpg