Excellzone

Forum and disscussions since 2010


You are not connected. Please login or register

View previous topic View next topic Go down Message [Page 1 of 1]

#1


Hello everyone after putting like 100 threads for questsion about this I finnally got it! I know really much people want this:
when you click on the cashshop button you don't into the cashshop but a shop/npc will open.

why should I use this script?

A: because you disable the cashshop (if you have one) you will get less lagg
B: in the cashshop are not so much items if you let the cashshop button
connects to a npc that sells all nx its way easier to get the equips
you want!


if you are interested read than further:

This script connects you to a SHOP so not a NPC:

1. go to: your repack/src/net/sf/odinms/net/channel/handler.
2. click then on EnterCashShopHandler.
3. replace all the text with this:

Code:
/*
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.client.MapleClient;
import net.sf.odinms.client.messages.ServernoticeMapleClientMessageCallback;
import net.sf.odinms.net.AbstractMaplePacketHandler;
import net.sf.odinms.tools.MaplePacketCreator;
import net.sf.odinms.server.MapleShop;
import net.sf.odinms.server.MapleShopFactory;
import net.sf.odinms.tools.data.input.SeekableLittleEndianAccessor;

public class EnterCashShopHandler extends AbstractMaplePacketHandler {
@Override
public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
new ServernoticeMapleClientMessageCallback(6, c).dropMessage("Put here the text you want when you click on the cashshop button");
c.getSession().write(MaplePacketCreator.enableActions());
MapleShopFactory sfact = MapleShopFactory.getInstance();
MapleShop shop = sfact.getShop(Put here the shopid);
shop.sendShop(c);
}
}

4. Edit the 2 lines I made red to your own information after that save it.
5. after that you have to compile with netbeans or w/e.
To learn compiling you search on google or ragezone here.


This script connects you to a NPC so not a SHOP:

1. go to: your repack/src/net/sf/odinms/net/channel/handler.
2. click then on EnterCashShopHandler.
3. replace all the text with this:

Code:
/*
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.client.MapleClient;
import net.sf.odinms.client.messages.ServernoticeMapleClientMessageCallback;
import net.sf.odinms.net.AbstractMaplePacketHandler;
import net.sf.odinms.tools.MaplePacketCreator;
import net.sf.odinms.server.MapleShop;
import net.sf.odinms.server.MapleShopFactory;
import net.sf.odinms.tools.data.input.SeekableLittleEndianAccessor;
import net.sf.odinms.scripting.npc.NPCScriptManager;

public class EnterCashShopHandler extends AbstractMaplePacketHandler {
@Override
public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
NPCScriptManager.getInstance().start(c, Put here your NPC id);
}
}

4. Edit the line I made red to your own information after that save it.
5. after that you have to compile with netbeans or w/e.
To learn compiling you search on google or ragezone here.

Added: MTS button connects you to a npc/shop!

Some guy gave me an Idea to make the a npc/shop connect by clicking on the MTS button and here you go I made it fast.

This script connects you to a NPC so not a SHOP (MTS button):

1. go to: your repack/src/net/sf/odinms/net/channel/handler.
2. click then on EnterMTSHandler.
3. replace all the text with this:

Code:
/*
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.client.MapleClient;
import net.sf.odinms.client.messages.ServernoticeMapleClientMessageCallback;
import net.sf.odinms.net.AbstractMaplePacketHandler;
import net.sf.odinms.tools.MaplePacketCreator;
import net.sf.odinms.server.MapleShop;
import net.sf.odinms.server.MapleShopFactory;
import net.sf.odinms.tools.data.input.SeekableLittleEndianAccessor;
import net.sf.odinms.scripting.npc.NPCScriptManager;

public class EnterMTSHandler extends AbstractMaplePacketHandler {
@Override
public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
NPCScriptManager.getInstance().start(c, NPC id here!);
}
}

4. Edit the line I made red to your own information after that save it.
5. after that you have to compile with netbeans or w/e.
To learn compiling you search on google or ragezone here.

This script connects you to a SHOP so not a NPC (MTS button):

1. go to: your repack/src/net/sf/odinms/net/channel/handler.
2. click then on EnterMTSHandler.
3. replace all the text with this:

Code:
/*
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.client.MapleClient;
import net.sf.odinms.client.messages.ServernoticeMapleClientMessageCallback;
import net.sf.odinms.net.AbstractMaplePacketHandler;
import net.sf.odinms.tools.MaplePacketCreator;
import net.sf.odinms.server.MapleShop;
import net.sf.odinms.server.MapleShopFactory;
import net.sf.odinms.tools.data.input.SeekableLittleEndianAccessor;

public class EnterMTSHandler extends AbstractMaplePacketHandler {
@Override
public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
new ServernoticeMapleClientMessageCallback(6, c).dropMessage("Put here the text you want when you click on the MTS button");
c.getSession().write(MaplePacketCreator.enableActions());
MapleShopFactory sfact = MapleShopFactory.getInstance();
MapleShop shop = sfact.getShop(Put here the shopid);
shop.sendShop(c);
}
}

4. Edit the 2 lines I made red to your own information after that save it.
5. after that you have to compile with netbeans or w/e.
To learn compiling you search on google or ragezone here.



credits goes to:

> AngryTheBitch
> JooMetDeBanJoo
> Some other guy I forgot his name but im him really thankfull

If you got problems please tell them and we will try to solve them!

View user profile

View previous topic View next topic Back to top Message [Page 1 of 1]


Permissions in this forum:
You cannot reply to topics in this forum