Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Main configuration for non-persistent market system
- Will need triggers to hook into vanilla pricing methods
- */
- ////////////MAIN CONFIG
- life_market_resources = [
- //Schema: SHORTNAME, Default, Min, Max, changes in action, [Sales multiplied by 1, Purchase multiplied by -1]
- //["gold", 1500, 450, 2300, 8, 5],
- //Kleiner Stufe 1
- ["iron_r", 3500, 3200, 3700, 2, 2, // Eisen Barren Gewicht 4
- [
- ["copper_r",1],
- ["wine",1]
- ]
- ]
- ,
- ["copper_r", 4100, 2500, 4700, 2, 2, // Kupfer Barren Gewicht 3
- [
- ["iron_r",1],
- ["wine",1]
- ]
- ],
- ["wine", 2000, 1500, 2700, 3, 3, // Wein
- [
- ["copper_r",1],
- ["iron_r",1]
- ]
- ],
- //Mittlere Stufe 2
- ["glass", 3500, 2200, 4200, 2, 2, // Glas
- [
- ["cement",1],
- ["salt_r",1]
- ]
- ],
- ["cement", 4400, 3200, 4800, 3, 3, //Zement Sack
- [
- ["glass",1],
- ["salt_r",1]
- ]
- ],
- ["salt_r", 3400, 2500, 3800, 3, 3, //Salz
- [
- ["glass",1],
- ["cement",1]
- ]
- ],
- //Hoch Stufe 3
- ["diamondc", 8500, 7500, 9200, 11, 9, //Dias
- [
- ["kidney",1],
- ["bottledbeer",1],
- ["fuelK",1],
- ["stelement",1]
- ]
- ],
- ["kidney", 21000, 0, 35000, 1600, 30, //Nier
- [
- ["diamondc",1],
- ["bottledbeer",1],
- ["fuelK",1],
- ["stelement",1]
- ]
- ],
- ["bottledbeer", 7800, 7000, 9400, 7, 5, //Bier
- [
- ["diamondc",1],
- ["kidney",1],
- ["fuelK",1],
- ["stelement",1]
- ]
- ],
- ["stelement", 30000, 19000, 32000, 20, 20, //Instabiles Element
- [
- ["diamondc",1],
- ["bottledbeer",1],
- ["kidney",1],
- ["fuelK",1]
- ]
- ],
- ["fuelK", 8600, 8000, 10000, 16, 10, //Kerosin
- [
- ["diamondc",1],
- ["bottledbeer",1],
- ["stelement",1],
- ["kidney",1]
- ]
- ],
- /////////////////////////
- ["bottledwhiskey", 8400, 6000, 10400, 6, 4,
- [
- ["brennstab",1],
- ["bottledshine",1],
- ["sprengstoff",1],
- ["goldbar",1]
- ]
- ],
- ["brennstab", 7000, 5000, 9000, 6, 4,
- [
- ["bottledshine",1],
- ["goldbar",1],
- ["sprengstoff",1],
- ["bottledwhiskey",1]
- ]
- ],
- ["sprengstoff", 10000, 9000, 12000, 6, 4,
- [
- ["bottledshine",1],
- ["goldbar",1],
- ["brennstab",1],
- ["bottledwhiskey",1]
- ]
- ],
- ["bottledshine", 11500, 6500, 13500, 6, 4,
- [
- ["brennstab",1],
- ["goldbar",1],
- ["sprengstoff",1],
- ["bottledwhiskey",1]
- ]
- ],
- ["goldbar", 100000, 70000, 150000, 400, 250,
- [
- ["brennstab",1],
- ["bottledwhiskey",1],
- ["sprengstoff",1],
- ["bottledshine",1]
- ]
- ],
- //Neue Stufe drogen
- ["marijuana", 6100, 3500, 7500, 6, 6, //Marijj
- [
- ["cocainep",1],
- ["heroinp",1],
- ["turtle",1],
- ["methp",1],
- ["faekalium",1]
- ]
- ],
- ["turtle", 29000, 19000, 35000, 60, 40,
- [
- ["cocainep",1],
- ["heroinp",1],
- ["marijuana",1],
- ["methp",1],
- ["faekalium",1]
- ]
- ],
- ["cocainep", 10700, 8000, 11700, 6, 4,
- [
- ["turtle",1],
- ["methp",1],
- ["marijuana",1],
- ["heroinp",1],
- ["faekalium",1]
- ]
- ],
- ["methp", 8500, 6000, 9500, 6, 4,
- [
- ["turtle",1],
- ["cocainep",1],
- ["marijuana",1],
- ["heroinp",1],
- ["faekalium",1]
- ]
- ],
- ["heroinp", 6800, 4000, 7800, 6, 4,
- [
- ["turtle",1],
- ["cocainep",1],
- ["marijuana",1],
- ["methp",1],
- ["faekalium",1]
- ]
- ],
- ["faekalium", 6800, 4000, 7800, 6, 4,
- [
- ["turtle",1],
- ["cocainep",1],
- ["marijuana",1],
- ["methp",1],
- ["heroinp",1]
- ]
- ]
- ];
- publicVariable "life_market_resources";
- life_market_shortnames = []; //shortnames if in market
- {
- life_market_shortnames set [count life_market_shortnames, _x select 0];
- }
- foreach life_market_resources;
- publicVariable "life_market_shortnames";
- if(isNil("life_market_prices")) then
- {
- life_market_prices = []; //[SHORTNAME,CURRENTPRICE,DIRECTIONGLOBAL,DIRECTIONLOCAL]
- {
- life_market_prices set [count life_market_prices, [_x select 0, _x select 1, 0, 0] ];
- }
- foreach life_market_resources;
- publicVariable "life_market_prices";
- systemChat "Market Prices Generated!";
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement