Main Connecting Starting



Building: Rank Constants

We have a few handy constants stored in the 'rank' table, which allows lua code to find the privs associated with a certain rank. You should never use the privs number itself, as if a rank changes in the future then your lua will behave unexpectedly.

The stored ranks only correspond to the lowest rank in each section. If you really, really need to find the privs associated with some random rank name, then beg the coders to add it for you. But don't bet on it happening.

Lua nameRank equivalent
rank.CadetJunior Cadet
rank.CrewmanCrewman
rank.POfficerPetty Officer, 3rd class
rank.WOfficerWarrant Officer, 3rd class
rank.OfficerMidshipman
rank.CommanderCommander
rank.RetiredCaptain (retired)
rank.CaptainCaptain
rank.CommodoreCommodore
rank.AdmiralAdmiral
rank.ChiefFleet Admiral
rank.InternalSpecial rank for syslog only

You should know that rank.Internal corresponds to a privs level of 10000, and hence is higher than anybody on the mud. Use of this will be reduced in the future, and we don't recommend you use it unless absolutely necessary.