@Snaplatack
Hello, you need to create a file named Test.cs and then, using any text editor, insert the code below and add this plugin to the server.
using System;
namespace Oxide.Plugins
{
[Info("Test", "IIIaKa", "0.1.0")]
class Test : RustPlugin
{
void OnNpcConversationStart(NPCTalking npcTalking, BasePlayer player, ConversationData conversationData)
{
PrintWarning($"OnNpcConversationStart: {player.userID} => {npcTalking.GetType()}");
}
void OnNpcConversationEnded(NPCTalking npcTalking, BasePlayer player)
{
PrintError($"OnNpcConversationEnded: {player.userID} => {npcTalking.GetType()}");
}
}
}
After that, start and finish a conversation with the custom NPC. Two messages should appear in the console.
[Test] OnNpcConversationStart: *ID* => *TYPE*
[Test] OnNpcConversationEnded: *ID* => *TYPE*