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