Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { DependencyContainer } from "tsyringe";
- import { IPostDBLoadMod } from "@spt-aki/models/external/IPostDBLoadMod";
- import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
- import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
- import { LogTextColor } from "@spt-aki/models/spt/logging/LogTextColor";
- import { LogBackgroundColor } from "@spt-aki/models/spt/logging/LogBackgroundColor";
- class Mod implements IPostDBLoadMod
- {
- public postDBLoad(container: DependencyContainer): void
- {
- const logger = container.resolve<ILogger>("WinstonLogger");
- logger.logWithColor(`Loading: Gamenator Crazyguns`,LogTextColor.YELLOW, LogBackgroundColor.BLUE);
- // get database from server
- const databaseServer = container.resolve<DatabaseServer>("DatabaseServer");
- // Get all the in-memory json found in /assets/database
- const tables = databaseServer.getTables();
- const item = tables.templates.items;
- //shotgun holster
- item["55d7217a4bdc2d86028b456d"]._props.Slots[2]._props.filters[0].Filter.push("5447b6094bdc2dc3278b4567")
- //saiga 12 hadguards
- item["576165642459773c7a400233"]._props.Slots[1]._props.filters[0].Filter.push("5648b0744bdc2d363b8b4578","5cf4e3f3d7f00c06595bc7f0","5648ae314bdc2d3d1c8b457f","5b800e9286f7747a8b04f3ff","5d2c829448f0353a5c7d6674","5b80242286f77429445e0b47","5cbda392ae92155f3c17c39f","5cbda9f4ae9215000e5b9bfc","5648b0744bdc2d363b8b4578","5648b1504bdc2d9d488b4584","59d64f2f86f77417193ef8b3","57cff947245977638e6f2a19","57cffd8224597763b03fc609","57cffddc24597763133760c6","57cffe0024597763b03fc60b","57cffe20245977632f391a9d","5c9a07572e221644f31c4b32","5c9a1c3a2e2216000e69fb6a","5c9a1c422e221600106f69f0","59e6284f86f77440d569536f","59e898ee86f77427614bd225","5a9d56c8a2750c0032157146","5d1b198cd7ad1a604869ad72","5d4aaa73a4b9365392071175","5d4aaa54a4b9365392071170","5f6331e097199b7db2128dc2","5c17664f2e2216398b5a7e3c","5c617a5f2e2216000f1e81b3","5648b4534bdc2d3d1c8b4580","5efaf417aeb21837e749c7f2")
- //pp vityaz
- item["59984ab886f7743e98271174"]._props.Slots[1]._props.filters[0].Filter.push("57616ca52459773c69055192")
- item["59984ab886f7743e98271174"]._props.Slots[1]._props.filters[0].Filter.push("5ab626e4d8ce87272e4c6e43")
- item["59984ab886f7743e98271174"]._props.Slots[1]._props.filters[0].Filter.push("57dc347d245977596754e7a1")
- item["59984ab886f7743e98271174"]._props.Slots[8]._props.filters[0].Filter.push("59d36a0086f7747e673f3946")
- //pockets
- item["627a4e6b255f7527fb05a0f6"]._props.Grids[0]._props.cellsH = 1
- item["627a4e6b255f7527fb05a0f6"]._props.Grids[0]._props.cellsV = 3
- item["627a4e6b255f7527fb05a0f6"]._props.Grids[1]._props.cellsH = 1
- item["627a4e6b255f7527fb05a0f6"]._props.Grids[1]._props.cellsV = 3
- item["627a4e6b255f7527fb05a0f6"]._props.Grids[2]._props.cellsH = 1
- item["627a4e6b255f7527fb05a0f6"]._props.Grids[2]._props.cellsV = 3
- item["627a4e6b255f7527fb05a0f6"]._props.Grids[3]._props.cellsH = 1
- item["627a4e6b255f7527fb05a0f6"]._props.Grids[3]._props.cellsV = 3
- //pt lock 101/2/saiga12/aks-74/vityaz
- item["5ac78eaf5acfc4001926317a"]._props.Slots[0]._props.filters[0].Filter.push("5e217ba4c1434648c13568cd","59d6514b86f774171a068a08","5649b0fc4bdc2d17108b4588","5649b1c04bdc2d16268b457c","5b04473a5acfc40018632f70","5b0e794b5acfc47a877359b2","59e6227d86f77440d64f5dc2","59e89d0986f77427600d226e","57ade1442459771557167e15","5cbdb1b0ae9215000d50e105","6087e2a5232e5a31c233d552")
- item["59ecc28286f7746d7a68aa8c"]._props.Slots[0]._props.filters[0].Filter.push("5e217ba4c1434648c13568cd","59d6514b86f774171a068a08","5649b0fc4bdc2d17108b4588","5649b1c04bdc2d16268b457c","5b04473a5acfc40018632f70","5b0e794b5acfc47a877359b2","59e6227d86f77440d64f5dc2","59e89d0986f77427600d226e","57ade1442459771557167e15","5cbdb1b0ae9215000d50e105","6087e2a5232e5a31c233d552")
- //ak74u tube
- item["57dc2fa62459775949412633"]._props.Slots[6]._props.filters[0].Filter.push("59ccd11386f77428f24a488f")
- item["583990e32459771419544dd2"]._props.Slots[7]._props.filters[0].Filter.push("59ccd11386f77428f24a488f")
- item["5839a40f24597726f856b511"]._props.Slots[7]._props.filters[0].Filter.push("59ccd11386f77428f24a488f")
- item["59ccd11386f77428f24a488f"]._props.Slots[0]._props.filters[0].Filter.push("5b800e9286f7747a8b04f3ff","5b80242286f77429445e0b47")
- //vulkan bobba fett
- item["5d6d3943a4b9360dbc46d0cc"]._props.Durability = 50
- item["5d6d3943a4b9360dbc46d0cc"]._props.MaxDurability = 50
- item["5d6d3943a4b9360dbc46d0cc"]._props.armorClass = 3
- //kek helmet
- item["5ea05cf85ad9772e6624305d"]._props.armorClass = 4
- //glock 18 updates
- item["5b1fa9b25acfc40018633c01"]._props.Slots[0]._props.filters[0].Filter.push("5a6b5e468dc32e001207faf5")
- item["5b1fa9b25acfc40018633c01"]._props.Slots[0]._props.filters[0].Filter.push("5a6b5b8a8dc32e001207faf3")
- item["5b1fa9b25acfc40018633c01"]._props.Slots[0]._props.filters[0].Filter.push("5a6b5ed88dc32e000c52ec86")
- item["5b1fa9b25acfc40018633c01"]._props.Slots[4]._props.filters[0].Filter.push("5a7ad74e51dfba0015068f45")
- // lm18 silencer
- item["5fc23678ab884124df0cd590"]._props.Slots[0]._props.filters[0].Filter.push("5d1f819086f7744b355c219b")
- //mp5k pdw
- item["5d2f261548f03576f500e7b7"]._props.Slots[2]._props.filters[0].Filter.push("5926d40686f7740f152b6b7e")
- item["5d2f261548f03576f500e7b7"]._props.Slots[2]._props.filters[0].Filter.push("5926d3c686f77410de68ebc8")
- }
- module.exports = { mod: new Mod() }
Add Comment
Please, Sign In to add comment