Bittype()

From TinyMUX
Revision as of 21:31, 27 November 2010 by Ihavenomouth (talk | contribs) (New page: Category:Functions {{Function|bittype([<object>])}} Returns a number from the following table based on the owner of <object>. God 7 Wizard 5 R...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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()