1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved How to get Varbits?

Discussion in 'Developer Support' started by WalletWitch, Dec 7, 2017.

  1. WalletWitch

    Joined:
    Oct 29, 2017
    Messages:
    4
    Likes Received:
    0
    Hey,

    I'm fairly new to programming, but I managed to make a couple of bots for personal use.
    I now want to step up my game by using varbits. However, I have no idea on how to get the index of an action.

    For example, I talk to a slayer master to receive a task. How can I discover the varbit that changed?

     
  2. Best Answer:
    Post #4 by Cloud, Dec 12, 2017
  3. Snufalufugus

    Joined:
    Aug 23, 2015
    Messages:
    1,961
    Likes Received:
    757
  4. WalletWitch

    Joined:
    Oct 29, 2017
    Messages:
    4
    Likes Received:
    0
    Thanks for replying! Just discovered there's a Varp and VarbitListener. Didn't know the toolkit had that feature
     
  5. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Just to clarify, there is a distinction between varps and varbits. Varbits extract a portion of a varp via binary shifts when multiple values are packed into a single varp. Not all varps have multiple values packed into them though and when that's the case there is no varbit responsible for extracting the value and you must use the varp directly to get the value instead of a varbit. There's both a VarpListener and VarbitListener.
     

Share This Page

Loading...