Get information about a sleeve.
Index of the sleeve to retrieve information.
Object containing information about this sleeve.
RAM cost: 4 GB
Return a person object for this sleeve
storedCycles is the amount of Bonus Time in cycles, each translates to 200ms
Get augmentations installed on a sleeve.
Index of the sleeve to retrieve augmentations from.
List of augmentation names that this sleeve has installed.
RAM cost: 4 GB
Return a list of augmentation names that this sleeve has installed.
List purchasable augs for a sleeve.
Index of the sleeve to retrieve purchasable augmentations from.
List of augmentations that the player can buy for this sleeve.
RAM cost: 4 GB
Return a list of augmentations that the player can buy for this sleeve.
Get task of a sleeve.
Index of the sleeve to retrieve task from.
Object containing information for the current task that the sleeve is performing.
RAM cost: 4 GB
Return the current task that the sleeve is performing, or null if the sleeve is idle. All tasks have a "type" property, and other available properties depend on the type of task.
Purchase an aug for a sleeve.
Index of the sleeve to buy an aug for.
Name of the aug to buy. Must be an exact match.
True if the aug was purchased and installed on the sleeve, false otherwise.
RAM cost: 4 GB
Return true if the aug was purchased and installed on the sleeve.
Set a sleeve to perform Bladeburner actions.
Index of the sleeve to perform a Bladeburner action.
Name of the action to be performed.
Optional contract: stringName of the contract if applicable.
True if the sleeve started the given Bladeburner action, false otherwise.
RAM cost: 4 GB
Return a boolean indicating whether or not the sleeve started a Bladeburner action.
Set a sleeve to commit crime.
Index of the sleeve to start committing crime. Sleeves are numbered starting from 0.
Name of the crime.
True if this action was set successfully, false otherwise.
RAM cost: 4 GB
Return a boolean indicating whether or not this action was set successfully (false if an invalid action is specified).
// Assigns the first sleeve to Homicide.
ns.sleeve.setToCommitCrime(0, "Homicide");
// Assigns the second sleeve to Grand Theft Auto, using enum
const crimes = ns.enums.CrimeType;
ns.sleeve.setToCommitCrime(1, crimes.grandTheftAuto)
Set a sleeve to work for a company.
Index of the sleeve to work for the company.
Name of the company to work for.
True if the sleeve started working for this company, false otherwise.
RAM cost: 4 GB
Return a boolean indicating whether or not the sleeve started working for a company.
Set a sleeve to work for a faction.
Index of the sleeve to work for the faction.
Name of the faction to work for.
Name of the action to perform for this faction.
True if the sleeve started working for this faction, false otherwise. Can also throw on errors.
RAM cost: 4 GB
Return a boolean indicating whether or not the sleeve started working for a faction.
Set a sleeve to workout at the gym.
Index of the sleeve to workout at the gym.
Name of the gym.
Name of the stat to train.
True if the sleeve started working out, false otherwise.
RAM cost: 4 GB
Return a boolean indicating whether or not the sleeve started working out.
Set a sleeve to shock recovery.
Index of the sleeve to start recovery.
True if this action was set successfully, false otherwise.
RAM cost: 4 GB
Return a boolean indicating whether or not this action was set successfully.
Set a sleeve to synchronize.
Index of the sleeve to start synchronizing.
True if this action was set successfully, false otherwise.
RAM cost: 4 GB
Return a boolean indicating whether or not this action was set successfully.
Set a sleeve to take a class at a university.
Index of the sleeve to start taking class.
Name of the university to attend.
Name of the class to follow.
True if this action was set successfully, false otherwise.
RAM cost: 4 GB
Return a boolean indicating whether or not this action was set successfully.
Make a sleeve travel to another city.
Index of the sleeve to travel.
Name of the destination city.
True if the sleeve reached destination, false otherwise.
RAM cost: 4 GB
Return a boolean indicating whether or not the sleeve reached destination.
Sleeve API
Remarks
If you are not in BitNode-10, then you must have Source-File 10 in order to use this API.