Paths

This API allows you to use path finding to create a path to a destination. These functions can only be called once every 5 seconds.

generate_path(x, y)

Usage

generate_path(-1207, 2332)

Returns

None if the path could not be found, False if 5s have not passed / the character is not in game, or a list of tuples containing the walk path. Cave paths will have an extra field at position 0 in the tuple for the region. Teleporting is not supported.

[(-1183, 2299), (-1193, 2309), (-1202, 2320), (-1205, 2328)]

generate_script(region, x, y, z)

Usage

generate_script(25000, 6432, 1095, 0)

Returns

None if the path could not be found, False if 5s have not passed / the character is not in game, or a list of strings with the walk path including teleports and wait commands.

['walk,3548,2068,0', 'walk,3543,2064,0', 'walk,3535,2076,0', 'walk,3540,2085,0', 'wait,5000', 'teleport,GATE_WC,GATE_CH', 'wait,5000', 'walk,6432,1096,0', 'walk,6432,1077,0', 'walk,6444,1062,0', 'walk,6453,1045,0', 'walk,6453,1026,0', 'walk,6442,1011,0', 'walk,6440,992,0', 'walk,6440,973,0', 'walk,6439,969,0', 'walk,6435,965,0', 'walk,6435,915,0', 'walk,6435,914,0', 'walk,6435,895,0', 'walk,6431,876,0', 'walk,6424,858,0', 'walk,6413,842,0', 'walk,6405,827,0', 'walk,6403,808,0', 'walk,6400,800,0']

Last updated