Homunculus conditions/status's?

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

Message
Author
Akk
Human
Human
Posts: 30
Joined: 24 Oct 2008, 01:12
Noob?: Yes

Homunculus conditions/status's?

#1 Post 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
}

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 708
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: Homunculus conditions/status's?

#2 Post 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:

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

Akk
Human
Human
Posts: 30
Joined: 24 Oct 2008, 01:12
Noob?: Yes

Re: Homunculus conditions/status's?

#3 Post by Akk »

Awesome thank you fadreus! Got it working really nicely.

ignacio
Noob
Noob
Posts: 2
Joined: 30 Nov 2022, 05:47
Noob?: No

Re: Homunculus conditions/status's?

#4 Post by ignacio »

Fantastic, many thanks, Fadreus! I've got it running extremely well. cookie clicker

Post Reply