routeweights.txt: Difference between revisions
(Created page with 'The file routeweights.txt allows you to modify Kore's map routing by specifying weights for maps that Kore is walking through to reach the destination. ==Syntax== The format of …') |
No edit summary |
||
Line 20: | Line 20: | ||
'''''Note.''''' Lines that begin with the pound sign (#) are comment lines. They are ignored by Kore. | '''''Note.''''' Lines that begin with the pound sign (#) are comment lines. They are ignored by Kore. | ||
[[Category:Control]] |
Revision as of 12:08, 4 November 2009
The file routeweights.txt allows you to modify Kore's map routing by specifying weights for maps that Kore is walking through to reach the destination.
Syntax
The format of this file is simply a set of lines that observes the following syntax:
<map name> <weight>
Details
<map name>
This is the name of a map as shown by the where command in Kore, or the /where command in the Ragnarok Online client. For example: prontera, morocc, prt_fild08, etc.
<weight>
This is a number (can be negative) that specifies additional steps that Kore would think it has to walk through inside the map aside from the actual calculated route distance.
Kore generally tries to use the shortest path to get to the desired destination map. The path is counted in number of steps (tiles) the character would have to walk. Map routing weights can be seen as additional steps that Kore thinks it would have to do on a specific map. Positive weights makes Kore avoid a map; negative weights makes it prefer a map.
Examples
The following example, will make Kore avoid walking through prt_fild08, as long as there is an alternative path that has not more than 500 additional steps. Therefore you could say Kore prefers to walk up to 500 additional steps rather than walking through prt_fild08.
prt_fild08 500
Using a weight of 10000 makes it pretty sure to completely avoid a map.
Note. Lines that begin with the pound sign (#) are comment lines. They are ignored by Kore.