Jump to content

damufinmkan

Members
  • Posts

    1
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

damufinmkan's Achievements

Newbie

Newbie (1/10)

0

Reputation

  1. Hello, not sure if I'm posting this in the right spot so please move if necessary. So, I'm making a script to assist my Nightmare Zone AFK training. Right now, I have it set up so that an alarm goes off when I need to drink an overload or prayer potion. Now, I want to scan the chatbox to see when a Power Surge powerup spawns. I'm trying to figure out the best way to do this. My first thought, given the API limitations, was to grab all messages in the chat of MessageType.GAME and evaluate just the most recent one, see if it's a power surge notificaiton, and if so, set the alarm. BUT, since I'm grabbing all the chat messages in a loop once every second, I think it's causing the client to crash. Is there a better way to get the most recent chatbox message without getting the whole list of messages? Or is there a way to put that part in an onLoop separate from my other code, to only scans the chatbox every 30 seconds or so? Keep in mind, I want to make sure that the alarm only beeps once, when the powerup is first available to use. Please share your thoughts. -Damufin
×
×
  • Create New...