Openkore.com
http://forums.openkore.com/

Help With My Macro
http://forums.openkore.com/viewtopic.php?f=32&t=212384
Page 1 of 1

Author:  blakbord01 [ 04 Oct 2017, 01:48 ]
Post subject:  Help With My Macro

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

Author:  Mortimal [ 04 Oct 2017, 04:01 ]
Post subject:  Re: Help With My Macro

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

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/