Exemple #1
0
 protected override void OnCreation()
 {
     Network.GameServer.Send(GameServerMessage.CreateItem,
                             IdManager.GetId(this),
                             _model,
                             (byte)_type,
                             (byte)3,       //unknown
                             _color.Serialize(),
                             (ushort)0,     //materials
                             (byte)0,       //unknown
                             (uint)_flags,
                             0,             //merchantPrice
                             0,             //itemID
                             1,             //quantity
                             new HString(Name).Serialize(),
                             _stats.Select(stat => stat.Serialize()).ToArray());
 }
Exemple #2
0
 protected override void OnCreation()
 {
     Network.GameServer.Send(GameServerMessage.CreateItem,
                             IdManager.GetId(this),
                             _model,
                             (byte)_type,
                             (byte)1,
                             _color.Serialize(),
                             (ushort)0,
                             (byte)0,
                             (uint)_flags,
                             0,
                             0,
                             1,
                             new HString(Name).Serialize(),
                             _stats.Select(stat => stat.Serialize()).ToArray());
 }