Ejemplo n.º 1
0
        //[ClientPacketHandler((RealmServerOpCode.CMSG_INITIATE_TRADE)]
        public static void HandleProposeTrade(IRealmClient client, RealmPacketIn packet)
        {
            var targetGuid = packet.ReadEntityId();
            var targetChr  = World.GetCharacter(targetGuid.Low);

            if (TradeMgr.MayProposeTrade(client.ActiveCharacter, targetChr))
            {
                TradeMgr.Propose(client.ActiveCharacter, targetChr);
            }
        }
Ejemplo n.º 2
0
        public static void HandleProposeTrade(IRealmClient client, RealmPacketIn packet)
        {
            Character character = World.GetCharacter(packet.ReadEntityId().Low);

            if (!TradeMgr.MayProposeTrade(client.ActiveCharacter, character))
            {
                return;
            }
            TradeMgr.Propose(client.ActiveCharacter, character);
        }