Exemplo n.º 1
0
 internal ClientEventArgs(Client client)
 {
     Client = client;
 }
Exemplo n.º 2
0
 // Updates entity holding via 0x05
 private void SendHoldingEquipment(Client c)
 {
     PacketHandler.SendPacket(new EntityEquipmentPacket
     {
         EntityId = c.EntityId,
         Slot = 0,
         ItemId = c.Inventory.ActiveItem.Type,
         Durability = c.Inventory.ActiveItem.Durability
     });
 }
Exemplo n.º 3
0
 public CommandEventArgs(Client client, string[] tokens)
 {
     Client = client;
     Tokens = tokens;
 }
Exemplo n.º 4
0
 // Updates entity equipment via 0x05
 private void SendEntityEquipment(Client c, short slot)
 {
     PacketHandler.SendPacket(new EntityEquipmentPacket
     {
         EntityId = c.EntityId,
         Slot = slot,
         ItemId = c.Inventory.Slots[slot].Type,
         Durability = 0
     });
 }
Exemplo n.º 5
0
 public CommandEventArgs(Client client, ClientCommand command, string[] tokens)
 {
     Client = client;
     Tokens = tokens;
     Command = command;
 }