Openkore.com

OpenKore Forums
It is currently 21 Nov 2017, 13:27

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Macro plugins : onAction
PostPosted: 23 Aug 2013, 09:21 
Offline
Noob
Noob

Joined: 19 May 2010, 09:17
Posts: 9
May I suggest if next revision of macro can support condition similiar like onAction ?
In a case I want the macro triggered only when attack / route / sitting (or anything that showed when I input 'aiv' or 'ai print', I know the list are in http://www.openkore.com/index.php/OnAction but I usually only use what showed in aiv or ai print)

I have try something like this, but failed
Code:
automacro onAction {
eval $::char->attack != 0
   call {
      do e ?
   }
}


Image


Top
 Profile  
 
 Post subject: Re: Macro plugins : onAction
PostPosted: 20 Sep 2013, 08:52 
Offline
Developers
Developers

Joined: 04 Sep 2013, 19:54
Posts: 51
Code:
if (AI::is("attack"))
is how you would check for this if you were coding a plugin rather than a macro, you would have to check what calls are available to the macro system I guess. I never really got into it, and I'm too lazy to pull it down just to look.


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

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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