Server Commands

From Newerth: Savage Wiki

Jump to: navigation, search

Contents

[edit] Introduction

  • Parameters shown between the symbols < > are REQUIRED.
  • Parameters shown between the symbols [ ] are optional.
  • The parameters [amount] , [team] and [client] must always be integer numbers.


[edit] Game Status

 >pause [duration]
   Pause the Game for all connected clients.
     [duration] (in msec) can be used to automatically unpause after delay has expired.
 >unpause
   Unpause the Game.
 >endgame <team>
   End the game with the specified team victorious.
 >restartmatch
   Force the server to reload the current map.
 >svchat <message>
   Broadcast specified message to all clients.

[edit] Team Commands

 >giveresource <resourceName> [amount] [team]
   Give unlimited amount of the specified resource (ie: gold, stone) to all teams.
     [amount] can be used to specify the amount of resource to be given.
     [team] can be used to give only to the specified team.
 >shuffleteams
   Balance the number of players in each team.

[edit] Player Commands

 >givemoney [amount] [client]
   Give $2000 (default) to all clients currently belonging to a team.
     [amount] can be used to specify the amount of gold to be given.
     [client] can be used to give only to the specified client.
 >givestate <client> <stateName> [duration]
   Give specified state to client for 10 seconds (default).
     [duration] can be used to modify the duration of the state.
 >giveexp <client> <amount>
   Give specified amount of experience to client.
     <client> can also take the value "all" to affect every clients.
     <amount> can be either positive or negative.
 >setexp <client> <value>
   Set the experience of client to specified value.
     <client> can also take the value "all" to affect every clients.
     <value> must always be positive.
 >revive <client> [healthPercent]
   Resurrect client (if dead) with 50% of full health.
     [healthPercent] can be used to modify this percentage (value in the range [0:1])
 >mute <client>
   Mute specified client.
 >unmute <client>
   Unmute specified client.

[edit] Bot Commands

Bots are also refered to as "Virtual Clients".

They are Virtual Player Units controlled by the Bot Plugin system.

A C/C++ SDK will be available in the future to program 3rd party Bot Plugins.


[edit] Basic Management

 >botadd <numbots>
   Add specified amount of bots to the server.
 >botrem <botnum>
   Remove bot with specified client ID from server.
 >botspawn <botnum>
   Spawn selected bot near command centre.
 >botkill <botnum>
   Kills selected bot (only works if bot has already spawned).

[edit] Team/Squad Management

 >botteam <botnum> <team>
   Switch selected bot to specified team.
 >botsquad <botnum> <squad>
   Switch selected bot to specified squad.

[edit] Lobby Management

 >botunit <botnum> <unit>
   Bot attempts to purchase specified unit (ex: human_savage).
 >botgive <botnum> <wpn/item>
   Bot attempts to purchase specified weapon or item (ex: beast_snare).
 >botgiveback <botnum> <wpn/item>
   Bot returns specified weapon or item from inventory (ex: human_repeater).
 >botrequest <botnum> <id> <amount/type>
   Bot sends a request to commander.

[edit] In-Game Controls

 >botitem <botnum> <slot>
   Bot selects specified slot in his inventory.
 >botctrl <botnum> <movement/action>
   Bot performs the specified movement or action.
     Valid movements: fwd, bck, lft, rgt, jmp (and "stp" to stop all movements).
     Valid actions: att, blk, use, spr (and "clr" to stop all actions).
 >botaxis <botnum> <axis> <value>
   Bot rotate specified axis to match value.
     Valid axis: pit, yaw.
     Valid values: 0-360.

[edit] Miscellaneous

 >botclientid <botCommand> <clientId> |arguments|
   Advanced command to use if you don't know the bot's number <botnum> for the other commands (e.g. scripts, triggers).
     Example: botclientid botunit 5 human_savage