wiki:pn

This command tells you the opcode and id number of the command 2 steps in the queue.

Parameters:

  • This command does not accept any parameters.

Responds:

  • X OC ID where X, is the number of commands in the queue (not counting this command), OC is the opcode of the next command, and ID is the id number of the next command.
  • X if X as above is 0 or 1 - in this case there is no OC or ID to print.

Reports:

  • done immediately.
  • popped if popped by po.
  • forgotten if deleted by fa.

Example:

  • User sends: "n mf 222 0 0 1"
  • Bot begins moving.
  • User sends: "n pa 12"
  • Bot stops moving.
  • User sends: "n pn 512"
  • Bot replies "rs pn 512 2 mf 222"
  • Bot replies "cp pn 512 done"
Last modified 13 years ago Last modified on Jun 6, 2011 2:32:50 PM