diff --git a/command_npc_talk_generic.lua b/command_npc_talk_generic.lua index eed17ae..1deffa8 100644 --- a/command_npc_talk_generic.lua +++ b/command_npc_talk_generic.lua @@ -24,6 +24,10 @@ minetest.register_chatcommand( 'npc_talk_generic', { local res = yl_speak_up.check_and_add_as_generic_dialog(dialog, n_id) minetest.chat_send_player(pname, "Adding NPC "..tostring(n_id).."..: "..tostring(res)) do_reload = true + elseif(parts[1] == "add" and i ~= -1) then + minetest.chat_send_player(pname, "NPC "..tostring(parts[2]).. + " is already registered as a generic NPC. You may try to ".. + "remove and add it again if something went wrong.") elseif(parts[1] == "remove" and i ~= -1) then table.remove(generic_npc_list, i) minetest.chat_send_player(pname, "Removing NPC "..tostring(parts[2]).." ..")