0. Make sure your server is up & running (only database server is required, loginserver & gameserver can be off).
1. Download WinPython (it's a portable version of python so it's more easy to remove once you don't need it.) from:
https://github.com/winpython/winpython/releases
This one will work:
https://github.com/winpython/winpyth...64-3.8.5.0.exe
It already includes pymongo, so you don't need to worry about it.
2. Go to where you extracted WinPython and then inside /scripts/ folder.
3. Create a new file populateMarketplace.py with the following code https://pastebin.com/s9F4c2XB
(make sure you copy the RAW content: https://pastebin.com/raw/s9F4c2XB)
4. To make it work an existing accountId must be set, default id is 2: (search for "accountId": 2, in the code). Usually it will be okay as when you setup your server there's already a "conan" account, so your own account is id 2. If that's not the case, just change the id to 1 or an existing one in your mongo users collection.
5. Run "WinPython Command Prompt.exe" and once is open, execute the following command:
6. Restart your server and voilá, all marketplace sections will now have items on sale!Code:python.bat populateMarketplace.py
Special thanks to:
@Lautaro for providing in http://forum.ragezone.com/f1000/rele...-rest-1153913/ the items database from where i extracted all ids.
@fullhawk for publishing in http://forum.ragezone.com/f1001/popu...arket-1151944/ the script that i've used as base.



Reply With Quote![[V491] Populate your marketplace with 20.770 items (all available)](http://ragezone.com/hyper728.png)


