Ejemplo n.º 1
0
        public void processVendorOpen(ref byte[] objectID)
        {
            // ToDo: Dynamic Shop Vendors
            PacketContent pak = new PacketContent();

            Vendor vendor = DataLoader.getInstance().getVendorByGoIDandMetrId(NumericalUtils.ByteArrayToUint32(objectID, 1), 1);

            if (vendor != null)
            {
                // ToDo: send the Packet (and give it the items ?)
                ServerPackets serverPacket = new ServerPackets();
                serverPacket.sendVendorWindow(Store.currentClient, vendor);
            }

            //pak.addHexBytes("810D7CADD943000000A07EB1D1400000008000BEA940000000E0E74CA7402000140000140080002000800018008000040080002C008000F4118000540680004C088000BC06800000068000AC058000700D8000740D8000900D8000940D8000980D80009C0D8000240080003C0080001C0080");
            //Store.currentClient.messageQueue.addRpcMessage(pak.returnFinalPacket());
        }