View Single Post
  #2  
Old 05-17-2015, 09:32 PM
Baler Baler is offline
Planar Protector

Baler's Avatar

Join Date: Mar 2014
Posts: 9,523
Default

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");
}
Last edited by Baler; 05-17-2015 at 09:35 PM..