Ragnarok online, using openkore to for bot Novice to Sniper #novice lv1-15 automacro…
- User
Ragnarok online, using openkore to for bot
Novice to Sniper #novice lv1-15
code - Assistant
Certainly! I've adjusted your automacro to ensure the bot properly handles death by using the teleport NPC again to return to your desired map. Here's the adjusted portion of your script:
perl#lv archer automacro archer_15 { priority 3 exclusive 1 run-once 1 class Archer base >= 15 call { do move 159 99 do talknpc 160 97 c r2 r24 c r0 #talk to npc to teleport to pay_dun00 do conf lockMap pay_dun00 release archer_15_keep_position # ensures the state is maintained } } automacro archer_15_keep_position { map !pay_dun00 # if not on map pay_dun00 class Archer call { do talknpc 160 97 c r2 r24 c r0 } }The new automacro
archer_15_keep_positionchecks if the bot is no longer on thepay_dun00map (like after dying and respawning) and teleports back using the NPC. This way, your bot will attempt to maintain its locked map to . Be sure to apply a similar logic to other map-specific macros as needed. - User
I got error while in pay_dun00
- Assistant
It seems like there might be an issue in the configuration or automacro logic that is causing the bot to behave unexpectedly. Let's adjust your setup to ensure the bot handles these situations correctly. Here's an updated approach to handle locking to a map and re-teleportation using the NPC again if necessary:
perl - User
Coordinates 159 99 are not walkable on the map pay_dun00 Could not find an NPC at location (165,97).
this error when I at pay_dun00
- Assistant
The provided coordinates in your script must refer to the locations within the map
pay_dun00where the NPC teleportation is initiated, as well as a starting point that the bot can reach. If the coordinates are incorrect, you need to adjust them according to the correct locations on your server.To rectify this issue, let's make sure we have the correct NPC location for teleportation. Here's a revised script assuming we've corrected the NPC coordinates. You will need to replace with the correct coordinates based on your server setup: