Jump to content
  • 0

Removing Helicopters from traders after you Sell them


Balldrick

Question

Hi Guys at the moment i have two problems driving me nuts on my server.

 

First problem is that when ppl Sell Helicopters they find across the map to traders. These Sold helicopters wont re-spawn on the map with server restart. Is there a way to Fix this or is there away to clear the Traders stock of Bought Helicopter b4 a server restart.

 

Second Problem i have is that when ever i restart my Server i will always have a +/-10 min Roll back .. this gets pretty annoying to say the least. is there a way to force a world save b4 restart.

 

Ne input and help would be appreciated 

 

thanks 

Balldrick

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

This works for me and keeps a good number of vehicles ingame and out of traders inventories.

 

in epochconfig.hpp change this

expiresAIdata = "10800";
Then as soon as an item it resets the TTL time in Redis, after this time has passed (3 hours or change it to your restart time) the trader is cleared, then on next restart the vehicles that are sold to traders respawn.

Note: If someone else uses that same trader then the TTL is reset back to 10800 seconds.

 

It's a dirty way to do it as it clears all the sold items, but a good idea is to pre stock the traders with gear, in the same file change this

 

starterTraderItems[] = { { "30Rnd_762x39_Mag","30Rnd_9x21_Mag","30Rnd_556x45_Stanag_Tracer_Yellow","9Rnd_45ACP_Mag","16Rnd_9x21_Mag","ItemGoldBar","ItemSilverBar","100Rnd_65x39_caseless_mag","m249Tan_EPOCH","hgun_PDW2000_F","5Rnd_127x108_APDS_Mag","muzzle_snds_H_MG","9rnd_45X88_magazine","Elcan_epoch","optic_ACO_grn","6Rnd_45ACP_Cylinder","10Rnd_762x54_Mag","Binocular","Chemlight_red","acc_flashlight","130Rnd_338_Mag","7Rnd_408_Mag","30Rnd_556x45_Stanag","20Rnd_556x45_UW_mag","arifle_MX_SW_F","150Rnd_93x64_Mag","150Rnd_762x54_Box","150Rnd_762x54_Box_Tracer","11Rnd_45ACP_Mag","30Rnd_45ACP_Mag_SMG_01","5Rnd_rollins_mag","5Rnd_127x108_Mag","30Rnd_65x39_caseless_green_mag_Tracer","muzzle_snds_338_green","optic_Aco","SMG_01_F","hgun_P07_F","1911_pistol_epoch","10Rnd_127x54_Mag","30Rnd_65x39_caseless_mag_Tracer","srifle_DMR_01_F","optic_SOS","30Rnd_556x45_Stanag_Tracer_Green","srifle_GM6_F","200Rnd_65x39_cased_Box","ruger_pistol_epoch","NVG_EPOCH","H_68_EPOCH","hgun_ACPC2_F","optic_Hamr","l85a2_pink_epoch","V_2_EPOCH","10Rnd_93x64_DMR_05_Mag","muzzle_snds_93mmg","LMG_Zafir_F","ItemGoldBar10oz","optic_MRD","30Rnd_65x39_caseless_mag","30Rnd_65x39_caseless_green","arifle_MX_SW_Black_F","hgun_Rook40_F","muzzle_snds_L","acc_pointer_IR","30Rnd_45ACP_Mag_SMG_01_Tracer_Green","arifle_MX_GL_F","l85a2_epoch","6Rnd_RedSignal_F","Rollins_F","200Rnd_556x45_M249","srifle_EBR_F","optic_LRPS","muzzle_sr25S_epoch","muzzle_snds_B","200Rnd_65x39_cased_Box_Tracer","m249_EPOCH","m4a3_EPOCH","20Rnd_762x51_Mag","optic_MRCO","muzzle_snds_H","optic_Aco_smg","10rnd_22X44_magazine","M14Grn_EPOCH","optic_Yorris","LMG_Mk200_F","optic_ACO_grn_smg","optic_Holosight_smg","bipod_02_F_tan","Elcan_reflex_epoch","30Rnd_556x45_Stanag_Tracer_Red","bipod_01_F_snd","U_CamoRed_uniform","muzzle_snds_M","V_20_EPOCH","hgun_Pistol_heavy_01_F","10Rnd_338_Mag","H_43_EPOCH","H_65_EPOCH","H_64_EPOCH","H_63_EPOCH","H_86_EPOCH","H_59_EPOCH","muzzle_snds_93mmg_tan","100Rnd_65x39_caseless_mag_Tracer","SMG_02_F","arifle_Mk20_F","bipod_02_F_hex","M14_EPOCH","arifle_Katiba_F","hgun_Pistol_Signal_F","muzzle_snds_acp","optic_Holosight","6Rnd_GreenSignal_F","sr25_epoch","MMG_01_hex_F","srifle_DMR_02_sniper_F","U_CamoBrn_uniform","V_29_EPOCH","optic_DMS","V_32_EPOCH","hgun_Pistol_heavy_02_F","arifle_SDAR_F","bipod_03_F_oli","H_15_EPOCH","bipod_03_F_blk","srifle_LRR_F","V_15_EPOCH","U_C_Driver_1","H_54_EPOCH","arifle_Mk20_plain_F","optic_AMS_snd","U_OG_Guerilla1_1","V_30_EPOCH" }, { 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3 } };

Link to comment
Share on other sites

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
  • Advertisement
  • Discord

×
×
  • Create New...