My familiar: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>ZammyWarrior
No edit summary
imported>ZammyWarrior
No edit summary
Line 4: Line 4:
[[Category:Your Character | My familiar()]]
[[Category:Your Character | My familiar()]]
[[Category:Ash Functions |My familiar()]]
[[Category:Ash Functions |My familiar()]]
[[Category:Needs Code Samples | My familiar()]]
<pre>#Script check if your current familiar is leprechaun. If true it will retrieve 1 meat detector
<pre>#Script check if your current familiar is leprechaun. If true it will retrieve 1 meat detector
if(my_familiar() == $familiar[leprechaun]){
if(my_familiar() == $familiar[leprechaun]){

Revision as of 23:59, 16 November 2007

familiar my_familiar()
Returns your current familiar.

#Script check if your current familiar is leprechaun. If true it will retrieve 1 meat detector
if(my_familiar() == $familiar[leprechaun]){
retrieve_item(1, $item[meat detector]);
}