Jump to content

[Release] HS Blackmarket 1.6 | 'New' Trader System | Special Trader | Blackmarket


Suppe

Recommended Posts

  On 5/4/2016 at 4:18 AM, BetterDeadThanZed said:

I'm not the one who needed help with the exception.

The kick the person indicated is a script #18 kick, so the line I suggested went on line 20 of his script.txt file. I have no idea what line that is.

Expand  

Hmm, I quoted

But it replied to you. I was kinda of wondering because I know you know about filters.:P Maybe he/she will learn something. Sorry for the confusion BDTZ! 

Link to comment
Share on other sites

I am have this market on my server. And i have bag. I send 1 auto and he is sended. And i send 2-nd auto to tipe, and he is not sended without errors.

how to fix this problem?
Logs in rpt:

21:11:44 Server: Object 2:3642 not found (message Type_91)
21:11:51 "[HSBlackmarket] B Alpha 1-1:1 (AXEL) REMOTE selling [["Mrshounka_rs4_civ_noir",8500,0.1,"cfgvehicles","Audi RS4 Noir","","\A3\soft_f_gamma\Hatchback_01\Data\UI\portrait_car_CA.paa","","",68512b00# 1839753: mrshounka_rs4_p.p3d]]"
21:12:10 "[HSBlackmarket] B Alpha 1-1:1 (AXEL) REMOTE selling [["Mrshounka_rs4_civ_noir",8500,0.1,"cfgvehicles","Audi RS4 Noir","","\A3\soft_f_gamma\Hatchback_01\Data\UI\portrait_car_CA.paa","","",68512b00# 1839753: mrshounka_rs4_p.p3d]]"
21:12:21 Server: Object 2:3642 not found (message Type_119)
21:12:24 Server: Object 2:3642 not found (message Type_91)
21:12:32 MovesType CfgMovesDog_F load time 54 ms
21:12:44 "DEBUG: _event PlantSpawner"
21:12:46 "[HSBlackmarket] B Alpha 1-1:1 (AXEL) REMOTE selling [["Mrshounka_rs4_civ_noir",8500,0.1,"cfgvehicles","Audi RS4 Noir","","\A3\soft_f_gamma\Hatchback_01\Data\UI\portrait_car_CA.paa","","",68512b00# 1839753: mrshounka_rs4_p.p3d REMOTE]]"
21:13:04 Server: Object 2:3642 not found (message Type_91)
21:13:23 "[HSBlackmarket] B Alpha 1-1:1 (AXEL) REMOTE selling [["Mrshounka_rs4_civ_noir",8500,0.1,"cfgvehicles","Audi RS4 Noir","","\A3\soft_f_gamma\Hatchback_01\Data\UI\portrait_car_CA.paa","","",68512b00# 1839753: mrshounka_rs4_p.p3d REMOTE]]"
21:13:34 Server: Object 2:3642 not found (message Type_119)

Code in HS_playertraderequest:
 

if((owner _obj) isEqualTo (owner _player))then{
		//damage price reductions, the price is divded by this number
				_damagepricereduction = switch(true)do{
							//damaged over 90%
					case ((damage _obj) > 0.9):{10};
							//damaged over 75%
					case ((damage _obj) > 0.75):{5};
							//damaged over 50%
					case ((damage _obj) > 0.5):{3};
							//damaged over 25%
					case ((damage _obj) > 0.25):{1.5};
					default {1};
				};
				_vehSlot=_obj getVariable["VEHICLE_SLOT","ABORT"];
				_isrental = _obj getVariable ["HSHALFPRICE",0];
				if(!(_vehSlot isEqualTo "ABORT") && !(_isrental in [1,2]))then{
					_message = _message + format["%1 is OK to sell, dam: %2 pricemod: %3 || ",_x select 4,damage _obj,_damagepricereduction];
					removeFromRemainsCollector[_obj];
					deleteVehicle _obj;
					_vehHiveKey=format["%1:%2",(call EPOCH_fn_InstanceID),_vehSlot];
					_VAL=[];
					["Vehicle",_vehHiveKey,_VAL]call EPOCH_fnc_server_hiveSET;
					EPOCH_VehicleSlots pushBack _vehSlot;
					EPOCH_VehicleSlotCount=count EPOCH_VehicleSlots;
					publicVariable "EPOCH_VehicleSlotCount";
					_cost = ((_x select 1)/_damagepricereduction);
					_return = _return + _cost;
				}else{
					if(_isrental > 0)then{
						_message = _message + format[" || %1 'Rental' is OK to sell, dam: %2 pricemod: %3",_x select 4,damage _obj,_damagepricereduction];
						removeFromRemainsCollector[_obj];
						_obj setVariable["VEHICLE_SLOT","ABORT",true];
						_obj setVariable["HSHALFPRICE",0,true];
						_obj call HALV_PurgeObject;
						_cost = ((_x select 1)/_damagepricereduction);
						_return = _return + _cost;
					}else{
						_message = _message + format[" || - ERROR Attempt to sell %1 twice -",_x select 4,_player];
					};

 

Link to comment
Share on other sites

  On 5/10/2016 at 12:31 AM, Salah said:

Is this work anymore ?

I've installed it but when i trade he doesn't take or give krypto, so i can buy for free

any help ?

Expand  

In the Halv_takegive_crypto.sqf make these changes from He-mans post

  On 4/9/2016 at 11:45 PM, He-Man said:

Change it to:

    _vars = _player getVariable['VARS', call EPOCH_defaultVars_SEPXVar];
 

and also change:

    [['effectCrypto',_newcrypt],(owner _player)]call EPOCH_sendPublicVariableClient;

to

  _newcrypt remoteExec ['EPOCH_effectCrypto',(owner _player)];

Expand  

an easy search would have turned this up..

Link to comment
Share on other sites

  On 5/7/2016 at 9:40 PM, strikearena-sania said:

I am have this market on my server. And i have bag. I send 1 auto and he is sended. And i send 2-nd auto to tipe, and he is not sended without errors.

how to fix this problem?
Logs in rpt:

21:11:44 Server: Object 2:3642 not found (message Type_91)
21:11:51 "[HSBlackmarket] B Alpha 1-1:1 (AXEL) REMOTE selling [["Mrshounka_rs4_civ_noir",8500,0.1,"cfgvehicles","Audi RS4 Noir","","\A3\soft_f_gamma\Hatchback_01\Data\UI\portrait_car_CA.paa","","",68512b00# 1839753: mrshounka_rs4_p.p3d]]"
21:12:10 "[HSBlackmarket] B Alpha 1-1:1 (AXEL) REMOTE selling [["Mrshounka_rs4_civ_noir",8500,0.1,"cfgvehicles","Audi RS4 Noir","","\A3\soft_f_gamma\Hatchback_01\Data\UI\portrait_car_CA.paa","","",68512b00# 1839753: mrshounka_rs4_p.p3d]]"
21:12:21 Server: Object 2:3642 not found (message Type_119)
21:12:24 Server: Object 2:3642 not found (message Type_91)
21:12:32 MovesType CfgMovesDog_F load time 54 ms
21:12:44 "DEBUG: _event PlantSpawner"
21:12:46 "[HSBlackmarket] B Alpha 1-1:1 (AXEL) REMOTE selling [["Mrshounka_rs4_civ_noir",8500,0.1,"cfgvehicles","Audi RS4 Noir","","\A3\soft_f_gamma\Hatchback_01\Data\UI\portrait_car_CA.paa","","",68512b00# 1839753: mrshounka_rs4_p.p3d REMOTE]]"
21:13:04 Server: Object 2:3642 not found (message Type_91)
21:13:23 "[HSBlackmarket] B Alpha 1-1:1 (AXEL) REMOTE selling [["Mrshounka_rs4_civ_noir",8500,0.1,"cfgvehicles","Audi RS4 Noir","","\A3\soft_f_gamma\Hatchback_01\Data\UI\portrait_car_CA.paa","","",68512b00# 1839753: mrshounka_rs4_p.p3d REMOTE]]"
21:13:34 Server: Object 2:3642 not found (message Type_119)

Code in HS_playertraderequest:
 

if((owner _obj) isEqualTo (owner _player))then{
		//damage price reductions, the price is divded by this number
				_damagepricereduction = switch(true)do{
							//damaged over 90%
					case ((damage _obj) > 0.9):{10};
							//damaged over 75%
					case ((damage _obj) > 0.75):{5};
							//damaged over 50%
					case ((damage _obj) > 0.5):{3};
							//damaged over 25%
					case ((damage _obj) > 0.25):{1.5};
					default {1};
				};
				_vehSlot=_obj getVariable["VEHICLE_SLOT","ABORT"];
				_isrental = _obj getVariable ["HSHALFPRICE",0];
				if(!(_vehSlot isEqualTo "ABORT") && !(_isrental in [1,2]))then{
					_message = _message + format["%1 is OK to sell, dam: %2 pricemod: %3 || ",_x select 4,damage _obj,_damagepricereduction];
					removeFromRemainsCollector[_obj];
					deleteVehicle _obj;
					_vehHiveKey=format["%1:%2",(call EPOCH_fn_InstanceID),_vehSlot];
					_VAL=[];
					["Vehicle",_vehHiveKey,_VAL]call EPOCH_fnc_server_hiveSET;
					EPOCH_VehicleSlots pushBack _vehSlot;
					EPOCH_VehicleSlotCount=count EPOCH_VehicleSlots;
					publicVariable "EPOCH_VehicleSlotCount";
					_cost = ((_x select 1)/_damagepricereduction);
					_return = _return + _cost;
				}else{
					if(_isrental > 0)then{
						_message = _message + format[" || %1 'Rental' is OK to sell, dam: %2 pricemod: %3",_x select 4,damage _obj,_damagepricereduction];
						removeFromRemainsCollector[_obj];
						_obj setVariable["VEHICLE_SLOT","ABORT",true];
						_obj setVariable["HSHALFPRICE",0,true];
						_obj call HALV_PurgeObject;
						_cost = ((_x select 1)/_damagepricereduction);
						_return = _return + _cost;
					}else{
						_message = _message + format[" || - ERROR Attempt to sell %1 twice -",_x select 4,_player];
					};

 

Expand  

How fix it? Help!

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
14.06.2016 18:32:34: Omar (127.0.0.1:2304) a894cf41f26ec6af5e75ddac567e71d0 - #0 " _send,0,0 * safezoneH + safezoneY,15,0,0,8407] spawn bis_fnc_dynamicText;
};

HS_buyorsell = {
disableSerialization;
if((_this "

I keep getting the battle eye error above. Before this I was getting the code below, where I added  !="_marker" to the exceptions on line 42 and 43 (Also known as setMarker and createMarker respectively)

14.06.2016 18:13:31: Omar (127.0.0.1:2304) a894cf41f26ec6af5e75ddac567e71d0 - #40 "teMarker [format["HSBlackmarket_%1",_i], _coords];
_marker setMarkerShape "ICON";
_marker setMarkerType "hd_pickup";
_marker set"
14.06.2016 18:21:04: Omar (127.0.0.1:2316) a894cf41f26ec6af5e75ddac567e71d0 - #41 "Blackmarket]: HSBlackmarket Creating a Marker";
_marker = createMarker [format["HSBlackmarket_%1",_i], _coords];
_marker setMark"

 

Link to comment
Share on other sites

Yes sur, 

CUPVehicles :

  Reveal hidden contents

ANd here the Weapons

  Reveal hidden contents

Your welcome :)

Link to comment
Share on other sites

  On 6/20/2016 at 6:37 PM, Cedricolp said:

Yes sur, 

CUPVehicles :

  Reveal hidden contents

ANd here the Weapons

  Reveal hidden contents

Your welcome :)

Expand  

You are a saint.

Thank you, sur.

Link to comment
Share on other sites

  On 6/14/2016 at 10:38 PM, Alexisblack said:
14.06.2016 18:32:34: Omar (127.0.0.1:2304) a894cf41f26ec6af5e75ddac567e71d0 - #0 " _send,0,0 * safezoneH + safezoneY,15,0,0,8407] spawn bis_fnc_dynamicText;
};

HS_buyorsell = {
disableSerialization;
if((_this "

I keep getting the battle eye error above. Before this I was getting the code below, where I added  !="_marker" to the exceptions on line 42 and 43 (Also known as setMarker and createMarker respectively)

14.06.2016 18:13:31: Omar (127.0.0.1:2304) a894cf41f26ec6af5e75ddac567e71d0 - #40 "teMarker [format["HSBlackmarket_%1",_i], _coords];
_marker setMarkerShape "ICON";
_marker setMarkerType "hd_pickup";
_marker set"
14.06.2016 18:21:04: Omar (127.0.0.1:2316) a894cf41f26ec6af5e75ddac567e71d0 - #41 "Blackmarket]: HSBlackmarket Creating a Marker";
_marker = createMarker [format["HSBlackmarket_%1",_i], _coords];
_marker setMark"

 

Expand  

Fixed my issue by going through the battle eye log and adding exceptions each time. Didnt think I would have to go through so many. I think i had to add like 6 or 7 more exceptions. Everything is working now though. Only issue is its not taking the crypto from player but I saw a post on this already.

Link to comment
Share on other sites

This is an awesome script. I just put it on my server for the first time and wish I would have done so sooner!

I'd like to use this to completely replace the vehicles that Epoch spawns randomly across the map. Does anyone know of a way to increase the vehicle max that Epoch tracks without having the vics actually spawn in? I want the max to be used for players that want to purchase vics through this trader system only, and do away with the randomly spawning vics altogether.

Link to comment
Share on other sites

  On 4/22/2015 at 5:25 PM, Suppe said:

- (optional) Remove 1 Epoch Trader for every Blackmarket Trader you added (remove Epoch Trader: \Arma 3\@epochhive\epochconfig.hpp  ,search for NPCSlotsLimit)

Expand  

Hey Halv or Suppe,

 

When you say this, in your tut install vanilla (i haven't created any extra traders than the ones you guys made) how many "Epoch" traders should I remove to keep

server FPS up ie little less lag,

thanx guys and btw great script :wub:

Link to comment
Share on other sites

  On 6/26/2016 at 2:42 PM, rvg?! said:

Havent noticed any lag caused by the blackmarket. You should check if you havent any typos somewhere or tons of "while {true} do" loops without any sleep in it.

Expand  

The lag I'm concerned about is in the Epochconfig.hpp is recommends not going any higher than the default traders NPC of 20. But having this script in adds more so wouldn't it lag the sever? Since asking my previous question I droped the traders in the epochive\epochconfig.hpp from 20 NPCs to 10 NPCs

Link to comment
Share on other sites

  • 3 weeks later...
  On 6/26/2016 at 11:22 PM, TAGau said:

The lag I'm concerned about is in the Epochconfig.hpp is recommends not going any higher than the default traders NPC of 20. But having this script in adds more so wouldn't it lag the sever? Since asking my previous question I droped the traders in the epochive\epochconfig.hpp from 20 NPCs to 10 NPCs

Expand  

The hs traders should not cause no lag as they were made to be performance savoy aka the epoch traders have to load all gear every restart and also in the database too. So with epoch traders all that inventory each one has from all players that have visited them have to load for the server , then on each player as they join. There is nothing wrong with the epoch traders but with the hs trader system all inventory is virtual so it does not have to load all the time and on all players.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...