looks like i have found a problem, if a bot dies (ganked outside) at the moment when he already had exited instance and trying to reenter it, bot does not pop a corpse and keep tring to reenter portal from a corpse
View attachment 2.txt
attention to [17:10:56.592 D] We died, Clearing current POI
and after that he still tries to enter portal from a corpse and after 3 attemps bot just stops itself
upd 01. i managed to fast-fix it adding
probably not the best or even good but working for now
View attachment 2.txt
attention to [17:10:56.592 D] We died, Clearing current POI
and after that he still tries to enter portal from a corpse and after 3 attemps bot just stops itself
upd 01. i managed to fast-fix it adding
PHP:
<CustomBehavior File="Hooks\DoWhen" ActivityName="CustomDeathResetHook" TreeHookName="Ganked" AllowUseDuringCombat="True" AllowExecutionWhileNotAlive="True" UseWhen="(Me.IsDead && !Me.IsInInstance)" >
<DisableBehavior Name="Combat" />
<DisableBehavior Name="Death" />
<CustomBehavior File="Misc\RunLua" Lua="RepopMe();" />
<CustomBehavior File="WaitTimer" WaitTime="1000" />
<CustomBehavior File="Misc\RunLua" Lua="RepopMe();" />
<MoveTo Nav="Fly" X="-529.8305" Y="311.5113" Z="115.4845" />
<CustomBehavior File="GoThruPortal" Timeout="30000" X="3983.473" Y="-2931.715" Z="1002.547" />
<CustomBehavior File="Misc\RunLua" Lua="ResetInstances();" />
<CustomBehavior File="RunCode" Code="deathCounter=0;" />
<CustomBehavior File="RunCode" Code="ProfileManager.LoadNew(ProfileManager.XmlLocation);" />
<EnableBehavior Name="Combat" />
<EnableBehavior Name="Death" />
</CustomBehavior>
Last edited: