| 1 | This [[ProtocolZero]] query asks the agent for how much ammunition it has on the provided weapon. The weapons are defined as follows: |
| 2 | * 1 = Gauntlet. (However, the gauntlet has infinite ammunition, so this is not a valid choice for [[mc]].) |
| 3 | * 2 = Machinegun. |
| 4 | * 3 = Shotgun. |
| 5 | * 4 = Grenade Launcher. |
| 6 | * 5 = Rocket Launcher. |
| 7 | * 6 = Lightning Gun. |
| 8 | * 7 = Railgun. |
| 9 | * 8 = Plasma Pistol. |
| 10 | * 9 = BFG. |
| 11 | |
| 12 | '''Parameters:''' |
| 13 | * 1: integer weapon, as listed above. |
| 14 | |
| 15 | '''Responds:''' |
| 16 | * ''X'' where X is the ammunition on the weapon being switched to. It only responds if the weapon switched to is a valid weapon. |
| 17 | |
| 18 | '''Reports:''' |
| 19 | * ''done'' once one the switch has begun. |
| 20 | * ''invalid_weapon'' if the entity does not have the weapon or the number provided was invalid or the gauntlet. |
| 21 | * ''popped'' if popped by [[po]]. |
| 22 | * ''forgotten'' if deleted by [[fa]] or [[fm]]. |
| 23 | * ''replaced'' if replaced by a command scheduled with 'r'. |
| 24 | |
| 25 | '''Example:''' |
| 26 | * User sends: "n mc 512 5" |
| 27 | * Bot replies: "rs mc 512 20" |
| 28 | * Bot replies: "cp mc 512 done" |