[Help] Warehouse problem

01/09/2014 16:41 littlechris95#1
Why the item appears perfectly in the inventory and when I put it in the warehouse appears different? Example:

In inventory:
[Only registered and activated users can see links. Click Here To Register...]

In warehouse
[Only registered and activated users can see links. Click Here To Register...]
01/09/2014 16:43 Korvacs#2
You posted the same picture for both.
01/09/2014 16:45 littlechris95#3
Quote:
Originally Posted by Korvacs View Post
You posted the same picture for both.
Sorry, already packed.
01/09/2014 16:53 Korvacs#4
Looks like your warehouse packet hasn't been modified to include the data for souls.
01/09/2014 17:20 littlechris95#5
How do I do this?
01/09/2014 19:27 Super Aids#6
You code it.
01/09/2014 23:00 littlechris95#7
[Only registered and activated users can see links. Click Here To Register...]

I tried the numbers 66 to 100 as offsets and still did not work, what's wrong?
01/09/2014 23:03 teroareboss1#8
just send purification packet , and work nice
01/09/2014 23:09 littlechris95#9
Quote:
Originally Posted by teroareboss1 View Post
just send purification packet , and work nice
Need not be the identifier of the item soul?
01/09/2014 23:11 teroareboss1#10
Code:
   case DepositActionID.DepositItem:
                    {
                        if (Role.Instance.Warehouse.IsWarehouse((MsgNpc.NpcID)ware->NpcID))
                        {
                            MsgGameItem item;
                            if (client.Inventory.TryGetItem(ware->ItemUID, out item))
                            {
                                if (client.Warehouse.AddItem(item, ware->NpcID))
                                {
                                    client.Inventory.Update(item, Role.Instance.AddMode.REMOVE, true);

                                    byte* Warehouse = Game.MsgServer.MsgWarehouse.WarehousePacket.Create(1);
                                    Game.MsgServer.MsgWarehouse.WarehousePacket* Packet = (Game.MsgServer.MsgWarehouse.WarehousePacket*)Warehouse;
                                    Packet->Action = Game.MsgServer.MsgWarehouse.DepositActionID.DepositItem;
                                    Packet->Count = 1;
                                    Packet->NpcID = ware->NpcID;
                                    Game.MsgServer.MsgWarehouse.WarehouseItem* start = (Game.MsgServer.MsgWarehouse.WarehouseItem*)&Packet->Start;
                                    for (byte x = 0; x < Packet->Count; x++)
                                    {
                                        start[x] = Game.MsgServer.MsgWarehouse.WarehouseItem.Create(item.Item);
                                    }
                                    *(ulong*)((byte*)Packet + Packet->Count * 56 + 24) = ServerSockets.Packet.TqPacket;
                                    client.Send((byte*)Packet);

                                    if (item.Refinary.InLife || item.Purification.InLife)
                                    {
                                        Game.MsgServer.MsgItemExtra extra = new MsgItemExtra();
                                        if (item.Purification.InLife)
                                        {
                                            item.Purification.Typ = MsgItemExtra.Typing.PurificationAdding;
                                            extra.Purifications.Add(item.Purification);
                                        }
                                        if (item.Refinary.InLife)
                                        {
                                            item.Refinary.Typ = MsgItemExtra.Typing.RefinaryAdding;
                                            if (item.Refinary.EffectDuration == 0)
                                                item.Refinary.Typ = MsgItemExtra.Typing.PermanentRefinery;
                                            extra.Refinerys.Add(item.Refinary);
                                        }
                                        extra.CreateArray();
                                        client.Send(extra.GetArray());
                                    }
                                }
                            }
                        }
                        break;
                    }
                case DepositActionID.
01/09/2014 23:28 littlechris95#11
It's working perfectly.

[Only registered and activated users can see links. Click Here To Register...]

Thanks a lot!
#Closed
01/09/2014 23:36 Spirited#12
If you want a thread closed, please report your post. Hashtags / pound signs are not request tags. They do nothing. Closed as requested.