diff --git a/data/sql/updates/pending_db_world/rev_1534115647861309430.sql b/data/sql/updates/pending_db_world/rev_1534115647861309430.sql new file mode 100644 index 000000000..926b9c1ec --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1534115647861309430.sql @@ -0,0 +1,12 @@ +INSERT INTO version_db_world (`sql_rev`) VALUES ('1534115647861309430'); + +DELETE FROM `command` WHERE `name` IN +('npc set factionid', +'npc set faction temp', +'npc set faction original', +'npc set faction permanent'); + +INSERT INTO `command` (`name`, `security`, `help`) VALUES +('npc set faction temp', 3, 'Syntax: .npc set faction temp #factionid\r\n\r\nTemporarily set the faction of the selected creature to #factionid.'), +('npc set faction original', 3, 'Syntax: .npc set faction original\r\n\r\nRevert the temporal faction of the selected creature.'), +('npc set faction permanent', 3, 'Syntax: .npc set faction permanent #factionid\r\n\r\nPermanently set the faction of the selected creature to #factionid.'); diff --git a/src/server/scripts/Commands/cs_npc.cpp b/src/server/scripts/Commands/cs_npc.cpp index de37cfce6..49b3db28a 100644 --- a/src/server/scripts/Commands/cs_npc.cpp +++ b/src/server/scripts/Commands/cs_npc.cpp @@ -133,9 +133,9 @@ public: static std::vector npcFactionCommandTable = { - { "Permanent", SEC_ADMINISTRATOR, false, &HandleNpcSetFactionIdCommand, "" }, - { "Temp", SEC_ADMINISTRATOR, false, &HandleNpcSetFactionTempIdCommand, "" }, - { "Original", SEC_ADMINISTRATOR, false, &HandleNpcSetOriginalFaction, "" } + { "permanent", SEC_ADMINISTRATOR, false, &HandleNpcSetFactionIdCommand, "" }, + { "temp", SEC_ADMINISTRATOR, false, &HandleNpcSetFactionTempIdCommand, "" }, + { "original", SEC_ADMINISTRATOR, false, &HandleNpcSetOriginalFaction, "" } }; static std::vector npcSetCommandTable =