Esempio n. 1
0
 public static void SendPackageGP(WriteBuffer pw, Session p, uint _itemid, uint _itemuid, byte itemtype, int quantity, bool flag = false)
 {
     pw.UInt(_itemid);
     pw.Int(1);
     pw.UInt(_itemuid);
     pw.Int(quantity);
     pw.Int(quantity);
     pw.Short(0);
     pw.HexArray("FF FF 00 00 FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00");
     if (flag)
     {
         p.Inventory.UpdateItem(p.Account.Login, _itemid, quantity, _itemuid);
     }
     else
     {
         p.Inventory.AddItem(p.Account.Login, _itemid, quantity, _itemuid);
     }
 }