Example #1
0
        public void OnItemCreateResult(SM_ITEM_CREATE_RESULT p)
        {
            long session = p.SessionID;

            if (createItems.ContainsKey(session))
            {
                createItems[session].ID = p.ItemID;
                createItems.TryRemove(session, out Item.Item removed);
            }
        }
Example #2
0
        public void OnItemCreate(Packets.Client.CM_ITEM_CREATE p)
        {
            SM_ITEM_CREATE_RESULT p1 = new SM_ITEM_CREATE_RESULT()
            {
                SessionID = p.SessionID,
                Result    = SM_ITEM_CREATE_RESULT.Results.OK,
                ItemID    = ItemCache.Instance.Create(p.Item)
            };

            Network.SendPacket(p1);
        }