A Project for Chronicle 4 based on L2JServer.


    Cannot restart while offer trading

    Share
    avatar
    yusuketh

    Posts : 58
    Join date : 2013-07-12

    Cannot restart while offer trading

    Post  yusuketh on 13th July 2014, 08:52

    a simple mod to not restart in trade.

    Code:
    net/sf/l2j/gameserver/clientpackets/Logout.java

            if (player.atEvent)
            {
                player.sendPacket(SystemMessage.sendString("A superior power doesn't allow you to leave the event"));
                player.sendPacket(new ActionFailed());
                return;
            }

    +        if (player.isProcessingTransaction())
    +        {
    +           player.sendMessage("You may not restart while offer trade.");
    +           return;
    +        }



    net/sf/l2j/gameserver/clientpackets/Requestrestart.java

        @Override
        public void runImpl()
        {
            L2PcInstance player = getClient().getActiveChar();
            if (player == null)

                return;


    +        if (player.isProcessingTransaction())
    +        {
    +           player.sendMessage("Cannot restart while offer trading");
    +           return;
    +        }

      Current date/time is 19th November 2017, 18:13