Jump to content

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


Suppe

Recommended Posts

Hello,

 

How do I set the TAX and the sell to trader price on vehicles. I can't turn of spawned in vehicles because it wont allow players to buy permanent vehicles. I wanted to turn them off so people couldn't run around and make a fortune from all the vehicles spawned everywhere. So I though maybe I can make it that they get a lower amount of crypto from selling the spawned vehicles.

 

Maybe this is not possible but any help would be great

 

Thanks

Dave

Link to comment
Share on other sites

Hello,

 

How do I set the TAX and the sell to trader price on vehicles. I can't turn of spawned in vehicles because it wont allow players to buy permanent vehicles. I wanted to turn them off so people couldn't run around and make a fortune from all the vehicles spawned everywhere. So I though maybe I can make it that they get a lower amount of crypto from selling the spawned vehicles.

 

Maybe this is not possible but any help would be great

 

Thanks

Dave

 

The file looks something like this:

class 20Rnd_762x51_Mag {price = 4; tax = 0.9;};
class 5Rnd_127x108_Mag {price = 3; tax = 0.9;};
class 5Rnd_127x108_APDS_Mag {price = 6; tax = 0.9;};
class 7Rnd_408_Mag {price = 4; tax = 0.9;};
class 10Rnd_762x51_Mag {price = 2; tax = 0.9;};
class 10Rnd_338_Mag { price = 2; tax = 0.9; };
class 130Rnd_338_Mag{ price = 2; tax = 0.9; };
class 10Rnd_93x64_DMR_05_Mag { price = 2; tax = 0.9; };
class 10Rnd_127x54_Mag { price = 2; tax = 0.9; };

 

You have the word class.

Then you have the name of the item.

Then you have {price = ##} - this is the price of the item to sell

You can then add a tax = ## which is how much tax you have on the item.

 

So:

class B_APC_Tracked_01_rcws_F {price = 10000;tax = 1.0;};

is: to sell the item is 10000 krypto, but to buy the item would be 20000 krypto after tax (10000 + 100% tax)

 

 

Saying all of that, there is actually an option at the bottom of 'settings.sqf' to allow spawning of rentals only:

//this is how vehicles spawn, 0 = player gets menu to decide, 1 = only allow saved vehicles, 2 = only allow rentals
_vehiclespawnmode = 0;
Link to comment
Share on other sites

Just for your information buddies: When trader spawn random they do not check existing jammers. So they spawn in a area where a jammer stands. The player then can not build until restart because then the blackmarket will spawn in another location. Don't know if it is caused by another script but i think its the build protection near traders.

 

Only for your information.

Link to comment
Share on other sites

 

The file looks something like this:

class 20Rnd_762x51_Mag {price = 4; tax = 0.9;};
class 5Rnd_127x108_Mag {price = 3; tax = 0.9;};
class 5Rnd_127x108_APDS_Mag {price = 6; tax = 0.9;};
class 7Rnd_408_Mag {price = 4; tax = 0.9;};
class 10Rnd_762x51_Mag {price = 2; tax = 0.9;};
class 10Rnd_338_Mag { price = 2; tax = 0.9; };
class 130Rnd_338_Mag{ price = 2; tax = 0.9; };
class 10Rnd_93x64_DMR_05_Mag { price = 2; tax = 0.9; };
class 10Rnd_127x54_Mag { price = 2; tax = 0.9; };

You have the word class.

Then you have the name of the item.

Then you have {price = ##} - this is the price of the item to sell

You can then add a tax = ## which is how much tax you have on the item.

 

So:

class B_APC_Tracked_01_rcws_F {price = 10000;tax = 1.0;};

is: to sell the item is 10000 krypto, but to buy the item would be 20000 krypto after tax (10000 + 100% tax)

 

 

Saying all of that, there is actually an option at the bottom of 'settings.sqf' to allow spawning of rentals only:

//this is how vehicles spawn, 0 = player gets menu to decide, 1 = only allow saved vehicles, 2 = only allow rentals
_vehiclespawnmode = 0;

Thanks for the help, appreciate it

Link to comment
Share on other sites

Just for your information buddies: When trader spawn random they do not check existing jammers. So they spawn in a area where a jammer stands. The player then can not build until restart because then the blackmarket will spawn in another location. Don't know if it is caused by another script but i think its the build protection near traders.

 

Only for your information.

 

this is most likely caused by the safezone objects, you can try switch them off.

Link to comment
Share on other sites

Is there a way to enable the safe zone for traders that I have put in the static list? I only have a few roamers and the rest are placed static so some are near water for watercraft and such, however the ones that are static are not in safe zone.

Link to comment
Share on other sites

Is there a way to enable the safe zone for traders that I have put in the static list? I only have a few roamers and the rest are placed static so some are near water for watercraft and such, however the ones that are static are not in safe zone.

 

either put a ProtectionZone_Invisible_F somehow or use the example i provided in the init:

//"full" array
[[0,0,0],0,true,[["ProtectionZone_Invisible_F",[0,0,0],0]]]
Link to comment
Share on other sites

OK, I obviously have something with the syntax wrong but I am unsure what. I am getting this error in the server RPT:

 

15:07:00 Error in expression <"ProtectionZone_Invisible_F",[0,0,0],0]]],
[[8170.77,10897.7,0],25,true],[["Prot>
15:07:00   Error position: <],
[[8170.77,10897.7,0],25,true],[["Prot>
15:07:00   Error Missing ;
15:07:00 File mpmissions\__cur_mp.Altis\trader\init.sqf, line 42
15:07:00 Error in expression <"ProtectionZone_Invisible_F",[0,0,0],0]]],
[[8170.77,10897.7,0],25,true],[["Prot>
15:07:00   Error position: <],
[[8170.77,10897.7,0],25,true],[["Prot>
15:07:00   Error Missing ;
15:07:00 File mpmissions\__cur_mp.Altis\trader\init.sqf, line 42
 
And here is the trader section of my init:
 

//if _staticCoords are set here, there will be a trader at that exact position and direction,
//_blacklistedAreas is where random blackmarkets cannot spawn
switch(toLower worldName)do{
case "altis":{
_staticCoords = [
/*
[traderposition,direction,createmarker,props[classname,position,direction]]
//"full" array
[[0,0,0],0,true,[["classname1",[1,1,1],1],["classname2",[2,2,2],2]]]
//minimal array
[[0,0,0],0]
*/
[[14804.7,11009.2,1.07053],80,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]],
[[21779,6004.68,.539977],151,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]],
[[8170.77,10897.7,0],25,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //Base Trader
[[26763.5,24631.4,0.151524],1,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //NE Airfield Trader
[[9194.75,21691.4,0],90,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //Abdera Airfield Trader
[[20814.9,7196.19,0],323,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //South East Airfield Trader
[[3186.79,13164.9,0],315,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //trader in Kavala 
[[3181.32,12874.7,0],10,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //trader in Kavala @dock
[[4896.27,21932.2,0],320,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //Thronos Trader
[[11573.8,11946.7,.224398],342,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //trader at AAC Airfield 
[[14592.1,16757,0],117,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //trader at Central Airfield 
[[13309.7,14496.6,0],320,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //Dock trader by stavros
[[23235.3,18750.4,0],315,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //trader in salt flats
[[18459.1,14259.2,0],340.199,true], //trader by mine
[[13319,14523.9,0],143.067,true], //trader by stavros
[[6193.02,16828.7,0],1.52142,true] //trader by kore
Link to comment
Share on other sites

 

OK, I obviously have something with the syntax wrong but I am unsure what. I am getting this error in the server RPT:

 

15:07:00 Error in expression <"ProtectionZone_Invisible_F",[0,0,0],0]]],
[[8170.77,10897.7,0],25,true],[["Prot>
15:07:00   Error position: <],
[[8170.77,10897.7,0],25,true],[["Prot>
15:07:00   Error Missing ;
15:07:00 File mpmissions\__cur_mp.Altis\trader\init.sqf, line 42
15:07:00 Error in expression <"ProtectionZone_Invisible_F",[0,0,0],0]]],
[[8170.77,10897.7,0],25,true],[["Prot>
15:07:00   Error position: <],
[[8170.77,10897.7,0],25,true],[["Prot>
15:07:00   Error Missing ;
15:07:00 File mpmissions\__cur_mp.Altis\trader\init.sqf, line 42
 
And here is the trader section of my init:
 

//if _staticCoords are set here, there will be a trader at that exact position and direction,
//_blacklistedAreas is where random blackmarkets cannot spawn
switch(toLower worldName)do{
case "altis":{
_staticCoords = [
/*
[traderposition,direction,createmarker,props[classname,position,direction]]
//"full" array
[[0,0,0],0,true,[["classname1",[1,1,1],1],["classname2",[2,2,2],2]]]
//minimal array
[[0,0,0],0]
*/
[[14804.7,11009.2,1.07053],80,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]],
[[21779,6004.68,.539977],151,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]],
[[8170.77,10897.7,0],25,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //Base Trader
[[26763.5,24631.4,0.151524],1,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //NE Airfield Trader
[[9194.75,21691.4,0],90,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //Abdera Airfield Trader
[[20814.9,7196.19,0],323,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //South East Airfield Trader
[[3186.79,13164.9,0],315,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //trader in Kavala 
[[3181.32,12874.7,0],10,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //trader in Kavala @dock
[[4896.27,21932.2,0],320,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //Thronos Trader
[[11573.8,11946.7,.224398],342,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //trader at AAC Airfield 
[[14592.1,16757,0],117,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //trader at Central Airfield 
[[13309.7,14496.6,0],320,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //Dock trader by stavros
[[23235.3,18750.4,0],315,true],[["ProtectionZone_Invisible_F",[0,0,0],0]]], //trader in salt flats
[[18459.1,14259.2,0],340.199,true], //trader by mine
[[13319,14523.9,0],143.067,true], //trader by stavros
[[6193.02,16828.7,0],1.52142,true] //trader by kore

 

 

this will build a bunch of safezones at [0,0,0], you need to change that to the position you want it to be at.

Link to comment
Share on other sites

Hey guys feeling lazy today. Not sure if anyone else had this issue, I read a few pages did not see anything. I put this script in yesterday and added a little to the Pricing list and it worked fine. I did a full customization today and the server wont start. I looked over everything and I dont see what could stop the server from starting up??

Does anyone have any ideas what I should look for that would be in the Pricing Config that would stop the server?

 

Is there a price Cap? Could I have some things priced too high?

 

I can post my Pricing Config, How do I post it under a spoiler? First time doing that.

Link to comment
Share on other sites

Halv go fuck yourself, you're the fuckin retard here. There is nothing wrong with my init as it works perfect arsehole. I asked a simple question and get a load of shit. You think you're superior because you can write a bit of code. Well I'll say it again... GO FUCK YOURSELF Halv and go learn some manners you ignorant fucker.

Is there really a reason to tell off someone trying to help you? I dont know a quarter of what Halv does and I can tell you what you did with that file is causing you issues. Put all that in an SQL and call it in the Init. He may not have the best people skills in your eyes but he knows what he is doing. Your post should have been removed honestly for language.

Link to comment
Share on other sites

Hey guys feeling lazy today. Not sure if anyone else had this issue, I read a few pages did not see anything. I put this script in yesterday and added a little to the Pricing list and it worked fine. I did a full customization today and the server wont start. I looked over everything and I dont see what could stop the server from starting up??

Does anyone have any ideas what I should look for that would be in the Pricing Config that would stop the server?

 

Is there a price Cap? Could I have some things priced too high?

 

I can post my Pricing Config, How do I post it under a spoiler? First time doing that.

Well I did not find my answer entirely in reading the thread but I did solve this issue. Looks like I had some items listed twice in the Pricing list. Couple were also too high but see that was not what was breaking anything.

Link to comment
Share on other sites

Well I did not find my answer entirely in reading the thread but I did solve this issue. Looks like I had some items listed twice in the Pricing list. Couple were also too high but see that was not what was breaking anything.

 

most likely you have other errors in your pricelist, thats the most common reason for the server not to start after installing this and changing prices.

Link to comment
Share on other sites

I am getting this in my server RPT:

11:24:44 Error in expression <en{
_obj setPosASL _objpos;
}else{
_obj setPosATL _objpos;
};
_obj allowDammage >
11:24:44   Error position: <setPosATL _objpos;
};
_obj allowDammage >
11:24:44   Error 2 elements provided, 3 expected
11:24:44 File mpmissions\__cur_mp.Altis\trader\init.sqf, line 376
Link to comment
Share on other sites

 

I am getting this in my server RPT:

11:24:44 Error in expression <en{
_obj setPosASL _objpos;
}else{
_obj setPosATL _objpos;
};
_obj allowDammage >
11:24:44   Error position: <setPosATL _objpos;
};
_obj allowDammage >
11:24:44   Error 2 elements provided, 3 expected
11:24:44 File mpmissions\__cur_mp.Altis\trader\init.sqf, line 376

 

you had the answered all along ...

11:24:44   Error 2 elements provided, 3 expected

sometimes it actually helps to read what it wrtes to you, lol.

Link to comment
Share on other sites

OK.. I was adding those Huron pods to the trader and just ran into a minor glitch. They don't seem to have an icon, so when I added them i started getting a no picture error on the trader the first time I open it. Maybe a logical needs to be in there to show picture if available or something?

 

Here are the classes I added:

 

B_Slingload_01_Ammo_F
B_Slingload_01_Cargo_F
B_Slingload_01_Fuel_F
B_Slingload_01_Medevac_F
B_Slingload_01_Repair_F
Link to comment
Share on other sites

you had the answered all along ...

11:24:44   Error 2 elements provided, 3 expected

sometimes it actually helps to read what it wrtes to you, lol.

 

Ya, actually I read it.. it just a few minutes to click as I thought I had all the values in there. Apparently I had missed some when adding the safezones.

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
×
×
  • Create New...