/varor <variable> <bitmask as a decimal number>
/varand <variable> <bitmask as a decimal number>
/varlshift <variable> <number to shift>
/varrshift <variable> <number to shift>
I've added bit compares to /if:
/if a&b /do something
/if a|b /do something
Note: a and b are decimal numbers
Also in this delta I have added a count to $alert()
$alert(<number>,count) will return the count of members in the alert
I've posted the delta to a MSN's free webhosting service (you need to sign in with a passport):
http://groups.msn.com/AshPlayah/Documents/MQDelta.zip
I will mirror it somewhere else once I have a better webhoster...
Please take a look and drop me some comments or (hopefully) include it in the next release.
Ashplayah
Note: alerts are not cleared between runnings of macros so if you do not /alert clear <number> before you add stuff to an alert you may have old alert data still present.
Samples:
Code: Select all
/varor v1 9
/varand v1 1
/echo $v1 | displays 1
/varlshift v1 2
/echo $v1 | displays 4Code: Select all
Sub Event_Event1
/varor v1 1
/return
Sub Event_Event2
/varor v1 2
/return
Sub Event_Event3
/varor v1 4
/return
Sub Process_Events
/if v1&1 {
/call Handle_Event1
} else /if v1&2 {
/call Handle_Event2
} else /if v1&4 {
/call Handle_Event3
}
/return

