Titan Rs Posted September 25, 2018 Share Posted September 25, 2018 Hi guys, I'm trying to work out how to script when my player can successfully log out. Atm i can determine if i'm getting attacked by a player, and my script hops world if my area is too crowded or a pker is nearby. The problem is lets say im getting attacked the bot runs down to 30wild to teleport. If the pker doesn't attack the bot for a few ticks like pathing or whatever the bot thinks its not in combat and will try and hop cause theres a pker nearby - this then causes the bot to die most of the time cause its scrolling worlds and not eating. Same if the bots attacking a monster kills it then it trys to hop cause its to crowded and the bots not in combat and itll fail 3 times before it can actually hop becuase its just been in combat. Just wondering if there where any snippets available. Has it got anything to do with getHitBarLoopCycle() im not really sure how to use it tho. Thanks Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted September 25, 2018 Share Posted September 25, 2018 Just check you're not in combat while trying to hop Quote Link to comment Share on other sites More sharing options...
Juggles Posted September 25, 2018 Share Posted September 25, 2018 Timer sleep 10s after last time being attacked before hopping 1 Quote Link to comment Share on other sites More sharing options...
Titan Rs Posted September 25, 2018 Author Share Posted September 25, 2018 2 minutes ago, Juggles said: Timer sleep 10s after last time being attacked before hopping Ye thought it'd be something like this, just gunna need to figure a way to implement it. Thanks for the response Quote Link to comment Share on other sites More sharing options...
Juggles Posted September 25, 2018 Share Posted September 25, 2018 16 minutes ago, Luke Reading said: Ye thought it'd be something like this, just gunna need to figure a way to implement it. Thanks for the response Just change .isAnimating to isInCombat and put int at 10500. 1 Quote Link to comment Share on other sites More sharing options...