public void GiveItem(WWItem item) { WWPacket givePacket = new WWPacket(PacketType.GiveItem); givePacket.data[0] = (byte)item; WritePacket(givePacket); }
public void RevokeItem(WWItem item) { WWPacket revokePacket = new WWPacket(PacketType.RevokeItem); revokePacket.data[0] = (byte)item; WritePacket(revokePacket); }
private void SetSlotFromBox(int index, ComboBox box) { if (initializing) { return; } WWItem value = mailIndices[box.SelectedIndex]; dolphin.SetMailBagSlot(index, (byte)value); }
public bool HasItem(WWItem item) { for (int i = 0; i < 8; i++) { if (contents[i] == (byte)item) { return(true); } } return(false); }
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); } } }