Private Server Common Tasks

From Screeps Wiki
Revision as of 20:33, 19 December 2016 by Whitehalmos (talk | contribs)
Jump to navigation Jump to search

Server CLI

Setting GCL

In server CLI

storage.db['users'].update({ username: 'username' },{ $set: { gcl: 65000000000 }})

Setting RCL

In server CLI

storage.db['rooms.objects'].update({ _id: 'idOfController' },{ $set: { level: 8 }})

Setting Credits

In server CLI

storage.db['users'].update({ username: 'username' },{ $set: { money: 2000000 }})

Setting User CPU Limit

In server CLI

storage.db['users'].update({ username: 'username' },{ $set: { cpu: 500 }})

Adding NPC Terminals

In server CLI

storage.db['rooms.objects'].insert({ type: 'terminal', room: 'W0N0', x: 0, y:0 })

Manipulating Memory

In server CLI (you need the user id first)

storage.env.get(storage.env.keys.MEMORY + '41dbd8207f1bf62');
storage.env.get('memory:41dbd8207f1bf62');

Repeat as many times as desired changing rooms (Use highway rooms or SK rooms) NPC orders should appear on the market automatically after a little while