Thrown together,.. Somethings are missing/incorrect, but you should get the idea.
Code:
private bool lfp; //looking for port
private bool pf; //port found
private bool npf; //no port found
bool lfp = true;
If (lfp)
{
Console.Write("/who all druid 30 40")
for( int i = 1; i <= 10; i++)
{
Console.Writeline("/tell druidname can I get a port?");
if (pf)
{
return;
}
}
}
else if (!npf)
{
Console.Write("/who all druid 40 50")
for( int i = 1; i <= 10; i++)
{
Console.Writeline("/tell druidname can I get a port?");
if (pf)
{
return;
}
}
}
else if (!npf)
{
Console.Write("/who all druid 50 60")
for( int i = 1; i <= 10; i++)
{
Console.Writeline("/tell druidname can I get a port?");
if (pf)
{
return;
}
}
}
else
{
Console.Writeling("/camp");
}