[Release] Amoria NPCs all Based on GMS! [FIXED 2 TIMES)
Hey,
I made this npc script (and stilll making) for the shop/hair etc...
it mabby later can be for use, if wedding ever gets added
its handy to have the Thomas teleport script before addings this :)
i add Cosmetic mabby later,
I made:
The Hairsalon
The wedding shop
They are all GMS based
Credits to Chaisoft for helping me
Thanks for Zids for fixing
now it haves male/female
First:
In C++ maplestoryserver source
add to the NPCs folder Amoria.cpp
just place this in Amoria.cpp
http://pastebin.com/f16dbf809
Go to NPCsSCRIPTS.h
and add
Code:
// Amoria
case 9201015: npc_9201015(npc); break;
case 9201016: npc_9201016(npc); break;
Code:
// Amoria
static void npc_9201015(NPC * npc);
static void npc_9201016(NPC * npc);
BTW if you have !shopcoupons command add this to 9999996.xml
in your shops folder:
Code:
<Item>
<ID>5150020</ID>
<Price>4000000</Price>
</Item>
<Item>
<ID>5151017</ID>
<Price>4000000</Price>
</Item>
<Item>
<ID>5150019</ID>
<Price>2000000</Price>
</Item>
<Item>
<ID>5151016</ID>
<Price>2000000</Price>
under:
Code:
<Item>
<ID>5220000</ID>
<Price>2000000</Price>
</Item>
For the Wedding Shop download this: RapidShare: 1-Click Webhosting
and place it in shops folder,
if you already got it, replace the old one whit mine ;)
it only haves effect if you have added all the 62 npcs ;)
GL any ideas/ bugs or stuff are welcome,
please no flame :bad: the code fixed now ;)
Re: [Release] Amoria Hairsalon Based on GMS!
Re: [Release] Amoria Hairsalon Based on GMS!
Do you have any Thomas teleport script really working? Cause with mine's it doesn't even talk to you TT...
BTW, change this is your post:
static void npc_npc_9201015(NPC * npc);
static void npc_npc_9201016(NPC * npc);
It should be
static void npc_9201015(NPC * npc);
static void npc_9201016(NPC * npc);
I added this code too and NPCs seems not to work either... They don't even open a window...
Re: [Release] Amoria Hairsalon Based on GMS!
I get this error
3>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_9201016(class NPC *)" (?npc_9201016@NPCsScripts@@CAXPAVNPC@@@Z)
3>NPCs.obj : error LNK2001: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_9201015(class NPC *)" (?npc_9201015@NPCsScripts@@CAXPAVNPC@@@Z)
Re: [Release] Amoria Hairsalon Based on GMS! [FIXED]
yes i got Thomas working :)
and Zero rebuild solution or build Maplestoryserver
btw code is fixed now il soon add cosmetic
Re: [Release] Amoria Hairsalon Based on GMS! [FIXED]
ok, thanks for the fix works great now :D
Re: [Release] Amoria Hairsalon Based on GMS! [FIXED]
NVM, I had to rebuild the realease now it works fine, thanks a lot! Nice release!
Re: [Release] Amoria NPCs all Based on GMS! [FIXED]
i added the Wedding shop for future use :P
and thanks suggestions are welcome :)
Re: [Release] Amoria NPCs all Based on GMS! [FIXED]
ralazo, 3 things:
1.- Apparently there are no female hairs (I went there with a female character but it only show me male hairs).
2.- Similar to numer 1... A female character must not see the male hairs cause it can crash the server xD.
3.- The "ramdom" (Reg Dying) only gives me black hair color.
Tyvm.
Re: [Release] Amoria NPCs all Based on GMS! [FIXED]
ok thanks zid il try to fix it ;)
Re: [Release] Amoria NPCs all Based on GMS! [FIXED]
Quote:
Originally Posted by
ralazo
ok thanks zid il try to fix it ;)
Hey, just a lil tip. Add this before the hair selection to check for a male char/female char.
Make sure on whatever.cpp file you are using, NPCs.h is included in the directive.
Then you need to add the getGender Fucntion header to 'NPCs.h'
int NPC::getGender();
and in NPCs.cpp add the actual code for the 'getGender' function
int NPC::getGender(){
return player->getGender();
}
and then where ever you are coding, the following will return the gender. :)
if(npc->getGender() == 1){ //insert code} //Checks for Female
if(npc->getGender() == 0){ //insert code} //Check for Male
Now, my rev is not of any official release since I modified my code all over the place, there might be a npc->getGender function implemented in rev 007, I'm not sure.
Re: [Release] Amoria NPCs all Based on GMS! [FIXED AGAIN]
its fixed again now whit female and male, thanks to chia!
Re: [Release] Amoria NPCs all Based on GMS! [FIXED AGAIN]
Getting this error
Amoria.obj : error LNK2019: unresolved external symbol "public: int __thiscall NPC::getGender(void)" (?getGender@NPC@@QAEHXZ) referenced in function "private: static void __cdecl NPCsScripts::npc_9201015(class NPC *)" (?npc_9201015@NPCsScripts@@CAXPAVNPC@@@Z)
Re: [Release] Amoria NPCs all Based on GMS! [FIXED AGAIN]
just rebuild
or build maplestoryserver
Re: [Release] Amoria NPCs all Based on GMS! [FIXED AGAIN]
Rebuilding MS Server does not alliviate the problem
Still same error as Choco