openkore macro ragnarok online macro archer15 { priority 1 class Archer base >= 15…
- User
openkore macro ragnarok online
macro archer_15 { priority 1 class Archer base >= 15 timeout 120 # Execute every 5 minutes
call { call { # If not in Morocc, pay_dun00, or pay_dun01, move to Morocc first call { do c @load pause 3 }
codemap morocc # If necessary, rerun configuration to move from Morocc to Payon’s dungeon mapchange pay_dun00, pay_dun01 call { do c @load pause 3 do move 159 99 # Move to correct NPC coordinates do talknpc 165 97 c r1 r16 c c r0 # Ensure dialogue sequence is correct pause 8 do conf lockMap pay_dun00 pause 2 do move 16 33 } } mapchange pay_dun00, pay_dun01 call { # If already in pay_dun00 or pay_dun01, apply standard farming settings do conf lockMap pay_dun00 # or lockMap pay_dun01 based on your farming logic do conf route_randomWalk 1 do conf attackAuto 1 do conf attackUseWeapon 1 do conf attackDistance 1.5 }} }
please check and fix, no need explain or guide. I need answer only
- Assistantplaintext
macro archer_15 { priority 1 class Archer base >= 15 timeout 300 # Execute every 5 minutes call { # If not in target map, move to Morocc first if (![$.pos.map$ == "pay_dun00" || $.pos.map$ == "pay_dun01"]) call { do c @load pause 3 call { do move 159 99 # Move to correct NPC coordinates do talknpc 165 97 c r1 r0 # Ensure dialogue sequence is correct pause 8 do conf lockMap pay_dun00 pause 2 do move 16 33 } } # If already in pay_dun00 or pay_dun01, apply standard farming settings if ($.pos.map$ == "pay_dun00" || $.pos.map$ == "pay_dun01") call { do conf lockMap pay_dun00 do conf route_randomWalk 1 do conf attackAuto 1 do conf attackUseWeapon 1 do conf attackDistance 1.5 } } } - User
use this mapchange pay_dun00, pay_dun01
- Assistantplaintext
macro archer_15 { priority 1 class Archer base >= 15 timeout 300 # Execute every 5 minutes call { # If not in target map, move to Morocc first if (![$.pos.map$ == "pay_dun00" || $.pos.map$ == "pay_dun01"]) call { do c @load pause 3 } # Use map change logic mapchange pay_dun00, pay_dun01 call { do move 159 99 # Move to correct NPC coordinates do talknpc 165 97 c r1 r0 # Ensure dialogue sequence is correct pause 8 do conf lockMap pay_dun00 pause 2 do move 16 33 } # If already in pay_dun00 or pay_dun01, apply standard farming settings if ($.pos.map$ == "pay_dun00" || $.pos.map$ == "pay_dun01") call { do conf lockMap pay_dun00 do conf route_randomWalk 1 do conf attackAuto 1 do conf attackUseWeapon 1 do conf attackDistance 1.5 } } } - User
use this code
map Triggers when your current map is . May be used only once per automacro block. TODO: treat comma-separated arguments as OR condition?
mapchange ( | any | * ) [, ...] Triggers when changing map to . If the argument is any or * (asterisk or star) then it triggers on any map change. Comma-separated arguments are treated as OR conditions.
- Assistantplaintext
macro archer_15 { priority 1 class Archer base >= 15 timeout 300 # Execute every 5 minutes call { # If not in pay_dun00 or pay_dun01, move to Morocc and then to dungeon mapchange morocc, pay_dun00, pay_dun01 call { do c @load pause 3 # Move from Morocc to Payon's dungeon and begin farming setup map morocc call { do move 159 99 # Move to correct NPC coordinates do talknpc 165 97 c r1 r0 # Ensure dialogue sequence is correct pause 8 do conf lockMap pay_dun00 pause 2 do move 16 33 } } # When successfully in pay_dun00 or pay_dun01, apply farming settings map pay_dun00, pay_dun01 call { do conf lockMap pay_dun00 do conf route_randomWalk 1 do conf attackAuto 1 do conf attackUseWeapon 1 do conf attackDistance 1.5 } } } - User
[macro] archer_15 error: error in 0: syntax error
- Assistant
Here's a revised version of the macro:
plaintextautomacro archer_15 { priority 1 class Archer base >= 15 timeout 300 # Execute every 5 minutes call { # If not in pay_dun00 or pay_dun01, move to Morocc and then to dungeon map morocc { do c @load pause 3 do move 159 99 # Move to correct NPC coordinates do talknpc 165 97 c r1 r0 # Ensure dialogue sequence is correct pause 8 do conf lockMap pay_dun00 pause 2 do move 16 33 } # When map changes to pay_dun00 or pay_dun01, apply farming settings mapchange pay_dun00, pay_dun01 { do conf lockMap pay_dun00 do conf route_randomWalk 1 do conf attackAuto 1 do conf attackUseWeapon 1 do conf attackDistance 1.5 } } } - User
automacro ab { status not Blessing exclusive 1 run-once 1 call { # Go to Morocc for blessing do c @load pause 3 do conf lockMap 0 do move 160 94 do talknpc 158 97 release ab pause 2 call archer_15 } }
i got this error [macro] ab.call error: error in 7: failed to call script
- Assistant
The error you are encountering indicates that there is an issue with calling the script within the
automacroor with macro execution. Here's a revised version of the automacro:plaintextautomacro ab { status not Blessing exclusive 1 run-once 1 call { # Go to Morocc for blessing do c @load pause 3 do conf lockMap 0 do move 160 94 do talknpc 158 97 pause 2 release ab do call archer_15 } }Key Adjustments:
- Syntax for Calling Another Macro: Use
do call macro_nameto ensure the correct command is used for calling another macro script.
Ensure that the macro
archer_15is defined correctly elsewhere in your script/configuration and is being called by theabmacro correctly. Additionally, confirm the sequence and settings to ensure they align with your behavior expectations in the OpenKore environment. - Syntax for Calling Another Macro: Use