Jump to content

[Release] Skin Trader 0.6 (Buy any arma skin)


boyd

Recommended Posts

I have finally made a release able version of my skin trader, it is far from being done but it works great.

 

The skin trader has all skins from Arma but if your on Overpoch or any other Addons on your server, you can easily add the skins to the list of either men or woman clothing.

Before you buy a new skin you have to make sure your not wearing a backpack, once you bought a skin you can no longer use the epoch skins to change into any other skin you need to buy the skin on top of the list to do this again.

 

As this is not a final release any bugs or problems are all welcome and i will try to solve them.

 

Video

https://www.youtube.com/watch?v=M85nF3Ve698

 

Q&A

Q: Are the skins persistent after restart?

A: Yes

 

 

Installation:

 

Download link here.

 

1. Open description.ext at very bottom add this:

//Skin Trader
#include "Skin_Trader\dialog\common.hpp"
#include "Skin_Trader\dialog\SkinGui.hpp"

2. Open your custom variables and change this:

//Model Variables
Bandit1_DZ = 	"Bandit1_DZ";
Bandit2_DZ = 	"Bandit2_DZ";
BanditW1_DZ = 	"BanditW1_DZ";
BanditW2_DZ = 	"BanditW2_DZ";
Survivor1_DZ = 	"Survivor2_DZ";
Survivor2_DZ = 	"Survivor2_DZ";
SurvivorW2_DZ = "SurvivorW2_DZ";
SurvivorW3_DZ = "SurvivorW2_DZ";
Sniper1_DZ = 	"Sniper1_DZ";
Camo1_DZ = 		"Camo1_DZ";
Soldier1_DZ = 	"Soldier1_DZ";
Rocket_DZ = 	"Rocket_DZ";

AllPlayers = ["Survivor2_DZ","SurvivorWcombat_DZ","SurvivorWdesert_DZ","SurvivorWurban_DZ","SurvivorWsequishaD_DZ","SurvivorWsequisha_DZ","SurvivorWpink_DZ","SurvivorW3_DZ","SurvivorW2_DZ","Bandit1_DZ","Bandit2_DZ","BanditW1_DZ","BanditW2_DZ","Soldier_Crew_PMC","Sniper1_DZ","Camo1_DZ","Soldier1_DZ","Rocket_DZ","Rocker1_DZ","Rocker2_DZ","Rocker3_DZ","Rocker4_DZ","Priest_DZ","Functionary1_EP1_DZ","GUE_Commander_DZ","Ins_Soldier_GL_DZ","Haris_Press_EP1_DZ","Pilot_EP1_DZ","RU_Policeman_DZ","pz_policeman","pz_suit1","pz_suit2","pz_worker1","pz_worker2","pz_worker3","pz_doctor","pz_teacher","pz_hunter","pz_villager1","pz_villager2","pz_villager3","pz_priest","Soldier_TL_PMC_DZ","Soldier_Sniper_PMC_DZ","Soldier_Bodyguard_AA12_PMC_DZ","Drake_Light_DZ","CZ_Special_Forces_GL_DES_EP1_DZ","TK_INS_Soldier_EP1_DZ","TK_INS_Warlord_EP1_DZ","FR_OHara_DZ","FR_Rodriguez_DZ","CZ_Soldier_Sniper_EP1_DZ","Graves_Light_DZ","GUE_Soldier_MG_DZ","GUE_Soldier_Sniper_DZ","GUE_Soldier_Crew_DZ","GUE_Soldier_CO_DZ","GUE_Soldier_2_DZ","TK_Special_Forces_MG_EP1_DZ","TK_Soldier_Sniper_EP1_DZ","TK_Commander_EP1_DZ","RU_Soldier_Crew_DZ","INS_Lopotev_DZ","INS_Soldier_AR_DZ","INS_Soldier_CO_DZ","INS_Bardak_DZ","INS_Worker2_DZ"];

To this:

AllPlayers set [count AllPlayers, "Bandit1_DZ",
					"Bandit2_DZ",
					"BanditW1_DZ",
					"BanditW2_DZ",
					"Survivor2_DZ",
					"SurvivorW2_DZ",
					"Sniper1_DZ",
					"Camo1_DZ",
					"Soldier1_DZ",
					"Rocket_DZ"];

3. Now look for this in your Mission.sqm

    class Groups
    {
        items=2;

Change it to:

	class Groups
	{
		items=3;

Now look for this at around line 1155:

		class Item1
		{
			side="LOGIC";
			class Vehicles
			{
				items=1;
				class Item0
				{
					position[]={8810.7705,138.52499,11751.518};
					id=50;
					side="LOGIC";
					vehicle="FunctionsManager";
					leader=1;
					lock="UNLOCKED";
					skill=0.60000002;
				};
			};
		};

After the "};" add this:

		class Item2
		{
			side="GUER";
			class Vehicles
			{
				items=1;
				class Item0
				{
					position[]={6303.8,0.001,7795.03};//Trader City Stary
					azimut=138.222;
					special="NONE";
					id=101;
					side="GUER";
					vehicle="UN_CDF_Soldier_SL_EP1";
					leader=1;
					skill=0.60000002;
					init="this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;this enableSimulation false;this setcaptive true;this addAction [""Men Clothing"",""Skin_Trader\open_dialog.sqf""];this addAction [""Women Clothing"",""Skin_Trader\open_dialog2.sqf""]";
				};
			};
		};

4. Now copy the Skin_Trader to your MPMissions folder.

 

 

Infistart FIX

 

Open AHconfig.sqf and find this:

/*  ALLOWED Dialogs       */ _ALLOWED_Dialogs = [-1,106,2200,6900,6901,6902,6903,420420,41144];

Change it to this:

/*  ALLOWED Dialogs       */ _ALLOWED_Dialogs = [-1,106,2200,6900,6901,6902,6903,420420,41144,20001,20002,20003,20004,20005,20006];

Future Plans:

 

The ability to preview the skin with a better camera view.

 

Change log:

 

0.6

Removed all the clothing from men and woman that are being used by traders from any map.

Removed all woman clothing that din't work, only civilian left now.

 

Credits:

 

Original script: http://www.armaholic.com/page.php?id=12113

Link to comment
Share on other sites

Do all the female skins work? Most of them break the inventory system.

 

 hope so as i know ther civys so there not boned and aminated for guns and sustch :(

 

This is arma skins so there is no way to fix this, so all the skins that break your inventory or don't do the animations right have to be removed.

Link to comment
Share on other sites

Trader does not appear  :huh:

only thing I changed was the position

 

class Item1
{
side="LOGIC";
class Vehicles
{
items=1;
class Item0
{
position[]={-143.93861,0.52647489,2319.5012};
id=50;
side="LOGIC";
vehicle="FunctionsManager";
leader=1;
lock="UNLOCKED";
skill=0.60000002;
};
};
};
class Item2
{
side="GUER";
class Vehicles
{
items=1;
class Item0
{
position[]={12568,14556.9,0.064};//Chrveni Gradok
azimut=65;
special="NONE";
id=101;
side="GUER";
vehicle="USMC_LHD_Crew_Yellow";
leader=1;
skill=0.60000002;
init="this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;this enableSimulation false;this setcaptive true;this addAction [""Men Clothing"",""Skin_Trader\open_dialog.sqf""];this addAction [""Women Clothing"",""Skin_Trader\open_dialog2.sqf""]";
};
};
};
};

Link to comment
Share on other sites

RPT Error if someone logs into the server:

2014/06/07, 18:42:31 [DZMS]: (DZMSUnitsMinor) 9 AI Spawned, 9 units in mission.
2014/06/07, 18:42:33 [DZMS]: (DZMSUnitsMinor) Waiting for 9/9 Units or Less to be Alive and a Player to be Near the Objective.
2014/06/07, 18:44:43 "STARTING LOGIN: ["88354822",B 1-1-A:1 (Andreas) REMOTE]"
2014/06/07, 18:44:43 "LOGIN ATTEMPT: "########" blaaaaa"
2014/06/07, 18:44:43 "LOGIN RESULT: ["PASS",false,"941",[DIR,[XX,YY,ZZ]],[["ItemMap","ItemToolbox","Binocular_Vector","ItemRadio","ItemFlashlightRed","ItemGPS","ItemHatchet_DZE","NVGoggles","MakarovSD","ItemKeyKit","ItemKnife","ItemEtool","ItemCrowbar","ItemCompass","ItemMatchbox_DZE","SCAR_L_STD_Mk4CQT"],["ItemBriefcase70oz","ItemGoldBar4oz","ItemBriefcaseS80oz","ItemSilverBar2oz","ItemBandage","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov","ItemBandage","ItemBandage","ItemBandage","ItemBandage"]],["DZ_CivilBackpack_EP1",[[],[]],[[],[]]],[0,995,995],"FR_Rodriguez_DZ",0.96]"

2014/06/07, 18:44:43 Error in expression <r = _primary select 8;
if (!(_model in AllPlayers)) then {
_model = "Survivor2_>
2014/06/07, 18:44:43 Error position: <AllPlayers)) then {
_model = "Survivor2_>
2014/06/07, 18:44:43 Error Undefined variable in expression: allplayers
2014/06/07, 18:44:43 File z\addons\dayz_server\compile\server_playerLogin.sqf, line 53

2014/06/07, 18:44:44 Server: Object 8:10 not found (message 70)
2014/06/07, 18:44:44 SetFace error: class CfgFaces.RodriguezHead.Facegrover_EP1 not found
2014/06/07, 18:44:44 Error: Error during SetFace - class CfgFaces.RodriguezHead.Facegrover_EP1 not found
2014/06/07, 18:44:44 "LOGIN PUBLISHING: B 1-1-E:1 (blaaaaa) REMOTE Type: FR_Rodriguez_DZ"

the line changed in variables.sqf :

AllPlayers set [count AllPlayers, "Bandit1_DZ","Bandit2_DZ","BanditW1_DZ","BanditW2_DZ","Survivor2_DZ","SurvivorW2_DZ","Sniper1_DZ","Camo1_DZ","Soldier1_DZ","Rocket_DZ"];
Link to comment
Share on other sites

I changed both //Model Variables and all players to the single 

AllPlayers set [count AllPlayers, "Bandit1_DZ","Bandit2_DZ","BanditW1_DZ","BanditW2_DZ","Survivor2_DZ","SurvivorW2_DZ","Sniper1_DZ","Camo1_DZ","Soldier1_DZ","Rocket_DZ"];

as instructed and it works great

Link to comment
Share on other sites

I changed both //Model Variables and all players to the single 

AllPlayers set [count AllPlayers, "Bandit1_DZ","Bandit2_DZ","BanditW1_DZ","BanditW2_DZ","Survivor2_DZ","SurvivorW2_DZ","Sniper1_DZ","Camo1_DZ","Soldier1_DZ","Rocket_DZ"];

as instructed and it works great

404 instructions not clear, blew up my house :o

thx

Link to comment
Share on other sites

 

RPT Error if someone logs into the server:

2014/06/07, 18:42:31 [DZMS]: (DZMSUnitsMinor) 9 AI Spawned, 9 units in mission.
2014/06/07, 18:42:33 [DZMS]: (DZMSUnitsMinor) Waiting for 9/9 Units or Less to be Alive and a Player to be Near the Objective.
2014/06/07, 18:44:43 "STARTING LOGIN: ["88354822",B 1-1-A:1 (Andreas) REMOTE]"
2014/06/07, 18:44:43 "LOGIN ATTEMPT: "########" blaaaaa"
2014/06/07, 18:44:43 "LOGIN RESULT: ["PASS",false,"941",[DIR,[XX,YY,ZZ]],[["ItemMap","ItemToolbox","Binocular_Vector","ItemRadio","ItemFlashlightRed","ItemGPS","ItemHatchet_DZE","NVGoggles","MakarovSD","ItemKeyKit","ItemKnife","ItemEtool","ItemCrowbar","ItemCompass","ItemMatchbox_DZE","SCAR_L_STD_Mk4CQT"],["ItemBriefcase70oz","ItemGoldBar4oz","ItemBriefcaseS80oz","ItemSilverBar2oz","ItemBandage","8Rnd_9x18_Makarov","8Rnd_9x18_Makarov","ItemBandage","ItemBandage","ItemBandage","ItemBandage"]],["DZ_CivilBackpack_EP1",[[],[]],[[],[]]],[0,995,995],"FR_Rodriguez_DZ",0.96]"

2014/06/07, 18:44:43 Error in expression <r = _primary select 8;
if (!(_model in AllPlayers)) then {
_model = "Survivor2_>
2014/06/07, 18:44:43 Error position: <AllPlayers)) then {
_model = "Survivor2_>
2014/06/07, 18:44:43 Error Undefined variable in expression: allplayers
2014/06/07, 18:44:43 File z\addons\dayz_server\compile\server_playerLogin.sqf, line 53

2014/06/07, 18:44:44 Server: Object 8:10 not found (message 70)
2014/06/07, 18:44:44 SetFace error: class CfgFaces.RodriguezHead.Facegrover_EP1 not found
2014/06/07, 18:44:44 Error: Error during SetFace - class CfgFaces.RodriguezHead.Facegrover_EP1 not found
2014/06/07, 18:44:44 "LOGIN PUBLISHING: B 1-1-E:1 (blaaaaa) REMOTE Type: FR_Rodriguez_DZ"

the line changed in variables.sqf :

AllPlayers set [count AllPlayers, "Bandit1_DZ","Bandit2_DZ","BanditW1_DZ","BanditW2_DZ","Survivor2_DZ","SurvivorW2_DZ","Sniper1_DZ","Camo1_DZ","Soldier1_DZ","Rocket_DZ"];

 

You can ignore this.

Link to comment
Share on other sites

any thoughts why after I changed the hight the trader still spawns in the same spot on the roof

 

position[]={12568,0.064,14556.9};//Chrveni Gradok

12568,0.014,14556.9

 

also would a marker be as easy asa adding it like this

 

class Markers
{
items=28;  Change to 29
 
class Item28
{
position[]={12568,0.014,14556.9};
name="skin trader";
text="skin trader";
type="mil_box";
colorName="ColorBlack";
};
Link to comment
Share on other sites

Works great for me <-- admin.   but the trader menu closes 1 seconmd after opening it for normal players.

 

I added in the if ((isNull (findDisplay 106)) && (isNull (findDisplay 20001)) && (isNull (findDisplay -1)) && (isNull (findDisplay 41144)) but still no joy.

 

I use infiSTAR anti hack.

 

Let me know if any one has an idea on this

 

Many thanks

 

MJR

Link to comment
Share on other sites

what file has the text cost is 2 gold displayed text at the top of the GUI???

I would like to add " you must drop backpack before purchase"..

if you don't drop it first it will not give but still takes the gold

 

The trader gives you a warning if your wearing a backpack and it won't change, but if you looking for that text you can find it in List_Men.sqf and List_Woman.sqf on line 14.

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...