Openkore.com

OpenKore Forums
It is currently 15 Dec 2018, 05:58

All times are UTC - 5 hours [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: openkore recognize if as a subroutine
PostPosted: 24 May 2017, 10:38 
Offline
Noob
Noob

Joined: 13 Mar 2017, 12:01
Posts: 18
my code was working perfectly but now it says:

[macro] start.call error: error in 13: Unrecognized --> if <-- Sub-Routine

I think that, somehow, openkore is trying to do it:

call if


here's the begin of my code:

automacro start {

Code:
   location not ordeal_3-2
   call {

      
      if ($.map == "aldebaran") {      

         call dead
      
      }

      
      if ($.zeny <= 200000) {
      
         call esperaz
      
      }

      if (@invamount (Credit) > 0) {

         call givecred

      }


Top
 Profile  
 
 Post subject: Re: openkore recognize if as a subroutine
PostPosted: 24 May 2017, 12:13 
Offline
Noob
Noob

Joined: 13 Mar 2017, 12:01
Posts: 18
forget i found the error

it seems that openkore can't compare a variable to a value that has underscore "_" for example:
Code:


if($.map == "prt_in")


Top
 Profile  
 
 Post subject: Re: openkore recognize if as a subroutine
PostPosted: 24 May 2017, 15:05 
Offline
Developers
Developers

Joined: 01 Nov 2008, 15:31
Posts: 361
OpenKore is buggy in call { } places.... use call x macro x {} instead

_________________
Please use pin function for uploading your file contents!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 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