For the complete documentation index, see llms.txt. This page is also available as Markdown.

📑CustomNpcCommand

Run commands when interacting with specific NPCs.

Links clicking on an NPC (at an exact position on the map) to the automatic execution of a command, as if the player themselves had typed it.

//IND	NPC	MAP	NPX	NPY	NPT	COM		Comment
  0	543	0	144	127	0	"/pkclear"	//LIMPAR PK
end

Column

Accepted values

What it is

IND

Number

Identifies the line.

NPC

Number of the NPC class

Which NPC triggers the command.

MAP

Number

Map where this NPC must be located.

NPX / NPY

Number

Exact position of the NPC on the map.

NPT

0 or 1

1 = executes the command while "talking" to the NPC (allows the command to reply in the chat directed to the NPC). 0 = executes the command directly, without a conversation context.

COM

Text in quotation marks

The executed command (with the /).

Notes

  • The combination of NPC + MAP + NPX + NPY must exactly match the actual position of the NPC on the map, in the same way as in CustomNpcMove.txt.

  • The executed command must already exist in the system (whether it is a standard command from Command.txt or a custom one) — this file only triggers the command, it does not create a new one.

Last updated