Difference between revisions of "routeweights.txt"

From OpenKore Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
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.
+
Map routing weights for maps that Kore is walking through to reach the destination.
  
 
== Syntax ==
 
== Syntax ==
Line 7: Line 7:
  
 
=== Details ===
 
=== Details ===
----
+
; <[[map name]]>
 
+
: This is the name of a map as shown by the [[where]] command in Kore, or the [[Client Commands|/where]] command in the original client. For example: prontera, morocc, prt_fild08, etc.  
; <[[References#Map Names|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.  
 
  
  

Revision as of 13:10, 16 August 2012

Map routing 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 original 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.