avoid.txt

From OpenKore Wiki
Revision as of 12:52, 16 August 2012 by EternalHarvest (talk | contribs)
Jump to navigation Jump to search

Kore has the ability to avoid certain players. If the option avoidList in config.txt is enabled, you can list players in the file avoid.txt to make Kore automatically avoid certain players.

Depending on how you set the corresponding options for each player in the list, Kore can either disconnect or teleport when a player in the avoid list is seen. You can also make Kore disconnect when you detect a chat message from a player in the list. The file avoid.txt has two sections: [Players] and [ID].

Syntax

You specify player names that you want to avoid under the section [Players]. This section may contain one or more lines that observes the following syntax.

<player's name> (TAB(s)) <disconnect> <teleport> <disconnect on chat>


The [ID] section is the same as the [Players] section, but you specify player IDs instead of player names. This is usually used to avoid GMs who have the ability to change their names. The [ID] section may contain one or more lines that observes the following syntax:

<player's ID> (TAB(s)) <disconnect> <teleport> <disconnect on chat>

Details


<player name>
This is the name of the player you want to avoid.


<player ID>
This is the account ID of the player you want to avoid. You can obtain this value by using the pl console command if the player is nearby.


<disconnect>
This is a boolean that tells if Kore should disconnect when the player is seen on screen. When you disconnect due to avoiding players, Kore will reconnect after the number of seconds specified in the option avoidList_reconnect in config.txt.


<teleport>
This is a boolean that tells if Kore should teleport away when the player is seen on screen. You must have the Teleport Skill or Fly Wings in inventory or this option will fail (see also teleportAuto_useSkill).


<disconnect on chat>
This is a boolean that tells if Kore should disconnect when a chat message from the player is detected. When you disconnect due to avoiding players, Kore will reconnect after the number of seconds specified in the option avoidList_reconnect in config.txt.


Examples

If you know the names of the players you want to avoid, you can specify their names under the [Players] section as follows:

[Players]
Grand Master 1 0 0
Killer 0 0 1
Booya 0 1 1

In the example above, you will disconnect when "Grand Master" is in sight and when "Killer" or "Booya" sends you a chat message. You will also teleport when "Booya" is on sight. On the other hand, if you only know the player ID, place it under the [ID] section as follows:

[ID]
650874 1 0 1

The example above will make you disconnect whenever player #650874 is on screen, or when that player sends you a private message.