You are not logged in.

  • Login
Bitte besucht unser neues Forum unter https://forum.nitrado.net | Please visit our new Forum at https://forum.nitrado.net

Dear visitor, welcome to Nitrado.net Prepaid Gameserver Community-Support - Archiv. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

paddy458

User / Kunde

Posts: 24

  • Send private message

41

Friday, May 23rd 2014, 10:17pm

Ok ich sehe grade ich kann auch nichts mehr verkaufen ;(

rexee87

User / Kunde

  • "rexee87" is male

Posts: 188

Location: Bad Oeynhausen

Occupation: Vorsitzender

  • Send private message

42

Friday, May 23rd 2014, 10:57pm

@paddy458

diese aussage bringt dir noch uns etwas. Files ?
Mit freundlichen Grüßen

Robert Bremer
1. Vorsitzender PC-Gamercom.de - Gamergemeinschaft e.V

PC-Gamercom.de - Gamergemeinschaft e.V
Verein für PC Spiele und förderung von Teamfähigkeit, sowie Aufklärung
Wöhrener Straße 79
32549 Bad Oeynhausen

E-Mail: robert.bremer@pc-gamercom.de
TANOA Github: https://github.com/PC-Gamercom/pcg_tanoa
Scripter & Mapper gesucht: bewerbung@pc-gamercom.de

paddy458

User / Kunde

Posts: 24

  • Send private message

43

Friday, May 23rd 2014, 11:15pm

fn_virt_buy.sqf

Spoiler Spoiler

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
	File: fn_virt_buy.sqf
	Author: Bryan "Tonic" Boardwine
	
	Description:
	Buy a virtual item from the store.
*/
private["_type","_price","_amount","_diff","_name"];
if((lbCurSel 2401) == -1) exitWith {hint "You need to select an item to buy."};
_type = lbData[2401,(lbCurSel 2401)];
_price = lbValue[2401,(lbCurSel 2401)];
_amount = ctrlText 2404;
////Marktsystem Anfang////
_marketprice = [_type] call life_fnc_marketGetBuyPrice;
if(_marketprice != -1) then
{
	_price = _marketprice;
};
		////Marktsystem Ende////
if(!([_amount] call fnc_isnumber)) exitWith {hint "You didn't enter an actual number";};
_diff = [_type,parseNumber(_amount),life_carryWeight,life_maxWeight] call life_fnc_calWeightDiff;
_amount = parseNumber(_amount);
if(_diff <= 0) exitWith {hint "You don't have enough space for that amount!"};
_amount = _diff;
if((_price * _amount) > life_cash) exitWith {hint "You don't have that much money!"};

_name = [([_type,0] call life_fnc_varHandle)] call life_fnc_varToStr;

if(([true,_type,_amount] call life_fnc_handleInv)) then
{
	hint format["You bought %1 %2 for $%3",_amount,_name,[(_price * _amount)] call life_fnc_numberText];
	life_cash = life_cash - (_price * _amount);
	[] call life_fnc_virt_update;
};
if(_marketprice != -1) then 
		{ 
			//##94
			[_type, _amount] spawn
			{
				sleep 120;
				[_this select 0,_this select 1] call life_fnc_marketBuy;
			};			
		};
private["_marketprice"];


fn_virt_sell.sqf

Spoiler Spoiler

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#include <macro.h>
/*
	File: fn_virt_sell.sqf
	Author: Bryan "Tonic" Boardwine
	
	Description:
	Sell a virtual item to the store / shop
*/
private["_type","_index","_price","_var","_amount","_name"];
if((lbCurSel 2402) == -1) exitWith {};
_type = lbData[2402,(lbCurSel 2402)];
_index = [_type,__GETC__(sell_array)] call fnc_index;
if(_index == -1) exitWith {};
_price = (__GETC__(sell_array) select _index) select 1;
_var = [_type,0] call life_fnc_varHandle;
////Marktsystem Anfang////
_marketprice = [_type] call life_fnc_marketGetSellPrice;
if(_marketprice != -1) then
{
	_price = _marketprice;
};
////Marktsystem Ende////

_amount = ctrlText 2405;
if(!([_amount] call fnc_isnumber)) exitWith {hint "You didn't enter an actual number";};
_amount = parseNumber (_amount);
if(_amount > (missionNameSpace getVariable _var)) exitWith {hint "You don't have that many items to sell!"};

_price = (_price * _amount);
_name = [_var] call life_fnc_vartostr;
if(([false,_type,_amount] call life_fnc_handleInv)) then
////Marktsystem Anfang////
	if(_marketprice != -1) then 
	{ 
		[_type, _amount] spawn
		{
			sleep 120;
			[_this select 0,_this select 1] call life_fnc_marketSell;
		};
	////Marktsystem Ende////
		[] call life_fnc_virt_update;
	};

if(life_shop_type == "heroin") then
{
	private["_array","_ind","_val"];
	_array = life_shop_npc getVariable["sellers",[]];
	_ind = [getPlayerUID player,_array] call fnc_index;
	if(_ind != -1) then
	{
		_val = (_array select _ind) select 2;
		_val = _val + _price;
		_array set[_ind,[getPlayerUID player,name player,_val]];
		life_shop_npc setVariable["sellers",_array,true];
	}
		else
	{
		_array set[count _array,[getPlayerUID player,name player,_price]];
		life_shop_npc setVariable["sellers",_array,true];
	};
};
private["_marketprice"];


fn_virt_update.sqf

Spoiler Spoiler

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include <macro.h>
/*
	File: fn_virt_update.sqf
	Author: Bryan "Tonic" Boardwine
	
	Description:
	Update and fill the virtual shop menu.
*/
private["_display","_item_list","_gear_list","_shop_data","_name","_price"];
disableSerialization;

//Setup control vars.
_display = findDisplay 2400;
_item_list = _display displayCtrl 2401;
_gear_list = _display displayCtrl 2402;

//Purge list
lbClear _item_list;
lbClear _gear_list;

_shop_data = [life_shop_type] call life_fnc_virt_shops;
ctrlSetText[2403,format["%1", _shop_data select 0]];

{
	_name = [([_x,0] call life_fnc_varHandle)] call life_fnc_vartostr;
	_index = [_x,__GETC__(buy_array)] call fnc_index;
	if(_index != -1) then
	{
		_price = (__GETC__(buy_array) select _index) select 1;
		////Marktsystem Anfang////
		_marketprice = [_x] call life_fnc_marketGetBuyPrice;
		if(_marketprice != -1) then
		{
			_price = _marketprice;
		};
		////Marktsystem Ende////
		_item_list lbAdd format["%1  ($%2)",_name,[_price] call life_fnc_numberText];
		_item_list lbSetData [(lbSize _item_list)-1,_x];
		_item_list lbSetValue [(lbSize _item_list)-1,_price];
	};
} foreach (_shop_data select 1);

{
	_var = [_x,0] call life_fnc_varHandle;
	_val = missionNameSpace getVariable _var;
	_name = [_var] call life_fnc_vartostr;
	
	if(_val > 0) then
	{
		_gear_list lbAdd format["%1x %2",_val,_name];
		_gear_list lbSetData [(lbSize _gear_list)-1,_x];
	};
} foreach (_shop_data select 1);
private["_marketprice"];
//Call short view here
[_shop_data select 1] spawn life_fnc_marketShortView;

function.h

Spoiler Spoiler

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
class Life_Client_Core
{
	tag = "life";
	
	class Master_Directory
	{
		file = "core";
		class setupActions {};
		class setupEVH {};
		class initCiv {};
		class initCop {};
		class welcomeNotification {};
	};
	
	class Admin
	{
		file = "core\admin";
		class admininfo {};
		class adminid {};
		class admingetID {};
		class adminMenu {};
		class adminQuery {};
	};
	
	class Actions
	{
		file = "core\actions";
		class buyLicense {};
		class chemlightUse {};
		class heal {};
		class healHospital {};
		class pushVehicle {};
		class repairTruck {};
		class serviceChopper {};
		class serviceTruck {};
		class catchFish {};
		class catchTurtle {};
		class dpFinish {};
		class dropFishingNet {};
		class gatherApples {};
		class gatherCannabis {};
		class gatherHeroin {};
		class gatherOil {};
		class getDPMission {};
		class postBail {};
		class processAction {};
		class robBankAction {};
		class sellOil {};
		class suicideBomb {};
		class arrestAction {};
		class escortAction {};
		class impoundAction {};
		class pulloutAction {};
		class putInCar {};
		class stopEscorting {};
		class restrainAction {};
		class searchAction {};
		class searchVehAction {};
		class unrestrain {};
		class pickupItem {};
		class pickupMoney {};
		class ticketAction {};
		class gatherPeaches {};
		class gatherCocaine {};
		class pumpRepair {};
		class packupSpikes {};
		class robFederal {};
		class storeVehicle {};
		class robAction {};
		class sellTurtle {};
		class gatherMeth {};
	};
	
	class Config
	{
		file = "core\config";
		class licensePrice {};
		class vehicleColorCfg {};
		class vehicleColorStr {};
		class vehicleListCfg {};
		class vehicleWeight {};
		class licenseType {};
		class eatFood {};
		class varHandle {};
		class varToStr {};
		class copDefault {};
		class impoundPrice {};
		class itemWeight {};
		class taxRate {};
		class virt_shops {};
		class vehShopLicenses {};
		class vehicleAnimate {};
		class weaponShopCfg {};
		
		//Clothing Store Configs
		class clothing_cop {};
		class clothing_bruce {};
		class clothing_reb {};
		class clothing_dive {};
	};
	
	class session
	{
		file = "core\session";
		class sessionSetup {};
		class sessionReceive {};
		class sessionUpdate {};
		class sessionCreate {};
		class sessionHandle {};
		class syncData {};
	};

	class Player_Menu
	{
		file = "core\pmenu";
		class wantedList {};
		class wantedInfo {};
		class wantedMenu {};
		class pardon {};
		class giveItem {};
		class giveMoney {};
		class p_openMenu {};
		class p_updateMenu {};
		class removeItem {};
		class useItem {};
		class cellphone {};
		class keyMenu {};
		class keyGive {};
		class keyDrop {};
		class s_onSliderChange {};
		class updateViewDistance {};
		class settingsMenu {};
		class settingsInit {};
	};
	
	class Functions
	{
		file = "core\functions";
		class calWeightDiff {};
		class fetchCfgDetails {};
		class handleInv {};
		class hudSetup {};
		class hudUpdate {};
		class fetchGear{};
		class tazeSound {};
		class animSync {};
		class simDisable {};
		class keyHandler {};
		class dropItems {};
		class handleDamage {};
		class numberText {};
		class handleItem {};
		class accType {};
		class onDeath {};
		class onRespawn {};
		class receiveItem {};
		class giveDiff {};
		class receiveMoney {};
		class playerTags {};
		class clearVehicleAmmo {};
		class pulloutVeh {};
		class nearUnits {};
		class fedSuccess {};
		class actionKeyHandler {};
		class handleFlashbang {};
	};
	
	class Network
	{
		file = "core\functions\network";
		class broadcast {};
		class MP {};
		class MPexec {};
		class netSetVar {};
	};
	
	class Civilian
	{
		file = "core\civilian";
		class jailMe {};
		class jail {};
		class tazed {};
		class civFetchGear {};
		class civLoadGear {};
		class robReserve {};
		class knockedOut {};
		class knockoutAction {};
		class robReceive {};
		class robPerson {};
		class removeLicenses {};
		class zoneCreator {};
	};
	
	class Vehicle
	{
		file = "core\vehicle";
		class colorVehicle {};
		class openInventory {};
		class lockVehicle {};
		class vehicleOwners {};
		class vehStoreItem {};
		class vehTakeItem {};
		class vehInventory {};
		class vInteractionMenu {};
	};
	
	class Cop
	{
		file = "core\cop";
		class copFetchGear {};
		class copMarkers {};
		class copLights {};
		class loadGear {};
		class saveGear {};
		class vehInvSearch {};
		class copSearch {};
		class bountyReceive {};
		class searchClient {};
		class restrain {};
		class ticketGive {};
		class ticketPay {};
		class ticketPrompt {};
		class copSiren {};
		class spikeStripEffect {};
		class radar {};
		class questionDealer {};
		class copInteractionMenu {};
		class sirenLights {};
		class licenseCheck {};
		class licensesRead {};
	};
	
	class Gangs
	{
		file = "core\gangs";
		class createGang {};
		class gangBrowser {};
		class gangManagement {};
		class gangMenu {};
		class joinGang {};
		class kickGang {};
		class leaveGang {};
		class setGangLeader {};
		class lockGang {};
		class unlockGang {};
	};
	
	class Shops
	{
		file = "core\shops";
		class atmMenu {};
		class buyClothes {};
		class changeClothes {};
		class clothingMenu {};
		class clothingFilter {};
		class vehicleShop {};
		class vehicleColorList {};
		class vehicleShopBuy {};
		class vehicleShopBuySave {};
		class weaponShopFilter {};
		class weaponShopMenu {};
		class weaponShopSelection {};
		class weaponShopBuySell {};
		class virt_buy {};
		class virt_menu {};
		class virt_update {};
		class virt_sell {};
		class chopShopMenu {};
		class chopShopSelection {};
		class chopShopSell {};
	};
	
	class Items
	{
		file = "core\items";
		class pickaxeUse {};
		class lockpick {};
		class spikeStrip {};
		class jerryRefuel {};
		class bankalarmsound {};
	};
	
	class Dialog_Controls
	{
		file = "dialog\function";
		class setMapPosition {};
		class displayHandler {};
		class spawnConfirm {};
		class spawnMenu {};
		class spawnPointCfg {};
		class spawnPointSelected {};
		class progressBar {};
		class impoundMenu {};
		class unimpound {};
		class sellGarage {};
	};
};

init.sqf

Spoiler Spoiler

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
enableSaving [false, false];

X_Server = false;
X_Client = false;
X_JIP = false;
StartProgress = false;

if(!isDedicated) then { X_Client = true;};
/*
if(isNull player) then 
{
	if(!X_JIP && !isServer) then
	{
		[] spawn (compile PreprocessFileLineNumbers "core\jip.sqf");
	};
	X_JIP = true;
};
*/
enableSaving[false,false];

life_versionInfo = "Altis Life RPG v3.1.2";
/*
if(X_Client) then
{
	[] execVM "core\init.sqf";
};
*/
[] execVM "briefing.sqf"; //Load Briefing
[] execVM "KRON_Strings.sqf";

if(isDedicated && isNil("life_market_prices")) then
{
	[] call life_fnc_marketconfiguration;
	diag_log "Market prices generated!";
	
	"life_market_prices" addPublicVariableEventHandler
	{
		diag_log format["Market prices updated! %1", _this select 1];
	};
	
	//run event config 
	diag_log "Initializing event stuff ...";
	[] call life_fnc_eventServerInit;
	diag_log "... done";
	
	//Start server fsm	
	[] execFSM "core\fsm\server.fsm";
	diag_log "Server FSM executed";
};


if(!StartProgress) then
{
	[8,true,false] execFSM "core\fsm\core_time.fsm";
};
StartProgress = true;

player_inv.hpp

Spoiler Spoiler

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
#include "player_sys.sqf"

class playerSettings {

	idd = playersys_DIALOG;
	movingEnable = true;
	enableSimulation = true;
	
	class controlsBackground {
	
	class life_RscTitleBackground:life_RscText {
			colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
			idc = -1;
			x = 0.1;
			y = 0.2;
			w = 0.8;
			h = (1 / 25);
		};
		
		class MainBackground:life_RscText {
			colorBackground[] = {0, 0, 0, 0.7};
			idc = -1;
			x = 0.1;
			y = 0.2 + (11 / 250);
			w = 0.8;
			h = 0.6 - (22 / 250);
		};
		
		class Title : life_RscTitle {
			colorBackground[] = {0, 0, 0, 0};
			idc = -1;
			text = "$STR_PM_Title";
			x = 0.1;
			y = 0.2;
			w = 0.8;
			h = (1 / 25);
		};
		
		class moneyStatusInfo : Life_RscStructuredText
		{
			idc = 2015;
			sizeEx = 0.020;
			text = "";
			x = 0.105;
			y = 0.30;
			w = 0.3; h = 0.6;
		};
		
		class PlayersName : Title {
			idc = carry_weight;
			style = 1;
			text = "";
		};
	};
	
	class controls {
		
		class itemHeader : Life_RscText
		{
			idc = -1;
			colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
			text = "$STR_PM_cItems";
			sizeEx = 0.04;
			
			x = 0.62; y = 0.26;
			w = 0.275; h = 0.04;
		};
		
		class licenseHeader : Life_RscText
		{
			idc = -1;
			colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
			text = "$STR_PM_Licenses";
			sizeEx = 0.04;
			
			x = 0.336; y = 0.26;
			w = 0.275; h = 0.04;
		};
		
		class moneySHeader : Life_RscText
		{
			idc = -1;
			colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
			text = "$STR_PM_MoneyStats";
			sizeEx = 0.04;
			
			x = 0.11; y = 0.26;
			w = 0.219; h = 0.04;
		};
	
		class itemList : life_RscListBox 
		{
			idc = item_list;
			sizeEx = 0.030;
			
			x = 0.62; y = 0.30;
			w = 0.275; h = 0.3;
		};
		
		class moneyEdit : Life_RscEdit 
		{
			idc = 2018;
			
			text = "1";
			sizeEx = 0.030;
			x = 0.12; y = 0.42;
			w = 0.18; h = 0.03;
		};
		
		class NearPlayers : Life_RscCombo 
		{
			idc = 2022;
		
			x = 0.12; y = 0.46;
			w = 0.18; h = 0.03;
		};
		
		class moneyDrop : Life_RscButtonMenu
		{
			idc = 2001;
			text = "$STR_Global_Give";
			colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
			onButtonClick = "[] call life_fnc_giveMoney";
			sizeEx = 0.025;
			x = 0.135; y = 0.50;
			w = 0.13; h = 0.036;
		};
		
		class itemEdit : Life_RscEdit {
		
		idc = item_edit;
		
		text = "1";
		sizeEx = 0.030;
		x = 0.62; y = 0.61;
		w = 0.275; h = 0.03;
		
		};
		class iNearPlayers : Life_RscCombo
		{
			idc = 2023;
			
			x = 0.62; y = 0.65;
			w = 0.275; h = 0.03;
		};
		/*
		Disabled till it can be redone
		class moneyInput: life_RscCombo {
			
			idc = money_value;
			
			x  = 0.02; y = 0.402;
			w = .1; h = .030;
		};
		*/
		
		class DropButton : life_RscButtonMenu {
			
			idc = 2002;
			text = "$STR_Global_Give";
			colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
			onButtonClick = "[] call life_fnc_giveItem;";
			
			x = 0.765;
			y = 0.70;
			w = (5.25 / 40);
			h = (1 / 25);
			
		};
		
		class UseButton : life_RscButtonMenu {
			
			text = "$STR_Global_Use";
			colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
			onButtonClick = "[] call life_fnc_useItem;";
			
			x = 0.62;
			y = 0.70;
			w = (5.25 / 40);
			h = (1 / 25);
			
		};
		
		class RemoveButton : life_RscButtonMenu {
			
			text = "$STR_Global_Remove";
			colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
			onButtonClick = "[] call life_fnc_removeItem;";
			
			x = 0.475;
			y = 0.70;
			w = (5.25 / 40);
			h = (1 / 25);
			
		};
		/*
		Disabled till it can be redone
		class DropcButton : life_RscButtonMenu {

			text = "Drop Money";
			onButtonClick = "[] execVM 'player_system\money_fnc.sqf'";
			
			x = 0.13; y = 0.4;
			w = 0.135; h = 0.05;
			
		};
		*/
		
		class ButtonClose : life_RscButtonMenu {
			idc = -1;
			//shortcuts[] = {0x00050000 + 2};
			text = "$STR_Global_Close";
			onButtonClick = "closeDialog 0;";
			x = 0.1;
			y = 0.8 - (1 / 25);
			w = (6.25 / 40);
			h = (1 / 25);
		};
		
		class ButtonSettings : life_RscButtonMenu {
			idc = -1;
			text = "$STR_Global_Settings";
			onButtonClick = "[] call life_fnc_settingsMenu;";
			x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
			y = 0.8 - (1 / 25);
			w = (6.25 / 40);
			h = (1 / 25);
		};
		
		class ButtonMyGang : Life_RscButtonMenu {
			idc = 2011;
			text = "$STR_PM_MyGang";
			onButtonClick = "[] call life_fnc_gangMenu";
			x = 0.1 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH));
			y = 0.8 - (1 / 25);
			w = (6.25 / 40);
			h = (1 / 25);
		};
		
		class Licenses_Menu : Life_RscControlsGroup
		{
			idc = -1;
			w = 0.28;
			h = 0.38;
			x = 0.34;
			y = 0.30;
			
			class Controls
			{
				class Life_Licenses : Life_RscStructuredText
				{
					idc = 2014;
					sizeEx = 0.020;
					text = "";
					x = 0;
					y = 0;
					w = 0.27; h = 0.65;
				};
			};
		};
		
		class ButtonGangList : Life_RscButtonMenu {
			idc = 2012;
			text = "$STR_PM_WantedList";
			onButtonClick = "[] call life_fnc_wantedMenu";
			x = 0.1 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH));
			y = 0.8 - (1 / 25);
			w = (6.25 / 40);
			h = (1 / 25);
		};
	
		class ButtonKeys : Life_RscButtonMenu {
			idc = 2013;
			text = "$STR_PM_KeyChain";
			onButtonClick = "createDialog ""Life_key_management"";";
			x = 0.26 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH));
			y = 0.8 - (1 / 25);
			w = (6.25 / 40);
			h = (1 / 25);
		};
		
		class ButtonCell : Life_RscButtonMenu {
			idc = 2014;
			text = "$STR_PM_CellPhone";
			onButtonClick = "createDialog ""Life_cell_phone"";";
			x = 0.42 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH));
			y = 0.8 - (1 / 25);
			w = (6.25 / 40);
			h = (1 / 25);
		};
		
		class ButtonAdminMenu : Life_RscButtonMenu {
			idc = 2021;
			text = "$STR_PM_AdminMenu";
			onButtonClick = "createDialog ""life_admin_menu"";";
			x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
			y = 0.805;
			w = (6.25 / 40);
			h = (1 / 25);
		};
		
		class ButtonSyncData : life_RscButtonMenu {
			idc = -1;
			//shortcuts[] = {0x00050000 + 2};
			text = "$STR_PM_SyncData";
			onButtonClick = "[] call life_fnc_syncData;";
			x = 0.1;
			y = 0.805;
			w = (6.25 / 40);
			h = (1 / 25);
		};
				
		class ButtonMarket : Life_RscButtonMenu {
			idc = -1;
			text = "Markt";
			onButtonClick = "[] spawn life_fnc_openMarketView;";
			//x = 0.26 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH));
			x = 0.26 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH));
			y = 0.805;
			w = (6.25 / 40);
			h = (1 / 25);
		};
	};
};

marketChange.sqf

Spoiler Spoiler

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
/*

	Some random and dynamical stuff for market

*/

private["_rand","_modifier","_price", "_globalchange","_defaultprice","_shortname","_difference"];

_rand = [0,200] call life_fnc_randomRound; //0-200

/*

	HINWEIS: obige Zahl in random erhöhen, um alle ereignisse seltener zu machen!
	
*/

diag_log "[MARKET] marketChange called.";

switch(true) do
{
	case (_rand <= 30): //30% default market change value (strong version)
	{
		{
			if(random(10) <= 4) then //Random for each resource
			{
				/*_price = _x select 1;
				_globalchange = _x select 2;*/
				
				_modifier = [-20,20] call life_fnc_randomRound; //Verkaufte/Gekaufte Items
				/*_modifier = _price * _modifier;
				
				_price = _price + _modifier;
				_globalchange = _globalchange + _modifier;
				
				life_market_prices set [_forEachIndex, [_x select 0, _price, _globalchange, _modifier] ];*/
				
				if(_modifier < 0) then
				{
					[_x select 0, -(_modifier), true] call life_fnc_marketSell; 
				}
				else
				{
					[_x select 0, _modifier, true] call life_fnc_marketBuy; 
				};
			};
		}
		foreach life_market_prices;
	};
	case (_rand <= 36): //6% Drogenpreis erhöhen
	{
		[[0,"News: Interpol hat eine internationale Drogenbande ausgehoben!"],"life_fnc_broadcast",true,false] spawn life_fnc_MP;
		
		//Erhöhe Marktpreis mit marketSell
		["marijuana", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		["cocaine", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		["cocainep", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		["heroinu", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		["heroinp", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		["methu", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		["methb", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		
		diag_log "+Market+ Event drugp";
	};
	case (_rand <= 44): //8% Ölpreis erhöhen
	{
		[[0,"News: Öltanker gesunken!"],"life_fnc_broadcast",true,false] spawn life_fnc_MP;
		
		["oilp", [20,40] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		["benzin", [20,40] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		
		diag_log "+Market+ Event oilp";
	};
	case (_rand <= 54): //10% Eisenpreis + zementpreis + glaspreis erhöhen
	{
		[[0,"News: China baut World-China-Center!"],"life_fnc_broadcast",true,false] spawn life_fnc_MP;
		
		["cement", [20,40] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		["ironu", [20,30] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		["glass", [25,35] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		["werkzeug", [25,35] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		
		diag_log "+Market+ Event wcc";
	};
	case (_rand <= 60): //4% Goldpreis sinkt
	{
		[[0,"News: Anleger verlieren Vertrauen in Gold!"],"life_fnc_broadcast",true,false] spawn life_fnc_MP;
		
		["goldu", [15,30] call life_fnc_randomRound, true] call life_fnc_marketSell; 
		["schmuck", [15,30] call life_fnc_randomRound, true] call life_fnc_marketSell; 
		
		diag_log "+Market+ Event goldm";
	};
	case (_rand <= 68): //8% Kupfer/Silber erhöht sich
	{
		[[0,"News: Elektronikindustrie benötigt Edelmetalle!"],"life_fnc_broadcast",true,false] spawn life_fnc_MP;
		
		["goldu", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		["schmuck", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		["copperu", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		["kupferkabel", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		diag_log "+Market+ Event copperp";
	};
	case (_rand <= 74): //6% Goldpreis erhöht sich
	{
		[[0,"News: Anleger verlieren Vertrauen in Dollar!"],"life_fnc_broadcast",true,false] spawn life_fnc_MP;
		
		["goldu", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		["schmuck", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy; 
		
		diag_log "+Market+ Event goldp";
	};
	case (_rand <= 80): //6% Drogenpreis niedriger
	{
		[[0,"News: Neue synthetische Droge überschwemmt Drogenmarkt!"],"life_fnc_broadcast",true,false] spawn life_fnc_MP;
		
		//Erhöhe Marktpreis mit marketSell
		["marijuana", [15,30] call life_fnc_randomRound, true] call life_fnc_marketSell; 
		["cocaine", [15,30] call life_fnc_randomRound, true] call life_fnc_marketSell; 
		["cocainep", [15,30] call life_fnc_randomRound, true] call life_fnc_marketSell; 
		["heroinu", [15,30] call life_fnc_randomRound, true] call life_fnc_marketSell; 
		["heroinp", [15,30] call life_fnc_randomRound, true] call life_fnc_marketSell; 
		["methu", [15,30] call life_fnc_randomRound, true] call life_fnc_marketSell; 
		["methb", [15,30] call life_fnc_randomRound, true] call life_fnc_marketSell; 
		
		diag_log "+Market+ Event drugm";
	};
	case (_rand <= 90): //10% Schildkröten höher
	{
		[[0,"News: China entdeckt Schildkröten als neue Medizin! Tierschützer sind besorgt!"],"life_fnc_broadcast",true,false] spawn life_fnc_MP;
		
		//Erhöhe Marktpreis mit marketSell
		["turtle", [4,10] call life_fnc_randomRound, true] call life_fnc_marketBuy; 	
		
		diag_log "+Market+ Event turtlep";
	};
	default //market change: default version
	{
		//diag_log format["[MARKET] marketChange did nothing. Rand=%1", _rand];
		{
			//Get default price
			_defaultprice = 0;
			_shortname = _x select 0;
			_price = _x select 1;
			_globalchange = _x select 2;
		
			{
				if((_x select 0) == _shortname) exitWith
				{
					_defaultprice = _x select 1;
				};
			}
			foreach life_market_resources;
			
			if(_defaultprice > 0) then
			{
			
				//Get difference
				_difference = _defaultprice - _price; //Defaultprice - current price
			
				_modifier = _difference * (random 0.4);
				_modifier = round _modifier;
			
				//Protecting hard caps
				/*if( _modifier < -700) then {_modifier = -700;};
				if( _modifier > 700) then {_modifier = 700;};*/
			
				//_modifier = [-15,25] call life_fnc_randomRound; //Verkaufte/Gekaufte Items
				
				/*if(_modifier < 0) then
				{
					[_x select 0, -(_modifier), true] call life_fnc_marketSell; 
				}
				else
				{
					[_x select 0, _modifier, true] call life_fnc_marketBuy; 
				};*/
				
				diag_log format["+Market+ Correcting market value of %1 from %2 to %3 by %4", _shortname, _price, (_price + _modifier), _modifier];
				
				_price = _price + _modifier;
				_globalchange = _globalchange + _modifier;
				
				
				
				//New price arr
				life_market_prices set [_forEachIndex, [_shortname, _price,_globalchange,_modifier] ]; //set raw values
			
			}
			else
			{
				diag_log format["+Market+ Cannot correct market value of %1", _shortname];
			};
		}
		foreach life_market_prices;
	};
};

publicVariable "life_market_prices";


kann grade nicht mehr schreiben hab noch die marketconfig und den RPT

Nexarion

User / Kunde

  • "Nexarion" started this thread

Posts: 247

Thanks: 21

  • Send private message

44

Friday, May 23rd 2014, 11:24pm

Ok, ich habe jetzt nicht drauf geachtet, dass vielleicht grundlegende Sachen noch nicht bekannt sind.

Source code

1
private["_marketprice"];


beutet, dass man "_marketprice" dem vorhanden private-Array hinzufügen muss. z.B.:

Spoiler Spoiler

Source code

1
2
3
4
5
6
7
8
/*
	File: fn_virt_buy.sqf
	Author: Bryan "Tonic" Boardwine
	
	Description:
	Buy a virtual item from the store.
*/
private["_type","_price","_amount","_diff","_name","_marketprice"];

x_Heis3nberg_x

User / Kunde

Posts: 26

  • Send private message

45

Friday, May 23rd 2014, 11:28pm

Bei mir läufts jetzt auch, aber ein Problem hab ich noch, Kokain, Heroin,usw. wird im Fenster alles doppelt und dreifach angezeigt und ich weiss nicht an was des liegt.


Ich würde sagen etwas falsch eingefügt. Um das zu beurteilen benötige ich und die anderen mal deine Files um das einzusehen.

Hier mal meine Files

fn_virt_update.sqf

Spoiler Spoiler

#include <macro.h>
/*
File: fn_virt_update.sqf
Author: Bryan "Tonic" Boardwine

Description:
Update and fill the virtual shop menu.
*/
private["_display","_item_list","_gear_list","_shop_data","_name","_price","_marketprice"];
disableSerialization;

//Setup control vars.
_display = findDisplay 2400;
_item_list = _display displayCtrl 2401;
_gear_list = _display displayCtrl 2402;

//Purge list
lbClear _item_list;
lbClear _gear_list;

_shop_data = [life_shop_type] call life_fnc_virt_shops;
ctrlSetText[2403,format["%1", _shop_data select 0]];

{
_name = [([_x,0] call life_fnc_varHandle)] call life_fnc_vartostr;
_index = [_x,__GETC__(buy_array)] call fnc_index;
if(_index != -1) then
{
_price = (__GETC__(buy_array) select _index) select 1;
////Marktsystem Anfang////
_marketprice = [_x] call life_fnc_marketGetBuyPrice;
if(_marketprice != -1) then
{
_price = _marketprice;
};
////Marktsystem Ende////
_item_list lbAdd format["%1 ($%2)",_name,[_price] call life_fnc_numberText];
_item_list lbSetData [(lbSize _item_list)-1,_x];
_item_list lbSetValue [(lbSize _item_list)-1,_price];
};
} foreach (_shop_data select 1);

{
_var = [_x,0] call life_fnc_varHandle;
_val = missionNameSpace getVariable _var;
_name = [_var] call life_fnc_vartostr;

if(_val > 0) then
{
_gear_list lbAdd format["%1x %2",_val,_name];
_gear_list lbSetData [(lbSize _gear_list)-1,_x];
};
} foreach (_shop_data select 1);
//Call short view here
[_shop_data select 1] spawn life_fnc_marketShortView;


player_inv.hpp

Spoiler Spoiler

class ButtonSyncData : life_RscButtonMenu {
idc = -1;
//shortcuts[] = {0x00050000 + 2};
text = "$STR_PM_SyncData";
onButtonClick = "[] call life_fnc_syncData;";
x = 0.1;
y = 0.805;
w = (6.25 / 40);
h = (1 / 25);
};
class ButtonMarket : Life_RscButtonMenu {
idc = -1;
text = "Markt";
onButtonClick = "[] spawn life_fnc_openMarketView;";
//x = 0.26 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH));
x = 0.26 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH));
y = 0.805;
w = (6.25 / 40);
h = (1 / 25);
};
};
};



marketChange.sqf

Spoiler Spoiler

/*

Some random and dynamical stuff for market

*/

private["_rand","_modifier","_price", "_globalchange","_defaultprice","_shortname","_difference"];

_rand = [0,200] call life_fnc_randomRound; //0-200

/*

HINWEIS: obige Zahl in random erhöhen, um alle ereignisse seltener zu machen!

*/

diag_log "[MARKET] marketChange called.";

switch(true) do
{
case (_rand <= 30): //30% default market change value (strong version)
{
{
if(random(10) <= 4) then //Random for each resource
{
/*_price = _x select 1;
_globalchange = _x select 2;*/

_modifier = [-20,20] call life_fnc_randomRound; //Verkaufte/Gekaufte Items
/*_modifier = _price * _modifier;

_price = _price + _modifier;
_globalchange = _globalchange + _modifier;

life_market_prices set [_forEachIndex, [_x select 0, _price, _globalchange, _modifier] ];*/

if(_modifier < 0) then
{
[_x select 0, -(_modifier), true] call life_fnc_marketSell;
}
else
{
[_x select 0, _modifier, true] call life_fnc_marketBuy;
};
};
}
foreach life_market_prices;
};
case (_rand <= 36): //6% Drogenpreis erhöhen
{
[[0,"News: Interpol hat eine internationale Drogenbande ausgehoben!"],"life_fnc_broadcast",true,false] spawn life_fnc_MP;

//Erhöhe Marktpreis mit marketSell
["marijuana", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy;
["cocaine", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy;
["cocainep", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy;
["heroinu", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy;
["heroinp", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy;
["methp", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy;

diag_log "+Market+ Event drugp";
};
case (_rand <= 44): //8% Ölpreis erhöhen
{
[[0,"News: Öltanker gesunken!"],"life_fnc_broadcast",true,false] spawn life_fnc_MP;

["oilp", [20,40] call life_fnc_randomRound, true] call life_fnc_marketBuy;

diag_log "+Market+ Event oilp";
};
case (_rand <= 54): //10% Eisenpreis + zementpreis + glaspreis erhöhen
{
[[0,"News: China baut World-China-Center!"],"life_fnc_broadcast",true,false] spawn life_fnc_MP;

["cement", [20,40] call life_fnc_randomRound, true] call life_fnc_marketBuy;
["iron_r", [20,30] call life_fnc_randomRound, true] call life_fnc_marketBuy;
["glass", [25,35] call life_fnc_randomRound, true] call life_fnc_marketBuy;

diag_log "+Market+ Event wcc";
};
case (_rand <= 60): //4% Goldpreis sinkt
{
[[0,"News: Anleger verlieren Vertrauen in Gold!"],"life_fnc_broadcast",true,false] spawn life_fnc_MP;

["gold", [15,30] call life_fnc_randomRound, true] call life_fnc_marketSell;
["goldr", [15,30] call life_fnc_randomRound, true] call life_fnc_marketSell;

diag_log "+Market+ Event goldm";
};
case (_rand <= 68): //8% Kupfer/Silber erhöht sich
{
[[0,"News: Elektronikindustrie benötigt Edelmetalle!"],"life_fnc_broadcast",true,false] spawn life_fnc_MP;

["gold", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy;
["goldr", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy;
["silver", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy;
["silverr", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy;
diag_log "+Market+ Event copperp";
};
case (_rand <= 74): //6% Goldpreis erhöht sich
{
[[0,"News: Anleger verlieren Vertrauen in Dollar!"],"life_fnc_broadcast",true,false] spawn life_fnc_MP;

["gold", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy;
["goldr", [15,30] call life_fnc_randomRound, true] call life_fnc_marketBuy;

diag_log "+Market+ Event goldp";
};
case (_rand <= 80): //6% Drogenpreis niedriger
{
[[0,"News: Neue synthetische Droge überschwemmt Drogenmarkt!"],"life_fnc_broadcast",true,false] spawn life_fnc_MP;

//Erhöhe Marktpreis mit marketSell
["marijuana", [15,30] call life_fnc_randomRound, true] call life_fnc_marketSell;
["cocaine", [15,30] call life_fnc_randomRound, true] call life_fnc_marketSell;
["cocainep", [15,30] call life_fnc_randomRound, true] call life_fnc_marketSell;
["heroinu", [15,30] call life_fnc_randomRound, true] call life_fnc_marketSell;
["heroinp", [15,30] call life_fnc_randomRound, true] call life_fnc_marketSell;
["methp", [15,30] call life_fnc_randomRound, true] call life_fnc_marketSell;

diag_log "+Market+ Event drugm";
};
case (_rand <= 90): //10% Schildkröten höher
{
[[0,"News: China entdeckt Schildkröten als neue Medizin! Tierschützer sind besorgt!"],"life_fnc_broadcast",true,false] spawn life_fnc_MP;

//Erhöhe Marktpreis mit marketSell
["turtle", [4,10] call life_fnc_randomRound, true] call life_fnc_marketBuy;

diag_log "+Market+ Event turtlep";
};
default //market change: default version
{
//diag_log format["[MARKET] marketChange did nothing. Rand=%1", _rand];
{
//Get default price
_defaultprice = 0;
_shortname = _x select 0;
_price = _x select 1;
_globalchange = _x select 2;

{
if((_x select 0) == _shortname) exitWith
{
_defaultprice = _x select 1;
};
}
foreach life_market_resources;

if(_defaultprice > 0) then
{

//Get difference
_difference = _defaultprice - _price; //Defaultprice - current price

_modifier = _difference * (random 0.4);
_modifier = round _modifier;

//Protecting hard caps
/*if( _modifier < -700) then {_modifier = -700;};
if( _modifier > 700) then {_modifier = 700;};*/

//_modifier = [-15,25] call life_fnc_randomRound; //Verkaufte/Gekaufte Items

/*if(_modifier < 0) then
{
[_x select 0, -(_modifier), true] call life_fnc_marketSell;
}
else
{
[_x select 0, _modifier, true] call life_fnc_marketBuy;
};*/

diag_log format["+Market+ Correcting market value of %1 from %2 to %3 by %4", _shortname, _price, (_price + _modifier), _modifier];

_price = _price + _modifier;
_globalchange = _globalchange + _modifier;



//New price arr
life_market_prices set [_forEachIndex, [_shortname, _price,_globalchange,_modifier] ]; //set raw values

}
else
{
diag_log format["+Market+ Cannot correct market value of %1", _shortname];
};
}
foreach life_market_prices;
};
};

publicVariable "life_market_prices";


Edit:
Mir ist gerade was aufgefallen, weiß nicht ob es Zufall war oder nicht, aber gerade hab ich das Marktsystem nochmal getestet und mir wurde alles normal Angezeigt, dann kahm ein 2. Spieler auf den Server und dann waren einige Sachen wieder doppelt aufgelistet.
x_Heis3nberg_x has attached the following files:
  • fn_marketconfiguration.txt (4.1 kB - 44 times downloaded - latest: Apr 11th 2017, 7:51pm)
  • init.txt (1.56 kB - 30 times downloaded - latest: Dec 14th 2016, 9:21pm)
  • Functions.txt (8.16 kB - 18 times downloaded - latest: Jul 16th 2016, 2:28am)
  • fn_virt_buy.txt (1.41 kB - 66 times downloaded - latest: Nov 10th 2016, 6:51pm)
  • fn_virt_sell.txt (1.96 kB - 87 times downloaded - latest: Nov 10th 2016, 6:39pm)

This post has been edited 1 times, last edit by "x_Heis3nberg_x" (May 24th 2014, 12:41am)


paddy458

User / Kunde

Posts: 24

  • Send private message

46

Saturday, May 24th 2014, 1:19pm

Ich habe mal den Kompletten satz von Black Lagoon übernommen aus der virt_sell.sqf und jetzt geht es, ich kann Verkaufen aber ich bekomme kein Geld

Source code

1
2
3
4
5
6
7
8
9
10
	if(_type in life_illegal_item_shortnames) then
	{
		hint format["Du verkaufst %1 %2 für $%3. Du musst das Geld erst waschen lassen, um es benutzen zu können.",_amount,_name,[_price] call life_fnc_numberText];
		[true,"illegalmoney",_price] call life_fnc_handleInv;
	}
	else
	{
		hint format["Du verkaufst %1 %2 für $%3",_amount,_name,[_price] call life_fnc_numberText];
		life_cash = life_cash + _price;		
	};


Hier der RPT

Spoiler Spoiler

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
=====================================================================
== C:\SERVICES\ni115357_1\arma3\arma3server.exe
== arma3server.exe  -mod=@Arma2NET;@life_server; -ip=217.114.196.28 -port=2302 -maxmem=2047 -noCB -exThreads=1 -malloc=tbb4malloc_bi -profiles=config -config=config\server.cfg -cfg=config\basic.cfg -name=arma3 

Original output filename: Arma3Retail_Server
Exe timestamp: 2014/05/16 22:48:33
Current time:  2014/05/24 12:01:06

Type: Public
Branch: Stable
Version: 1.18.124360

Allocator: C:\SERVICES\ni115357_1\arma3\dll\tbb4malloc_bi.dll
=====================================================================

AppId parsing successful. Using appId=107410
Cannot register unknown string STR_CONTROLS_TOOLTIPS_CURATOR_COLLAPSE_PARENT
Rpt messages map size: 2
Cannot register unknown string STR_A3_BUY_DLC
Cannot register unknown string STR_USRACT_CURATOR_COLLAPSE_PARENT
Item str_disp_hintc_continue listed twice
Rpt messages map size: 4
Item str_lib_info_author listed twice
Updating base class ->Base, by a3\dubbing_radio_f\config.bin/CfgHQIdentities/PAPA_BEAR/
Updating base class ->Base, by a3\dubbing_radio_f\config.bin/CfgHQIdentities/AirBase/
Updating base class ->VScrollbar, by a3\ui_f\config.bin/RscDisplayDebug/Controls/G_Expression/VScrollbar/
Updating base class ->HScrollbar, by a3\ui_f\config.bin/RscDisplayDebug/Controls/G_Expression/HScrollbar/
Updating base class ->RscText, by a3\ui_f\config.bin/RscDisplayCapture/controls/TimeLines/
Updating base class RscShortcutButton->RscButtonMenu, by a3\ui_f\config.bin/RscDisplayCapture/controls/ButtonAverages/
Updating base class RscShortcutButton->RscButtonMenu, by a3\ui_f\config.bin/RscDisplayCapture/controls/ButtonSavePreviousData/
Updating base class RscShortcutButton->RscButtonMenu, by a3\ui_f\config.bin/RscDisplayCapture/controls/ButtonPreviousData/
Updating base class RscControlsGroup->RscControlsGroupNoScrollbars, by a3\ui_f\config.bin/RscDisplayMain/controls/ModIcons/
Updating base class RscPicture->RscPictureKeepAspect, by a3\ui_f\config.bin/RscDisplayMain/IconPicture/
Updating base class RscListBox->RscCombo, by a3\ui_f\config.bin/RscDisplayCustomizeController/Steepness/
Updating base class ->RscStandardDisplay, by a3\ui_f\config.bin/RscDisplayControlSchemes/
Updating base class ButtonOK->RscButtonMenuCancel, by a3\ui_f\config.bin/RscDisplayControlSchemes/controls/ButtonCancel/
Updating base class RscButton->RscButtonMenuOK, by a3\ui_f\config.bin/RscDisplayControlSchemes/controls/ButtonOK/
Updating base class RscPicture->RscPictureKeepAspect, by a3\ui_f\config.bin/RscDisplayFileSelectImage/controls/OverviewPicture/
Updating base class RscShortcutButton->RscButtonMenuCancel, by a3\ui_f\config.bin/RscDisplayFieldManual/controls/ButtonCancel/
Updating base class RscButton->RscButtonMenuCancel, by a3\ui_f\config.bin/RscDisplayPublishMission/controls/ButtonCancel/
Updating base class RscShortcutButton->RscButtonMenuOK, by a3\ui_f\config.bin/RscDisplayPublishMissionSelectTags/controls/ButtonOK/
Updating base class ButtonOK->RscButtonMenuCancel, by a3\ui_f\config.bin/RscDisplayPublishMissionSelectTags/controls/ButtonCancel/
Updating base class ->RscSubmenu, by a3\ui_f\config.bin/RscMainMenu/
Cannot update non class from class a3\ui_f\config.bin/RscCallSupport/Items/
Cannot update non class from class a3\ui_f\config.bin/RscRadio/Items/
Updating base class Optics_Commander_02->Optics_Armored, by a3\armor_f_epb\apc_tracked_03\config.bin/Optics_Commander_03/
ragdollHitDmgLimit (0.000000) is lower than minimum (0.010000) and it was set to min.
Initializing Steam Manager
unable to load subscribed content list. list will be updated from steam
unable to load published content list. list will be updated from steam
unable to load cached items meta info. save and update functionality will be broken
Steam Manager initialized.

==== Loaded addons ====

dta\core.pbo - 0
dta\bin.pbo - unknown
dta\languagecore_f.pbo - 67042
C:\SERVICES\ni115357_1\arma3\@life_server\addons\life_server.pbo - unknown
C:\SERVICES\ni115357_1\arma3\curator\addons\language_f_curator.pbo - 67088
C:\SERVICES\ni115357_1\arma3\curator\addons\functions_f_curator.pbo - 66925
C:\SERVICES\ni115357_1\arma3\curator\addons\data_f_curator.pbo - 67051
C:\SERVICES\ni115357_1\arma3\curator\addons\ui_f_curator.pbo - 66956
C:\SERVICES\ni115357_1\arma3\curator\addons\modules_f_curator.pbo - 66925
C:\SERVICES\ni115357_1\arma3\curator\addons\missions_f_curator.pbo - 67042
addons\structures_f_wrecks.pbo - 66913
addons\map_altis_data_layers_01_00.pbo - 64204
addons\missions_f_epb_data.pbo - 66883
addons\map_stratis_data.pbo - 60227
addons\map_altis.pbo - 66746
addons\language_f_epb.pbo - 67088
addons\missions_f_epa_data.pbo - 66883
addons\language_f.pbo - 67088
addons\weapons_f_epa.pbo - 66869
addons\structures_f.pbo - 66913
addons\drones_f.pbo - 65833
addons\missions_f_gamma_video.pbo - 52884
addons\boat_f_beta.pbo - 60977
addons\structures_f_epa.pbo - 66913
addons\structures_f_data.pbo - 66913
addons\music_f_epa_music.pbo - 62070
addons\animals_f_beta.pbo - 66711
addons\armor_f_beta.pbo - 66875
addons\languagemissions_f_epb.pbo - 67088
addons\soft_f_epc.pbo - 67345
addons\anims_f_epc.pbo - 64977
addons\functions_f_epc.pbo - 63816
addons\missions_f_beta_data.pbo - 62070
addons\music_f_epb_music.pbo - 62070
addons\map_stratis_scenes_f.pbo - 63714
addons\armor_f_epb.pbo - 66875
addons\music_f_music.pbo - 62070
addons\map_altis_data.pbo - 66422
addons\weapons_f_beta.pbo - 66869
addons\music_f_epc.pbo - 65137
addons\language_f_epa.pbo - 67088
addons\ui_f_data.pbo - 66958
addons\uifonts_f_data.pbo - 62497
addons\missions_f_epb_video.pbo - 61701
addons\dubbing_f_epb.pbo - 64461
addons\missions_f_epc_data.pbo - 65195
addons\dubbing_f_epa.pbo - 64461
addons\soft_f_beta.pbo - 66921
addons\functions_f_epa.pbo - 66983
addons\dubbing_radio_f.pbo - 65882
addons\languagemissions_f_epc.pbo - 67088
addons\map_altis_data_layers_00_01.pbo - 64204
addons\weapons_f.pbo - 66891
addons\sounds_f_epc.pbo - 64915
addons\missions_f_epa.pbo - 67175
addons\modules_f_beta_data.pbo - 56247
addons\map_data.pbo - 66768
addons\weapons_f_epc.pbo - 66869
addons\functions_f.pbo - 67122
addons\missions_f_epb.pbo - 67183
addons\modules_f_epb.pbo - 66731
addons\cargoposes_f.pbo - 66691
addons\editor_f.pbo - 53723
addons\plants_f.pbo - 64753
addons\missions_f_beta_video.pbo - 49010
addons\characters_f_gamma.pbo - 66746
addons\dubbing_f_epc.pbo - 65113
addons\structures_f_mil.pbo - 66913
addons\static_f_beta.pbo - 64092
addons\music_f_epb.pbo - 62941
addons\characters_f_epc.pbo - 66750
addons\misc_f.pbo - 66711
addons\dubbing_f_beta.pbo - 55170
addons\missions_f_epa_video.pbo - 58252
addons\dubbing_f.pbo - 55351
addons\air_f_epb.pbo - 66775
addons\structures_f_households.pbo - 66913
addons\missions_f_gamma_data.pbo - 55501
addons\dubbing_f_gamma.pbo - 55217
addons\missions_f.pbo - 66887
addons\static_f_gamma.pbo - 66747
addons\boat_f_gamma.pbo - 66214
addons\sounds_f_vehicles.pbo - 64915
addons\weapons_f_epb.pbo - 66869
addons\modules_f.pbo - 66876
addons\air_f.pbo - 66876
addons\languagemissions_f_epa.pbo - 67088
addons\boat_f_epc.pbo - 64075
addons\map_altis_data_layers.pbo - 64204
addons\language_f_gamma.pbo - 67136
addons\missions_f_data.pbo - 62070
addons\roads_f.pbo - 65619
addons\map_altis_data_layers_00_00.pbo - 64204
addons\sounds_f_weapons.pbo - 64915
addons\air_f_epc.pbo - 66601
addons\dubbing_radio_f_data.pbo - 64768
addons\structures_f_ind.pbo - 66913
addons\sounds_f_epb.pbo - 62371
addons\characters_f_epb.pbo - 64123
addons\characters_f_beta.pbo - 66746
addons\missions_f_video.pbo - 52434
addons\missions_f_epc_video.pbo - 65113
addons\language_f_epc.pbo - 67088
addons\music_f_epc_music.pbo - 65137
addons\animals_f.pbo - 66711
addons\weapons_f_gamma.pbo - 66869
addons\missions_f_beta.pbo - 65240
addons\anims_f_data.pbo - 66935
addons\ui_f.pbo - 66973
addons\uifonts_f.pbo - 62497
addons\baseconfig_f.pbo - 43414
addons\soft_f.pbo - 66948
addons\anims_f.pbo - 66938
addons\modules_f_beta.pbo - 60170
addons\languagemissions_f_beta.pbo - 67088
addons\signs_f.pbo - 66591
addons\air_f_gamma.pbo - 66288
addons\missions_f_epc.pbo - 67183
addons\missions_f_gamma.pbo - 66712
addons\static_f.pbo - 66747
addons\rocks_f.pbo - 61888
addons\armor_f_epc.pbo - 66875
addons\music_f_epa.pbo - 62941
addons\languagemissions.pbo - unknown
addons\music_f.pbo - 62941
addons\structures_f_epc.pbo - 66913
addons\boat_f.pbo - 64140
addons\map_stratis.pbo - 66711
addons\data_f.pbo - 66711
addons\anims_f_epa.pbo - 63137
addons\languagemissions_f_gamma.pbo - 67088
addons\languagemissions_f.pbo - 67088
addons\map_altis_data_layers_01_01.pbo - 64204
addons\soft_f_gamma.pbo - 66935
addons\map_altis_scenes_f.pbo - 63714
addons\armor_f_gamma.pbo - 66875
addons\air_f_beta.pbo - 67043
addons\modules_f_data.pbo - 66622
addons\map_stratis_data_layers.pbo - 60227
addons\sounds_f.pbo - 64915
addons\language_f_beta.pbo - 67088
addons\characters_f_epa.pbo - 66989
addons\characters_f.pbo - 66872
addons\armor_f.pbo - 66875
addons\a3.pbo - unknown
addons\structures_f_epb.pbo - 66913

=======================

Unknown hit sound type in bin\config.bin/CfgSurfaces/GdtVRsurface01.soundHit
PhysX3 SDK Init started ...
PhysX3 SDK Init ended.
String STR_A3_dlc_loading_screen_text not found
Rpt messages map size: 183
Unexpected stringtable format inside <Text ID="STR_Gang_PriceTxt"><Original>
Rpt messages map size: 159
Following message reported 2x in the last 4216.8 seconds
String STR_A3_dlc_loading_screen_text not found
Unsupported language English in stringtable
Mission Altis_Life.Altis: Number of roles (94) is different from 'description.ext::Header::maxPlayer' (75)
Server error: Player without identity (WOF) Kenny (id 89439724)
String STR_A3_dlc_loading_screen_text not found
Rpt messages map size: 5
Following message reported 1x in the last 24.4 seconds
Unsupported language English in stringtable
Following message reported 1x in the last 24.4 seconds
Unexpected stringtable format inside <Text ID="STR_Gang_PriceTxt"><Original>
Following message reported 18x in the last 16.3 seconds
Server error: Player without identity (WOF) Kenny (id 89439724)
Strange convex component08 in a3\structures_f_epb\civ\garbage\garbagecontainer_closed_f.p3d:geometryView
Rpt messages map size: 2
Following message reported 1x in the last 16.5 seconds
String STR_A3_dlc_loading_screen_text not found
Strange convex component10 in a3\structures_f_epb\civ\garbage\garbagecontainer_closed_f.p3d:geometryView
Strange convex component11 in a3\structures_f_epb\civ\garbage\garbagecontainer_closed_f.p3d:geometryView
Strange convex component145 in a3\plants_f\tree\t_pinuss2s_b_f.p3d:geometryView
Strange convex component149 in a3\plants_f\tree\t_pinuss2s_b_f.p3d:geometryView
Strange convex component01 in a3\structures_f_epc\civ\accessories\beachbooth_01_f.p3d:geometryView
Strange convex component02 in a3\structures_f_epc\civ\accessories\beachbooth_01_f.p3d:geometryView
Strange convex component03 in a3\structures_f_epc\civ\accessories\beachbooth_01_f.p3d:geometryView
Strange convex component04 in a3\structures_f_epc\civ\accessories\beachbooth_01_f.p3d:geometryView
Error in expression <ext[format["Du hast %1 %2, Aufgehoben." _diff,_itemName],"PLAIN"];
};
};>
Rpt messages map size: 10
  Error position: <_diff,_itemName],"PLAIN"];
};
};>
  Error Missing ]
File mpmissions\Altis_Life.Altis\core\actions\fn_pickupItem.sqf, line 47
Attempt to override final function - bis_functions_list
Attempt to override final function - bis_functions_listpreinit
Attempt to override final function - bis_functions_listpostinit
Attempt to override final function - bis_functions_listrecompile
String STR_A3_dlc_loading_screen_text not found
Attempt to override final function - bis_fnc_missiontaskslocal
Attempt to override final function - bis_fnc_missionconversationslocal
Attempt to override final function - bis_fnc_missionflow
  bin\config.bin/CfgMovesMaleSdr/States/AmovPknlMevaSrasWpstDr.InterpolateTo: Bad move AmovPknlMsprSlowWpstDf_AmovPpneMstpSrasWpstDnon
  bin\config.bin/CfgMovesMaleSdr/States/AmovPknlMevaSrasWpstDl.InterpolateTo: Bad move AmovPknlMsprSlowWpstDf_AmovPpneMstpSrasWpstDnon
Warning: looped for animation: a3\anims_f\data\anim\sdr\idl\knl\stp\low\rfl\aidlpknlmstpslowwrfldnon_g01.rtm differs (looped now 1)! MoveName: aidlpknlmstpsraswrfldnon_g01
Warning: looped for animation: a3\anims_f\data\anim\sdr\idl\knl\stp\low\rfl\aidlpknlmstpslowwrfldnon_g02.rtm differs (looped now 1)! MoveName: aidlpknlmstpsraswrfldnon_g02
Animation o:\arma3\a3\anims_f_epa\data\anim\sdr\cts\hubcleaned\wave\hubwave_move1.rtm not found or empty
Rpt messages map size: 21
Animation o:\arma3\a3\anims_f_epa\data\anim\sdr\cts\hubcleaned\wave\hubwave_move2.rtm not found or empty
No default vars in bin\config.bin/CfgMovesMaleSdr/States/Acts_UnconsciousStandUp_part1.variantsPlayer
No default vars in bin\config.bin/CfgMovesMaleSdr/States/Acts_UnconsciousStandUp_part2.variantsPlayer
Animation a3\anims_f_epa\data\anim\sdr\cts\custom\b_hub01\acts_welcomeonhub03_aiwalk.rtm not found or empty
Animation a3\anims_f_epa\data\anim\sdr\cts\custom\b_hub01\acts_welcomeonhub03_playerwalk.rtm not found or empty
Animation a3\anims_f_epa\data\anim\sdr\cts\custom\b_hub02\acts_welcomeonhub04_aiwalk.rtm not found or empty
Animation a3\anims_f_epa\data\anim\sdr\cts\custom\b_hub02\acts_welcomeonhub04_playerwalk.rtm not found or empty
Animation a3\anims_f_epa\data\anim\sdr\cts\custom\b_hub03\acts_welcomeonhub05_aiwalk.rtm not found or empty
Animation a3\anims_f_epa\data\anim\sdr\cts\custom\b_hub03\acts_welcomeonhub05_playerwalk.rtm not found or empty
Animation a3\cargoposes_f\anim\kia_driver_truck_03.rtm not found or empty
Animation a3\air_f_beta\heli_attack_01\data\anim\pilot_heli_light_02_kia.rtm not found or empty
Animation a3\air_f_beta\heli_attack_01\data\anim\copilot_heli_light_02_kia.rtm not found or empty
No speaker given for Ed Santorum
No speaker given for Jake Thompson
No speaker given for Ed Davis
No speaker given for Keith Cooper
No speaker given for Montgomery Robinson
No speaker given for Alexander Martin
No speaker given for Owen Allen
No speaker given for John Baker
No speaker given for Thamos Tavoularis
Error a1 reading file 'config\\squads\wof\logo.paa'
Speaker Male07_F not found in CfgVoiceTypes
No speaker given for Homer Kammenou
No speaker given for Teshi Azikiwe
No speaker given for Vasilis Lias
No speaker given for Janos Lias
No speaker given for Kyriakos Mastori
No speaker given for Vasilis Manelia
No speaker given for Lazaros Moritiadou
No speaker given for Michalis Isofidou
No speaker given for Lafteris Athanasiadis
No speaker given for Andreas Papadopoulos
No speaker given for Vasilis Stanis
No speaker given for Dimitris Oikonomopulu
No speaker given for Takis Haikias
No speaker given for Giorgos Nicolau
No speaker given for Dimitiros Karapataki
No speaker given for Adam Dimitriadis
No speaker given for Gregor Ioannou
No speaker given for Oringo Ekwensi
No speaker given for Janos Lara
No speaker given for Achilleas Nicolau
No speaker given for Vangelis Moritiadou
No speaker given for Sotridis Mylonaki
No speaker given for Gregor Petridis
No speaker given for Giorgos Karmanlis
No speaker given for Panagiotis Tavoularis
No speaker given for Nikos Ellinaki
No speaker given for Vasilis Manetta
No speaker given for Militiadis Malas
No speaker given for Panagiotis Karmanlis
No speaker given for Nikos Dimitriadis
No speaker given for Michalis Ellinaki
No speaker given for Giorgos Athanasiadis
No speaker given for Angelos Athanasiadis
No speaker given for Stefanos Tavoularis
No speaker given for Lafteris Lara
No speaker given for Evangelos Lagos
No speaker given for Shaan Igwe
No speaker given for Janos Baros
No speaker given for Takis Dimitriadis
No speaker given for Sotiris Papadopoulos
No speaker given for Thamos Manelia
No speaker given for Joseph Bennett
No speaker given for Panos Mylonaki
No speaker given for Angelos Petridis
No speaker given for Hamidi Okonkwo
No speaker given for Pan Han
soldier[B_diver_F]:Some of magazines weren't stored in soldier Vest or Uniform?
No speaker given for Noah Clarke
No speaker given for Gillis Lee
No speaker given for Harvey Robertson
No speaker given for Dimitiros Stanis
No speaker given for Ali Ngige
No speaker given for Thamos Stanis
No speaker given for Harrison Wright
No speaker given for Sean Anderson
No speaker given for Giourkas Moritiadou
No speaker given for Stefanos Strambopoulos
No speaker given for Giorgos Verga
No speaker given for Mao Hwang
No speaker given for Aris Dimitriadis
No speaker given for Sotiris Tavoularis
No speaker given for Pan Ng
No speaker given for Militiadis Xenakis
No speaker given for Giorgos Mylonaki
No speaker given for Evangelos Gikas
No speaker given for Vasilis Lara
No speaker given for Vyron Constantinou
No speaker given for Angelos Karagianni
No speaker given for Vangelis Liosi
No speaker given for Dimitiros Lara
No speaker given for Gillis Wilson
No speaker given for Harrison Ryan
No speaker given for Biton Karagianni
No speaker given for Evripidis Haikias
No speaker given for Jack Morgan
No speaker given for Stergos Costas
No speaker given for Nikolaos Moritiadou
No speaker given for Evripidis Constantinou
No speaker given for Ma Tsai
No speaker given for Militidas Nicolau
No speaker given for Gerasimos Karapataki
No speaker given for Vasilis Savalas
No speaker given for Michalis Moritiadou
No speaker given for Panos Cosmos
No speaker given for Thomas Williams
No speaker given for Lee Smith
No speaker given for Homer Spiros
No speaker given for Conor Abbey
No speaker given for Andreas Savalas
No speaker given for Militidas Papadopoulos
No speaker given for William Stewart
Rpt messages map size: 131
Following message reported 1x in the last 18.8 seconds
  Error position: <_diff,_itemName],"PLAIN"];
};
};>
Following message reported 1x in the last 18.8 seconds
Error in expression <ext[format["Du hast %1 %2, Aufgehoben." _diff,_itemName],"PLAIN"];
};
};>
Following message reported 1x in the last 18.8 seconds
File mpmissions\Altis_Life.Altis\core\actions\fn_pickupItem.sqf, line 47
Following message reported 1x in the last 18.8 seconds
  Error Missing ]
No speaker given for Sotiris Baros
No speaker given for Dumi Egwu
No speaker given for Sotiris Dimitriadis
No speaker given for Argyris Verga
No speaker given for Alexandros Dimitriadis
No speaker given for Orestis Elias
No speaker given for Mimis Nicolau
No speaker given for Stefanos Spiros
No speaker given for Vasilis Papadopoulos
No speaker given for Stergos Constantinou
No speaker given for Militiadis Karmanlis
No speaker given for Donnan Davis
No speaker given for George Taylor
No speaker given for Giorgos Lagos
No speaker given for Stergos Melidoni
No speaker given for Takis Strambopoulos
No speaker given for Cheng Wu
No speaker given for Ma Ximi
No speaker given for Dimitris Mastori
No speaker given for Arion Verga
No speaker given for Achilleas Vidales
No speaker given for Evangelos Mastori
No speaker given for Kostakis Kanelloupou
No speaker given for Achilleas Haikias
No speaker given for Dimitiros Savalas
No speaker given for Dimitiros Petridis
No speaker given for Fotini Dimitriadis
No speaker given for Chrystophoros Mylonaki
No speaker given for Vangelis Haikias
No speaker given for Liao Wu
No speaker given for Sotiris Melidoni
No speaker given for Luo Lee
No speaker given for Gao Ryu
No speaker given for Xie Hwang
No speaker given for Bao Zao
No speaker given for Deng Liou
No speaker given for Kostakis Vidales
No speaker given for Janos Stanis
No speaker given for Kostas Isofidou
No speaker given for Vasilis Oikonomopulu
No speaker given for Evangelos Strambopoulos
Strange convex component53 in a3\structures_f_epb\civ\playground\slidecastle_f.p3d:geometryFire
Strange convex component27 in a3\structures_f_epb\civ\playground\slidecastle_f.p3d:geometryView
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
String STR_A3_dlc_loading_screen_text not found
c:\w\c_branch\poseidon\futura_stable_profile\lib\network\networkserver.cpp NetworkServer::OnClientStateChanged:NOT IMPLEMENTED - briefing!
"Market prices generated!"
"Initializing event stuff ..."
"... done"
Warning Message: Script core\fsm\server.fsm not found
"Server FSM executed"
Error in expression <"Initializing event stuff ...";
[] call life_fnc_eventServerInit;
diag_log "... >
  Error position: <life_fnc_eventServerInit;
diag_log "... >
  Error Undefined variable in expression: life_fnc_eventserverinit
File mpmissions\Altis_Life.Altis\init.sqf, line 43
"Server Time: Jip Var set and synced"
Error: Object(3 : 4) not found
Rpt messages map size: 172
Following message reported 1x in the last 30.0 seconds
No speaker given for Ma Tsai
Following message reported 8x in the last 24.3 seconds
LODShape::AddLoadHandler: Handler not present in shape [a3\weapons_f\empty.p3d]
Following message reported 1x in the last 31.9 seconds
soldier[B_diver_F]:Some of magazines weren't stored in soldier Vest or Uniform?
Following message reported 2x in the last 34.1 seconds
No speaker given for Giorgos Nicolau
(6448 [receivedMagazine]): Network sync error - NMTFireWeapon
Rpt messages map size: 2
Following message reported 1x in the last 13.7 seconds
Error: Object(3 : 4) not found
"Market prices updated! [["goldu",400,0,0],["oilp",300,0,0],["ironu",200,0,0],["diamondu",1200,0,0],["copperu",200,0,0],["schmuck",1950,0,0],["brilliant",1750,0,0],["benzin",750,0,0],["salt_r",300,0,0],["glass",400,0,0],["cement",150,0,0],["kupferkabel",450,0,0],["werkzeug",450,0,0],["turtle",25018,18,18],["marijuana",130,5,5],["cocainep",883,8,8],["heroinp",739,-11,-11],["methu",580,5,5],["methb",1280,5,5]]"
Rpt messages map size: 2

This post has been edited 1 times, last edit by "paddy458" (May 24th 2014, 2:23pm)


x_Heis3nberg_x

User / Kunde

Posts: 26

  • Send private message

47

Saturday, May 24th 2014, 2:07pm

hmm verkaufen kann ich alles ganz normal hab nur den bug das es halt teilweise doppelt in der Liste steht

paddy458

User / Kunde

Posts: 24

  • Send private message

48

Saturday, May 24th 2014, 2:15pm

Bekommst du auch Geld wenn du es Verkauft hast ?

x_Heis3nberg_x

User / Kunde

Posts: 26

  • Send private message

49

Saturday, May 24th 2014, 2:18pm

hab ich selber jetzt garnicht aufgepasst, aber grad nen Kumpel gefragt der auch auf meinen Server spielt und er hat vorher Öl gemacht und hat auch das Geld bekommen.

paddy458

User / Kunde

Posts: 24

  • Send private message

50

Saturday, May 24th 2014, 2:22pm

hab jetzt mal deine virt_sell.sqf übernommen damit funktionierts bei mir komplett

paaddee

User / Kunde

Posts: 2

  • Send private message

51

Saturday, May 24th 2014, 5:12pm

mhh habe eine ganz merkwürdige fehler meldung

"" ErrorMessage: Include file mpmissions\__cur_mp.altis\dialog\extended_admin_menu.hpp not found. ""

habe es so gemaccht wie hier beschieben ist.

sammy127388

User / Kunde

Posts: 29

  • Send private message

52

Saturday, May 24th 2014, 9:05pm

Problem mit dem Markt Skript

Hallo
habe alles eingefügt nur jetzt kommt diese error meldung und ich weiß nicht was in der zeile 31 Flasch sein sollte (zeile 31: foreach life_market_resources;)
habt einer von euch eine ahnung wieso bzw was daran falsch ist??


fn_refreshMarketView.sqf

Spoiler Spoiler

/*

Refreshes current dialog

*/

private["_display", "_selectedindex", "_index", "_shortname"];

disableSerialization;
if(!dialog) exitWith {hint "Could not find dialog.";}; //cancel if no dlg

_display = findDisplay 39500;

if(isNull _display) exitWith {hint "Dialog not open!"; };

//Selected index
_selectedindex = lbCurSel 1500;

//If selected index is -1, set it to 0 (triggers refresh)
if(_selectedindex == -1) then
{
lbSetCurSel [1500, 0];

lbClear 1500;

//Recreate listbox items
{
_index = lbAdd [1500, [ [_x select 0, 0] call life_fnc_varHandle ] call life_fnc_varToStr ];
lbSetData [1500, _index, _x select 0];
}
foreach life_market_resources;
}
//Otherwise set data to selected entry
else
{
_shortname = lbData [1500, _selectedindex];

ctrlSetText [1000, lbText [1500, _selectedindex] ]; //Set name

{
if((_x select 0) == _shortname) exitWith
{
ctrlSetText [1001, format["$%1", [_x select 1] call life_fnc_numberText ] ];

//Trend Global
ctrlSetText [1004, format["$%1", [_x select 2] call life_fnc_numberText ] ];

if((_x select 2) >= 0) then
{
ctrlSetText [1200, "icons\trendup.paa"];
}
else
{
ctrlSetText [1200, "icons\trenddown.paa"];
};

//Trend local
ctrlSetText [1005, format["$%1", [_x select 3] call life_fnc_numberText ] ];

if((_x select 3) >= 0) then
{
ctrlSetText [1201, "icons\trendup.paa"];
}
else
{
ctrlSetText [1201, "icons\trenddown.paa"];
};
};
}
foreach life_market_prices;};



Mfg
Sammy

VoLTriiX

User / Kunde

Posts: 217

  • Send private message

53

Saturday, May 24th 2014, 9:59pm

bei mir funktioniert alles einwandfrei weiß nicht was ihr habt :D


x_Heis3nberg_x

User / Kunde

Posts: 26

  • Send private message

54

Saturday, May 24th 2014, 10:14pm

Bei mir bringt er immer diese Meldung im RPT log

Quoted

"Market prices generated!"
"Initializing event stuff ..."
"... done"
"Server FSM executed"
Error in expression <"Initializing event stuff ...";
[] call life_fnc_eventServerInit;
diag_log "... >
Error position: <life_fnc_eventServerInit;
diag_log "... >
Error Undefined variable in expression: life_fnc_eventserverinit
File mpmissions\__cur_mp.Altis\init.sqf, line 62
kann es sein das da ne datei abgeht?

Hab mal meinen kompletten Log als txt angehängt
x_Heis3nberg_x has attached the following file:
  • rpt.txt (61.17 kB - 9 times downloaded - latest: Apr 21st 2015, 11:25pm)

Nexarion

User / Kunde

  • "Nexarion" started this thread

Posts: 247

Thanks: 21

  • Send private message

55

Saturday, May 24th 2014, 11:31pm

Das einzige, was durch das Marktsystem in die Init kommt ist

Spoiler Spoiler

Source code

1
2
3
4
5
6
7
8
9
if(isDedicated && isNil("life_market_prices")) then
{
	[] call life_fnc_marketconfiguration;
	diag_log "Market prices generated!";
	
	"life_market_prices" addPublicVariableEventHandler
	{
		diag_log format["Market prices updated! %1", _this select 1];
	};


Und da steht nichts von "life_fnc_eventserverinit". Das muss etwas anderem kommen, was du eingebaut hast.

VoLTriiX

User / Kunde

Posts: 217

  • Send private message

56

Sunday, May 25th 2014, 4:48am

nicht vergessen !!!!!

in configuration.sqf

am ende das einfügen


[] call life_fnc_marketconfiguration;


sammy127388

User / Kunde

Posts: 29

  • Send private message

57

Sunday, May 25th 2014, 11:38am

ok danke das hat geholfen
Nur wird jetzt noch alles doppelt dargestellt obwohl in der config file nichts doppelt ist

fn_marketconfiguration.sqf

Spoiler Spoiler

Spoiler Spoiler

/*


Main configuration for non-persistent market system
Will need triggers to hook into vanilla pricing methods

*/


////////////MAIN CONFIG


life_market_resources = [


//Schema: SHORTNAME, DEFAULT-WERT, MIN-WERT, MAX-WERT, VERÄNDERUNG BEI AKTION [VERKAUF Multipliziert mit 1, Kauf multipliziert um -1
//["gold", 1500, 450, 2300, 8, 5],

["oilp", 2500, 0, 2940, 3, 1,
[
["diamondc",1],
["iron_r",1],
["copper_r",1],
["salt_r",1],
["cement",1],
["glass",1]
]
],

["iron_r", 1450, 0, 1650, 3, 1,
[
["diamondc",1],
["oilp",1],
["copper_r",1],
["salt_r",1],
["cement",1],
["glass",1]
]
],

["diamondc", 3750, 0, 4500, 5, 2,
[
["oilp",1],
["iron_r",1],
["copper_r",1],
["salt_r",1],
["cement",1],
["glass",1]
]
],

["copper_r", 500, 0, 750, 2, 1,
[
["diamondc",1],
["oilp",1],
["iron_r",1],
["salt_r",1],
["cement",1],
["glass",1]
]
],

["salt_r", 1750, 0, 1950, 2, 1,
[
["diamondc",1],
["oilp",1],
["iron_r",1],
["copper_r",1],
["cement",1],
["glass",1]
]
],

["glass", 1450, 0, 1800, 2, 1,
[
["diamondc",1],
["oilp",1],
["iron_r",1],
["copper_r",1],
["salt_r",1],
["cement",1]
]
],

["cement", 1350, 0, 2000, 2, 1,
[
["diamondc",1],
["oilp",1],
["iron_r",1],
["copper_r",1],
["salt_r",1],
["glass",1]
]
],

///////////////////////////////////

["turtle", 10000, 0, 15000, 20, 18,
[
["marijuana",1],
["cocainep",1],
["heroinp",1]
]
],

["marijuana", 4000, 0, 6900, 7, 5,
[
["turtle",1],
["cocainep",1],
["heroinp",1]
]
],

["cocainep", 4000, 0, 9300, 11, 8,
[
["marijuana",1],
["turtle",1],
["heroinp",1]
]
],

["heroinp", 4300, 0, 10200, 11, 8,
[
["marijuana",1],
["cocainep",1],
["turtle",1]
]
]
];
publicVariable "life_market_resources";


////////////GENERATED CONFIG
//life_market_changes = []; //[SHORTNAME,SELL,BUY]
life_market_shortnames = []; //shortnames if in market
//life_market_clampprices = []; //[SHORTNAME,MIN,MAX]


{
life_market_shortnames set [count life_market_shortnames, _x select 0];
//life_market_clampprices set [count life_market_clampprices, [_x select 0, _x select 2, _x select 3] ];
//life_market_changes set [count life_market_changes, [_x select 0, _x select 4, _x select 5] ];
}
foreach life_market_resources;


publicVariable "life_market_shortnames";
//publicVariable "life_market_clampprices";


////////////SYNC PRICES WITH SERVER IF EMPTY
//if(isNil("life_market_prices")) then
//{
life_market_prices = []; //[SHORTNAME,CURRENTPRICE,DIRECTIONGLOBAL,DIRECTIONLOCAL]
{

life_market_prices set [count life_market_prices, [_x select 0, _x select 1, 0, 0] ];
}
foreach life_market_resources;

publicVariable "life_market_prices";

systemChat "Market Prices Generated!";
//};

Edit:
Neues problem seit dem markt system kann man sich nichts mehr am markt kaufen also kein essen trinken nichts

This post has been edited 2 times, last edit by "sammy127388" (May 25th 2014, 2:01pm)


AltisLifeGermany

User / Kunde

  • "AltisLifeGermany" is male

Posts: 24

  • Send private message

58

Sunday, May 25th 2014, 2:17pm

Fehler

Bei mir kommt ein Fehler, obwohl ich alles nach Anleitung gemacht habe.
Fehler: class ´mpmissions/__CUR_MP.Altis/descripton.ext/CfgFunktions/Market/openMarketView/´is not defined

Ich versteh diesen Fehler nicht, wenn man auf den Server kommt spammt der einen voll.

Wenn jemand ne Antwort hat wäre es nett, wenn er sich melden würde.

LG Flolomato

sniper99

User / Kunde

Posts: 6

  • Send private message

59

Sunday, May 25th 2014, 9:04pm

Market wird angezeigt und alles. nur wenn ich was verkaufen will kommt immer die meldung ich hätte nicht genug zum verkaufen obwohl alles voll ist.
woran kann das denn liegen?
Und kaufen und verkaufen geht gar nicht mehr bim Supermarkt ect.

Cr41s3

User / Kunde

Posts: 7

  • Send private message

60

Sunday, May 25th 2014, 9:09pm

Könnt ihr nicht manche Sachen mal den Leuten überlassen, die selber was schaffen?

Jetzt hat auch jeder 08/15 Server das Markt System -.-

Bitte besucht unser neues Forum unter https://forum.nitrado.net| Please visit our new Forum at https://forum.nitrado.net