teleported status flag
This commit is contained in:
parent
d8878594af
commit
78014adaaf
3 changed files with 11 additions and 5 deletions
|
|
@ -27,6 +27,11 @@ namespace BetterSecondBotShared.bottypes
|
||||||
|
|
||||||
public bool KillMe { get { return killMe; } }
|
public bool KillMe { get { return killMe; } }
|
||||||
|
|
||||||
|
protected bool teleported;
|
||||||
|
public void SetTeleported()
|
||||||
|
{
|
||||||
|
teleported = true;
|
||||||
|
}
|
||||||
|
|
||||||
protected Dictionary<UUID, Group> mygroups = new Dictionary<UUID, Group>();
|
protected Dictionary<UUID, Group> mygroups = new Dictionary<UUID, Group>();
|
||||||
|
|
||||||
|
|
@ -162,6 +167,7 @@ namespace BetterSecondBotShared.bottypes
|
||||||
if (FromAgentName == myconfig.master)
|
if (FromAgentName == myconfig.master)
|
||||||
{
|
{
|
||||||
ResetAnimations();
|
ResetAnimations();
|
||||||
|
SetTeleported();
|
||||||
Client.Self.TeleportLureRespond(FromAgentID, IMSessionID, true);
|
Client.Self.TeleportLureRespond(FromAgentID, IMSessionID, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -290,6 +290,8 @@ namespace BSB.bottypes
|
||||||
protected Dictionary<string, long> await_event_ages = new Dictionary<string, long>();
|
protected Dictionary<string, long> await_event_ages = new Dictionary<string, long>();
|
||||||
protected Dictionary<string, string> await_event_idtolistener = new Dictionary<string, string>();
|
protected Dictionary<string, string> await_event_idtolistener = new Dictionary<string, string>();
|
||||||
protected int next_await_id = 1;
|
protected int next_await_id = 1;
|
||||||
|
|
||||||
|
|
||||||
public bool CreateAwaitEventReply(string event_listener, CoreCommand command, string[] args)
|
public bool CreateAwaitEventReply(string event_listener, CoreCommand command, string[] args)
|
||||||
{
|
{
|
||||||
string eventid = "" + event_listener + "" + next_await_id.ToString() + "";
|
string eventid = "" + event_listener + "" + next_await_id.ToString() + "";
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,8 @@ namespace BSB.bottypes
|
||||||
protected int last_tested_home_id = -1;
|
protected int last_tested_home_id = -1;
|
||||||
protected long last_tp_attempt_unixtime;
|
protected long last_tp_attempt_unixtime;
|
||||||
protected bool after_login_fired;
|
protected bool after_login_fired;
|
||||||
protected bool teleported;
|
|
||||||
|
|
||||||
protected long last_reconnect_attempt;
|
protected long last_reconnect_attempt;
|
||||||
protected bool reconnect_mode;
|
protected bool reconnect_mode;
|
||||||
protected string last_attempted_teleport_region = "";
|
protected string last_attempted_teleport_region = "";
|
||||||
|
|
@ -185,10 +186,7 @@ namespace BSB.bottypes
|
||||||
AfterLoginSitDown = false;
|
AfterLoginSitDown = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetTeleported()
|
|
||||||
{
|
|
||||||
teleported = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void AvoidSim(string simname)
|
protected void AvoidSim(string simname)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue