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!

Lith Harbor Shops

Newbie Spellweaver
Joined
Apr 4, 2008
Messages
50
Reaction score
0
DragonEyes - Lith Harbor Shops - RaGEZONE Forums

##################################################
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. [ ]
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!

##################################################
 
Newbie Spellweaver
Joined
Apr 4, 2008
Messages
50
Reaction score
0
Re: [Release] Lith Harbor Shops

@Pixma: That doesn't have to do anything with my script.
It's an error in 'player s.cpp'.
^^
 
Initiate Mage
Joined
Apr 4, 2008
Messages
4
Reaction score
0
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
 
Supreme Arcanarch
Loyal Member
Joined
Jun 13, 2007
Messages
946
Reaction score
2
Re: [Release] Lith Harbor Shops

Good job. works.
 
Newbie Spellweaver
Joined
Apr 6, 2008
Messages
49
Reaction score
0
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?
 
Newbie Spellweaver
Joined
Apr 5, 2008
Messages
20
Reaction score
0
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'
 
Junior Spellweaver
Joined
Dec 3, 2006
Messages
114
Reaction score
0
Re: [Release] Lith Harbor Shops

AHH! More shops! :]

Btw, where can I find NPC ID's? o_O
 
Newbie Spellweaver
Joined
Apr 19, 2007
Messages
8
Reaction score
0
Re: [Release] Lith Harbor Shops

When i try sell items it buys another of that item instead.....weird..
 
Junior Spellweaver
Joined
Dec 3, 2006
Messages
114
Reaction score
0
Re: [Release] Lith Harbor Shops

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.
 
Newbie Spellweaver
Joined
Apr 19, 2007
Messages
8
Reaction score
0
Re: [Release] Lith Harbor Shops

no fix for it yet?
 
Newbie Spellweaver
Joined
Sep 25, 2007
Messages
83
Reaction score
1
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 =)
 
Junior Spellweaver
Joined
Jul 14, 2008
Messages
130
Reaction score
2
Re: [Release] Lith Harbor Shops

waganahgah
 
Back
Top