Menus["help player"] = { text = color.Orange .. "Player command list:\n" .. color.Yellow .. "/message \n" .. color.White .. "Send a private message to a player " .. color.Yellow .. "(/msg)\n" .. color.Yellow .. "/me \n" .. color.White .. "Send a message written in the third person\n" .. color.Yellow .. "/local \n" .. color.White .. "Send a message that only players in your area can read " .. color.Yellow .. "(/l)\n" .. color.Yellow .. "/list\n" .. color.White .. "List all players on the server\n" .. color.Yellow .. "/anim \n" .. color.White .. "Play an animation on yourself, with a list of valid inputs being provided " .. "if you use an invalid one " .. color.Yellow .. "(/a)\n" .. color.Yellow .. "/speech \n" .. color.White .. "Play a certain speech on yourself, with a list of valid inputs being provided " .. "if you use invalid ones " .. color.Yellow .. "(/s)\n" .. color.Yellow .. "/craft\n" .. color.White .. "Open up a small crafting menu used as a scripting example\n" .. color.Yellow .. "/help\n" .. color.White .. "Get the list of available commands", buttons = { { caption = "Admin help", displayConditions = { menuHelper.conditions.requireAdminRank(2) }, destinations = { menuHelper.destinations.setDefault("help admin page 1") } }, { caption = "Moderator help", displayConditions = { menuHelper.conditions.requireAdminRank(1) }, destinations = { menuHelper.destinations.setDefault("help moderator page 1") } }, { caption = "Exit", destinations = nil } } } -- Handle commands that only exist based on config options if config.allowSuicideCommand == true then Menus["help player"].text = Menus["help player"].text .. "\n" .. color.Yellow .. "/suicide\n" .. color.White .. "Commit suicide" end if config.allowFixmeCommand == true then Menus["help player"].text = Menus["help player"].text .. "\n" .. color.Yellow .. "/fixme\n" .. color.White .. "Get unstuck from your current location; can only be used once every " .. config.fixmeInterval .. " seconds" end Menus["help moderator page 1"] = { text = color.Orange .. "Moderator command list page 1:\n" .. color.Yellow .. "/kick \n" .. color.White .. "Kick player\n" .. color.Yellow .. "/ban ip \n" .. color.White .. "Ban an IP address\n" .. color.Yellow .. "/ban name \n" .. color.White .. "Ban a player and all IP addresses stored for them\n" .. color.Yellow .. "/ban \n" .. color.White .. "Same as above, but using a pid as the argument\n" .. color.Yellow .. "/unban ip \n" .. color.White .. "Unban an IP address\n" .. color.Yellow .. "/unban name \n" .. color.White .. "Unban a player name and all IP addresses stored for them\n" .. color.Yellow .. "/banlist ips/names\n" .. color.White .. "Print all banned IPs or all banned player names\n" .. color.Yellow .. "/ipaddresses \n" .. color.White .. "Print all the IP addresses used by a player " .. color.Yellow .. "(/ips)\n" .. color.Yellow .. "/confiscate \n" .. color.White .. "Open up a window where you can confiscate an item from a player\n" .. color.Yellow .. "/sethour \n" .. color.White .. "Set the current hour in the world's time\n" .. color.Yellow .. "/setday \n" .. color.White .. "Set the current day of the month in the world's time\n" .. color.Yellow .. "/setmonth \n" .. color.White .. "Set the current month in the world's time\n" .. color.Yellow .. "/settimescale \n" .. color.White .. "Set the timescale in the world's time (30 by default, which is 120 real seconds " .. "per ingame hour)\n", buttons = { { caption = "Moderator help page 2", displayConditions = { menuHelper.conditions.requireAdminRank(1) }, destinations = { menuHelper.destinations.setDefault("help moderator page 2") } }, { caption = "Admin help", displayConditions = { menuHelper.conditions.requireAdminRank(2) }, destinations = { menuHelper.destinations.setDefault("help admin page 1") } }, { caption = "Player help", destinations = { menuHelper.destinations.setDefault("help player") } }, { caption = "Exit", destinations = nil } } } Menus["help moderator page 2"] = { text = color.Orange .. "Moderator command list page 2:\n" .. color.Yellow .. "/teleport /all\n" .. color.White .. "Teleport another player to your position " .. color.Yellow .. "(/tp)\n" .. color.Yellow .. "/teleportto \n" .. color.White .. "Teleport yourself to another player " .. color.Yellow .. "(/tpto)\n" .. color.Yellow .. "/cells\n" .. color.White .. "List all loaded cells on the server\n" .. color.Yellow .. "/getpos \n" .. color.White .. "Get player position and cell\n" .. color.Yellow .. "/setattr \n" .. color.White .. "Set a player's attribute to a certain value\n" .. color.Yellow .. "/setskill \n" .. color.White .. "Set a player's skill to a certain value\n" .. color.Yellow .. "/setmomentum \n" .. color.White .. "Set a player's momentum to certain values\n" .. color.Yellow .. "/setauthority \n" .. color.White .. "Forcibly set a certain player as the authority of a cell " .. color.Yellow .. "(/setauth)", buttons = { { caption = "Moderator help page 1", displayConditions = { menuHelper.conditions.requireAdminRank(1) }, destinations = { menuHelper.destinations.setDefault("help moderator page 1") } }, { caption = "Admin help", displayConditions = { menuHelper.conditions.requireAdminRank(2) }, destinations = { menuHelper.destinations.setDefault("help admin page 1") } }, { caption = "Player help", destinations = { menuHelper.destinations.setDefault("help player") } }, { caption = "Exit", destinations = nil } } } Menus["help admin page 1"] = { text = color.Orange .. "Admin command list page 1:\n" .. color.Yellow .. "/setai activate/combat/follow /\n" .. color.White .. "Make the actor with a certain refIndex target a player or another refIndex\n" .. color.Yellow .. "/setai cancel\n" .. color.White .. "Make the actor with a certain refIndex cancel its AI sequence\n" .. color.Yellow .. "/setai travel \n" .. color.White .. "Make the actor with a certain refIndex travel to certain X, Y and Z coordinates\n" .. color.Yellow .. "/setai wander true/false\n" .. color.White .. "Make the actor with a certain refIndex wander for the specified distance and duration, with repetition being true or false\n" .. color.Yellow .. "/setrace \n" .. color.White .. "Change a player's race\n" .. color.Yellow .. "/sethead \n" .. color.White .. "Change a player's head\n" .. color.Yellow .. "/sethair \n" .. color.White .. "Change a player's hairstyle\n" .. color.Yellow .. "/disguise \n" .. color.White .. "Set a player's creature disguise, or remove it by using an invalid refId\n" .. color.Yellow .. "/usecreaturename on/off\n" .. color.White .. "Set whether a player disguised as a creature shows up as having that creature's " .. "name when hovered over\n" .. color.Yellow .. "/addmoderator \n" .. color.White .. "Promote player to moderator\n" .. color.Yellow .. "/removemoderator \n" .. color.White .. "Demote player from moderator\n" .. color.Yellow .. "/setdifficulty /default\n" .. color.White .. "Set the difficulty for a particular player\n" .. color.Yellow .. "/setconsole on/off/default\n" .. color.White .. "Enable/disable in-game console for player\n", buttons = { { caption = "Admin help page 2", displayConditions = { menuHelper.conditions.requireAdminRank(2) }, destinations = { menuHelper.destinations.setDefault("help admin page 2") } }, { caption = "Moderator help", displayConditions = { menuHelper.conditions.requireAdminRank(1) }, destinations = { menuHelper.destinations.setDefault("help moderator page 1") } }, { caption = "Player help", destinations = { menuHelper.destinations.setDefault("help player") } }, { caption = "Exit", destinations = nil } } } Menus["help admin page 2"] = { text = color.Orange .. "Admin command list page 2:\n" .. color.Yellow .. "/setbedrest on/off/default\n" .. color.White .. "Enable/disable bed resting for player\n" .. color.Yellow .. "/setwildrest on/off/default\n" .. color.White .. "Enable/disable wilderness resting for player\n" .. color.Yellow .. "/setwait on/off/default\n" .. color.White .. "Enable/disable waiting for player\n" .. color.Yellow .. "/setscale \n" .. color.White .. "Sets a player's scale\n" .. color.Yellow .. "/setwerewolf on/off\n" .. color.White .. "Set the werewolf state of a particular player\n" .. color.Yellow .. "/storeconsole \n" .. color.White .. "Store a certain console command for a player\n" .. color.Yellow .. "/runconsole () ()\n" .. color.White .. "Run a stored console command on a player, with optional count and interval\n" .. color.Yellow .. "/placeat () ()\n" .. color.White .. "Place a certain object at a player's location, with optional count and interval\n" .. color.Yellow .. "/spawnat () ()\n" .. color.White .. "Spawn a certain creature or NPC at a player's location, with optional count and " .. "interval\n" .. color.Yellow .. "/setloglevel /default\n" .. color.White .. "Set the enforced log level for a particular player\n" .. color.Yellow .. "/setphysicsfps /default\n" .. color.White .. "Set the physics framerate for a particular player\n" .. color.Yellow .. "/setcollision on/off\n" .. color.White .. "Set the collision state for an object category (PLAYER, ACTOR or PLACED_OBJECT), " .. "with the third optional argument affecting whether placed objects use actor-like collision", buttons = { { caption = "Admin help page 1", displayConditions = { menuHelper.conditions.requireAdminRank(2) }, destinations = { menuHelper.destinations.setDefault("help admin page 1") } }, { caption = "Moderator help", displayConditions = { menuHelper.conditions.requireAdminRank(1) }, destinations = { menuHelper.destinations.setDefault("help moderator page 1") } }, { caption = "Player help", destinations = { menuHelper.destinations.setDefault("help player") } }, { caption = "Exit", destinations = nil } } }