Enthrone familiar

From Kolmafia
Revision as of 03:59, 21 May 2010 by imported>Heeheehee (New page, crude code sample.)
Jump to navigation Jump to search

Function Syntax

boolean enthrone(slot check )

  • check is the item slot to check

Enthrones the specified familiar if you have the Crown of Thrones equipped.

Code Sample

Returns true if the El Vibrato Megadrone is successfully equipped to the Crown of Thrones.

boolean enthrone_megadrone() {
   if (equipped_item($slot[hat])==$item[Crown of Thrones] && my_enthroned_familiar()!=$familiar[el vibrato megadrone])
      return enthrone($familiar[megadrone]);
   return false;
}

CLI Equivalent

The CLI command "enthrone" has similar functionality.

See Also

my_enthroned_familiar() | equipped_item()