Update Parcel.cs
This commit is contained in:
parent
d10ef9feae
commit
bed2e18575
1 changed files with 18 additions and 0 deletions
|
|
@ -460,6 +460,24 @@ namespace BetterSecondBot.HttpService
|
||||||
return Failure(tests.Value);
|
return Failure(tests.Value);
|
||||||
}
|
}
|
||||||
Dictionary<string, string> reply = new Dictionary<string, string>();
|
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)
|
foreach (ParcelAccessEntry e in targetparcel.AccessBlackList)
|
||||||
{
|
{
|
||||||
string name = bot.FindAvatarKey2Name(e.AgentID);
|
string name = bot.FindAvatarKey2Name(e.AgentID);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue