Difference between revisions of "Private Server Common Tasks"
Jump to navigation
Jump to search
Whitehalmos (talk | contribs) |
m |
||
Line 21: | Line 21: | ||
In server CLI |
In server CLI |
||
<code>storage.db['users'].update({ username: 'username' },{ $set: { cpu: 500 }})</code> |
<code>storage.db['users'].update({ username: 'username' },{ $set: { cpu: 500 }})</code> |
||
+ | |||
+ | == Adding a new room == |
||
+ | |||
+ | In server CLI |
||
+ | <code>map.generateRoom(roomName, options)</code> |
||
+ | |||
+ | for options use "help(map)" this will display the help data for map editing stuff |
||
+ | |||
+ | <code>map.generateRoom("W11N11")</code> |
||
+ | |||
+ | == Opening / closing a room == |
||
+ | |||
+ | In server CLI |
||
+ | <code>map.openRoom("W5N1", [timestamp])</code> |
||
+ | |||
+ | timestamp is optional |
||
+ | |||
+ | <code>map.closeRoom("W5N1")</code> |
||
== Adding NPC Terminals == |
== Adding NPC Terminals == |
Revision as of 01:01, 15 January 2017
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 a new room
In server CLI
map.generateRoom(roomName, options)
for options use "help(map)" this will display the help data for map editing stuff
map.generateRoom("W11N11")
Opening / closing a room
In server CLI
map.openRoom("W5N1", [timestamp])
timestamp is optional
map.closeRoom("W5N1")
Adding NPC Terminals
In server CLI
storage.db['rooms.objects'].insert({ type: 'terminal', room: 'W0N0', x: 0, y:0 })
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
Manipulating Memory
In server CLI (you need the user id first)
storage.env.get(storage.env.keys.MEMORY + '41dbd8207f1bf62');
storage.env.get('memory:41dbd8207f1bf62');