EpochModTeam / DayZ-Epoch

Experimental DayZ Mod for Arma 2
http://epochmodteam.github.io/DayZ-Epoch
227 stars 398 forks source link

[1.0.1.1] Taviana Vendor Fix #436

Closed agcyphers closed 11 years ago

agcyphers commented 11 years ago

The vendors in Tavi don't appear to be updated to include the new items from the most recent patch. I've made the changes on my server by, essentially, merging the server_traders.sqf values from Chernarus to Taviana. Below is the content of the fix as it is working on my server.

// DayZ Epoch TRADERS for 13
serverTraders = ["GUE_Worker2","Soldier_Sniper_KSVK_PMC","Soldier_GL_PMC","GUE_Soldier_Pilot","GUE_Woodlander3","Worker4","Reynolds_PMC","Soldier_Sniper_PMC","GUE_Soldier_3","RU_Doctor","Doctor","UN_CDF_Soldier_Pilot_EP1","RU_Worker4","RU_Woodlander4","Citizen3","RU_Damsel5","Dr_Hladik_EP1","GUE_Commander","GUE_Soldier_CO","Profiteer2_EP1","RU_Farmwife5","GUE_Woodlander1","RU_Worker1","GUE_Soldier_2"];
        // START PER TRADER CONFIG
// Pete's Armed Choppers
menu_GUE_Worker2 = [
    [["Armed Choppers",239]],
    [],
    "friendly"
];
// Jacks Weapons
menu_Soldier_Sniper_KSVK_PMC = [
    [["Sidearm",1],["Rifles",2],["Shotguns and Crossbows",3],["Sniper Rifles",370],["Black Market Weapons",455],["Black Market Ammo",456]],
    [],
    "friendly"
];
// Robby's Ammo Dump
menu_Soldier_GL_PMC = [
    [["Assault Rifle Ammo",31],["Machine Gun Ammo",32],["Sniper Rifle Ammo",33],["Pistol Ammo",374],["SMG Ammo",378]],
    [],
    "friendly"
];
// Hanz Unarmed Choppers
menu_GUE_Soldier_Pilot = [
    [["Helicopter Unarmed",249]],
    [],
    "friendly"
];
// Scott's Repair Shop
menu_GUE_Woodlander3 = [
    [["Building Supplies",8],["Toolbelt Items",260],["Vehicle Parts",7]],
    [],
    "friendly"
];
// Capt. Yak
menu_Worker4 = [
    [["Boats Unarmed",54],["Boats Armed",55],["Wholesale",56]],
    [],
    "neutral"
];
// Wholesaler Reynolds
menu_Reynolds_PMC = [
    [["Wholesale Crates",256]],
    [],
    "neutral"
];
// Chucks Hero Shop
menu_Soldier_Sniper_PMC = [
    [["Clothes",53],["Weapons",186],["Vehicles",187],["Ammunition",457]],
    [],
    "friendly"
];
// Tom's Armed Vehicles
menu_GUE_Soldier_3 = [
    [["Trucks Armed",41],["UAZ",42],["Military Armed",44],["Fuel Trucks",45],["Heavy Armor Unarmed",46]],
    [],
    "friendly"
];
// Dr. Hammond
menu_RU_Doctor = [
    [["Medical Supplies",47],["Chem-lites/Flares",48],["Smoke Grenades",49]],
    [["FoodBioMeat","ItemZombieParts",1,1,"buy","Zombie Parts","Bio Meat",101]],
    "friendly"
];
// Bones
menu_Doctor = [
    [["Medical Supplies",50],["Chem-lites/Flares",51],["Smoke Grenades",52]],
    [["FoodBioMeat","ItemZombieParts",1,1,"buy","Zombie Parts","Bio Meat",101]],
    "friendly"
];
// Murdock's Planes
menu_UN_CDF_Soldier_Pilot_EP1 = [
    [["Airplanes",303]],
    [],
    "friendly"
];
// Sven's Parts
menu_RU_Worker4 = [
    [["Building Supplies",12],["Vehicle Parts",11]],
    [],
    "neutral"
];
// Slav's Vehicles
menu_RU_Woodlander4 = [
    [["Cars",34],["Trucks Unarmed",35],["SUV",36],["Buses and Vans",37],["Bikes and ATV",38],["Helicopter Unarmed",39],["Military Unarmed",40]],
    [],
    "neutral"
];
// Trin's General Supplies
menu_Citizen3 = [
  [["Food and Drinks",13],["Backpacks",14],["Toolbelt Items",15],["Clothes",16]],
    [["ItemCopperBar","TrashJackDaniels",1,1,"buy","Empty Wiskey Bottle","Copper Bar",101]],
    "neutral"
];
// Melissa's General Supplies
menu_RU_Damsel5 = [
    [["Food and Drinks",17],["Backpacks",18],["Toolbelt Items",19],["Clothes",20]],
    [["ItemCopperBar","TrashJackDaniels",1,1,"buy","Empty Wiskey Bottle","Copper Bar",101]],
    "friendly"
];
// Dr. Vu
menu_Dr_Hladik_EP1 = [
    [["Medical Supplies",284]],
    [["FoodBioMeat","ItemZombieParts",1,1,"buy","Zombie Parts","Bio Meat",101]],
    "neutral"
];
// Gabriel's Weapons
menu_GUE_Commander = [
    [["Assault Rifle",57],["Machine Gun",58],["Sniper Rifle",59],["Explosives",60],["Sub Machine Guns",379],["Pistols",454]],
    [],
    "neutral"
];
// Cohaagen's Ammunition
menu_GUE_Soldier_CO = [
    [["Sidearm Ammo",25],["Rifle Ammo",26],["Shotgun and Crossbow Ammo",27],["Sniper Ammo",369]],
    [],
    "neutral"
];
// Chad's Armed Boats
menu_Profiteer2_EP1 = [
    [["Boats Unarmed",54],["Boats Armed",55],["Wholesale",56]],
    [],
    "neutral"
];
// Mrs. Doubtfire
menu_RU_Farmwife5 = [
    [["Backpacks",291],["Food/Drinks",298],["Toolbelt Items",299],["Clothes",301]],
    [],
    "neutral"
];
// Dante's Bandit Choppers
menu_GUE_Woodlander1 = [
    [["Armed Choppers",292],["Helicopter Unarmed",293]],
    [],
    "neutral"
];
// Javon's Parts
menu_RU_Worker1 = [
    [["Building Supplies",8],["Vehicle Parts",295]],
    [],
    "neutral"
];
// Wholesaler Darren
menu_GUE_Soldier_2 = [
    [["Wholesale",61]],
    [],
    "neutral"
];

This means that, adding items to vendors for Cherno in the future will also make those items show up automatically on Tavi vendors as they share the same tids.

vbawol commented 11 years ago

Taviana has limited support. To do what you mention would mean that they share the same stock also, I am not ok with that, we will likely just update the traders with newer items.

dayz_sellDistance was bugged and will be fixed in the next patch.

agcyphers commented 11 years ago

Out of curiosity, for what reason would it be a bad thing if they share the same stock? Theoretically, at least, all items should be available on both maps, correct?

vbawol commented 11 years ago

The system was made to work both ways. Of coarse it would be easier to maintain only one set of traders. For vehicles it could cause issues the max vehicle limit on another server could be effected by the selling of vehicles on one server and the buying of another. A vehicle you sold in one map could be purchased by another player before you can buy it back, etc.. Besides these are different maps and traders so it wouldn't really make allot of sense. If you had 2 Chernarus maps running I don't see a problem with that. We are looking at ways to streamline the trader configs more.

agcyphers commented 11 years ago

I understand. For now, though, it suits my needs well since I run only the Taviana server. I look forward to your solution. Thanks!

agcyphers commented 11 years ago

Just a thought, but why not separate stock from contents? Have a table that contains the items to buy/sell and their price, and another with an instance ID, contents table unique ID, and amount of stock on-hand. That would remedy the situation and make future updates much easier for you guys.

vbawol commented 11 years ago

this was done in 1.0.1.3