Jump to content

Need HELP, ANYONE?


s1mple

Recommended Posts

[2015-10-03 02:01:48] SCRIPT ERROR: [DayZ-MTA]/DayZ/pickups.lua:472: unexpected symbol near '[' 
[2015-10-03 02:01:48] ERROR: Loading script failed: [DayZ-MTA]/DayZ/pickups.lua:472: unexpected symbol near '[' 

local itemTable = { 
["farm"] = {
{"Wood Pile",1463,0.4,0,13},
{"Bandage",1578,0.5,0,4},
{"Water Bottle",2683,1,0,6},
{"Pasta Can",2770,1,0,6},
{"Beans Can",2601,1,0,6},
{"Burger",2768,1,0,6},
{"Empty Soda Cans",2673,0.5,0,12},
{"Scruffy Burgers",2675,0.5,0,12},
{"Soda Bottle",2647,1,0,9},
{"Empty Gas Canister",1650,1,0,10},
{"Hunting Knife",335,1,90,4},
{"Box of Matches",328,0.4,90,8},
{"Revolver",348,1,90,0.2},
{"Morphine",1579,1,0,4},
{"Tent",1279,1,0,0.5},
{"Makarov PM",346,1,90,4},
{"Painkiller",2709,3,0,3.5},
{"M14 AIM",357,1,90,0.3},
{"Remington 870",349,1,90,0.3},
{"Tire",1073,1,0,2},
{"Civilian Clothing",1241,2,0,2.5},
{"Civilian Clothing [F]",1832,2,0,9},
{"Zombie Clothing",2410,2,0,9},
{"Press Clothing",1667,2,0,9},
{"Nigga Clothing",1830,2,0,9},
{"Map",1277,0.8,90,6},
{"GPS",2976,0.15,0,2},
{"Soldier Pack",1950,1,0,1.5},
},
----------------------
["residential"] = {
{"Box of Matches",328,0.4,90,5},
{"Wood Pile",1463,0.4,0,5},
{"Makarov PM",346,1,90,1.5},
{"M9 SD",347,1,90,1.9},
{"Remington 870",349,1,90,0.1},
{"PDW",352,1,90,1},
{"Hunting Knife",335,1,90,3},
{"Hatchet",339,1,90,1},
{"Pizza",1582,1,0,7},
{"Soda Bottle",2647,1,0,7},
{"Empty Gas Canister",1650,1,0,9},
{"Roadflare",324,1,90,9},
{"Milk",2856,1,0,7},
{"Assault Pack (ACU)",3026,1,0,6},
{"Painkiller",2709,3,0,7},
{"Empty Soda Cans",2673,0.5,0,12},
{"Scruffy Burgers",2675,0.5,0,12},
{"M67 Frag",342,1,0,0.01},
{"Revolver",348,1,90,0.4},
{"Sawn-Off Shotgun",350,1,90,0.3},
{"M1014",351,1,90,0.4},
{"Bizon PP-19 SD",353,1,90,0.4},
{"Watch",2710,1,0,3},
{"Heat Pack",1576,5,0,6},
{"Wire Fence",933,0.25,0,1},
{"M14 AIM",357,1,90,0.3},
{"Alice Pack",1248,1,0,1.5},
{"LHT Ghillie Pack",1486,1,0,1.5},
{"Soldier Pack",1950,1,0,1.5},
{"Military Vintage Backpack",1951,1,0,1.5},
{"Tire",1073,1,0,1},
{"Morphine",1579,1,0,2},
{"Civilian Clothing",1241,2,0,9},
{"Civilian Clothing [F]",2410,2,0,9},
{"Zombie Clothing",2410,2,0,9},
{"Press Clothing",1667,2,0,9},
{"Nigga Clothing",1830,2,0,9},
{"Map",1277,0.8,90,10},
{"GPS",2976,0.15,0,3},
{"Pasta Can",2770,1,0,7},
{"Beans Can",2601,1,0,7},
--{"TEC-9",372,1,90,0},
{"Burger",2768,1,0,7},
{"Golf Club",333,1,90,3},
{"Baseball Bat",336,1,90,3},
{"Shovel",337,1,90,3},
},
----------------------
["military"] = {
{"Box of Matches",328,0.4,90,2},
{"Makarov PM",346,1,90,5},
{"M9 SD",347,1,90,4},
{"Remington 870",349,1,90,3},
{"PDW",352,1,90,4},
{"Hunting Knife",335,1,90,2.4},
{"Hatchet",339,1,90,2.1},
{"Pizza",1582,1,0,2},
{"Soda Bottle",2647,1,0,2},
{"Empty Gas Canister",1650,1,0,4},
{"Roadflare",324,1,90,4},
{"Milk",2856,1,0,1},
{"Painkiller",2709,3,0,4},
{"Empty Soda Cans",2673,0.5,0,12},
{"Scruffy Burgers",2675,0.5,0,12},
{"M67 Frag",342,1,0,0.5},
{"Sawn-Off Shotgun",350,1,90,2.3},
{"M1014",351,1,90,2.3},
{"Bizon PP-19 SD",353,1,90,2.8},
{"Watch",2710,1,0,4},
{"Heat Pack",1576,5,0,3},
{"Wire Fence",933,0.25,0,1},
{"M14 AIM",357,1,90,3.5},
{"Alice Pack",1248,1,0,4},
{"LHT Ghillie Pack",1486,1,0,4},
{"Military Vintage Backpack",1951,1,0,1.5},
{"Soldier Pack",1950,1,0,4},
{"Night Vision Goggles",368,1,90,4},
{"Binoculars",369,1,0,4},
{"Tire",1073,1,0,2},
{"Morphine",1579,1,0,4},
{"Camouflage Clothing",1247,2,0,4.5},
{"Civilian Clothing",1241,2,0,3},
{"Civilian Clothing [F]",1832,2,0,9},
{"Zombie Clothing",2410,2,0,9},
{"Press Clothing",1667,2,0,9},
{"Nigga Clothing",1830,2,0,3},
--{"TEC-9",372,1,90,3},
{"AKS-74 Kobra",355,1,90,3.8},
{"GPS",2976,0.15,0,3},
{"Map",1277,0.8,90,7},
{"Toolbox",2969,0.5,0,1},
{"Engine",929,0.3,0,2},
{"Tent",1279,1,0,4.5},
{"Ghillie Suit",1213,2,0,0.3},
{"Sniper Skin Girl",1515,2,0,9},
{"Takistan Ghillie Suit",1831,2,0,9},
{"Takistan Army",1833,2,0,9},
{"Desert Ghillie suit",1834,2,0,9},
{"Brushwood Ghillie suit",1835,2,0,9},
{"Jungle Solider",1836,2,0,9},
{"Desert Solider",1837,2,0,9},
{"New Soliderr",1838,2,0,9},
{"M4A3 CCO",356,1,90,2.4},
{"DMR",358,1,90,0.4},
{"Infrared Goggles",369,1,90,3},
{"Assault Pack (ACU)",3026,1,0,5},
{"Czech Backpack",1239,1,0,2},
{"Radio Device",330,1,0,6},
{"Coyote Backpack",1252,1,0,0.9},
--{"Thermal GPS",2976,0.2,0,4},
--{"GPS Jammer",2976,0.2,0,3},
{"Shovel",337,1,90,1},
},
----------------------
["industrial"] = {
{"Wire Fence",933,0.25,0,7},
{"Toolbox",2969,0.5,0,3},
{"Tire",1073,1,0,4},
{"Engine",929,0.3,0,3.5},
{"Remington 870",349,1,90,3},
{"Water Bottle",2683,1,0,4},
{"Pasta Can",2770,1,0,4},
{"Beans Can",2601,1,0,4},
{"Burger",2768,1,0,4},
{"Empty Soda Cans",2673,0.5,0,12},
{"Scruffy Burgers",2675,0.5,0,10},
{"Soda Bottle",2647,1,0,4},
{"Empty Gas Canister",1650,1,0,6},
{"Full Gas Canister",1650,1,0,1.5},
{"Map",1277,0.8,90,3},
{"Watch",2710,1,0,2},
{"Box of Matches",328,0.4,90,5},
{"Wood Pile",1463,0.4,0,2},
{"Makarov PM",346,1,90,1.5},
{"PDW",352,1,90,2},
{"Hunting Knife",335,1,90,2},
{"Hatchet",339,1,90,1.5},
{"Pizza",1582,1,0,4},
{"Roadflare",324,1,90,5},
{"Milk",2856,1,0,4},
{"Assault Pack (ACU)",3026,1,0,6},
{"Military Vintage Backpack",1951,1,0,0.6},
{"Soldier Pack",1950,1,0,1.5},
{"Coyote Backpack",1252,1,0,0.5},
{"Radio Device",330,1,0,6},
--{"Thermal GPS",2976,0.2,0,1},
--{"GPS Jammer",2976,0.2,0,1},
{"Golf Club",333,1,90,1.5},
{"Baseball Bat",336,1,90,1.5},
{"Shovel",337,1,90,1.5},
{"Night Vision Goggles",368,1,90,1.5},
},
----------------------
["supermarket"] = {
{"Raw Meat",2804,0.5,90,8},
{"Box of Matches",328,0.4,90,5},
{"Wood Pile",1463,0.4,0,5},
{"Makarov PM",346,1,90,3.5},
{"PDW",352,1,90,2},
{"Hunting Knife",335,1,90,3},
{"Hatchet",339,1,90,2.1},
{"Pizza",1582,1,0,7},
{"Soda Bottle",2647,1,0,7},
{"Empty Gas Canister",1650,1,0,5},
{"Roadflare",324,1,90,6},
{"Milk",2856,1,0,7},
{"Assault Pack (ACU)",3026,1,0,6},
{"Pasta Can",2770,1,0,7},
{"Beans Can",2601,1,0,7},
{"Burger",2768,1,0,7},
{"Painkiller",2709,3,0,7},
{"Empty Soda Cans",2673,0.5,0,12},
{"Scruffy Burgers",2675,0.5,0,12},
{"Bizon PP-19 SD",353,1,90,0.5},
{"Watch",2710,1,0,3},
{"Heat Pack",1576,5,0,6},
{"Wire Fence",933,0.25,0,1},
{"M14 AIM",357,1,90,0.2},
{"Alice Pack",1248,1,0,0.5},
{"Soldier Pack",1950,1,0,1.5},
{"Tire",1073,1,0,1},
{"Morphine",1579,1,0,2},
{"Civilian Clothing",1241,2,0,3.5},
{"Civilian Clothing [F]",1832,2,0,9},
{"Map",1277,0.8,90,4},
{"GPS",2976,0.15,0,1},
{"Radio Device",330,1,0,6},
{"Golf Club",333,1,90,1.9},
{"Baseball Bat",336,1,90,1.4},
{"Shovel",337,1,90,0.3},
},
["other"] = {
{"Raw Meat",2804,0.5,90},
{"Cooked Meat",2806,0.5,90},
{"Full Gas Canister",1650,1,0},
{"Empty Water Bottle",2683,1,0},
{"Survivor Clothing",1577,2,0},
{"Night Vision Goggles",368,1,90},
{"Infrared Goggles",369,1,90},
{"8Rnd. Slugs",2358,2,0},
{"2Rnd. Slug",2358,2,0},
{"8Rnd. Pellet",2358,2,0},
{"Bizon SD Mag",2358,2,0},
{"30Rnd. AK",1271,2,0},
{"30Rnd. STANAG",1271,2,0},
{"Makarov Mag",3013,2,0},
{"M9 SD Mag",3013,2,0},
{".45 ACP",3013,2,0},
--{"M136 Rocket",3082,0.7,90},
{"DMR Mag",2358,2,0},
{"M14 Mag",2358,2,0},
{"PDW Mag",2041,2,0},
{"Bizon SD Mag",2041,2,0},
{"Box of Matches",328,0.4,90,5},
{"Wood Pile",1463,0.4,0,5},
{"Makarov PM",346,1,90,3.5},
{"PDW",352,1,90,2},
{"Hunting Knife",335,1,90,2.5},
Link to comment

do you can to with lua?

line 475:

for i,weaponData in ipairs(weaponAmmoTable["Makarov Mag"]) do 
        if weaponName == weaponData[1] then 
            return "Makarov Mag",weaponData[2] 
        end 
    end 

line 461:

--[[ 
{"Diary, Page 1",1}, 
{"Diary, Page 2",1}, 
{"Diary, Page 3",1}, 
{"Diary, Page 4",1}, 
{"Diary, Page 5",1}, 
{"Diary, Page 6",1}, 
{"Diary, Page 7",1}, 
{"Diary, Page 8",1}, 
{"Small Note 1",1}, 
{"Small Note 2",1}, 
{"Small Note 3",1}, 
{"Research Report 1",1}, 
{"Research Report 2",1}, 
{"Letter to Mum",1}, 
]] 
}, 
}, 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...