Advanced trading not working with single currency

Waylon194

Member
Hey guys,

I have single currency installed and advanced trading, but when I sell something using advanced trading, I dont get the money.

I tried contacting ZUPA, the maker of the scripts but he does not do arma 2/arma 3 scripting anymore so he didn't give me any help.

Is there anyone that can fix this bug ?

In my config file of advanced trading I set singlecurrency to "true" and I made sure the name of my single currency was the same as in my advanced trading.

Thanks :D
 
and you posted your RPT where? All the anwers are in there...

Otherwise, my "solution" to your problem would be this:
  1. Do not add garbage to Epoch, it sucks enough as it is
  2. Do not use advanced trading, trader break the idea of a survival game
  3. Do not use coins, in an apocalyptic world the currency would have no value as the bank behind it would have collcapsed.
SO either choose option 1,2,3 or post your RPT and we can fix the part where your money set incorrectly and the RPT will say its a null value
 
and you posted your RPT where? All the anwers are in there...

Otherwise, my "solution" to your problem would be this:
  1. Do not add garbage to Epoch, it sucks enough as it is
  2. Do not use advanced trading, trader break the idea of a survival game
  3. Do not use coins, in an apocalyptic world the currency would have no value as the bank behind it would have collcapsed.
SO either choose option 1,2,3 or post your RPT and we can fix the part where your money set incorrectly and the RPT will say its a null value

1 I prefer Origins over Epoch, but since it is pretty dead ATM I dont want to make a server for it.
2 I do not want to walk to my truck 60x to fill my backpack with guns and sell them 1 by 1, in "real-life" you would toss the guns on a table and you are done, but in this game, the traders can only take 1 at a time.
3 "banks" are not in my server, you can only "bank" (store) money in safes, I removed all of the ATM's around the map.

RPT:
http://pastebin.com/Y0fhM6AS

I tried to sell 5 AK's at the trader, it says that I have sold it (which I have since I dont have them in my backpack anymore) but I did not get my $$$.

BTW: will include RPT next time :p
 
What valute (courrency) in config zupa traiding? Default var not work with coins

Advanced trading config:

Z_AT_FolderLocation = 'zupa\advancedTrading';
Z_VehicleDistance = 30;
Z_SingleCurrency = true;
Z_AllowTakingMoneyFromBackpack = true;
Z_AllowTakingMoneyFromVehicle = true;
Z_MoneyVariable = "Euro";

SingleCurrency config:


CurrencyName = "Euro"; // name of your currency
DZE_ATM = ["Laptop_EP1"]; // items,objects classnames where u can bank.
LimitOnBank = true; // false = no limits, true = banks are limited on the value below
MaxBankMoney = 5000000; // limit on bank for normal players
DonatorListZupa = ["111111111"]; // bigger bank PUID
MaxDonatorBankMoney = 50000000; // Bank size donators
 
Sorry i dont know banks, this shit idea for dayz, u need set variable current that is in configs gold coin system

bank currensy var == gold coin system currensy var
In default and my gold coin system var
CurrencyName = "Coins";

sorry i bad know english..
 
Last edited:
Sorry i dont know banks, this shit idea for dayz, u need set variable current that is in configs gold coin system

bank currensy var == gold coin system currensy var

sorry i bad know english..


Can you give an example ?

I changed Euro to Coins, I will let you know if it works :D
 
CurrencyName = "Coins";
This in my and default 3.0 gold coin system, try change you euro var to coins
 
Something showed up in the RPT:

1:07:12 "Skipping Null Object: <NULL-object>"
1:07:13 "Skipping Null Object: <NULL-object>"
1:07:17 "Skipping Null Object: <NULL-object>"
1:07:23 "DELETE: Waylon194 Deleted by UID: 0"
1:08:27 "EPOCH SERVERTRADE: Player: Waylon194 (76561198095897644) sold a in/at trader city Stary for 1x Coins"
1:08:27 Error in expression < for %5",_name, (getPlayerUID _player), _classname, _traderCity, _price];
};

if>
1:08:27 Error position: <_classname, _traderCity, _price];
};

if>
1:08:27 Error Undefined variable in expression: _classname
1:08:27 File z\addons\dayz_server\compile\server_tradeObject.sqf, line 17
1:09:03 "CLEANUP: INITIALIZING CLEANUP SCRIPT"


File:
z\addons\dayz_server\compile\server_tradeObject.sqf

private ["_player","_name","_traderid","_buyorsell","_data","_result","_key","_outcome","_clientID"];

_player = _this select 0;
_traderID = _this select 1;
_buyorsell = _this select 2; //0 > Buy // 1 > Sell
_classname = _this select 3;
_traderCity = _this select 4;
_currency = _this select 5;
_qty = _this select 6;
_clientID = owner _player;
_price = format ["%2x %1",_currency,_qty];
_name = if (alive _player) then { name _player; } else { "Dead Player"; };

if (_buyorsell == 0) then { //Buy
diag_log format["EPOCH SERVERTRADE: Player: %1 (%2) bought a %3 in/at %4 for %5", _name, (getPlayerUID _player), _classname, _traderCity, _price];
} else { //SELL
diag_log format["EPOCH SERVERTRADE: Player: %1 (%2) sold a %3 in/at %4 for %5",_name, (getPlayerUID _player), _classname, _traderCity, _price];
};

if (DZE_ConfigTrader) then {
_outcome = "PASS";
} else {
//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 _player) then {
_clientID publicVariableClient "dayzTradeResult";
};
 
Problem in var _classname what you item selling? Item dont writing to logs, see me you price config fot this item
 
Problem in var _classname what you item selling? Item dont writing to logs, see me you price config fot this item

I tried selling a 5 AK47's from my backpack


My price config:
//Trader bash I think
class Category_602 {
class G36A_camo {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class G36C {
type = "trade_weapons";
buy[] ={4000,"Coins"};
sell[] ={2000,"Coins"};
};
class G36C_camo {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class G36K_camo {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class M16A2 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class M16A2GL {
type = "trade_weapons";
buy[] ={4000,"Coins"};
sell[] ={2000,"Coins"};
};
class M16A4_ACG {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class M4A1 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class M4A1_HWS_GL_camo {
type = "trade_weapons";
buy[] ={4000,"Coins"};
sell[] ={2000,"Coins"};
};
class M4A3_CCO_EP1 {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class M4A1_Aim {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class Sa58P_EP1 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class Sa58V_CCO_EP1 {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class Sa58V_EP1 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class Sa58V_RCO_EP1 {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class AKS_74_kobra {
type = "trade_weapons";
buy[] ={4000,"Coins"};
sell[] ={2000,"Coins"};
};
class AKS_74_U {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class AK_47_M {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class AK_74 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class FN_FAL {
type = "trade_weapons";
buy[] ={10000,"Coins"};
sell[] ={5000,"Coins"};
};
class BAF_L85A2_RIS_SUSAT {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class BAF_L85A2_RIS_Holo {
type = "trade_weapons";
buy[] ={9000,"Coins"};
sell[] ={4500,"Coins"};
};
};

//Stary weapon trader (I am trying to sell here)
class Category_637 {
class G36A_camo {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class G36C {
type = "trade_weapons";
buy[] ={4000,"Coins"};
sell[] ={2000,"Coins"};
};
class G36C_camo {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class G36K_camo {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class M16A2 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class M16A2GL {
type = "trade_weapons";
buy[] ={4000,"Coins"};
sell[] ={2000,"Coins"};
};
class M16A4_ACG {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class M4A1 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class M4A1_HWS_GL_camo {
type = "trade_weapons";
buy[] ={4000,"Coins"};
sell[] ={2000,"Coins"};
};
class M4A3_CCO_EP1 {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class M4A1_Aim {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class Sa58P_EP1 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class Sa58V_CCO_EP1 {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class Sa58V_EP1 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class Sa58V_RCO_EP1 {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class AKS_74_kobra {
type = "trade_weapons";
buy[] ={4000,"Coins"};
sell[] ={2000,"Coins"};
};
class AKS_74_U {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class AK_47_M {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class AK_74 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class FN_FAL {
type = "trade_weapons";
buy[] ={10000,"Coins"};
sell[] ={5000,"Coins"};
};
class BAF_L85A2_RIS_SUSAT {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class BAF_L85A2_RIS_Holo {
type = "trade_weapons";
buy[] ={9000,"Coins"};
sell[] ={4500,"Coins"};
};

};
 
I tried selling a 5 AK47's from my backpack


My price config:
//Trader bash I think
class Category_602 {
class G36A_camo {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class G36C {
type = "trade_weapons";
buy[] ={4000,"Coins"};
sell[] ={2000,"Coins"};
};
class G36C_camo {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class G36K_camo {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class M16A2 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class M16A2GL {
type = "trade_weapons";
buy[] ={4000,"Coins"};
sell[] ={2000,"Coins"};
};
class M16A4_ACG {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class M4A1 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class M4A1_HWS_GL_camo {
type = "trade_weapons";
buy[] ={4000,"Coins"};
sell[] ={2000,"Coins"};
};
class M4A3_CCO_EP1 {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class M4A1_Aim {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class Sa58P_EP1 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class Sa58V_CCO_EP1 {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class Sa58V_EP1 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class Sa58V_RCO_EP1 {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class AKS_74_kobra {
type = "trade_weapons";
buy[] ={4000,"Coins"};
sell[] ={2000,"Coins"};
};
class AKS_74_U {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class AK_47_M {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class AK_74 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class FN_FAL {
type = "trade_weapons";
buy[] ={10000,"Coins"};
sell[] ={5000,"Coins"};
};
class BAF_L85A2_RIS_SUSAT {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class BAF_L85A2_RIS_Holo {
type = "trade_weapons";
buy[] ={9000,"Coins"};
sell[] ={4500,"Coins"};
};
};

//Stary weapon trader (I am trying to sell here)
class Category_637 {
class G36A_camo {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class G36C {
type = "trade_weapons";
buy[] ={4000,"Coins"};
sell[] ={2000,"Coins"};
};
class G36C_camo {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class G36K_camo {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class M16A2 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class M16A2GL {
type = "trade_weapons";
buy[] ={4000,"Coins"};
sell[] ={2000,"Coins"};
};
class M16A4_ACG {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class M4A1 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class M4A1_HWS_GL_camo {
type = "trade_weapons";
buy[] ={4000,"Coins"};
sell[] ={2000,"Coins"};
};
class M4A3_CCO_EP1 {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class M4A1_Aim {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class Sa58P_EP1 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class Sa58V_CCO_EP1 {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class Sa58V_EP1 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class Sa58V_RCO_EP1 {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class AKS_74_kobra {
type = "trade_weapons";
buy[] ={4000,"Coins"};
sell[] ={2000,"Coins"};
};
class AKS_74_U {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class AK_47_M {
type = "trade_weapons";
buy[] ={8000,"Coins"};
sell[] ={4000,"Coins"};
};
class AK_74 {
type = "trade_weapons";
buy[] ={2000,"Coins"};
sell[] ={1000,"Coins"};
};
class FN_FAL {
type = "trade_weapons";
buy[] ={10000,"Coins"};
sell[] ={5000,"Coins"};
};
class BAF_L85A2_RIS_SUSAT {
type = "trade_weapons";
buy[] ={6000,"Coins"};
sell[] ={3000,"Coins"};
};
class BAF_L85A2_RIS_Holo {
type = "trade_weapons";
buy[] ={9000,"Coins"};
sell[] ={4500,"Coins"};
};

};

If I sell using the normal trader I get the money, but when I use advanced trading I don't get my money.
 
You need found and see script who send 4 argument (_classname) to script where you have error in sender script need set diag_log and test sended var, sorry i writed with phone

Maybe you step by step reistalling this scrpts, maybe you have error when installing?
 
You need found and see script who send 4 argument (_classname) to script where you have error in sender script need set diag_log and test sended var, sorry i writed with phone

Can you give me a example ?

I am a bit new to ArmA 2/DayZ Epoch scripting

I can send my files if you need them...
 
Back
Top