Lith Harbor Shops

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Member DragonEyes is offline
    MemberRank
    Apr 2008 Join Date
    72Posts

    Lith Harbor Shops


    ##################################################
    Again a shop package of me!
    I know... It's not that great, but anyway I hope you like it. :)
    What does this thing include:

    Lith Harbor - Potion Shop
    Lith Harbor - Weapon Shop
    Lith Harbor - Armor Shop

    Here's a little guide.

    1) Download this .zip file with 3 XML files in it. [Click]
    2) Extract it, and place the XML files in the MapleStoryServer/Shops map.
    3) Open the page NPCsScripts.h
    Add this:
    Code:
                case 1001000: npc_1001000(npc); break;
                case 1001001: npc_1001001(npc); break;
                case 1001100: npc_1001100(npc); break;
    And this:
    Code:
        static void npc_1001000(NPC* npc);
        static void npc_1001001(NPC* npc);
        static void npc_1001100(NPC* npc);
    4) Open MapleIsland.cpp, and add the following code somewhere.
    It doesn't matter where, as long it's not in another NPC o.O"
    Code:
    // LITH HARBOUR - DEPARTMENT STORE
    void NPCsScripts::npc_1001100(NPC* npc){
        int state = npc->getState();
        if(state == 0){
            npc->showShop();
           }
           npc->end();           
         }
    
    // LITH HARBOUR - WEAPON & ARMOR SHOP
    void NPCsScripts::npc_1001000(NPC* npc){
        int state = npc->getState();
        if(state == 0){
            npc->showShop();
           }
           npc->end();           
         }
    
    void NPCsScripts::npc_1001001(NPC* npc){
        int state = npc->getState();
        if(state == 0){
            npc->showShop();
           }
           npc->end();           
         }
    Good luck,
    Hope ya like it!

    ##################################################


  2. #2
    Account Upgraded | Title Enabled! PixmaDragon is offline
    MemberRank
    Apr 2008 Join Date
    Planet EarthLocation
    560Posts

    Re: [Release] Lith Harbor Shops

    Work's GW

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

    Re: [Release] Lith Harbor Shops

    yay i needed these shops to complete my lith harbor [=
    time to test .

  4. #4
    Member DragonEyes is offline
    MemberRank
    Apr 2008 Join Date
    72Posts

    Re: [Release] Lith Harbor Shops

    @Pixma: That doesn't have to do anything with my script.
    It's an error in 'player s.cpp'.
    ^^

  5. #5
    Apprentice im sure is offline
    MemberRank
    Apr 2008 Join Date
    19Posts

    Re: [Release] Lith Harbor Shops

    tnx (:

  6. #6
    Apprentice Yang is offline
    MemberRank
    Apr 2008 Join Date
    7Posts

    Re: [Release] Lith Harbor Shops

    Code:
    // LITH HARBOUR - DEPARTMENT STORE
    void NPCsScripts::npc_1001100(NPC* npc){
        int state = npc->getState();
        if(state == 0){
            npc->showShop();
           }
           npc->end();           
         }
     
    // LITH HARBOUR - WEAPON & ARMOR SHOP
    void NPCsScripts::npc_1001000(NPC* npc){
        int state = npc->getState();
        if(state == 0){
            npc->showShop();
           }
           npc->end();           
         }
     
    void NPCsScripts::npc_1001001(NPC* npc){
        int state = npc->getState();
        if(state == 0){
            npc->showShop();
           }
           npc->end();           
         }
    Good luck,
    Hope ya like it!

    ##################################################
    Wrong code u need creates includes for NPC and NPCsScripts

    Code:
    #include "NPCs.h"
    #include "NPCsScripts.h"
    #include "Player.h"
    #include "Levels.h"
    
    void NPCsScripts::npc_1001100(NPC* npc){
        int state = npc->getState();
        if(state == 0){
            npc->showShop();
           }
           npc->end();           
         }
    
    void NPCsScripts::npc_1001000(NPC* npc){
        int state = npc->getState();
        if(state == 0){
            npc->showShop();
           }
           npc->end();           
         }
    
    void NPCsScripts::npc_1001001(NPC* npc){
        int state = npc->getState();
        if(state == 0){
            npc->showShop();
           }
           npc->end();           
         }
    The correct script and work without error's

    don't are sure if the

    Code:
     
    #include players.h
    #include levels.h
    are the correct ^^

    but it's works perfectly

  7. #7
    Alpha Member WGFreak is offline
    MemberRank
    Jun 2007 Join Date
    Planet Earth.Location
    1,469Posts

    Re: [Release] Lith Harbor Shops

    Good job. works.

  8. #8
    ElViejo aa223 is offline
    MemberRank
    Apr 2008 Join Date
    SomewhereLocation
    395Posts

    Re: [Release] Lith Harbor Shops

    1>------ Build started: Project: MapleStoryServer, Configuration: Debug Win32 ------
    1>Compiling...
    1>1st Job.cpp
    1>c:\documents and settings\adiel\desktop\maplestoryserver\maplestoryserver\npcs\1st job.cpp(1) : fatal error C1083: Cannot open include file: 'NPCs.h': No such file or directory
    1>Lith Harbor Shop.cpp
    1>c:\documents and settings\adiel\desktop\maplestoryserver\maplestoryserver\npcs\lith harbor shop.cpp(1) : fatal error C1083: Cannot open include file: 'NPCs.h': No such file or directory
    1>Generating Code...
    1>Build log was saved at "file://c:\Documents and Settings\Adiel\Desktop\MapleStoryServer\MapleStoryServer\Debug\BuildLog.htm"
    1>MapleStoryServer - 2 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========


    I got this error and the NPCs.h is included in the file so what did I do wrong?

  9. #9
    Member Mr.Baked is offline
    MemberRank
    Apr 2008 Join Date
    52Posts

    Re: [Release] Lith Harbor Shops

    I tried it and i came up with this error:
    f:\misc\maplestory\titanmsrev005\maplestoryserver\maplestoryserver\mapleisland.cpp(28) : error C2084: function 'void NPCsScripts::npc_1001100(NPC *)' already has a body
    f:\misc\maplestory\titanmsrev005\maplestoryserver\maplestoryserver\npcsscripts.h(58) : see previous definition of 'npc_1001100'

  10. #10
    Proficient Member DUfire is offline
    MemberRank
    Dec 2006 Join Date
    175Posts

    Re: [Release] Lith Harbor Shops

    AHH! More shops! :]

    Btw, where can I find NPC ID's? o.O

  11. #11
    Apprentice yuppers is offline
    MemberRank
    Apr 2007 Join Date
    13Posts

    Re: [Release] Lith Harbor Shops

    When i try sell items it buys another of that item instead.....weird..

  12. #12
    Proficient Member DUfire is offline
    MemberRank
    Dec 2006 Join Date
    175Posts

    Re: [Release] Lith Harbor Shops

    Quote Originally Posted by yuppers View Post
    When i try sell items it buys another of that item instead.....weird..
    That's actually a server source bug.
    It does that in the GM shop too.

  13. #13
    Apprentice yuppers is offline
    MemberRank
    Apr 2007 Join Date
    13Posts

    Re: [Release] Lith Harbor Shops

    no fix for it yet?

  14. #14
    Valued Member NeverGiveUp315 is offline
    MemberRank
    Sep 2007 Join Date
    123Posts

    Re: [Release] Lith Harbor Shops

    Really good job it works 100% thanks alot man if u have any links for more shops give me pls =)

  15. #15
    Member xxfallenangel is offline
    MemberRank
    Aug 2008 Join Date
    84Posts

    Re: [Release] Lith Harbor Shops

    cool



Page 1 of 2 12 LastLast

Advertisement