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!

MTS button open a shop

Status
Not open for further replies.
Junior Spellweaver
Joined
Feb 3, 2008
Messages
183
Reaction score
2
This is a useless release but... i do this to learn java XP... (I almost finish the edit of the Supiangel... The Mutant Snail... the problem was that the .xml have to finish at 9999999.img i will change the name and test)

Tested! so you just have to go to net\sf\odinms\net\channel\handler

Then open EnterMTSHandler.java and DELETE All then put this :

PHP:
/*
    This file is part of the OdinMS Maple Story Server
    Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc> 
                       Matthias Butz <matze@odinms.de>
                       Jan Christian Meyer <vimes@odinms.de>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License version 3
    as published by the Free Software Foundation. You may not use, modify
    or distribute this program under any other version of the
    GNU Affero General Public License.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

  package net.sf.odinms.net.channel.handler;

 import net.sf.odinms.server.MapleShopFactory; 
 import net.sf.odinms.server.MapleShop;
 import net.sf.odinms.client.MapleClient;
 import net.sf.odinms.net.AbstractMaplePacketHandler;
 import net.sf.odinms.tools.MaplePacketCreator;
 import net.sf.odinms.tools.data.input.SeekableLittleEndianAccessor;
 import net.sf.odinms.net.channel.ChannelServer;

 public class EnterMTSHandler extends AbstractMaplePacketHandler {
       @Override
       public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
                MapleShopFactory sfact = MapleShopFactory.getInstance();
                MapleShop shop = sfact.getShop(heregoestheshopid);
                shop.sendShop(c);
                c.getSession().write(MaplePacketCreator.enableActions());
            }
}

Bugs : When you open the shop and close it , you have to do !fakerelog or CC or change map to open it again

Just change the ...(heregoestheshopid); with the shopid... EXAMPLE : ...(1337);

Credits : Me? XP
 
Last edited:
Newbie Spellweaver
Joined
May 21, 2008
Messages
99
Reaction score
0
Re: [Mini-RELEASE] MTS button open a shop

good job, but i think its kinda useless cuz every1 uses the mts button for warping to fm :S
, no offence
 
Junior Spellweaver
Joined
Feb 3, 2008
Messages
183
Reaction score
2
Re: [Mini-RELEASE] MTS button open a shop

good job, but i think its kinda useless cuz every1 uses the mts button for warping to fm :S
, no offence

ya , i know... xD! i wrongly write isnt XP the right word is "is" xD...
 
Master Summoner
Loyal Member
Joined
Apr 20, 2008
Messages
578
Reaction score
76
Re: [Mini-RELEASE] MTS button open a shop

Code:
c.getSession().write(MaplePacketCreator.enableActions());

Add that to solve your bug, whee.
 
Experienced Elementalist
Loyal Member
Joined
Apr 23, 2008
Messages
240
Reaction score
0
Re: [Mini-RELEASE] MTS button open a shop

Wansn't this released on the odinms forums quite a while ago?
 
Master Summoner
Loyal Member
Joined
Apr 27, 2008
Messages
596
Reaction score
0
Re: [Mini-RELEASE] MTS button open a shop

Getting you warped is better in my opinion.
 
Junior Spellweaver
Joined
Feb 3, 2008
Messages
183
Reaction score
2
Re: [Mini-RELEASE] MTS button open a shop

Code:
c.getSession().write(MaplePacketCreator.enableActions());
Add that to solve your bug, whee.

dude... it worked XP

*Edited the first post*

New bug
 
Status
Not open for further replies.
Back
Top