Openkore.com

OpenKore Forums
It is currently 21 Aug 2019, 07:16

All times are UTC - 5 hours [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: A=? B=? C=?
PostPosted: 09 Mar 2017, 14:47 
Offline
Developers
Developers

Joined: 01 Nov 2008, 15:31
Posts: 361
o_O


Ookkk.... try this:

Code:
automacro countItForMe1 {
    console /Unknown\s#\d+:\s>If\s?:\s([ABC])=(\d+)\s([ABC])=(\d+)\s([ABC])=(\d+).*\nUnknown\s#\d+: How many is A\s(-|\+)\sB\s(-|\+)\sC.*/i
    call doCount1
}

macro doCount1 {
    pause 1
    switch ($.lastMatch1) {
        case (== A){
            $a = $.lastMatch2
        }
        case (== B){
            $b = $.lastMatch2
        }
        case (== C){
            $c = $.lastMatch2
        }
    }
    switch ($.lastMatch3) {
        case (== A){
            $a = $.lastMatch4
        }
        case (== B){
            $b = $.lastMatch4
        }
        case (== C){
            $c = $.lastMatch4
        }
    }
    switch ($.lastMatch5) {
        case (== A){
            $a = $.lastMatch6
        }
        case (== B){
            $b = $.lastMatch6
        }
        case (== C){
            $c = $.lastMatch6
        }
    }
    $doThis = $a$.lastMatch7$b$.lastMatch8$c
    $res = @eval($doThis)
    do talk num $res
}

automacro countItForMe2 {
    console /Unknown\s#\d+:\s>If\s?:\s([AB])=(\d+)\s([AB])=(\d+).*\nUnknown\s#\d+: How many is A\s(-|\+)\sB.*/i
    call doCount2
}

macro doCount2 {
    pause 1
    switch ($.lastMatch1) {
        case (== A){
            $a = $.lastMatch2
        }
        case (== B){
            $b = $.lastMatch2
        }
    }
    switch ($.lastMatch3) {
        case (== A){
            $a = $.lastMatch4
        }
        case (== B){
            $b = $.lastMatch4
        }
    }
    $doThis = $a$.lastMatch5$b$
    $res = @eval($doThis)
    do talk num $res
}

_________________
Please use pin function for uploading your file contents!


Top
 Profile  
 
 Post subject: Re: A=? B=? C=?
PostPosted: 09 Mar 2017, 14:52 
Offline
Human
Human

Joined: 17 Mar 2015, 06:48
Posts: 48
some more errors :/ But Thank you for helping!


Attachments:
aaaaaabccccdddddeeeee.png
aaaaaabccccdddddeeeee.png [ 20.89 KiB | Viewed 1114 times ]
Top
 Profile  
 
 Post subject: Re: A=? B=? C=?
PostPosted: 09 Mar 2017, 14:59 
Offline
Developers
Developers

Joined: 01 Nov 2008, 15:31
Posts: 361
I am totally lost o_O why there is this mistakes... your macro plugin i hope it isn't outdated? cause i really have no clue why... need someone from aside to look at this.

_________________
Please use pin function for uploading your file contents!


Top
 Profile  
 
 Post subject: Re: A=? B=? C=?
PostPosted: 09 Mar 2017, 15:03 
Offline
Human
Human

Joined: 17 Mar 2015, 06:48
Posts: 48
I m not sure but I download it fast again.

Update: Okay I m sure that it is the newest one :( or can you upload your macro folder? I used this link: https://sourceforge.net/p/openkore/code ... cro/trunk/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 14 posts ]  Go to page Previous  1, 2

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