Bittype(): Difference between revisions

From TinyMUX
Jump to navigation Jump to search
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...
 
(No difference)

Latest revision as of 21:31, 27 November 2010


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.

hasflag(), orflags(), andflags()