Page 1 of 1

Homunculus conditions/status's?

Posted: 15 Aug 2019, 02:21
by Akk
I'm trying to figure out how to check if homunculus is on screen.

I've been using skill blocks to ressurect the pet, but say if I died and the pet did not die I would need to use Call Homunculus instead of Resurrect homunculus. I've tried using skill block for both call and resurrect. The res works, but only if the homunc has died. The call does not work no matter what.

I'm thinking just macro it to make everything easier, is there a condition to check to see if homunculus is on screen so I can trigger my macro that way? I've looked all over macro on the wiki but cannot find much on homunculus.

Code: Select all

automacro checkforhomunc {
homunonscreen 0  #this is what i am trying to figure out how to trigger my macro#
run-once 1
call summon
}

macro summon {
do ss 243
}

Re: Homunculus conditions/status's?

Posted: 15 Aug 2019, 08:44
by fadreus
The easiest:
control/config.txt

Code: Select all

doCommand ss 243 {
	timeout 60
}
Dumb fancy homun code:
control/macros.txt

Code: Select all

automacro CheckHomun {
	timeout 60
	call {
		do homun
	}
}

automacro CallHomun {
	console /No slave detected/
	call {
		do ss 243
	}
}
If you want more fancy code, you can learn how to use eval here:
http://forums.openkore.com/viewtopic.php?f=33&t=16741
Feel free knock yourself out. :D

It's somewhere like:

Code: Select all

$::char->{'homunculus'}{'state'}
value 2 or 4 or IDK I'm lazy fuck using fancy code.
That perl exp just random guess. Don't ask me that coz IDK. :lol:

Re: Homunculus conditions/status's?

Posted: 15 Aug 2019, 17:07
by Akk
Awesome thank you fadreus! Got it working really nicely.

Re: Homunculus conditions/status's?

Posted: 30 Nov 2022, 22:48
by ignacio
Fantastic, many thanks, Fadreus! I've got it running extremely well. cookie clicker