Openkore.com

OpenKore Forums
It is currently 17 Nov 2018, 14:18

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Bounty Board ERROR
PostPosted: 17 Oct 2018, 12:32 
Offline
Noob
Noob

Joined: 17 Oct 2018, 12:08
Posts: 2
Good day :)

I'm new to macros, but it's been 2 days since I've been trying to make a quest macro that I got in the forums.

I tried several configurations, and still can not work, I am currently with this error:

Follow:
Code:
automacro BoardQuest1 {
exclusive 1
priority 1
QuestHuntCompleted 62567 1060
timeout 15
call {
    if (&questCompleteCount(62567) == 1 && &questCompleteCount(1060 == 1) call endbig

    log Quest not Completed yet
    }


macro endbig {
log completed quest of bigfoot
do is Butterfly Wing
do move payon @rand(150, 153) @rand(95, 89)
do talknpc 148 93 c c r1 c r0 c r0 n
pause 1
do talknpc 148 93 c c r0 c r4 n
do relog 3
}




Error:
Image

can anybody help me?

Thank you


Top
 Profile  
 
 Post subject: Re: Bounty Board ERROR
PostPosted: 17 Oct 2018, 14:11 
Offline
OpenKore Monk
OpenKore Monk
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 465
Location: Genting Highland, Malaysia
You miss closing brace at:
Code:
        log Quest not Completed yet
        }


should be:
Code:
        log Quest not Completed yet
        }
}


Plus, you miss closing bracket:
Code:
(&questCompleteCount(62567) == 1 && &questCompleteCount(1060 == 1) call endbig


and this is wrong anyway.
&questCompleteCount is for quest ID, not Monster ID (1060).
Check the wiki documentation again, properly; if you ever in doubt again. ;)

_________________

I'll not give answer. I'll just showing you the way to find it
Wiki & Google are your best allies. If you're lazy to read I won't bother answering
Image


Top
 Profile  
 
 Post subject: Re: Bounty Board ERROR
PostPosted: 17 Oct 2018, 14:37 
Offline
Noob
Noob

Joined: 17 Oct 2018, 12:08
Posts: 2
Wow that bum :(, but I had already progressed beyond that point, once gave error of eventMacros.txt (I do not know what I write in it)

Should I write something on it? or leave it blank?

My code now
Quote:
automacro BoardQuest1 {
exclusive 1
priority 1
QuestHuntCompleted 62567 1060
timeout 15
call {
if (&questCompleteCount(62567) == 1 && &questCompleteCount(62567) == 1) call endbig
log Quest not Completed yet
}
}

macro endbig {
log completed quest of bigfoot
do is Butterfly Wing
do move payon @rand(150, 153) @rand(95, 89)
do talknpc 148 93 c c r1 c r0 c r0 n
pause 1
do talknpc 148 93 c c r0 c r4 n
do relog 3
}



And now it gives this error:

Image

I've tried using:QuestHuntCompleted, QuestActive, and

Code:
call {
$temp1 = @eval($::questList->{62567}->{missions}->{62567}->{count})
   if ($temp1 == 150) call fimbig
   }
}



And nothing went right, the same error arises, what the variation of what I used.

What could be happening?


Edit1: i close the "()" that was missing in:
Code:
call {
$temp1 = @eval($::questList->{62567}->{missions}->{62567}->{count})
   if ($temp1 == 150) call fimbig
   }
}


but the error continues and this new: Image



plus: your signature is very cool kkkk


Top
 Profile  
 
 Post subject: Re: Bounty Board ERROR
PostPosted: 17 Oct 2018, 23:19 
Offline
OpenKore Monk
OpenKore Monk
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 465
Location: Genting Highland, Malaysia
Opps, forgot to mention.
That condition is for eventMacros, not for normal macros.
You don't need doing if argument or eval expression.
Condition QuestHuntCompleted is sufficient.

Read this again:
http://openkore.com/index.php/EventMacro#Installation
http://openkore.com/index.php/Macro_plugin#Installation

_________________

I'll not give answer. I'll just showing you the way to find it
Wiki & Google are your best allies. If you're lazy to read I won't bother answering
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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