mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 01:30:26 +03:00
Organize files a bit and removed non source pbo's
This commit is contained in:
21
SQF/dayz_server/compile/server_tradeObject.sqf
Normal file
21
SQF/dayz_server/compile/server_tradeObject.sqf
Normal file
@@ -0,0 +1,21 @@
|
||||
private ["_character","_traderid","_buyorsell","_data","_result","_key","_outcome","_clientID"];
|
||||
|
||||
_character = _this select 0;
|
||||
_traderid = _this select 1;
|
||||
_buyorsell = _this select 2;
|
||||
_clientID = owner _character;
|
||||
|
||||
diag_log format["TRADE: Trade Request by ClientID: %1 Character: %2 TraderID: %3 BuyOrSell: %4", _clientID, _character,_traderid,_buyorsell];
|
||||
|
||||
//Send request
|
||||
_key = format["CHILD:398:%1:%2:",_traderid,_buyorsell];
|
||||
|
||||
_data = "HiveEXT" callExtension _key;
|
||||
_result = call compile format ["%1",_data];
|
||||
// diag_log ("TRADE: RES: "+ str(_result));
|
||||
_outcome = _result select 0;
|
||||
|
||||
dayzTradeResult = _outcome;
|
||||
if(!isNull _character) then {
|
||||
_clientID publicVariableClient "dayzTradeResult";
|
||||
};
|
||||
Reference in New Issue
Block a user