I came down to this when i were fixing some for my bot.PHP Code:
Item gmp = new Item(client, Tibia.Constants.Items.Potion.GreatManaPotion.Id);
Item smp = new Item(client, Tibia.Constants.Items.Potion.StrongManaPotion.Id);
Item mp = new Item(client, Tibia.Constants.Items.Potion.ManaPotion.Id);
String potiontype = (textBox11.Text);
if ((double)client.Player.Mana / client.Player.ManaMax * int.Parse(textBox9.Text) > int.Parse(textBox10.Text))
{
(potiontype).useonself();
}
Got total brainfreeze haha