A Project for Chronicle 4 based on L2JServer.


    Bug fix for "Private Store - Buy and Manufacture

    Share
    avatar
    Karakan

    Posts : 428
    Join date : 2013-10-04

    Bug fix for "Private Store - Buy and Manufacture

    Post  Karakan on 21st February 2015, 17:38

    Bug fix for "Private Store - Buy" and "Private Store - Manufacture" title visibility for other players.





    Code:
    Index: D:/workspace/Lisvus_GameServer/java/net/sf/l2j/gameserver/model/actor/knownlist/PcKnownList.java
    ===================================================================
    --- D:/workspace/Lisvus_GameServer/java/net/sf/l2j/gameserver/model/actor/knownlist/PcKnownList.java   (revision 507)
    +++ D:/workspace/Lisvus_GameServer/java/net/sf/l2j/gameserver/model/actor/knownlist/PcKnownList.java   (working copy)
    @@ -39,6 +39,7 @@
     import net.sf.l2j.gameserver.serverpackets.NpcInfo;
     import net.sf.l2j.gameserver.serverpackets.PetInfo;
     import net.sf.l2j.gameserver.serverpackets.PetItemList;
    +import net.sf.l2j.gameserver.serverpackets.PrivateStoreMsgBuy;
     import net.sf.l2j.gameserver.serverpackets.PrivateStoreMsgSell;
     import net.sf.l2j.gameserver.serverpackets.RecipeShopMsg;
     import net.sf.l2j.gameserver.serverpackets.RelationChanged;
    @@ -192,13 +193,12 @@
                            }
                    }
     
    -                if (otherPlayer.getPrivateStoreType() == L2PcInstance.STORE_PRIVATE_SELL
    -                  || otherPlayer.getPrivateStoreType() == L2PcInstance.STORE_PRIVATE_PACKAGE_SELL)
    +                if (otherPlayer.getPrivateStoreType() == L2PcInstance.STORE_PRIVATE_SELL || otherPlayer.getPrivateStoreType() == L2PcInstance.STORE_PRIVATE_PACKAGE_SELL)
                       getActiveChar().sendPacket(new PrivateStoreMsgSell(otherPlayer));
                    else if (otherPlayer.getPrivateStoreType() == L2PcInstance.STORE_PRIVATE_BUY)
    -                   getActiveChar().sendPacket(new PrivateStoreMsgSell(otherPlayer));
    +                   getActiveChar().sendPacket(new PrivateStoreMsgBuy(otherPlayer));
                    else if (otherPlayer.getPrivateStoreType() == L2PcInstance.STORE_PRIVATE_MANUFACTURE)
    -                        getActiveChar().sendPacket(new RecipeShopMsg(otherPlayer));
    +                  getActiveChar().sendPacket(new RecipeShopMsg(otherPlayer));
                }
     
                if (object instanceof L2Character)

    fissban

    Posts : 81
    Join date : 2013-12-10

    Re: Bug fix for "Private Store - Buy and Manufacture

    Post  fissban on 22nd February 2015, 03:29

    good fix. thx
    avatar
    Karakan

    Posts : 428
    Join date : 2013-10-04

    Re: Bug fix for "Private Store - Buy and Manufacture

    Post  Karakan on 22nd February 2015, 14:27

    You are welcome! Smile

    Sponsored content

    Re: Bug fix for "Private Store - Buy and Manufacture

    Post  Sponsored content


      Current date/time is 24th November 2017, 09:16