Bittype()

From TinyMUX
Jump to navigation Jump to search


20px-Function.png bittype([<object>])

Returns a number from the following table based on the owner of <object>.

   God                7
   Wizard             5
   Royalty            4
   Staff/Builder      3
   Head/Immortal      2
   Mortal             1
   Uninspected/Guest  0
   ERROR              #-1

If a player has more than one bit flag set, their highest one takes precedence. If no argument is given, <object> defaults to 'me'. This function is from RhostMUSH, there is no 6 because MUX has no equivalent for Rhost's Immortal.

Related Topics

hasflag(), orflags(), andflags()