From ab18c1a99390ce23825e706958c675953c1023a3 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Mon, 15 Mar 2021 12:31:18 -0500 Subject: [PATCH] Add gotoloc to goto game locations, add trig cmds --- scripts/server/command.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/scripts/server/command.js b/scripts/server/command.js index c16340c8..ecf7e068 100644 --- a/scripts/server/command.js +++ b/scripts/server/command.js @@ -289,7 +289,7 @@ function loadCommands() { commandData("gotobiz", gotoBusinessCommand, "", getStaffFlagValue("basicModeration"), true, true), commandData("gotohouse", gotoHouseCommand, "", getStaffFlagValue("basicModeration"), true, true), commandData("gotojob", gotoJobLocationCommand, " ", getStaffFlagValue("basicModeration"), true, true), - //commandData("gotoloc", gotoLocationCommand, "", getStaffFlagValue("basicModeration"), true, true), + commandData("gotoloc", gotoGameLocationCommand, "", getStaffFlagValue("basicModeration"), true, true), commandData("fr", teleportForwardCommand, "", getStaffFlagValue("basicModeration"), true, true), commandData("ba", teleportBackwardCommand, "", getStaffFlagValue("basicModeration"), true, true), commandData("lt", teleportLeftCommand, "", getStaffFlagValue("basicModeration"), true, true), @@ -315,6 +315,18 @@ function loadCommands() { commandData("usechar", useCharacterCommand, "", getStaffFlagValue("none"), true, false), ], translate: [], + trigger: [ + commandData("addtrig", createTriggerCommand, "", getStaffFlagValue("manageServer"), true, false), + commandData("deltrig", deleteTriggerCommand, "", getStaffFlagValue("manageServer"), true, false), + commandData("addtrigcond", addTriggerConditionCommand, " ", getStaffFlagValue("manageServer"), true, false), + commandData("deltrigcond", removeTriggerConditionCommand, " ", getStaffFlagValue("manageServer"), true, false), + commandData("addtrigresp", addTriggerResponseCommand, " ", getStaffFlagValue("manageServer"), true, false), + commandData("deltrigresp", removeTriggerResponseCommand, " ", getStaffFlagValue("manageServer"), true, false), + commandData("triggers", listTriggersCommand, "[search value]", getStaffFlagValue("manageServer"), true, false), + commandData("trigcond", listTriggerConditionsCommand, "", getStaffFlagValue("manageServer"), true, false), + commandData("trigresp", listTriggerResponsesCommand, "", getStaffFlagValue("manageServer"), true, false), + commandData("trigtoggle", toggleTriggerEnabledCommand, " [0/1 state]", getStaffFlagValue("manageServer"), true, false), + ], utilities: [], vehicle: [ commandData("addveh", createVehicleCommand, "", getStaffFlagValue("manageVehicles"), true, false),