How to handle Refinery Items

10/15/2011 02:50 marlyandedsel#1
Just one sample code for 1 items only and I will try to figure out the rest....
thanks.
10/15/2011 02:57 .Kinshi#2
When you send the item to the player, send any refinery types it has (packet 2077).

Item code:
Code:
        public void Send(Entities.Hero h)
        {
            h.Owner.Send(mData);
            if (Artifacts.Count > 0)
            {
                Packets.Structures.ItemArtifact artifact = new Packets.Structures.ItemArtifact();
                artifact.Add(Artifacts);
                h.Owner.Send((Byte[])artifact);
            }
        }
Same goes for dragon souls and what not.
10/17/2011 13:13 -Sensei-#3
I can still get it :D
10/17/2011 20:41 DontSpeakToMe#4
Quote:
Originally Posted by .Kinshi View Post
When you send the item to the player, send any refinery types it has (packet 2077).

Item code:
Code:
        public void Send(Entities.Hero h)
        {
            h.Owner.Send(mData);
            if (Artifacts.Count > 0)
            {
                Packets.Structures.ItemArtifact artifact = new Packets.Structures.ItemArtifact();
                artifact.Add(Artifacts);
                h.Owner.Send((Byte[])artifact);
            }
        }
Same goes for dragon souls and what not.
thx