Openkore.com

OpenKore Forums
It is currently 17 Oct 2017, 16:32

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Help With My Macro
PostPosted: 04 Oct 2017, 01:48 
Offline
Noob
Noob

Joined: 08 Sep 2017, 08:17
Posts: 1
here's my code..

Code:
automacro Monsters {
      console /\[(.*)/(.*)\] Monster (.*) \((\d+)\) attacks you/
      run-once 1
      call {
         pause 2
         
         $num1 = $.lastmatch1
         $num2 = $.lastmatch2
         $monster = $.lastmatch3
         $monsterID = $.lastmatch4
         
         if ($monster == Kobold Archer) goto case1
         if ($monster == Wild Rose) goto case2
         if ($monster == Dustiness) goto case2

         :case1
            do p pneuma
            release Monsters

         :case2
            release Monsters
      }
}


it is working but not perfect, the bot keeps doing party message for every monster that attacks the bot..


Top
 Profile  
 
 Post subject: Re: Help With My Macro
PostPosted: 04 Oct 2017, 04:01 
Offline
Developers
Developers

Joined: 01 Nov 2008, 15:31
Posts: 325
Code:
automacro Monsters {
      console /\[(.*)/(.*)\] Monster (.*) \((\d+)\) attacks you/
      run-once 1
      call {
         pause 2
         
         $num1 = $.lastmatch1
         $num2 = $.lastmatch2
         $monster = $.lastmatch3
         $monsterID = $.lastmatch4
         
         if ($monster == Kobold Archer) goto case1
         goto case2
         :case1
            do p pneuma
            release Monsters

         :case2
            release Monsters
      }
}

_________________
Please use pin function for uploading your file contents!


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 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