diff --git a/BSBshared/BotTypes/BasicBot.cs b/BSBshared/BotTypes/BasicBot.cs index 34b6912..68661fb 100644 --- a/BSBshared/BotTypes/BasicBot.cs +++ b/BSBshared/BotTypes/BasicBot.cs @@ -27,6 +27,11 @@ namespace BetterSecondBotShared.bottypes public bool KillMe { get { return killMe; } } + protected bool teleported; + public void SetTeleported() + { + teleported = true; + } protected Dictionary mygroups = new Dictionary(); @@ -162,6 +167,7 @@ namespace BetterSecondBotShared.bottypes if (FromAgentName == myconfig.master) { ResetAnimations(); + SetTeleported(); Client.Self.TeleportLureRespond(FromAgentID, IMSessionID, true); } } diff --git a/Core/bottypes/EventsBot.cs b/Core/bottypes/EventsBot.cs index 96c906d..6269c12 100644 --- a/Core/bottypes/EventsBot.cs +++ b/Core/bottypes/EventsBot.cs @@ -290,6 +290,8 @@ namespace BSB.bottypes protected Dictionary await_event_ages = new Dictionary(); protected Dictionary await_event_idtolistener = new Dictionary(); protected int next_await_id = 1; + + public bool CreateAwaitEventReply(string event_listener, CoreCommand command, string[] args) { string eventid = "" + event_listener + "" + next_await_id.ToString() + ""; diff --git a/Core/bottypes/athome.cs b/Core/bottypes/athome.cs index c754499..7d54669 100644 --- a/Core/bottypes/athome.cs +++ b/Core/bottypes/athome.cs @@ -134,7 +134,8 @@ namespace BSB.bottypes protected int last_tested_home_id = -1; protected long last_tp_attempt_unixtime; protected bool after_login_fired; - protected bool teleported; + + protected long last_reconnect_attempt; protected bool reconnect_mode; protected string last_attempted_teleport_region = ""; @@ -185,10 +186,7 @@ namespace BSB.bottypes AfterLoginSitDown = false; } - public void SetTeleported() - { - teleported = true; - } + protected void AvoidSim(string simname) {