Hunting board macro (eventMacro)

Moderator: Moderators

Message
Author
Pachu
Plain Yogurt
Plain Yogurt
Posts: 55
Joined: 04 Apr 2008, 14:21
Noob?: No

Hunting board macro (eventMacro)

#1 Post by Pachu »

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: Select all

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
}

shiun1004
Noob
Noob
Posts: 1
Joined: 29 Apr 2018, 06:18
Noob?: Yes

Re: Hunting board macro (eventMacro)

#2 Post by shiun1004 »

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.

Random+
Noob
Noob
Posts: 4
Joined: 23 Apr 2017, 10:58
Noob?: Yes

Re: Hunting board macro (eventMacro)

#3 Post by Random+ »

Hm... try to to use on single quest... not working (no error ,no reaction), I ponder...

Code: Select all

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

Pachu
Plain Yogurt
Plain Yogurt
Posts: 55
Joined: 04 Apr 2008, 14:21
Noob?: No

Re: Hunting board macro (eventMacro)

#4 Post by Pachu »

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

Random+
Noob
Noob
Posts: 4
Joined: 23 Apr 2017, 10:58
Noob?: Yes

Re: Hunting board macro (eventMacro)

#5 Post by Random+ »

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

Pachu
Plain Yogurt
Plain Yogurt
Posts: 55
Joined: 04 Apr 2008, 14:21
Noob?: No

Re: Hunting board macro (eventMacro)

#6 Post by Pachu »

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

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 724
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: Hunting board macro (eventMacro)

#7 Post by fadreus »

Why not like this?

Code: Select all


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
}


iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

Random+
Noob
Noob
Posts: 4
Joined: 23 Apr 2017, 10:58
Noob?: Yes

Re: Hunting board macro (eventMacro)

#8 Post by Random+ »

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

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 724
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: Hunting board macro (eventMacro)

#9 Post by fadreus »

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.

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

Random+
Noob
Noob
Posts: 4
Joined: 23 Apr 2017, 10:58
Noob?: Yes

Re: Hunting board macro (eventMacro)

#10 Post by Random+ »

Hiya... Thanks everyone... Got it work now...

Code: Select all

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

Post Reply