wiki:pk

Version 1 (modified by jpawlick, 13 years ago) (diff)

--

This command tells you the opcode and id number of the command that will be executed after it finishes. (In other words, if you do a "n pk..." it will tell you what command was currently executing when you sent that.)

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.
  • 0 if X as above is 0 - 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 pk 512"
  • Bot stops moving.
  • Bot replies "rs pk 512 1 mf 222"
  • Bot replies "cp pk 512 done"