Update Parcel.cs

This commit is contained in:
Madpeterz 2021-02-26 03:59:42 +00:00
parent d10ef9feae
commit bed2e18575

View file

@ -460,6 +460,24 @@ namespace BetterSecondBot.HttpService
return Failure(tests.Value);
}
Dictionary<string, string> reply = new Dictionary<string, string>();
int delays = 0;
bool haslookup = true;
while ((haslookup == true) || (delays < 3))
{
haslookup = false;
foreach (ParcelAccessEntry e in targetparcel.AccessBlackList)
{
if(bot.FindAvatarKey2Name(e.AgentID) == "lookup")
{
haslookup = true;
}
}
if(haslookup == true)
{
Thread.Sleep(1000);
delays++;
}
}
foreach (ParcelAccessEntry e in targetparcel.AccessBlackList)
{
string name = bot.FindAvatarKey2Name(e.AgentID);