[Release] Amoria NPCs all Based on GMS! [FIXED 2 TIMES)

Results 1 to 24 of 24
  1. #1
    Account Upgraded | Title Enabled! ralazo is offline
    MemberRank
    Apr 2007 Join Date
    Yeah.Location
    226Posts

    [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 ;)
    Last edited by ralazo; 17-04-08 at 04:35 PM.


  2. #2
    Account Upgraded | Title Enabled! nitros is offline
    MemberRank
    Sep 2005 Join Date
    lllllllllllllllLocation
    538Posts

    Re: [Release] Amoria Hairsalon Based on GMS!

    thanks allot

  3. #3
    Member zids is offline
    MemberRank
    Oct 2007 Join Date
    73Posts

    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...

  4. #4
    Member Zero is offline
    MemberRank
    Jan 2007 Join Date
    61Posts

    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)

  5. #5
    Account Upgraded | Title Enabled! ralazo is offline
    MemberRank
    Apr 2007 Join Date
    Yeah.Location
    226Posts

    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

  6. #6
    Member Zero is offline
    MemberRank
    Jan 2007 Join Date
    61Posts

    Re: [Release] Amoria Hairsalon Based on GMS! [FIXED]

    ok, thanks for the fix works great now :D

  7. #7
    Member zids is offline
    MemberRank
    Oct 2007 Join Date
    73Posts

    Re: [Release] Amoria Hairsalon Based on GMS! [FIXED]

    NVM, I had to rebuild the realease now it works fine, thanks a lot! Nice release!

  8. #8
    Account Upgraded | Title Enabled! ralazo is offline
    MemberRank
    Apr 2007 Join Date
    Yeah.Location
    226Posts

    Re: [Release] Amoria NPCs all Based on GMS! [FIXED]

    i added the Wedding shop for future use :P
    and thanks suggestions are welcome :)

  9. #9
    Member zids is offline
    MemberRank
    Oct 2007 Join Date
    73Posts

    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.

  10. #10
    Account Upgraded | Title Enabled! ralazo is offline
    MemberRank
    Apr 2007 Join Date
    Yeah.Location
    226Posts

    Re: [Release] Amoria NPCs all Based on GMS! [FIXED]

    ok thanks zid il try to fix it ;)

  11. #11
    Valued Member chiasoft is offline
    MemberRank
    Apr 2008 Join Date
    126Posts

    Re: [Release] Amoria NPCs all Based on GMS! [FIXED]

    Quote Originally Posted by ralazo View Post
    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.

  12. #12
    Account Upgraded | Title Enabled! ralazo is offline
    MemberRank
    Apr 2007 Join Date
    Yeah.Location
    226Posts

    Re: [Release] Amoria NPCs all Based on GMS! [FIXED AGAIN]

    its fixed again now whit female and male, thanks to chia!

  13. #13
    Valued Member KremeChoco is offline
    MemberRank
    Apr 2008 Join Date
    103Posts

    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)

  14. #14
    Account Upgraded | Title Enabled! ralazo is offline
    MemberRank
    Apr 2007 Join Date
    Yeah.Location
    226Posts

    Re: [Release] Amoria NPCs all Based on GMS! [FIXED AGAIN]

    just rebuild
    or build maplestoryserver

  15. #15
    Account Upgraded | Title Enabled! Krytical is offline
    MemberRank
    Apr 2008 Join Date
    411Posts

    Re: [Release] Amoria NPCs all Based on GMS! [FIXED AGAIN]

    Rebuilding MS Server does not alliviate the problem
    Still same error as Choco

  16. #16
    Account Upgraded | Title Enabled! Krytical is offline
    MemberRank
    Apr 2008 Join Date
    411Posts

    Re: [Release] Amoria NPCs all Based on GMS! [FIXED AGAIN]

    Double post

  17. #17
    Account Upgraded | Title Enabled! npmaple is offline
    MemberRank
    Apr 2008 Join Date
    Israel - a bad placeLocation
    281Posts

    Re: [Release] Amoria NPCs all Based on GMS! [FIXED AGAIN]

    i wouldnt add cuz i think the styles at amoria are not so "buitiful"...
    anyway i dont have power to click the link

  18. #18
    Member zids is offline
    MemberRank
    Oct 2007 Join Date
    73Posts

    Re: [Release] Amoria NPCs all Based on GMS! [FIXED AGAIN]

    Ok I did a "fix" for your code...

    Here's the amoria.cpp

    http://pastebin.com/f16dbf809 (Includes the female vip hair fix)

    It's the same as ralazo's but with a change in the getGender function so it works now.

    With this amoria.cpp YOU WONT DO THIS STEP

    Open NPCs.h and search for

    Code:
    void giveEXP(int exp);
    under it add:
    Code:

    Code:
    int NPC::getGender();
    You only need to do the NPCsScripts.h modifications in the main post.

    If anyone needs help I'll gladly help.


    Note: ralazo you are doing great but here's some "errors" in your script, 1st, you set the same hair codes for both male and female characters in the VIP NPC (I fixed that in my amoria.cpp), fix that plox. 2nd, the REG Dying Hair keeps giving me only black hair. Thanks for your work.

  19. #19
    Account Upgraded | Title Enabled! ralazo is offline
    MemberRank
    Apr 2007 Join Date
    Yeah.Location
    226Posts

    Re: [Release] Amoria NPCs all Based on GMS! [FIXED AGAIN]

    huh zids?
    the female codes are changed? for vip?
    already didt that...
    and i already added the int NPC::getGender(); before u posted it? lol :P

  20. #20
    Member zids is offline
    MemberRank
    Oct 2007 Join Date
    73Posts

    Re: [Release] Amoria NPCs all Based on GMS! [FIXED AGAIN]

    Quote Originally Posted by ralazo View Post
    huh zids?
    the female codes are changed? for vip?
    already didt that...
    and i already added the int NPC::getGender(); before u posted it? lol :P
    Check my post again, I DID NOT ADD the NPC::getGender() because it gave me compiling problems (like the ones Krytical and KremeChoco had).

    I changed that NPC::getGender() thing for this:

    Player* player = npc->getPlayer();
    if(player->getGender() == 0){

    See the difference? No needing to add any new functions.

    And regarding the female codes... Check your code, you have this:

    if(npc->getGender() == 0){
    int state = npc->getState();
    int hairs[] = {30030, 30020, 30000, 30480, 30310, 30330, 30060, 30150, 30410, 30210, 30140, 30120, 30200};
    ...
    else if(npc->getGender() == 1){
    int state = npc->getState();
    int hairs[] = {30030, 30020, 30000, 30480, 30310, 30330, 30060, 30150, 30410, 30210, 30140, 30120, 30200};

    See? You STILL have the same hairs for both male and female characters in your VIP NPC. Just need to change the female hairs to:

    int hairs[] = {31030, 31020, 31000, 31480, 31310, 31330, 31060, 31150, 31410, 31210, 31140, 31120, 31200, 31560, 31510, };

    You did change it at the REG NPC but didn't change it at the VIP one xD.

    Check it out :thumbsup:

  21. #21
    Account Upgraded | Title Enabled! ralazo is offline
    MemberRank
    Apr 2007 Join Date
    Yeah.Location
    226Posts

    Re: [Release] Amoria NPCs all Based on GMS! [FIXED AGAIN]

    ok thanks il upload your script :)

  22. #22
    Member zids is offline
    MemberRank
    Oct 2007 Join Date
    73Posts

    Re: [Release] Amoria NPCs all Based on GMS! [FIXED 2 TIMES)

    And remove the part when you need to add the

    int NPC::getGender();

    In the main post, no need for that anymore xD. Good work btw! Care to explain me the ramdom function? I mean, can you explain me what "int random = rand()% 7 + 1;" does? xD I wanna learn :P.

  23. #23
    Valued Member Jose3232 is offline
    MemberRank
    Jul 2008 Join Date
    In front of the PCLocation
    109Posts

    Re: [Release] Amoria NPCs all Based on GMS! [FIXED 2 TIMES)

    Id say this is a good release :)

  24. #24
    warp(california, "home"); LameJacob is offline
    MemberRank
    Sep 2008 Join Date
    CaliforniaLocation
    537Posts

    Re: [Release] Amoria NPCs all Based on GMS! [FIXED 2 TIMES)

    Crazy old post.



Advertisement