Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shadowlp174/arxconverter
Arx to IRL currency ViolentMonkey userscript
https://github.com/shadowlp174/arxconverter
converter elite-dangerous userscript violentmonkey
Last synced: 28 days ago
JSON representation
Arx to IRL currency ViolentMonkey userscript
- Host: GitHub
- URL: https://github.com/shadowlp174/arxconverter
- Owner: ShadowLp174
- License: agpl-3.0
- Created: 2024-05-04T08:32:50.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-10-10T23:37:26.000Z (about 1 month ago)
- Last Synced: 2024-10-15T19:23:07.751Z (28 days ago)
- Topics: converter, elite-dangerous, userscript, violentmonkey
- Language: JavaScript
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ArxConverter
This userscript converts ARX prices to real currencies and updates the values on the Elite Dangerous DLC store automatically.
![image](https://github.com/ShadowLp174/ArxConverter/assets/66885971/60cbdf28-9d07-4ce4-80bc-1b2863794a8f)
## Installation
This script runs inside [ViolentMonkey](https://violentmonkey.github.io/),
so in order for it to work, you have to install the ViolentMonkey Extension from [here](https://violentmonkey.github.io/get-it/).
Once ViolentMonkey is installed, clicking on [https://github.com/ShadowLp174/ArxConverter/raw/main/arx-converter-userscript.user.js](https://github.com/ShadowLp174/ArxConverter/raw/main/arx-converter-userscript.user.js)
should open a prompt asking you if you want to install ArxConverter. Click install and you should be good to go! :)## How does it work?
Let's try converting 17,000 ARX to GBP:
The scripts first looks for the highest possible discounted amount it can get from [https://www.elitedangerous.com/store/arx](here).
In this case, that is the 16,800 Arx for £9.59 offer.Now that it has found that, it calculates the remaining ARX (here 200) using the lowest tier.
For GBP that is the 5000 ARX per £2.99, meaning we pay around 0.06p per ARX. Multiplied by 200, our remaining ARX value, we get about 11.96p.Add this to our base price of £9.59 and round to 2 decimal places and we get to £9.71.
*Please don't hesitate to create an issue if you think a different approach makes more sense.*
## Other Currencies
This script supports GBP, EUR and USD. To select on of them, edit the value of `useCurrency` (first line of code after the comments) to either 0, 1 or 2.
|GBP|EUR|USD|
|---|---|----
|0|1|2