269 lines
13 KiB
Lua
269 lines
13 KiB
Lua
Menus["help player"] = {
|
|
text = color.Orange .. "Player command list:\n" ..
|
|
color.Yellow .. "/message <pid> <text>\n" ..
|
|
color.White .. "Send a private message to a player " ..
|
|
color.Yellow .. "(/msg)\n" ..
|
|
color.Yellow .. "/me <text>\n" ..
|
|
color.White .. "Send a message written in the third person\n" ..
|
|
color.Yellow .. "/local <text>\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 <animation>\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 <type> <index>\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 <pid>\n" ..
|
|
color.White .. "Kick player\n" ..
|
|
color.Yellow .. "/ban ip <ip>\n" ..
|
|
color.White .. "Ban an IP address\n" ..
|
|
color.Yellow .. "/ban name <name>\n" ..
|
|
color.White .. "Ban a player and all IP addresses stored for them\n" ..
|
|
color.Yellow .. "/ban <pid>\n" ..
|
|
color.White .. "Same as above, but using a pid as the argument\n" ..
|
|
color.Yellow .. "/unban ip <ip>\n" ..
|
|
color.White .. "Unban an IP address\n" ..
|
|
color.Yellow .. "/unban name <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 <name>\n" ..
|
|
color.White .. "Print all the IP addresses used by a player " ..
|
|
color.Yellow .. "(/ips)\n" ..
|
|
color.Yellow .. "/confiscate <pid>\n" ..
|
|
color.White .. "Open up a window where you can confiscate an item from a player\n" ..
|
|
color.Yellow .. "/sethour <value>\n" ..
|
|
color.White .. "Set the current hour in the world's time\n" ..
|
|
color.Yellow .. "/setday <value>\n" ..
|
|
color.White .. "Set the current day of the month in the world's time\n" ..
|
|
color.Yellow .. "/setmonth <value>\n" ..
|
|
color.White .. "Set the current month in the world's time\n" ..
|
|
color.Yellow .. "/settimescale <value>\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 <pid>/all\n" ..
|
|
color.White .. "Teleport another player to your position " ..
|
|
color.Yellow .. "(/tp)\n" ..
|
|
color.Yellow .. "/teleportto <pid>\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 <pid>\n" ..
|
|
color.White .. "Get player position and cell\n" ..
|
|
color.Yellow .. "/setattr <pid> <attribute> <value>\n" ..
|
|
color.White .. "Set a player's attribute to a certain value\n" ..
|
|
color.Yellow .. "/setskill <pid> <skill> <value>\n" ..
|
|
color.White .. "Set a player's skill to a certain value\n" ..
|
|
color.Yellow .. "/setmomentum <pid> <x> <y> <z>\n" ..
|
|
color.White .. "Set a player's momentum to certain values\n" ..
|
|
color.Yellow .. "/setauthority <pid> <cell>\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 <refIndex> activate/combat/follow <pid>/<refIndex>\n" ..
|
|
color.White .. "Make the actor with a certain refIndex target a player or another refIndex\n" ..
|
|
color.Yellow .. "/setai <refIndex> cancel\n" ..
|
|
color.White .. "Make the actor with a certain refIndex cancel its AI sequence\n" ..
|
|
color.Yellow .. "/setai <refIndex> travel <x> <y> <z>\n" ..
|
|
color.White .. "Make the actor with a certain refIndex travel to certain X, Y and Z coordinates\n" ..
|
|
color.Yellow .. "/setai <refIndex> wander <distance> <duration> 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 <pid> <race>\n" ..
|
|
color.White .. "Change a player's race\n" ..
|
|
color.Yellow .. "/sethead <pid> <body part id>\n" ..
|
|
color.White .. "Change a player's head\n" ..
|
|
color.Yellow .. "/sethair <pid> <body part id>\n" ..
|
|
color.White .. "Change a player's hairstyle\n" ..
|
|
color.Yellow .. "/disguise <pid> <refId>\n" ..
|
|
color.White .. "Set a player's creature disguise, or remove it by using an invalid refId\n" ..
|
|
color.Yellow .. "/usecreaturename <pid> 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 <pid>\n" ..
|
|
color.White .. "Promote player to moderator\n" ..
|
|
color.Yellow .. "/removemoderator <pid>\n" ..
|
|
color.White .. "Demote player from moderator\n" ..
|
|
color.Yellow .. "/setdifficulty <pid> <value>/default\n" ..
|
|
color.White .. "Set the difficulty for a particular player\n" ..
|
|
color.Yellow .. "/setconsole <pid> 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 <pid> on/off/default\n" ..
|
|
color.White .. "Enable/disable bed resting for player\n" ..
|
|
color.Yellow .. "/setwildrest <pid> on/off/default\n" ..
|
|
color.White .. "Enable/disable wilderness resting for player\n" ..
|
|
color.Yellow .. "/setwait <pid> on/off/default\n" ..
|
|
color.White .. "Enable/disable waiting for player\n" ..
|
|
color.Yellow .. "/setscale <pid> <value>\n" ..
|
|
color.White .. "Sets a player's scale\n" ..
|
|
color.Yellow .. "/setwerewolf <pid> on/off\n" ..
|
|
color.White .. "Set the werewolf state of a particular player\n" ..
|
|
color.Yellow .. "/storeconsole <pid> <command>\n" ..
|
|
color.White .. "Store a certain console command for a player\n" ..
|
|
color.Yellow .. "/runconsole <pid> (<count>) (<interval>)\n" ..
|
|
color.White .. "Run a stored console command on a player, with optional count and interval\n" ..
|
|
color.Yellow .. "/placeat <pid> <refId> (<count>) (<interval>)\n" ..
|
|
color.White .. "Place a certain object at a player's location, with optional count and interval\n" ..
|
|
color.Yellow .. "/spawnat <pid> <refId> (<count>) (<interval>)\n" ..
|
|
color.White .. "Spawn a certain creature or NPC at a player's location, with optional count and " ..
|
|
"interval\n" ..
|
|
color.Yellow .. "/setloglevel <pid> <value>/default\n" ..
|
|
color.White .. "Set the enforced log level for a particular player\n" ..
|
|
color.Yellow .. "/setphysicsfps <pid> <value>/default\n" ..
|
|
color.White .. "Set the physics framerate for a particular player\n" ..
|
|
color.Yellow .. "/setcollision <category> 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 }
|
|
}
|
|
}
|