private void btnCamp_Click(object sender, EventArgs e)
{
if (CheckedSpawns.Count < 1)
{
MessageBox.Show("You need to select at least one spawn.", "Select a Spawn", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
// check appropriate rooms; warn if overwriting
if (mUI.RoomsPanel.CheckedRooms.Count > 0 &&
MessageBox.Show("This will erase your current settings and selected rooms. Continue?", "Rooms Erase", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.No)
{
return;
}
mUI.RoomsPanel.ClearChecks();
foreach (ListViewItem lvi in CheckedSpawns)
{
// note that this assumes the rooms listview is exactly the rooms list
int i = Pathfinder.FindRoom(int.Parse(lvi.SubItems[2].Text));
mUI.RoomsPanel.CheckRoom(i);
}
mUI.Settings.FilterMobs = false;
mUI.Settings.IgnoreSpawnRage = true;
mUI.Settings.AttackSpawns = true;
mUI.Settings.LvlLimitMin = 0;
mUI.Settings.LvlLimit = 80;
mUI.Settings.RageLimit = 150;
mUI.Settings.AttackMode = Outwar.World.AttackingType.Rooms;
mUI.SyncSettings();
mUI.StartAttacking();
}