Advertisement
Guest User

Untitled

a guest
May 29th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 4.09 KB | None | 0 0
  1. /*
  2.  
  3.     Main configuration for non-persistent market system
  4.     Will need triggers to hook into vanilla pricing methods
  5.  
  6. */
  7.  
  8. ////////////MAIN CONFIG
  9.  
  10. life_market_resources = [
  11.  
  12.     //Schema: SHORTNAME, Default, Min, Max, changes in action, [Sales multiplied by 1, Purchase multiplied by -1]
  13.     //["gold", 1500, 450, 2300, 8, 5],
  14.    
  15.     //Kleiner Stufe 1
  16.     ["iron_r", 3500, 3200, 3700, 2, 2, // Eisen Barren Gewicht 4
  17.         [
  18.             ["copper_r",1],
  19.             ["wine",1]
  20.         ]
  21.     ]
  22.     ,
  23.    
  24.     ["copper_r", 4100, 2500, 4700, 2, 2, // Kupfer Barren Gewicht 3
  25.         [
  26.             ["iron_r",1],
  27.             ["wine",1]
  28.         ]
  29.     ],
  30.    
  31.     ["wine", 2000, 1500, 2700, 3, 3, // Wein
  32.         [
  33.             ["copper_r",1],
  34.             ["iron_r",1]
  35.         ]
  36.     ],
  37.    
  38.     //Mittlere Stufe 2
  39.  
  40.     ["glass", 3500, 2200, 4200, 2, 2, // Glas
  41.         [
  42.             ["cement",1],
  43.             ["salt_r",1]
  44.         ]
  45.     ],
  46.    
  47.     ["cement", 4400, 3200, 4800, 3, 3, //Zement Sack
  48.         [
  49.             ["glass",1],
  50.             ["salt_r",1]
  51.         ]
  52.     ],
  53.  
  54.     ["salt_r", 3400, 2500, 3800, 3, 3, //Salz
  55.         [
  56.             ["glass",1],
  57.             ["cement",1]
  58.         ]
  59.     ],
  60.  
  61.     //Hoch Stufe 3
  62.  
  63.     ["diamondc", 8500, 7500, 9200, 11, 9, //Dias
  64.         [
  65.             ["kidney",1],
  66.             ["bottledbeer",1],
  67.             ["fuelK",1],
  68.             ["stelement",1]
  69.         ]
  70.     ],
  71.  
  72.     ["kidney", 21000, 0, 35000, 1600, 30, //Nier
  73.         [
  74.             ["diamondc",1],
  75.             ["bottledbeer",1],
  76.             ["fuelK",1],
  77.             ["stelement",1]
  78.         ]
  79.     ],
  80.    
  81.     ["bottledbeer", 7800, 7000, 9400, 7, 5, //Bier
  82.         [
  83.             ["diamondc",1],
  84.             ["kidney",1],
  85.             ["fuelK",1],
  86.             ["stelement",1]
  87.         ]
  88.     ],
  89.    
  90.     ["stelement", 30000, 19000, 32000, 20, 20, //Instabiles Element
  91.         [
  92.             ["diamondc",1],
  93.             ["bottledbeer",1],
  94.             ["kidney",1],
  95.             ["fuelK",1]
  96.         ]
  97.     ],
  98.    
  99.     ["fuelK", 8600, 8000, 10000, 16, 10, //Kerosin
  100.         [
  101.             ["diamondc",1],
  102.             ["bottledbeer",1],
  103.             ["stelement",1],
  104.             ["kidney",1]
  105.         ]
  106.     ],
  107.    
  108. /////////////////////////
  109.    
  110.     ["bottledwhiskey", 8400, 6000, 10400, 6, 4,
  111.         [  
  112.             ["brennstab",1],
  113.             ["bottledshine",1],
  114.             ["sprengstoff",1],
  115.             ["goldbar",1]
  116.         ]
  117.     ],
  118.  
  119.     ["brennstab", 7000, 5000, 9000, 6, 4,  
  120.         [
  121.             ["bottledshine",1],
  122.             ["goldbar",1],
  123.             ["sprengstoff",1],
  124.             ["bottledwhiskey",1]
  125.         ]
  126.     ],
  127.    
  128.     ["sprengstoff", 10000, 9000, 12000, 6, 4,  
  129.         [
  130.             ["bottledshine",1],
  131.             ["goldbar",1],
  132.             ["brennstab",1],
  133.             ["bottledwhiskey",1]
  134.         ]
  135.     ],
  136.  
  137.     ["bottledshine", 11500, 6500, 13500, 6, 4,    
  138.         [
  139.             ["brennstab",1],
  140.             ["goldbar",1],
  141.             ["sprengstoff",1],
  142.             ["bottledwhiskey",1]
  143.         ]
  144.     ],
  145.  
  146.     ["goldbar", 100000, 70000, 150000, 400, 250,  
  147.         [
  148.             ["brennstab",1],
  149.             ["bottledwhiskey",1],
  150.             ["sprengstoff",1],
  151.             ["bottledshine",1]
  152.         ]
  153.     ],
  154.    
  155. //Neue Stufe drogen
  156.    
  157.     ["marijuana", 6100, 3500, 7500, 6, 6, //Marijj
  158.         [
  159.             ["cocainep",1],
  160.             ["heroinp",1],
  161.             ["turtle",1],
  162.             ["methp",1],
  163.             ["faekalium",1]
  164.         ]
  165.     ],
  166.    
  167.     ["turtle", 29000, 19000, 35000, 60, 40,  
  168.         [
  169.             ["cocainep",1],
  170.             ["heroinp",1],
  171.             ["marijuana",1],
  172.             ["methp",1],
  173.             ["faekalium",1]
  174.         ]
  175.     ],
  176.    
  177.     ["cocainep", 10700, 8000, 11700, 6, 4,  
  178.         [
  179.             ["turtle",1],
  180.             ["methp",1],
  181.             ["marijuana",1],
  182.             ["heroinp",1],
  183.             ["faekalium",1]
  184.         ]
  185.     ],
  186.    
  187.     ["methp", 8500, 6000, 9500, 6, 4,  
  188.         [
  189.             ["turtle",1],
  190.             ["cocainep",1],
  191.             ["marijuana",1],
  192.             ["heroinp",1],
  193.             ["faekalium",1]
  194.         ]
  195.     ],
  196.    
  197.     ["heroinp", 6800, 4000, 7800, 6, 4,  
  198.         [
  199.             ["turtle",1],
  200.             ["cocainep",1],
  201.             ["marijuana",1],
  202.             ["methp",1],
  203.             ["faekalium",1]
  204.         ]
  205.     ],
  206.    
  207.     ["faekalium", 6800, 4000, 7800, 6, 4,  
  208.         [
  209.             ["turtle",1],
  210.             ["cocainep",1],
  211.             ["marijuana",1],
  212.             ["methp",1],
  213.             ["heroinp",1]
  214.         ]
  215.     ]
  216.    
  217. ];
  218. publicVariable "life_market_resources";
  219. life_market_shortnames = []; //shortnames if in market
  220.  
  221. {
  222.     life_market_shortnames set [count life_market_shortnames, _x select 0];
  223. }
  224. foreach life_market_resources;
  225.  
  226. publicVariable "life_market_shortnames";
  227.  
  228.  
  229. if(isNil("life_market_prices")) then
  230. {
  231.     life_market_prices = []; //[SHORTNAME,CURRENTPRICE,DIRECTIONGLOBAL,DIRECTIONLOCAL]
  232.     {
  233.    
  234.         life_market_prices set [count life_market_prices, [_x select 0, _x select 1, 0, 0] ];
  235.     }
  236.     foreach life_market_resources;
  237.    
  238.     publicVariable "life_market_prices";
  239.    
  240.     systemChat "Market Prices Generated!";
  241. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement