RETURN OF THE SAIYANS / RoTS Helper
Script Reference
RoTS scripts use a bounded, ElfBot-style command language in Hotkeys, Shortkeys and Cavebot Actions. This reference lists reviewed RoTS commands for release 1.0.36; it does not execute arbitrary Lua.
Published version 1.0.36QUICK START
How scripts look
selecttask "Bear"selectTask("Dark Wolf")selecttask "Bear" | say "Task selected"canceltask "Rat"cancelTask("Rat") | wait 1000 | selectTask("Bear")COMMANDS & VALUES
Find a script command
Commands do something. Values starting with $ can be used in conditions and expressions.
Tablet tasks
selecttask "TASK NAME"Select a CC BioTech Lab task by its exact name, ignoring letter case. Requests the current list and uses the server-provided task ID, without opening the tablet yourself or requiring you to stand in the lab. Native server responses may update the tablet. Room unlocks, minimum level and available slots still apply. Waits for server confirmation before continuing; a failed or timed-out selection ends the remaining script. Does not cancel tasks or claim rewards.
selectTask("TASK NAME")Function-style alias of selecttask, for example selectTask("Bear"). Quote names containing spaces. This is a supported script command, not a g_game.selectTask Lua API. An already selected task is reused without sending another pick-up request.
canceltask "TASK NAME"Cancel exactly one named in-progress task, ignoring letter case. WARNING: cancellation discards its progress. Reads a fresh native active-task snapshot even if the tablet is closed, uses that active task ID, and refreshes again to confirm removal before continuing. Missing, ambiguous or completed tasks are not cancelled. Other tasks and rewards are unchanged. A failed or timed-out cancellation ends the remaining script.
cancelTask("TASK NAME")Function-style alias of canceltask, for example cancelTask("Rat"). Use wait 1000 before a following selecttask to respect the native request cooldown. Completed tasks must be claimed through the normal tablet; this command never claims rewards.
Script flow
COMMAND | COMMANDRun commands in sequence. Task selection and cancellation wait for confirmation before the next command.
wait MSWait the specified number of milliseconds before continuing the script.
if [EXPRESSION] COMMANDRun COMMAND only when the expression is true; comparisons, arithmetic, && and || are supported.
ifnot [EXPRESSION] COMMANDRun COMMAND only when the expression is false.
auto DELAY COMMANDRepeat a Hotkey or Shortkey script at the given interval. Use task selection as a one-shot Cavebot Action or hotkey rather than polling it repeatedly.
Game and helper
say TEXTSend TEXT through game chat.
log TEXTShow a helper script status message.
fasttargetUse the RoTS battle module to select its first target.
nexttargetUse the RoTS battle module to select its next target.
settargeting VALUEEnable, disable or toggle helper Targeting with on, off or toggle.
setcavebot VALUEEnable, disable or toggle Cavebot with on, off or toggle.
gotolabel "LABEL"Jump to a Cavebot waypoint with this custom label.
Read-only values
$connected1 while connected to the game, otherwise 0.
$hppcYour local character health percentage.
$levelYour local character level.
$posx · $posy · $poszYour local character map coordinates and floor.
No matching commands in this helper.
Use selecttask "Bear" or canceltask "Rat" in a Hotkey, Shortkey or Cavebot Action. Cancellation loses task progress; completed tasks are protected. Each response phase has a 5-second timeout, and cancellation requests are spaced by at least 1 second. The helper never fabricates task IDs, bypasses unlocks or claims success without a server response. The server supplies kills and maxKills for task progress; checking progress and claiming rewards are not script commands in this release.