Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved How to get Varbits?

Joined
Oct 29, 2017
Messages
4
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?
 
Joined
Oct 29, 2017
Messages
4
Thanks for replying! Just discovered there's a Varp and VarbitListener. Didn't know the toolkit had that feature
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
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.
 
Top