Jump to content

Scripting Question


Titan Rs

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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