Have servant

From Kolmafia
Jump to navigation Jump to search

Function Syntax

boolean have_servant(servant check_me )

  • check_me is the servant to check for

Returns true if you have the specified servant check_me, and false otherwise. Returns false if you are not Ed the Undying.

Code Samples

Lists out all the servants you currently have.

foreach it in $servants[] {
   if (have_servant(it)) {
      print("You have the servant "+it+"!", "blue");

CLI Equivalent

The CLI command "servant"

See Also