Openkore.com

OpenKore Forums
It is currently 22 Sep 2019, 20:32

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Homunculus conditions/status's?
PostPosted: 15 Aug 2019, 02:21 
Offline
Human
Human

Joined: 24 Oct 2008, 01:12
Posts: 30
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:
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
}


Top
 Profile  
 
 Post subject: Re: Homunculus conditions/status's?
PostPosted: 15 Aug 2019, 08:44 
Offline
OpenKore Monk
OpenKore Monk
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 603
Location: Genting Highland, Malaysia
The easiest:
control/config.txt
Code:
doCommand ss 243 {
   timeout 60
}


Dumb fancy homun code:
control/macros.txt
Code:
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:
viewtopic.php?f=33&t=16741
Feel free knock yourself out. :D

It's somewhere like:
Code:
$::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


Top
 Profile  
 
 Post subject: Re: Homunculus conditions/status's?
PostPosted: 15 Aug 2019, 17:07 
Offline
Human
Human

Joined: 24 Oct 2008, 01:12
Posts: 30
Awesome thank you fadreus! Got it working really nicely.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group