mwBot
Get test api key
English zone
sección española
MW Bot Usage Calculator
Download bot
last update files

 

Obstacle maps. How to use it? character auto navigation

Started by Nikolaj, 20 July 2024, 12:29

Previous topic - Next topic

Nikolaj

To use auto-navigation (the `goposition` function), you need to create or obtain a ready-made terrain map. I create obstacle maps to the best of my abilities. The current archive of maps can be found in the bot's file exchange. My maps are created in the Chinese version, so you need to rename them and place them in the wall folder.
I'll explain how to use obstacle maps in your scripts. There are two ways to use them.
To have the bot automatically use the terrain map, you must name it exactly as it is in your game. For example, check the coordinates:
Rock Square;Giant Rock City;204;195;central plains
The name of this terrain map is: central plains
If there is a file named `central plains` in the wall folder, the bot will get the list of obstacle coordinates from it. If you have a different file name, you should connect it in the script using the command:
mapwall=YourFilename
If you don't do any of this, don't be surprised if your character runs into walls and gets stuck.
A few words about the cartographer. Don't forget to check the list of commands for creating scripts.