Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
const scriptTimer = 30000; // Time script waits (30000ms = 30 seconds)
Because every time you execute a trade you pay 100K in fees! This is important when your income per second is very limited and you want to reduce the fee load on your finances.
Adjust the value as you see fit.
A specific example for one of the times:
ns.formatNumber(position[0], 2, 100000, '0.00a')
notice that the integer above is "2" because only 2 digits show after decimal point (as defined by script writer.
After having made these edits/corrections, the script seems to run beautifully.
Really appreciate the effort you put into it and the comments to explain -Thanks!
I've been too busy to update thing, but perhaps I should put a day or two aside to get the scripts updated before something really does breaks.
I originally figured this out by looking at the game source. I noticed now they actually have it documented, but the threads and the flag are reversed in the object. So, if my script doesn't seem to be effecting the market, try swapping the values in the object - they may have changed it, or I had it wrong (I could have sworn it was working for me before), or the docs maybe slightly incorrect.
https://bitburner.readthedocs.io/en/latest/netscript/basicfunctions/grow.html
grow() Netscript Function
grow(hostname[, opts={}])
RAM cost: 0.15 GB
Arguments: hostname (string) – Hostname of the target server.
opts (object) –
Optional parameters for configuring function behavior. Properties:
threads (number) - Number of threads to use for this function. Must be less than or equal to the number of threads the script is running with.
stock (boolean) - If true, the function can affect the stock market. See Player Actions Influencing Stocks