Beispiel #1
0
        public void GiveItem(WWItem item)
        {
            WWPacket givePacket = new WWPacket(PacketType.GiveItem);

            givePacket.data[0] = (byte)item;
            WritePacket(givePacket);
        }
Beispiel #2
0
        public void RevokeItem(WWItem item)
        {
            WWPacket revokePacket = new WWPacket(PacketType.RevokeItem);

            revokePacket.data[0] = (byte)item;
            WritePacket(revokePacket);
        }
Beispiel #3
0
        private void SetSlotFromBox(int index, ComboBox box)
        {
            if (initializing)
            {
                return;
            }

            WWItem value = mailIndices[box.SelectedIndex];

            dolphin.SetMailBagSlot(index, (byte)value);
        }
Beispiel #4
0
 public bool HasItem(WWItem item)
 {
     for (int i = 0; i < 8; i++)
     {
         if (contents[i] == (byte)item)
         {
             return(true);
         }
     }
     return(false);
 }
Beispiel #5
0
 private void ToggleItem(WWItem item, MouseEventArgs e)
 {
     if (trainermode)
     {
         if (e.Button == MouseButtons.Left)
         {
             dolphin.GiveItem(item);
         }
         if (e.Button == MouseButtons.Right)
         {
             dolphin.RevokeItem(item);
         }
     }
 }