v117 Fredrick GMS-Like fix

Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    I'm The God pauljeki is offline
    True MemberRank
    Oct 2011 Join Date
    IsraelLocation
    736Posts

    v117 Fredrick GMS-Like fix


    RaGEZONE Recommends

    RaGEZONE Recommends

    Ok, so here's the release RageZone people. hmm?

    edit the file called: HiredMerchantHandler.java search for displayMerch and replace with this:
    then COMPILE make a store, close it and you'll see.
    claps claps claps enjoy

    Spoiler:

    Code:
    public static void displayMerch(MapleClient c) {
            final int conv = c.getPlayer().getConversation();
            boolean merch = World.hasMerchant(c.getPlayer().getAccountID(), c.getPlayer().getId());
            if (merch) {
                c.getPlayer().dropMessage(1, "Please close the existing store and try again.");
                c.getPlayer().setConversation(0);
            } else if (c.getChannelServer().isShutdown()) {
                c.getPlayer().dropMessage(1, "The world is going to shut down.");
                c.getPlayer().setConversation(0);
            } else if (conv == 3) { // Hired Merch
                final MerchItemPackage pack = loadItemFrom_Database(c.getPlayer().getAccountID());
    
                if (pack == null) {
                    c.getSession().write(NPCPacket.getNPCTalk(9030000, (byte) 0, "I don't think you have any items or money to retrieve here.\r\nThis is where you retrieve the items and mesos that you couldn't get from your Hired Merchant. You'll also need to see me as the character that opened the Personal Store.", "00 00", (byte) 0));
                    c.getPlayer().setConversation(0);
                } else if (pack.getItems().size() <= 0) { //error fix for complainers.
                    if (!check(c.getPlayer(), pack)) {
                        c.getSession().write(PlayerShopPacket.merchItem_Message((byte) 0x21));
                        return;
                    }
                    if (deletePackage(c.getPlayer().getAccountID(), pack.getPackageid(), c.getPlayer().getId())) {
                        //c.getPlayer().fakeRelog();
                        c.getPlayer().gainMeso(pack.getMesos(), false);
                        c.getSession().write(PlayerShopPacket.merchItem_Message((byte) 0x1d));
                        c.getSession().write(NPCPacket.getNPCTalk(9030000, (byte) 0, "I see that you forgot something here right?\r\nHere is your money sir " + pack.getMesos(), "00 00", (byte) 0));
                        c.getPlayer().setConversation(0);
                    } else {
                        c.getPlayer().dropMessage(1, "An unknown error occured.");
                    }
                    c.getPlayer().setConversation(0);
                } else {
                   c.getSession().write(PlayerShopPacket.merchItemStore_ItemData(pack));
                    MapleInventoryManipulator.checkSpace(c, conv, conv, null);
                    for (final Item item : pack.getItems()) {
                        if(c.getPlayer().getInventory(GameConstants.getInventoryType(item.getItemId())).isFull()){
                            c.getSession().write(NPCPacket.getNPCTalk(9030000, (byte) 0, "Sir, if you want your items back please clean up your inventory before you come here!", "00 00", (byte) 0));
                            c.getPlayer().setConversation(0);
                            break;
                        }
                        MapleInventoryManipulator.addFromDrop(c, item, true);
                        deletePackage(c.getPlayer().getAccountID(), pack.getPackageid(), c.getPlayer().getId());
                        c.getSession().write(NPCPacket.getNPCTalk(9030000, (byte) 0, "I saved your items sir, next time don't forget them, have a nice day.", "00 00", (byte) 0));
                        c.getPlayer().setConversation(0);
                    }
                    
                }
            }
            c.getSession().write(CWvsContext.enableActions());
        }


  2. #2
    Account Inactive Exorid is offline
    InactiveRank
    Aug 2012 Join Date
    18Posts

    Re: v117 Fredrick GMS-Like fix

    Quote Originally Posted by pauljeki View Post
    Ok, so here's the release RageZone people. hmm?

    edit the file called: HiredMerchantHandler.java search for displayMerch and replace with this:
    then COMPILE make a store, close it and you'll see.
    claps claps claps enjoy

    Spoiler:

    Code:
    public static void displayMerch(MapleClient c) {
            final int conv = c.getPlayer().getConversation();
            boolean merch = World.hasMerchant(c.getPlayer().getAccountID(), c.getPlayer().getId());
            if (merch) {
                c.getPlayer().dropMessage(1, "Please close the existing store and try again.");
                c.getPlayer().setConversation(0);
            } else if (c.getChannelServer().isShutdown()) {
                c.getPlayer().dropMessage(1, "The world is going to shut down.");
                c.getPlayer().setConversation(0);
            } else if (conv == 3) { // Hired Merch
                final MerchItemPackage pack = loadItemFrom_Database(c.getPlayer().getAccountID());
    
                if (pack == null) {
                    c.getSession().write(NPCPacket.getNPCTalk(9030000, (byte) 0, "I don't think you have any items or money to retrieve here.\r\nThis is where you retrieve the items and mesos that you couldn't get from your Hired Merchant. You'll also need to see me as the character that opened the Personal Store.", "00 00", (byte) 0));
                    c.getPlayer().setConversation(0);
                } else if (pack.getItems().size() <= 0) { //error fix for complainers.
                    if (!check(c.getPlayer(), pack)) {
                        c.getSession().write(PlayerShopPacket.merchItem_Message((byte) 0x21));
                        return;
                    }
                    if (deletePackage(c.getPlayer().getAccountID(), pack.getPackageid(), c.getPlayer().getId())) {
                        //c.getPlayer().fakeRelog();
                        c.getPlayer().gainMeso(pack.getMesos(), false);
                        c.getSession().write(PlayerShopPacket.merchItem_Message((byte) 0x1d));
                        c.getSession().write(NPCPacket.getNPCTalk(9030000, (byte) 0, "I see that you forgot something here right?\r\nHere is your money sir " + pack.getMesos(), "00 00", (byte) 0));
                        c.getPlayer().setConversation(0);
                    } else {
                        c.getPlayer().dropMessage(1, "An unknown error occured.");
                    }
                    c.getPlayer().setConversation(0);
                } else {
                   c.getSession().write(PlayerShopPacket.merchItemStore_ItemData(pack));
                    MapleInventoryManipulator.checkSpace(c, conv, conv, null);
                    for (final Item item : pack.getItems()) {
                        if(c.getPlayer().getInventory(GameConstants.getInventoryType(item.getItemId())).isFull()){
                            c.getSession().write(NPCPacket.getNPCTalk(9030000, (byte) 0, "Sir, if you want your items back please clean up your inventory before you come here!", "00 00", (byte) 0));
                            c.getPlayer().setConversation(0);
                            break;
                        }
                        MapleInventoryManipulator.addFromDrop(c, item, true);
                        deletePackage(c.getPlayer().getAccountID(), pack.getPackageid(), c.getPlayer().getId());
                        c.getSession().write(NPCPacket.getNPCTalk(9030000, (byte) 0, "I saved your items sir, next time don't forget them, have a nice day.", "00 00", (byte) 0));
                        c.getPlayer().setConversation(0);
                    }
                    
                }
            }
            c.getSession().write(CWvsContext.enableActions());
        }
    THANK YOU

  3. #3
    Alpha Member wackyracer is offline
    Alpha MaleRank
    Jun 2008 Join Date
    1,563Posts

    Re: v117 Fredrick GMS-Like fix

    Thanks :) Good release
    wut

  4. #4
    Account Upgraded | Title Enabled! davidling is offline
    True MemberRank
    Jul 2011 Join Date
    450Posts

    Re: v117 Fredrick GMS-Like fix

    Wow Mr.Paul

    thank for the release


    but the NPCPacket should change to be CField?

  5. #5
    may web.very maple.pls. iAkira is offline
    Alpha MaleRank
    Aug 2009 Join Date
    somewhere..Location
    2,383Posts

    Re: v117 Fredrick GMS-Like fix

    shouldn't this be like an npc or somn o.O??

  6. #6
    Chaos is a ladder. AristoCat is offline
    True MemberRank
    Apr 2012 Join Date
    945Posts

    Re: v117 Fredrick GMS-Like fix

    Quote Originally Posted by iAkira View Post
    shouldn't this be like an npc or somn o.O??
    Fredrick sends displayMerch.

  7. #7
    Account Upgraded | Title Enabled! davidling is offline
    True MemberRank
    Jul 2011 Join Date
    450Posts

    Re: v117 Fredrick GMS-Like fix

    lol got the red line at NPCPacket there...

    should change to CField?

  8. #8
    Account Upgraded | Title Enabled! edwinkbs is offline
    True MemberRank
    Apr 2009 Join Date
    MalaysiaLocation
    831Posts

    Re: v117 Fredrick GMS-Like fix

    Quote Originally Posted by davidling View Post
    lol got the red line at NPCPacket there...

    should change to CField?
    your imports.

  9. #9
    while(true) spam(); kevintjuh93 is offline
    ModeratorRank
    Jun 2008 Join Date
    The NetherlandsLocation
    4,118Posts

    Re: v117 Fredrick GMS-Like fix

    One thing to be added to make it GMS-like. If you let you items in there for some time, you will have to pay him money. ohlol
    Quote Originally Posted by mavin0107 View Post
    can anyone tell me how to make pokemon system in lithium work cuz i try to go to a map have pokemon but there are no pokemon in that map
    Quote Originally Posted by MentaL View Post
    ps... if you dont like butterflys then ur a homo.

  10. #10
    Chaos is a ladder. AristoCat is offline
    True MemberRank
    Apr 2012 Join Date
    945Posts

    Re: v117 Fredrick GMS-Like fix

    Actually GMS has an UI window for retrieving items and mesos.

  11. #11
    Account Upgraded | Title Enabled! davidling is offline
    True MemberRank
    Jul 2011 Join Date
    450Posts

    Re: v117 Fredrick GMS-Like fix

    oh man Aristo Cat, your explain make me learn alot!!

    i finaly know how to import :D , now i the NPCPacket red line error is gone

  12. #12
    Chaos is a ladder. AristoCat is offline
    True MemberRank
    Apr 2012 Join Date
    945Posts

    Re: v117 Fredrick GMS-Like fix

    Quote Originally Posted by davidling View Post
    oh man Aristo Cat, your explain make me learn alot!!

    i finaly know how to import :D , now i the NPCPacket red line error is gone
    I just asked you if you ever heard of that button ._.

  13. #13
    Account Upgraded | Title Enabled! davidling is offline
    True MemberRank
    Jul 2011 Join Date
    450Posts

    Re: v117 Fredrick GMS-Like fix

    LOL but it helped me alot~

  14. #14

    Re: v117 Fredrick GMS-Like fix

    Um.. I have 1 problem. Some people doesn't get their mesos from fredrick when their store is closed. and they're losing like 200m+.

  15. #15
    Account Upgraded | Title Enabled! oxysoft is offline
    True MemberRank
    Nov 2008 Join Date
    Canada, QCLocation
    1,403Posts

    Re: v117 Fredrick GMS-Like fix

    Quote Originally Posted by iAkira View Post
    shouldn't this be like an npc or somn o.O??
    In later versions i believe they added a UI
    *Removed by RaGEZONE Staff*




Page 1 of 2 12 LastLast

Advertisement