Jump to content

Scripting Question


Recommended Posts

Posted

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  :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...