I am trying to find a efficient and effective way to have Openkore go to a map start an exp quest kill the set amount of monsters and return to the npc to collect the reward and start another quest.
I have done some searching on the forum and found a option that set a macro to count the monsters you kill.
Subject: Counting Kills
The problem I have with this solution is that the counting would be done locally witch could lead to problems if you part time play the same account or if you restarted the bot it may reset the counter. And I believe it would be more efficient to have Openkore read the packet data sent from RO to tell it when you are done the quest.
I ran Openkore in debug mode and after comparing different situations i found that Openkore received a packet 02B5 16 bytes after killing one of the quest monster on the map while the quest is active and under the kill cap
Code: Select all
[ 80/100] You attack Monster Coco (0) - Dmg: 49 (delay 44.5)
Received packet: 00B0 [ 8 bytes] [Your Status Info]
Received packet: 008A [29 bytes] [Item take / attack damage / sit / stand]
[ 74/100] You attack Monster Coco (0) - Dmg: 98 (delay 44.5)
Received packet: 0088 [10 bytes] [Unit Position]
Received packet: 02E1 [33 bytes]
[ 74/100] Monster Coco (0) attacks you - Dmg: Miss! (delay 86.4)
Received packet: 0080 [ 7 bytes] [Unit Lost (Died, Disappeared,
Disconnected)]
Monster Died: Coco (0)
Received packet: 00B1 [ 8 bytes] [Your Status Info (Exp, Job Exp, Zeny)]
Exp: 9973
Received packet: 00B1 [ 8 bytes] [Your Status Info (Exp, Job Exp, Zeny)]
Job Exp: 6281
Exp gained: 116/76 (0.74%/0.50%)
Received packet: 009E [17 bytes] [Item Appeared]
Item Appeared: Acorn (1) x 1 (314, 279)
Received packet: 009E [17 bytes] [Item Appeared]
Item Appeared: Animal Skin (2) x 1 (315, 278)
Received packet: 02B5 [16 bytes]
Received packet: 00B0 [ 8 bytes] [Your Status Info]
Packet SENT_BY_CLIENT: 007E - Sync
Received packet: 007F [ 6 bytes] [Received Sync]
Packet SENT_BY_CLIENT: 0089 - Attack / Sit / Stand
Received packet: 008A [29 bytes] [Item take / attack damage / sit / stand]
Code: Select all
questAuto 1
questAuto_npc mjolnir_01 293 20
questAuto_distance 5
questAuto_npc_type 3
questAuto_npc_steps c c r1 c r1 c r3 n
questAuto_password
questAuto_keepOpen 0
questAuto_useChatCommand
relogAfterQuest 0
minQuestZeny 0
Repetable Exp Quests