Gamenator

eft

Nov 9th, 2022
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.44 KB | None | 0 0
  1. import { DependencyContainer } from "tsyringe";
  2.  
  3. import { IPostDBLoadMod } from "@spt-aki/models/external/IPostDBLoadMod";
  4. import { DatabaseServer } from "@spt-aki/servers/DatabaseServer";
  5. import { ILogger } from "@spt-aki/models/spt/utils/ILogger";
  6. import { LogTextColor } from "@spt-aki/models/spt/logging/LogTextColor";
  7. import { LogBackgroundColor } from "@spt-aki/models/spt/logging/LogBackgroundColor";
  8.  
  9.  
  10. class Mod implements IPostDBLoadMod
  11. {
  12. public postDBLoad(container: DependencyContainer): void
  13. {
  14.  
  15.  
  16.  
  17. const logger = container.resolve<ILogger>("WinstonLogger");
  18. logger.logWithColor(`Loading: Gamenator Crazyguns`,LogTextColor.YELLOW, LogBackgroundColor.BLUE);
  19.  
  20.  
  21. // get database from server
  22. const databaseServer = container.resolve<DatabaseServer>("DatabaseServer");
  23.  
  24. // Get all the in-memory json found in /assets/database
  25. const tables = databaseServer.getTables();
  26.  
  27. const item = tables.templates.items;
  28.  
  29.  
  30.  
  31. //shotgun holster
  32. item["55d7217a4bdc2d86028b456d"]._props.Slots[2]._props.filters[0].Filter.push("5447b6094bdc2dc3278b4567")
  33. //saiga 12 hadguards
  34. 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")
  35. //pp vityaz
  36. item["59984ab886f7743e98271174"]._props.Slots[1]._props.filters[0].Filter.push("57616ca52459773c69055192")
  37. item["59984ab886f7743e98271174"]._props.Slots[1]._props.filters[0].Filter.push("5ab626e4d8ce87272e4c6e43")
  38. item["59984ab886f7743e98271174"]._props.Slots[1]._props.filters[0].Filter.push("57dc347d245977596754e7a1")
  39. item["59984ab886f7743e98271174"]._props.Slots[8]._props.filters[0].Filter.push("59d36a0086f7747e673f3946")
  40. //pockets
  41. item["627a4e6b255f7527fb05a0f6"]._props.Grids[0]._props.cellsH = 1
  42. item["627a4e6b255f7527fb05a0f6"]._props.Grids[0]._props.cellsV = 3
  43. item["627a4e6b255f7527fb05a0f6"]._props.Grids[1]._props.cellsH = 1
  44. item["627a4e6b255f7527fb05a0f6"]._props.Grids[1]._props.cellsV = 3
  45. item["627a4e6b255f7527fb05a0f6"]._props.Grids[2]._props.cellsH = 1
  46. item["627a4e6b255f7527fb05a0f6"]._props.Grids[2]._props.cellsV = 3
  47. item["627a4e6b255f7527fb05a0f6"]._props.Grids[3]._props.cellsH = 1
  48. item["627a4e6b255f7527fb05a0f6"]._props.Grids[3]._props.cellsV = 3
  49. //pt lock 101/2/saiga12/aks-74/vityaz
  50. item["5ac78eaf5acfc4001926317a"]._props.Slots[0]._props.filters[0].Filter.push("5e217ba4c1434648c13568cd","59d6514b86f774171a068a08","5649b0fc4bdc2d17108b4588","5649b1c04bdc2d16268b457c","5b04473a5acfc40018632f70","5b0e794b5acfc47a877359b2","59e6227d86f77440d64f5dc2","59e89d0986f77427600d226e","57ade1442459771557167e15","5cbdb1b0ae9215000d50e105","6087e2a5232e5a31c233d552")
  51. item["59ecc28286f7746d7a68aa8c"]._props.Slots[0]._props.filters[0].Filter.push("5e217ba4c1434648c13568cd","59d6514b86f774171a068a08","5649b0fc4bdc2d17108b4588","5649b1c04bdc2d16268b457c","5b04473a5acfc40018632f70","5b0e794b5acfc47a877359b2","59e6227d86f77440d64f5dc2","59e89d0986f77427600d226e","57ade1442459771557167e15","5cbdb1b0ae9215000d50e105","6087e2a5232e5a31c233d552")
  52. //ak74u tube
  53. item["57dc2fa62459775949412633"]._props.Slots[6]._props.filters[0].Filter.push("59ccd11386f77428f24a488f")
  54. item["583990e32459771419544dd2"]._props.Slots[7]._props.filters[0].Filter.push("59ccd11386f77428f24a488f")
  55. item["5839a40f24597726f856b511"]._props.Slots[7]._props.filters[0].Filter.push("59ccd11386f77428f24a488f")
  56. item["59ccd11386f77428f24a488f"]._props.Slots[0]._props.filters[0].Filter.push("5b800e9286f7747a8b04f3ff","5b80242286f77429445e0b47")
  57. //vulkan bobba fett
  58. item["5d6d3943a4b9360dbc46d0cc"]._props.Durability = 50
  59. item["5d6d3943a4b9360dbc46d0cc"]._props.MaxDurability = 50
  60. item["5d6d3943a4b9360dbc46d0cc"]._props.armorClass = 3
  61. //kek helmet
  62. item["5ea05cf85ad9772e6624305d"]._props.armorClass = 4
  63. //glock 18 updates
  64. item["5b1fa9b25acfc40018633c01"]._props.Slots[0]._props.filters[0].Filter.push("5a6b5e468dc32e001207faf5")
  65. item["5b1fa9b25acfc40018633c01"]._props.Slots[0]._props.filters[0].Filter.push("5a6b5b8a8dc32e001207faf3")
  66. item["5b1fa9b25acfc40018633c01"]._props.Slots[0]._props.filters[0].Filter.push("5a6b5ed88dc32e000c52ec86")
  67. item["5b1fa9b25acfc40018633c01"]._props.Slots[4]._props.filters[0].Filter.push("5a7ad74e51dfba0015068f45")
  68.  
  69. // lm18 silencer
  70. item["5fc23678ab884124df0cd590"]._props.Slots[0]._props.filters[0].Filter.push("5d1f819086f7744b355c219b")
  71.  
  72. //mp5k pdw
  73. item["5d2f261548f03576f500e7b7"]._props.Slots[2]._props.filters[0].Filter.push("5926d40686f7740f152b6b7e")
  74. item["5d2f261548f03576f500e7b7"]._props.Slots[2]._props.filters[0].Filter.push("5926d3c686f77410de68ebc8")
  75.  
  76. }
  77.  
  78. module.exports = { mod: new Mod() }
Add Comment
Please, Sign In to add comment