Openkore.com

OpenKore Forums
It is currently 15 Aug 2018, 16:43

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Hunting board macro (eventMacro)
PostPosted: 28 Mar 2018, 14:34 
Offline
Plain Yogurt
Plain Yogurt

Joined: 04 Apr 2008, 14:21
Posts: 52
Here is a little macro i made based of another macro i found in this forums. It is for iRO:RE hunting boards and i've been using it all night flawlessly. It gets all the hunting quests from the board, kill the monsters you want from the different maps, turn in the quest for the exp, ask for the quest again and repeat.

Note: change the bold parts to their corresponding value

Code:
automacro BoardQuest1 {
exclusive 1
priority 1
timeout 120
BaseLevel > 75
QuestActive [b]QuestID1[/b], [b]QuestID2[/b]
macro_delay 3
call {
    if (&questCompleteCount([b]QuestID1[/b]) == 1 && &questCompleteCount([b]QuestID2[/b]) == 1) call Quest1

    log Quest not Completed yet
    }
}

macro [b]Quest1[/b] {
log completed quest of [b]Quest1[/b]
do conf lockMap [b]mapID[/b]
lock BoardQuest1
}

###################################################################################################################

automacro BoardQuest2 {
exclusive 1
priority 2
timeout 120
BaseLevel > 75
QuestHuntCompleted [b]QuestID1 MobID1[/b], [b]QuestID2 MobID2[/b]
QuestActive [b]QuestID3[/b], [b]QuestID4[/b]
macro_delay 3
call {
    if (&questCompleteCount([b]QuestID3[/b]) == 1 && &questCompleteCount([b]QuestID4[/b]) == 1) call Quest2

    log Quest not Completed yet
    }
}

macro Quest2 {
log completed quest of [b]Quest2[/b]
do conf lockMap [b]mapID[/b]
lock BoardQuests2
}

###################################################################################################################

automacro BoardQuest3 {
exclusive 1
priority 3
timeout 120
BaseLevel > 75
QuestHuntCompleted [b]QuestID1[/b] MobID1, [b]QuestID2 MobID2[/b], [b]QuestID3[/b] MobID3, [b]QuestID4 MobID4[/b]
QuestActive [b]QuestID5[/b], [b]QuestID6[/b], [b]QuestID7[/b]
macro_delay 3
call {
    if (&questCompleteCount([b]QuestID5[/b]) == 1 && &questCompleteCount([b]QuestID6[/b]) == 1 && &questCompleteCount([b]QuestID7[/b]) == 1) call Quest3

    log Quest not Completed yet
    }
}

macro Quest3 {
log All quests completed!
do respawn
do move [b]mapID[/b] #(map where the hunting board is)
do talknpc [b]X Y[/b] [b]NPCResponseSequence[/b] #for example c c r1 c r17 n
do talknpc [b]X Y[/b] [b]NPCResponseSequence[/b]
... #and so on until you turned in all quests
do talknpc [b]X Y[/b] [b]NPCResponseSequence[/b] #this last line is to take all the quests again once turned in
do conf lockMap [b]mapID[/b] #should be the map the whole macro chain started in.
release all
do relog 3
}


Top
 Profile  
 
 Post subject: Re: Hunting board macro (eventMacro)
PostPosted: 29 Apr 2018, 11:10 
Offline
Noob
Noob

Joined: 29 Apr 2018, 06:18
Posts: 1
Hello Sir, :)
My English is not very good, but I want to thank you

Learn about your hunting board macro
I found the answer in the Opkenore wiki - EventMacro

I am still a Noob. I tested successfully.
thank you very much for your effort.


Top
 Profile  
 
 Post subject: Re: Hunting board macro (eventMacro)
PostPosted: 06 May 2018, 08:50 
Offline
Noob
Noob
User avatar

Joined: 23 Apr 2017, 10:58
Posts: 4
Hm... try to to use on single quest... not working (no error ,no reaction), I ponder...

Code:
automacro B-Lunatic {
exclusive 1
timeout 120
QuestActive 62681
call {
    if (&questCompleteCount(62681) == 1) call MB-Lunatic
   log Quest not Completed yet
    }
}

macro MB-Lunatic {
   log completed quest of MB-Lunatic
   do ai manual
   do move prt_in 110 71
   pause 2
   do sit
   do relog 10
}


silly code, yes?... Any tips, I really appreciate...


Top
 Profile  
 
 Post subject: Re: Hunting board macro (eventMacro)
PostPosted: 06 May 2018, 09:35 
Offline
Plain Yogurt
Plain Yogurt

Joined: 04 Apr 2008, 14:21
Posts: 52
you forgot to add the conversation steps to do the turn in

my macro is for various quests, if you do only one just use the last automacro i made as an example


Top
 Profile  
 
 Post subject: Re: Hunting board macro (eventMacro)
PostPosted: 07 May 2018, 06:29 
Offline
Noob
Noob
User avatar

Joined: 23 Apr 2017, 10:58
Posts: 4
Turn in?... You mean my macro?... Well i dont want to turn in.... Just want to see the automacro trigger... which doesn't happen...

Pachu wrote:
.... if you do only one just use the last automacro i made as an example


automacro quest board 3 oya?... ok let see...

Quote:
automacro BoardQuest3 {
exclusive 1
priority 3
timeout 120
BaseLevel > 75 <<---- Im sure I don't need this one... It just lunatic...
QuestHuntCompleted QuestID1 MobI... <<<--- Do i need this one? If I do what should I put?
QuestActive QuestID5, QuestID6, QuestID7
macro_delay 3
call {
if (&questCompleteCount(QuestID5) == 1 && &questCompleteCount(QuestID6) == 1 && &questCompleteCount(QuestID7) == 1) call Quest3

log Quest not Completed yet
}
}


So you see, my Lunatic automacro are almost the same but it doesn't trigger even my botto killed 150/150 lunatic...
** Jackie Chan Confuse**.... So... if you so kind, can you rewrite my automacro?... I don't mean to feed... But I appreciate it...


Top
 Profile  
 
 Post subject: Re: Hunting board macro (eventMacro)
PostPosted: 08 May 2018, 18:15 
Offline
Plain Yogurt
Plain Yogurt

Joined: 04 Apr 2008, 14:21
Posts: 52
are you using eventMacros.txt or macros.txt? afaik quest macros only work with eventMacro

are you waiting for the 120 second timeout set?

other than that, my single automacros are working fine


Top
 Profile  
 
 Post subject: Re: Hunting board macro (eventMacro)
PostPosted: 09 May 2018, 03:04 
Offline
Halfway to Eternity
Halfway to Eternity
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 354
Location: Genting Highland, Malaysia
Why not like this?

Code:

automacro BoardQuest1 {
   exclusive 1
   priority 3
   timeout 120
   BaseLevel >75
   QuestHuntCompleted QuestID1 MobID1
   QuestHuntCompleted QuestID2 MobID2
   QuestHuntCompleted QuestID3 MobID3
   QuestHuntCompleted QuestID4 MobID4 ###Put as many quest as you want to turn in all together.
   macro delay 3
   call Quest1
}


_________________

Wiki & Google are your best allies.
iRO server supporter.
Image


Top
 Profile  
 
 Post subject: Re: Hunting board macro (eventMacro)
PostPosted: 09 May 2018, 06:06 
Offline
Noob
Noob
User avatar

Joined: 23 Apr 2017, 10:58
Posts: 4
Pachu wrote:
are you using eventMacros.txt or macros.txt? afaik quest macros only work with eventMacro

are you waiting for the 120 second timeout set?

other than that, my single automacros are working fine


Eventmacros.txt of course... :lol:

Ei... You want me to wait 120?.. Nope I didn't wait 120 second... Hm... Why do I feel like we talking about cooking....

Anyway... timeout suppose to trigger in an instant then it won't trigger again in 120 second... if I remember correctly...

Even the delay function will trigger in an instant but it will delay the macro call...

In any case I'll try to remove the 120 time out... and see it will trigger instantly... or just wait :| ....

I'll tweak around... and

@fadreus

Ah yes, I saw your code before in Petite Stuff

It's too simple, :) it baffles me to pancake... That too doesn't work... but I will try again...


Top
 Profile  
 
 Post subject: Re: Hunting board macro (eventMacro)
PostPosted: 09 May 2018, 07:00 
Offline
Halfway to Eternity
Halfway to Eternity
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 354
Location: Genting Highland, Malaysia
Sometimes in life, the problem seems complicated but the solution is very simple indeed. :lol: :lol: :lol:

Why not you upload your macros (NOT COPY-PASTE TEXT) and give screenshot of your quest.

There are many reasons why automacro not triggered.
Most common are:

- Condition not met (wrongly thought).
- Same name for automacro.
- Ai cleared
- Misspelled

Might wanna check and recheck again.

_________________

Wiki & Google are your best allies.
iRO server supporter.
Image


Top
 Profile  
 
 Post subject: Re: Hunting board macro (eventMacro)
PostPosted: 10 May 2018, 08:26 
Offline
Noob
Noob
User avatar

Joined: 23 Apr 2017, 10:58
Posts: 4
Hiya... Thanks everyone... Got it work now...

Code:
automacro Lunatic {
   QuestHuntCompleted 62816 1063
   timeout 3
   call {
      do move prt_cas
   }
}


Image

I still wonder why It doesn't trigger on my first try....hm.. it must be the work of enemy standu! :o :evil: :)
Have a good day everyone...


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