diff --git a/Ereshkigal-BaseAssortGenerator/config/custom_presets.json b/Ereshkigal-BaseAssortGenerator/config/custom_presets.json index 70e833b..49a4682 100644 --- a/Ereshkigal-BaseAssortGenerator/config/custom_presets.json +++ b/Ereshkigal-BaseAssortGenerator/config/custom_presets.json @@ -251,5 +251,263 @@ } } ] + }, + "ASH-12_Silenced_LL4": { + "_id": "ASH-12_Silenced_LL4", + "_type": "Preset", + "_changeWeaponName": false, + "_name": "ash_12_silenced", + "_parent": "893a544a5de59baa183c806a", + "_items": [ + { + "_id": "893a544a5de59baa183c806a", + "_tpl": "5cadfbf7ae92152ac412eeef", + "upd": { + "Repairable": { + "MaxDurability": 100, + "Durability": 100 + }, + "FireMode": { + "FireMode": "single" + } + } + }, + { + "_id": "89df79347dfc7df98a989188", + "_tpl": "5caf187cae92157c28402e43", + "parentId": "893a544a5de59baa183c806a", + "slotId": "mod_muzzle" + }, + { + "_id": "300cebc1cb6d97fe5e2c5377", + "_tpl": "5caf1041ae92157c28402e3f", + "parentId": "893a544a5de59baa183c806a", + "slotId": "mod_magazine" + }, + { + "_id": "ac2c80197a7f593f1924b6e9", + "_tpl": "5caf16a2ae92152ac412efbc", + "parentId": "893a544a5de59baa183c806a", + "slotId": "mod_sight_front", + "upd": { + "Sight": { + "ScopesCurrentCalibPointIndexes": [ + 0 + ], + "ScopesSelectedModes": [ + 0 + ], + "SelectedScope": 0 + } + } + }, + { + "_id": "32f372594e610518abd2df76", + "_tpl": "5cdaa99dd7f00c002412d0b2", + "parentId": "893a544a5de59baa183c806a", + "slotId": "mod_handguard" + }, + { + "_id": "4a37c14ff3eeb816dc2311b9", + "_tpl": "5caf1691ae92152ac412efb9", + "parentId": "893a544a5de59baa183c806a", + "slotId": "mod_scope", + "upd": { + "Sight": { + "ScopesCurrentCalibPointIndexes": [ + 0 + ], + "ScopesSelectedModes": [ + 0 + ], + "SelectedScope": 0 + } + } + }, + { + "_id": "483f20776801fa5928c217d6", + "_tpl": "5cda9bcfd7f00c0c0b53e900", + "parentId": "32f372594e610518abd2df76", + "slotId": "mod_foregrip" + } + ] + }, + "RPK-16_Drum": { + "_id": "RPK-16_Drum", + "_type": "Preset", + "_changeWeaponName": false, + "_name": "RPK-16 Drum", + "_parent": "d7a5662e20d1ba628ce909fd", + "_items": [ + { + "_id": "d7a5662e20d1ba628ce909fd", + "_tpl": "5beed0f50db834001c062b12", + "upd": { + "StackObjectsCount": 2000, + "Repairable": { + "MaxDurability": 100, + "Durability": 100 + }, + "Foldable": { + "Folded": false + }, + "FireMode": { + "FireMode": "single" + } + } + }, + { + "_id": "9f87a06c78e449eab346ec15", + "_tpl": "5beec8ea0db834001a6f9dbf", + "parentId": "d7a5662e20d1ba628ce909fd", + "slotId": "mod_pistol_grip" + }, + { + "_id": "3ff48ea4ed797ac5486854eb", + "_tpl": "5beec91a0db834001961942d", + "parentId": "d7a5662e20d1ba628ce909fd", + "slotId": "mod_reciever" + }, + { + "_id": "824f5e92e5842b3aff16ee88", + "_tpl": "5bed625c0db834001c062946", + "parentId": "d7a5662e20d1ba628ce909fd", + "slotId": "mod_magazine" + }, + { + "_id": "296d8b7e298f16e9eb221d39", + "_tpl": "5beec8b20db834001961942a", + "parentId": "d7a5662e20d1ba628ce909fd", + "slotId": "mod_stock_001" + }, + { + "_id": "f5d445f2f723a151957ba507", + "_tpl": "5beec3e30db8340019619424", + "parentId": "d7a5662e20d1ba628ce909fd", + "slotId": "mod_handguard" + }, + { + "_id": "d0134e71867b88bfd27efe44", + "_tpl": "5beec1bd0db834001e6006f3", + "parentId": "d7a5662e20d1ba628ce909fd", + "slotId": "mod_barrel" + }, + { + "_id": "fab49be0d681f011b6b7707e", + "_tpl": "5beec9450db83400970084fd", + "parentId": "3ff48ea4ed797ac5486854eb", + "slotId": "mod_sight_rear", + "upd": { + "Sight": { + "ScopesCurrentCalibPointIndexes": [ + 0 + ], + "ScopesSelectedModes": [ + 0 + ], + "SelectedScope": 0 + } + } + }, + { + "_id": "ecc1cbd838dd33a0cf3afafa", + "_tpl": "5beec8c20db834001d2c465c", + "parentId": "296d8b7e298f16e9eb221d39", + "slotId": "mod_stock" + }, + { + "_id": "7876e6b8d0089aff28b0c221", + "_tpl": "5beecbb80db834001d2c465e", + "parentId": "f5d445f2f723a151957ba507", + "slotId": "mod_mount_000" + }, + { + "_id": "a9cc2c587a6624e5a011c625", + "_tpl": "5beecbb80db834001d2c465e", + "parentId": "f5d445f2f723a151957ba507", + "slotId": "mod_mount_001" + }, + { + "_id": "5cdc8969cd7a7ccea6fc6de5", + "_tpl": "5beec3420db834001b095429", + "parentId": "d0134e71867b88bfd27efe44", + "slotId": "mod_muzzle" + }, + { + "_id": "dd515963e57a9290c8ae1365", + "_tpl": "5bf3f59f0db834001a6fa060", + "parentId": "fab49be0d681f011b6b7707e", + "slotId": "mod_sight_rear", + "upd": { + "Sight": { + "ScopesCurrentCalibPointIndexes": [ + 0 + ], + "ScopesSelectedModes": [ + 0 + ], + "SelectedScope": 0 + } + } + } + ] + }, + "VSS_Magless": { + "_id": "VSS_Magless", + "_type": "Preset", + "_changeWeaponName": false, + "_name": "VSS Vintorez magless", + "_parent": "06c465f556002417834e0c19", + "_items": [ + { + "_id": "06c465f556002417834e0c19", + "_tpl": "57838ad32459774a17445cd2", + "upd": { + "StackObjectsCount": 200, + "Repairable": { + "MaxDurability": 100, + "Durability": 100 + }, + "FireMode": { + "FireMode": "single" + } + } + }, + { + "_id": "8ff0ce4165d75ae6ee19e983", + "_tpl": "57838c962459774a1651ec63", + "parentId": "06c465f556002417834e0c19", + "slotId": "mod_muzzle" + }, + { + "_id": "cbcf1e97145a3cbf9b8b4fce", + "_tpl": "578395402459774a256959b5", + "parentId": "06c465f556002417834e0c19", + "slotId": "mod_reciever" + }, + { + "_id": "9f0c2c9eab7fa456d186a8e4", + "_tpl": "578395e82459774a0e553c7b", + "parentId": "06c465f556002417834e0c19", + "slotId": "mod_stock" + }, + { + "_id": "39a8c5dde2b7c1586867e2c7", + "_tpl": "57838e1b2459774a256959b1", + "parentId": "8ff0ce4165d75ae6ee19e983", + "slotId": "mod_sight_rear", + "upd": { + "Sight": { + "ScopesCurrentCalibPointIndexes": [ + 0 + ], + "ScopesSelectedModes": [ + 0 + ], + "SelectedScope": 0 + } + } + } + ] } } \ No newline at end of file diff --git a/Ereshkigal-BaseAssortGenerator/package.js b/Ereshkigal-BaseAssortGenerator/package.js index fd9120c..a9ce005 100644 --- a/Ereshkigal-BaseAssortGenerator/package.js +++ b/Ereshkigal-BaseAssortGenerator/package.js @@ -18,6 +18,7 @@ class GenerateEverything { constructor() { const mod = require("./package.json") Logger.info(`Loading: ${mod.name} : ${mod.version}`); + const customPresets = require("./config/custom_presets.json"); ModLoader.onLoad["Assorts-prapor"] = prapor.generatePraporAssort; ModLoader.onLoad["Assorts-therapist"] = therapist.generateTherapistAssort; ModLoader.onLoad["Assorts-skier"] = skier.generateSkierAssort; @@ -25,6 +26,7 @@ class GenerateEverything { ModLoader.onLoad["Assorts-peacekeeper"] = peacekeeper.generatePeacekeeperAssort; ModLoader.onLoad["Assorts-ragman"] = ragman.generateRagmanAssort; ModLoader.onLoad["Assorts-jeager"] = jeager.generateJeagerAssort; + Object.assign(DatabaseServer.tables.globals.ItemPresets, customPresets) } } diff --git a/Ereshkigal-BaseAssortGenerator/src/peacekeeper.js b/Ereshkigal-BaseAssortGenerator/src/peacekeeper.js index 3b76f34..1486c2c 100644 --- a/Ereshkigal-BaseAssortGenerator/src/peacekeeper.js +++ b/Ereshkigal-BaseAssortGenerator/src/peacekeeper.js @@ -730,7 +730,7 @@ class PeacekeeperAssort { CoreMod.CreateTraderAssort(HashUtil.generate(), "5c9a25172e2216000f20314e", "5935c25fb3acc3127c3d8cd9", 169, "USD", 4, false, 2000); //remington m700 ab arms mod*x gen 3 keymod handguard - CoreMod.CreateTraderAssort(HashUtil.generate(), "5cde7afdd7f00c000d36b89d", "5935c25fb3acc3127c3d8cd9", , "USD", 4, false, 2000); + CoreMod.CreateTraderAssort(HashUtil.generate(), "5cde7afdd7f00c000d36b89d", "5935c25fb3acc3127c3d8cd9", 96, "USD", 4, false, 2000); //ar-15 urx 3.1 10.75 inch handguard CoreMod.CreateTraderAssort(HashUtil.generate(), "5d122e7bd7ad1a07102d6d7f", "5935c25fb3acc3127c3d8cd9", 182, "USD", 4, false, 2000); diff --git a/Ereshkigal-BaseAssortGenerator/src/ragman.js b/Ereshkigal-BaseAssortGenerator/src/ragman.js index 5de3ea4..c6e8101 100644 --- a/Ereshkigal-BaseAssortGenerator/src/ragman.js +++ b/Ereshkigal-BaseAssortGenerator/src/ragman.js @@ -2,7 +2,7 @@ エレシュキガル */ -class RagmanAssort{ +class RagmanAssort { static GenerateLL1() { const CoreMod = require("../../CoreMod/src/Core.js"); @@ -122,7 +122,7 @@ class RagmanAssort{ } static GenerateLL2() { const CoreMod = require("../../CoreMod/src/Core.js"); - + let id = null //cold fear infrared balaclava CoreMod.CreateTraderAssort(HashUtil.generate(), "5ab8f39486f7745cd93a1cca", "5ac3b934156ae10c4430e83c", 4793, "RUB", 2, false, 5000); @@ -133,11 +133,12 @@ class RagmanAssort{ CoreMod.CreateTraderAssort(HashUtil.generate(), "5a16b672fcdbcb001912fa83", "5ac3b934156ae10c4430e83c", 12985, "RUB", 2, false, 2000); //zsh-1-2m face shield - CoreMod.CreateTraderBarter(HashUtil.generate(), "5aa7e3abe5b5b000171d064d", "hideout", "hideout", [[{ - "count": 2, - "_tpl": "59e366c186f7741778269d85" - } - ]], "5ac3b934156ae10c4430e83c", 2, true, 2000); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5aa7e3abe5b5b000171d064d", "hideout", "hideout", [ + [{ + "count": 2, + "_tpl": "59e366c186f7741778269d85" + }] + ], "5ac3b934156ae10c4430e83c", 2, true, 2000); //kiver face shield CoreMod.CreateTraderAssort(HashUtil.generate(), "5b46238386f7741a693bcf9c", "5ac3b934156ae10c4430e83c", 27828, "RUB", 2, false, 8000); @@ -155,11 +156,12 @@ class RagmanAssort{ CoreMod.CreateTraderAssort(HashUtil.generate(), "5aa2ba19e5b5b00014028f4e", "5ac3b934156ae10c4430e83c", 5007, "RUB", 2, true); //tactical fleece hat - CoreMod.CreateTraderBarter(HashUtil.generate(), "5aa2ba19e5b5b00014028f4e", "hideout", "hideout", [[{ - "count": 1, - "_tpl": "590c2c9c86f774245b1f03f2" - } - ]], "5ac3b934156ae10c4430e83c", 2, true, 20000, 4); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5aa2ba19e5b5b00014028f4e", "hideout", "hideout", [ + [{ + "count": 1, + "_tpl": "590c2c9c86f774245b1f03f2" + }] + ], "5ac3b934156ae10c4430e83c", 2, true, 20000, 4); //ux pro beanie hat CoreMod.CreateTraderAssort(HashUtil.generate(), "5aa2ba46e5b5b000137b758d", "5ac3b934156ae10c4430e83c", 2268, "RUB", 2, false, 20000); @@ -168,11 +170,19 @@ class RagmanAssort{ CoreMod.CreateTraderAssort(HashUtil.generate(), "5f60e784f2bcbb675b00dac7", "5ac3b934156ae10c4430e83c", 13517, "RUB", 2, false, 20000); //6B47 Ratnik-BSh helmet with cover (Digital Flora) - //CoreMod.CreateTraderBarter(HashUtil.generate(), "5aa7cfc0e5b5b00015693143", "hideout", "hideout", [[{ - // "count": unknown, - // "_tpl": "unknown" - // } - // ]], "5ac3b934156ae10c4430e83c", 2, true, 20000); + + id = HashUtil.generate() + CoreMod.CreateTraderBarter(id, "5aa7cfc0e5b5b00015693143", "hideout", "hideout", [ + [{ + "count": 7, + "level": 10, + "side": "Any", + "_tpl": "59f32c3b86f77472a31742f0" + } + + ] + ], "5ac3b934156ae10c4430e83c", 2, true, 20000); + CoreMod.CreateTraderAssortUnlock("5ac3b934156ae10c4430e83c", "success", id, "5969f9e986f7741dde183a50") //Pharmacist //Bandana CoreMod.CreateTraderAssort(HashUtil.generate(), "5b43271c5acfc432ff4dce65", "5ac3b934156ae10c4430e83c", 2215, "RUB", 2, false, 2000); @@ -203,24 +213,26 @@ class RagmanAssort{ CoreMod.CreateTraderAssort(HashUtil.generate(), "5645bcc04bdc2d363b8b4572", "5ac3b934156ae10c4430e83c", 28917, "RUB", 2, false, 60000, 5); //Peltor comtac 2 headset - CoreMod.CreateTraderBarter(HashUtil.generate(), "5645bcc04bdc2d363b8b4572", "hideout", "hideout", [[{ - "count": 3, - "_tpl": "57347b8b24597737dd42e192" - } - ]], "5ac3b934156ae10c4430e83c", 2, true, 2000, 5); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5645bcc04bdc2d363b8b4572", "hideout", "hideout", [ + [{ + "count": 3, + "_tpl": "57347b8b24597737dd42e192" + }] + ], "5ac3b934156ae10c4430e83c", 2, true, 2000, 5); //bnti kirasa-n armor - CoreMod.CreateTraderBarter(HashUtil.generate(), "5b44d22286f774172b0c9de8", "hideout", "hideout", [[{ - "count": 1, - "_tpl": "5af0484c86f7740f02001f7f" - }, { - "count": 1, - "_tpl": "57514643245977207f2c2d09" - }, { - "count": 1, - "_tpl": "575146b724597720a27126d5" - } - ]], "5ac3b934156ae10c4430e83c", 2, true, 50); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5b44d22286f774172b0c9de8", "hideout", "hideout", [ + [{ + "count": 1, + "_tpl": "5af0484c86f7740f02001f7f" + }, { + "count": 1, + "_tpl": "57514643245977207f2c2d09" + }, { + "count": 1, + "_tpl": "575146b724597720a27126d5" + }] + ], "5ac3b934156ae10c4430e83c", 2, true, 50); //bnti kirasa-n armor CoreMod.CreateTraderAssort(HashUtil.generate(), "5b44d22286f774172b0c9de8", "5ac3b934156ae10c4430e83c", 64553, "RUB", 2, false, 2000); @@ -232,14 +244,15 @@ class RagmanAssort{ CoreMod.CreateTraderAssort(HashUtil.generate(), "5c0e5bab86f77461f55ed1f3", "5ac3b934156ae10c4430e83c", 49207, "RUB", 2, false, 5000, 3); //crye precision avs plate carrier - CoreMod.CreateTraderBarter(HashUtil.generate(), "544a5caa4bdc2d1a388b4568", "hideout", "hideout", [[{ - "count": 2, - "_tpl": "5734758f24597738025ee253" - }, { - "count": 2, - "_tpl": "5b3b713c5acfc4330140bd8d" - } - ]], "5ac3b934156ae10c4430e83c", 2, true, 2000, 1); + CoreMod.CreateTraderBarter(HashUtil.generate(), "544a5caa4bdc2d1a388b4568", "hideout", "hideout", [ + [{ + "count": 2, + "_tpl": "5734758f24597738025ee253" + }, { + "count": 2, + "_tpl": "5b3b713c5acfc4330140bd8d" + }] + ], "5ac3b934156ae10c4430e83c", 2, true, 2000, 1); //umtbs 6sh112 scout-sniper CoreMod.CreateTraderAssort(HashUtil.generate(), "5929a2a086f7744f4b234d43", "5ac3b934156ae10c4430e83c", 23780, "RUB", 2, false, 6000, 6); @@ -248,14 +261,15 @@ class RagmanAssort{ CoreMod.CreateTraderAssort(HashUtil.generate(), "59e7643b86f7742cbf2c109a", "5ac3b934156ae10c4430e83c", 18776, "RUB", 2, false, 15000, 4); //ana tactical alpha chest rig - CoreMod.CreateTraderBarter(HashUtil.generate(), "592c2d1a86f7746dbe2af32a", "hideout", "hideout", [[{ - "count": 5, - "_tpl": "57347c1124597737fb1379e3" - }, { - "count": 1, - "_tpl": "59faf98186f774067b6be103" - } - ]], "5ac3b934156ae10c4430e83c", 2, false, 200, 1); + CoreMod.CreateTraderBarter(HashUtil.generate(), "592c2d1a86f7746dbe2af32a", "hideout", "hideout", [ + [{ + "count": 5, + "_tpl": "57347c1124597737fb1379e3" + }, { + "count": 1, + "_tpl": "59faf98186f774067b6be103" + }] + ], "5ac3b934156ae10c4430e83c", 2, false, 200, 1); //Blackhawk! Commando Chest Harness (Coyote Tan) CoreMod.CreateTraderAssort(HashUtil.generate(), "5b44c8ea86f7742d1627baf1", "5ac3b934156ae10c4430e83c", 37373, "RUB", 2, false, 2000); @@ -264,31 +278,34 @@ class RagmanAssort{ CoreMod.CreateTraderAssort(HashUtil.generate(), "5ca20abf86f77418567a43f2", "5ac3b934156ae10c4430e83c", 29301, "RUB", 2, false, 20000); //6B5-15 Zh-86 "Uley" armored rig - CoreMod.CreateTraderBarter(HashUtil.generate(), "5c0e446786f7742013381639", "hideout", "hideout", [[{ - "count": 3, - "_tpl": "5c13cd2486f774072c757944" - }, { - "count": 4, - "_tpl": "5c13cef886f774072e618e82" - } - ]], "5ac3b934156ae10c4430e83c", 2, false, 15000, 1); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5c0e446786f7742013381639", "hideout", "hideout", [ + [{ + "count": 3, + "_tpl": "5c13cd2486f774072c757944" + }, { + "count": 4, + "_tpl": "5c13cef886f774072e618e82" + }] + ], "5ac3b934156ae10c4430e83c", 2, false, 15000, 1); //6B5-15 Zh-86 "Uley" armored rig - CoreMod.CreateTraderBarter(HashUtil.generate(), "5c0e446786f7742013381639", "hideout", "hideout", [[{ - "count": 3, - "_tpl": "5c0e446786f7742013381639" - } - ]], "5ac3b934156ae10c4430e83c", 2, false, 15000, 1); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5c0e446786f7742013381639", "hideout", "hideout", [ + [{ + "count": 3, + "_tpl": "5c0e446786f7742013381639" + }] + ], "5ac3b934156ae10c4430e83c", 2, false, 15000, 1); //6B3TM-01M armored rig CoreMod.CreateTraderAssort(HashUtil.generate(), "5d5d646386f7742797261fd9", "5ac3b934156ae10c4430e83c", 50283, "RUB", 2, false, 15000, 2); //6B3TM-01M armored rig - CoreMod.CreateTraderBarter(HashUtil.generate(), "5d5d646386f7742797261fd9", "hideout", "hideout", [[{ - "count": 4, - "_tpl": "5d5d646386f7742797261fd9" - } - ]], "5ac3b934156ae10c4430e83c", 2, false, 15000, 2); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5d5d646386f7742797261fd9", "hideout", "hideout", [ + [{ + "count": 4, + "_tpl": "5d5d646386f7742797261fd9" + }] + ], "5ac3b934156ae10c4430e83c", 2, false, 15000, 2); //Haley Strategic D3CRX Chest Harness CoreMod.CreateTraderAssort(HashUtil.generate(), "5d5d85c586f774279a21cbdb", "5ac3b934156ae10c4430e83c", 35076, "RUB", 2, false, 20000, 4); @@ -312,21 +329,23 @@ class RagmanAssort{ CoreMod.CreateTraderAssort(HashUtil.generate(), "5b432f3d5acfc4704b4a1dfb", "5ac3b934156ae10c4430e83c", 3565, "RUB", 3, true, 999999); //altyn face shield - CoreMod.CreateTraderBarter(HashUtil.generate(), "5aa7e373e5b5b000137b76f0", "hideout", "hideout", [[{ - "count": 3, - "_tpl": "5aa7e373e5b5b000137b76f0" - } - ]], "5ac3b934156ae10c4430e83c", 3, false, 200); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5aa7e373e5b5b000137b76f0", "hideout", "hideout", [ + [{ + "count": 3, + "_tpl": "5aa7e373e5b5b000137b76f0" + }] + ], "5ac3b934156ae10c4430e83c", 3, false, 200); //zsh-1-2m face shield CoreMod.CreateTraderAssort(HashUtil.generate(), "5aa7e3abe5b5b000171d064d", "5ac3b934156ae10c4430e83c", 19260, "RUB", 3, false, 2000, 3); //LShZ-2DTM face shield - CoreMod.CreateTraderBarter(HashUtil.generate(), "5d6d3829a4b9361bc8618943", "hideout", "hideout", [[{ - "count": 3, - "_tpl": "59e366c186f7741778269d85" - } - ]], "5ac3b934156ae10c4430e83c", 3, false, 20000); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5d6d3829a4b9361bc8618943", "hideout", "hideout", [ + [{ + "count": 3, + "_tpl": "59e366c186f7741778269d85" + }] + ], "5ac3b934156ae10c4430e83c", 3, false, 20000); //lshz-2dtm cover CoreMod.CreateTraderAssort(HashUtil.generate(), "5d6d3943a4b9360dbc46d0cc", "5ac3b934156ae10c4430e83c", 1665, "RUB", 3, false, 2000); @@ -341,11 +360,12 @@ class RagmanAssort{ CoreMod.CreateTraderAssort(HashUtil.generate(), "5d6d2e22a4b9361bd5780d05", "5ac3b934156ae10c4430e83c", 6216, "RUB", 3, false, 20000); //kinda cowboy hat - CoreMod.CreateTraderBarter(HashUtil.generate(), "5aa2b9ede5b5b000137b758b", "hideout", "hideout", [[{ - "count": 1, - "_tpl": "5e2af29386f7746d4159f077" - } - ]], "5ac3b934156ae10c4430e83c", 3, false, 2000, 3); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5aa2b9ede5b5b000137b758b", "hideout", "hideout", [ + [{ + "count": 1, + "_tpl": "5e2af29386f7746d4159f077" + }] + ], "5ac3b934156ae10c4430e83c", 3, false, 2000, 3); //ops-core fast mt super high cut helmet (tan) CoreMod.CreateTraderAssort(HashUtil.generate(), "5ac8d6885acfc400180ae7b0", "5ac3b934156ae10c4430e83c", 148092, "RUB", 3, false, 2000); @@ -357,24 +377,26 @@ class RagmanAssort{ CoreMod.CreateTraderAssort(HashUtil.generate(), "5b4327aa5acfc400175496e0", "5ac3b934156ae10c4430e83c", 2409, "RUB", 3, false, 2000); //devtac ronin ballistic helmet - CoreMod.CreateTraderBarter(HashUtil.generate(), "5b4329f05acfc47a86086aa1", "hideout", "hideout", [[{ - "count": 4, - "_tpl": "590c2d8786f774245b1f03f3" - }, { - "count": 4, - "_tpl": "590c311186f77424d1667482" - }, { - "count": 1, - "_tpl": "5d40419286f774318526545f" - } - ]], "5ac3b934156ae10c4430e83c", 3, false, 2000, 1); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5b4329f05acfc47a86086aa1", "hideout", "hideout", [ + [{ + "count": 4, + "_tpl": "590c2d8786f774245b1f03f3" + }, { + "count": 4, + "_tpl": "590c311186f77424d1667482" + }, { + "count": 1, + "_tpl": "5d40419286f774318526545f" + }] + ], "5ac3b934156ae10c4430e83c", 3, false, 2000, 1); //maska-1shch bulletproof helmet (olive drab) - CoreMod.CreateTraderBarter(HashUtil.generate(), "5c091a4e0db834001d5addc8", "hideout", "hideout", [[{ - "count": 4, - "_tpl": "5d235b4d86f7742e017bc88a" - } - ]], "5ac3b934156ae10c4430e83c", 3, false, 2000); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5c091a4e0db834001d5addc8", "hideout", "hideout", [ + [{ + "count": 4, + "_tpl": "5d235b4d86f7742e017bc88a" + }] + ], "5ac3b934156ae10c4430e83c", 3, false, 2000); //BNTI LShZ-2DTM helmet CoreMod.CreateTraderAssort(HashUtil.generate(), "5d6d3716a4b9361bc8618872", "5ac3b934156ae10c4430e83c", 163075, "RUB", 3, false, 20000, 3); @@ -383,21 +405,23 @@ class RagmanAssort{ CoreMod.CreateTraderAssort(HashUtil.generate(), "5aa2ba71e5b5b000137b758f", "5ac3b934156ae10c4430e83c", 28272, "RUB", 3, false, 8000); //BNTI Gzhel-K armor - CoreMod.CreateTraderBarter(HashUtil.generate(), "5ab8e79e86f7742d8b372e78", "hideout", "hideout", [[{ - "count": 2, - "_tpl": "5734758f24597738025ee253" - }, { - "count": 5, - "_tpl": "5af0484c86f7740f02001f7f" - } - ]], "5ac3b934156ae10c4430e83c", 3, false, 2000, 4); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5ab8e79e86f7742d8b372e78", "hideout", "hideout", [ + [{ + "count": 2, + "_tpl": "5734758f24597738025ee253" + }, { + "count": 5, + "_tpl": "5af0484c86f7740f02001f7f" + }] + ], "5ac3b934156ae10c4430e83c", 3, false, 2000, 4); //iotv gen4 body armor (high mobility kit) - CoreMod.CreateTraderBarter(HashUtil.generate(), "5b44d0de86f774503d30cba8", "hideout", "hideout", [[{ - "count": 7, - "_tpl": "5d235b4d86f7742e017bc88a" - } - ]], "5ac3b934156ae10c4430e83c", 3, false, 1000, 2); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5b44d0de86f774503d30cba8", "hideout", "hideout", [ + [{ + "count": 7, + "_tpl": "5d235b4d86f7742e017bc88a" + }] + ], "5ac3b934156ae10c4430e83c", 3, false, 1000, 2); //6b13 assault armor (digital flora) CoreMod.CreateTraderAssort(HashUtil.generate(), "5c0e53c886f7747fa54205c7", "5ac3b934156ae10c4430e83c", 67821, "RUB", 3, false, 2000); @@ -409,17 +433,18 @@ class RagmanAssort{ CoreMod.CreateTraderAssort(HashUtil.generate(), "5ca2151486f774244a3b8d30", "5ac3b934156ae10c4430e83c", 239800, "RUB", 3, false, 2000); //5.11 tactical hexgrid plate carrier - CoreMod.CreateTraderBarter(HashUtil.generate(), "5fd4c474dd870108a754b241", "hideout", "hideout", [[{ - "count": 5, - "_tpl": "5ab8f20c86f7745cdb629fb2" - }, { - "count": 5, - "_tpl": "59e7708286f7742cbd762753" - }, { - "count": 5, - "_tpl": "5aa2b923e5b5b000137b7589" - } - ]], "5ac3b934156ae10c4430e83c", 3, false, 2000, 1); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5fd4c474dd870108a754b241", "hideout", "hideout", [ + [{ + "count": 5, + "_tpl": "5ab8f20c86f7745cdb629fb2" + }, { + "count": 5, + "_tpl": "59e7708286f7742cbd762753" + }, { + "count": 5, + "_tpl": "5aa2b923e5b5b000137b7589" + }] + ], "5ac3b934156ae10c4430e83c", 3, false, 2000, 1); //nfm thor concealable vest body armor CoreMod.CreateTraderAssort(HashUtil.generate(), "609e8540d5c319764c2bc2e9", "5ac3b934156ae10c4430e83c", 56610, "RUB", 3, false, 5000); @@ -431,78 +456,86 @@ class RagmanAssort{ CoreMod.CreateTraderAssort(HashUtil.generate(), "5648a69d4bdc2ded0b8b457b", "5ac3b934156ae10c4430e83c", 45177, "RUB", 3, false, 40000); //crye precision avs plate carrier - CoreMod.CreateTraderBarter(HashUtil.generate(), "544a5caa4bdc2d1a388b4568", "hideout", "hideout", [[{ - "count": 7, - "_tpl": "5d40412b86f7743cb332ac3a" - }, { - "count": 5, - "_tpl": "5d4041f086f7743cac3f22a7" - } - ]], "5ac3b934156ae10c4430e83c", 3, false, 5000, 2); + CoreMod.CreateTraderBarter(HashUtil.generate(), "544a5caa4bdc2d1a388b4568", "hideout", "hideout", [ + [{ + "count": 7, + "_tpl": "5d40412b86f7743cb332ac3a" + }, { + "count": 5, + "_tpl": "5d4041f086f7743cac3f22a7" + }] + ], "5ac3b934156ae10c4430e83c", 3, false, 5000, 2); //ana tactical alpha chest rig CoreMod.CreateTraderAssort(HashUtil.generate(), "592c2d1a86f7746dbe2af32a", "5ac3b934156ae10c4430e83c", 51181, "RUB", 3, false, 2000); //ana tactical m2 armored rig - CoreMod.CreateTraderBarter(HashUtil.generate(), "5ab8dced86f774646209ec87", "hideout", "hideout", [[{ - "count": 3, - "_tpl": "5aa2b923e5b5b000137b7589" - }, { - "count": 3, - "_tpl": "5ac4c50d5acfc40019262e87" - } - ]], "5ac3b934156ae10c4430e83c", 3, false, 5000, 2); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5ab8dced86f774646209ec87", "hideout", "hideout", [ + [{ + "count": 3, + "_tpl": "5aa2b923e5b5b000137b7589" + }, { + "count": 3, + "_tpl": "5ac4c50d5acfc40019262e87" + }] + ], "5ac3b934156ae10c4430e83c", 3, false, 5000, 2); //5.11 tactical tactec plate carrier - CoreMod.CreateTraderBarter(HashUtil.generate(), "5b44cad286f77402a54ae7e5", "hideout", "hideout", [[{ - "count": 5, - "_tpl": "5b432c305acfc40019478128" - }, { - "count": 6, - "_tpl": "5b4326435acfc433000ed01d" - } - ]], "5ac3b934156ae10c4430e83c", 3, false, 100, 1); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5b44cad286f77402a54ae7e5", "hideout", "hideout", [ + [{ + "count": 5, + "_tpl": "5b432c305acfc40019478128" + }, { + "count": 6, + "_tpl": "5b4326435acfc433000ed01d" + }] + ], "5ac3b934156ae10c4430e83c", 3, false, 100, 1); //belt-a + belt-b gear rig - CoreMod.CreateTraderBarter(HashUtil.generate(), "5c0e6a1586f77404597b4965", "hideout", "hideout", [[{ - "count": 1, - "_tpl": "590de71386f774347051a052" - } - ]], "5ac3b934156ae10c4430e83c", 3, false, 2000); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5c0e6a1586f77404597b4965", "hideout", "hideout", [ + [{ + "count": 1, + "_tpl": "590de71386f774347051a052" + }] + ], "5ac3b934156ae10c4430e83c", 3, false, 2000); //ana tactical m1 armored rig - CoreMod.CreateTraderBarter(HashUtil.generate(), "5c0e722886f7740458316a57", "hideout", "hideout", [[{ - "count": 4, - "_tpl": "5c0fa877d174af02a012e1cf" - }, { - "count": 1, - "_tpl": "5e8f3423fd7471236e6e3b64" - } - ]], "5ac3b934156ae10c4430e83c", 3, false, 2000); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5c0e722886f7740458316a57", "hideout", "hideout", [ + [{ + "count": 4, + "_tpl": "5c0fa877d174af02a012e1cf" + }, { + "count": 1, + "_tpl": "5e8f3423fd7471236e6e3b64" + }] + ], "5ac3b934156ae10c4430e83c", 3, false, 2000); //wartech tv-110 plate carrier rig - CoreMod.CreateTraderBarter(HashUtil.generate(), "5c0e746986f7741453628fe5", "hideout", "hideout", [[{ - "count": 4, - "_tpl": "59e3556c86f7741776641ac2" - }, { - "count": 2, - "_tpl": "5d40412b86f7743cb332ac3a" - } - ]], "5ac3b934156ae10c4430e83c", 3, false, 2000, 1); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5c0e746986f7741453628fe5", "hideout", "hideout", [ + [{ + "count": 4, + "_tpl": "59e3556c86f7741776641ac2" + }, { + "count": 2, + "_tpl": "5d40412b86f7743cb332ac3a" + }] + ], "5ac3b934156ae10c4430e83c", 3, false, 2000, 1); //ars arma a18 skanda plate carrier - CoreMod.CreateTraderBarter(HashUtil.generate(), "5d5d87f786f77427997cfaef", "hideout", "hideout", [[{ - "count": 5, - "_tpl": "5d403f9186f7743cac3f229b" - } - ]], "5ac3b934156ae10c4430e83c", 3, false, 2000, 2); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5d5d87f786f77427997cfaef", "hideout", "hideout", [ + [{ + "count": 5, + "_tpl": "5d403f9186f7743cac3f229b" + }] + ], "5ac3b934156ae10c4430e83c", 3, false, 2000, 2); //velocity systems multi-purpose patrol vest - CoreMod.CreateTraderBarter(HashUtil.generate(), "5df8a42886f77412640e2e75", "hideout", "hideout", [[{ - "count": 3, - "_tpl": "5734773724597737fd047c14" - } - ]], "5ac3b934156ae10c4430e83c", 3, false, 20000, 3); + CoreMod.CreateTraderBarter(HashUtil.generate(), "5df8a42886f77412640e2e75", "hideout", "hideout", [ + [{ + "count": 3, + "_tpl": "5734773724597737fd047c14" + }] + ], "5ac3b934156ae10c4430e83c", 3, false, 20000, 3); //stich profi chest rig mk2 (assault, a-tacs fg) CoreMod.CreateTraderAssort(HashUtil.generate(), "60a621c49c197e4e8c4455e6", "5ac3b934156ae10c4430e83c", 41625, "RUB", 3, false, 2000); @@ -520,4 +553,4 @@ class RagmanAssort{ } } -module.exports = RagmanAssort; +module.exports = RagmanAssort; \ No newline at end of file diff --git a/Ereshkigal-BaseAssortGenerator/src/skier.js b/Ereshkigal-BaseAssortGenerator/src/skier.js index 480b11a..d86040f 100644 --- a/Ereshkigal-BaseAssortGenerator/src/skier.js +++ b/Ereshkigal-BaseAssortGenerator/src/skier.js @@ -193,6 +193,9 @@ class SkierAssort{ const CoreMod = require("../../CoreMod/src/Core.js"); let id = null; + //.300 AAC Blackout BCP FMJ + CoreMod.CreateTraderAssort(HashUtil.generate(), "5fbe3ffdf8b6a877a729ea82", "58330581ace78e27b8b10cee", 91, "RUB", 2, false, 700000,500); + //DVL-10 Mag CoreMod.CreateTraderAssort(HashUtil.generate(), "5888988e24597752fe43a6fa", "58330581ace78e27b8b10cee", 5167, "RUB", 2, false, 15000); diff --git a/Ereshkigal-BaseAssortGenerator/src/therapist.js b/Ereshkigal-BaseAssortGenerator/src/therapist.js index ff237d6..72cdce6 100644 --- a/Ereshkigal-BaseAssortGenerator/src/therapist.js +++ b/Ereshkigal-BaseAssortGenerator/src/therapist.js @@ -13,6 +13,11 @@ class TherapistAssort { let id = null; // ASSORT ID ITEM TEMPLATE TRADER ID PRICE CURRENCY LOYALTY UNLIMITED STOCK MAXIMUM BUY //Therapist LL1 + //Car first aid kit + id = HashUtil.generate() + CoreMod.CreateTraderAssort(id, "590c661e86f7741e566b646a", "54cb57776803fa99248b456e", 7372, "RUB", 1, true, 999999); + CoreMod.CreateTraderAssortUnlock("54cb57776803fa99248b456e", "success", id, "59689ee586f7740d1570bbd5") //Sanitary Standard p1 + //Analgin Painkillers CoreMod.CreateTraderAssort(HashUtil.generate(), "544fb37f4bdc2dee738b4567", "54cb57776803fa99248b456e", 5695, "RUB", 1, true, 999999); @@ -155,7 +160,19 @@ class TherapistAssort { } static GenerateLL2() { const CoreMod = require("../../CoreMod/src/Core.js"); + let id = null //THERAPIST LL2 + + //Army bandage + id = HashUtil.generate() + CoreMod.CreateTraderAssort(id, "5751a25924597722c463c472", "54cb57776803fa99248b456e", 2032, "RUB", 2, true, 999999); + CoreMod.CreateTraderAssortUnlock("54cb57776803fa99248b456e", "success", id, "5968eb3186f7741dde183a4d") //Operation Aquarius p2 + + //Salewa first aid kit + id = HashUtil.generate() + CoreMod.CreateTraderAssort(id, "544fb45d4bdc2dee738b4568", "54cb57776803fa99248b456e", 23162, "RUB", 2, false, 5000); + CoreMod.CreateTraderAssortUnlock("54cb57776803fa99248b456e", "success", id, "596760e186f7741e11214d58") //Operation Aquarius p + //Emelya rye croutons CoreMod.CreateTraderAssort(HashUtil.generate(), "5751487e245977207e26a315", "54cb57776803fa99248b456e", 13562, "RUB", 2, false, 6500, 4); @@ -305,6 +322,7 @@ class TherapistAssort { } static GenerateLL3() { const CoreMod = require("../../CoreMod/src/Core.js"); + let id = null //Aluminum splint CoreMod.CreateTraderAssort(HashUtil.generate(), "5af0454c86f7746bf20992e8", "54cb57776803fa99248b456e", 15873, "RUB", 3, false, 7000); @@ -313,7 +331,9 @@ class TherapistAssort { CoreMod.CreateTraderAssort(HashUtil.generate(), "5e8488fa988a8701445df1e4", "54cb57776803fa99248b456e", 4756, "RUB", 3, false, 60000, 5); //IFAK individual first aid kit - CoreMod.CreateTraderAssort(HashUtil.generate(), "590c678286f77426c9660122", "54cb57776803fa99248b456e", 27202, "RUB", 3, false, 15000); + id = HashUtil.generate() + CoreMod.CreateTraderAssort(id, "590c678286f77426c9660122", "54cb57776803fa99248b456e", 27202, "RUB", 3, false, 15000); + CoreMod.CreateTraderAssortUnlock("54cb57776803fa99248b456e", "success", id, "59689ee586f7740d1570bbd5") //Health Care Privacy - Part 1 //sj1 tglabs combat stimulant injector CoreMod.CreateTraderBarter(HashUtil.generate(), "5c0e531286f7747fa54205c2", "hideout", "hideout", [ @@ -410,9 +430,11 @@ class TherapistAssort { } static GenerateLL4() { const CoreMod = require("../../CoreMod/src/Core.js"); - + let id = null //morphine injector - CoreMod.CreateTraderAssort(HashUtil.generate(), "544fb3f34bdc2d03748b456a", "54cb57776803fa99248b456e", 28289, "RUB", 4, true); + id = HashUtil.generate() + CoreMod.CreateTraderAssort(id, "544fb3f34bdc2d03748b456a", "54cb57776803fa99248b456e", 28289, "RUB", 4, true); + CoreMod.CreateTraderAssortUnlock("54cb57776803fa99248b456e", "success", id, "5a68665c86f774255929b4c7") //Health Care Privacy - Part 3 //Augmentin antibiotic pills CoreMod.CreateTraderAssort(HashUtil.generate(), "590c695186f7741e566b64a2", "54cb57776803fa99248b456e", 30844, "RUB", 4, false, 4000, 1); @@ -451,7 +473,9 @@ class TherapistAssort { CoreMod.CreateTraderAssort(HashUtil.generate(), "5c0e533786f7747fa23f4d47", "54cb57776803fa99248b456e", 28630, "RUB", 4, false, 2000, 1); //adrenaline injector - CoreMod.CreateTraderAssort(HashUtil.generate(), "5c10c8fd86f7743d7d706df3", "54cb57776803fa99248b456e", 28630, "RUB", 4, false, 20000, 1); + id = HashUtil.generate() + CoreMod.CreateTraderAssort(id, "5c10c8fd86f7743d7d706df3", "54cb57776803fa99248b456e", 28630, "RUB", 4, false, 20000, 1); + CoreMod.CreateTraderAssortUnlock("54cb57776803fa99248b456e", "success", id, "5c0d0d5086f774363760aef2") //Athlete //pack of sugar CoreMod.CreateTraderBarter(HashUtil.generate(), "59e3577886f774176a362503", "hideout", "hideout", [ @@ -530,6 +554,8 @@ class TherapistAssort { TherapistAssort.GenerateLL2(); TherapistAssort.GenerateLL3(); TherapistAssort.GenerateLL4(); + VFS.writeFile(`./traders/54cb57776803fa99248b456e/assort.json`, JsonUtil.serialize(DatabaseServer.tables.traders["54cb57776803fa99248b456e"].assort, true)) + VFS.writeFile(`./traders/54cb57776803fa99248b456e/questassort.json`, JsonUtil.serialize(DatabaseServer.tables.traders["54cb57776803fa99248b456e"].questassort, true)) } }