Sometimes you can't sell an item in the trader dialog, its not dependent on the item but its slot position and that position can be random also.
I have narrowed the problem to ExileClient_gui_traderDialog_updateInventoryListBox.sqf ~ lines 100-110
if (_salesPrice > 0) then
{
//this the error? should it be _indexEntryIndex instead of _salesPrice
//_inventoryListBox lbSetValue [_salesPrice, -1];
_inventoryListBox lbSetValue [_indexEntryIndex, _salesPrice];
_inventoryListBox lbSetTextRight [_indexEntryIndex, format["%1", _salesPrice]];
_inventoryListBox lbSetPictureRight [_indexEntryIndex, "exile_client\texture\ui\poptab_trader_ca.paa"];
}
Making this change had resolved that intermittent bug I was getting. I could be wrong as i've just started scripting ("though not stranger to programming") but I assume you wanted to set the index value to saleprice rather than set index reference by saleprice as -1;
Edited by FordDefect Clarified the post title to prevent further confusion.
Sometimes you can't sell an item in the trader dialog, its not dependent on the item but its slot position and that position can be random also.
I have narrowed the problem to ExileClient_gui_traderDialog_updateInventoryListBox.sqf ~ lines 100-110
Making this change had resolved that intermittent bug I was getting. I could be wrong as i've just started scripting ("though not stranger to programming") but I assume you wanted to set the index value to saleprice rather than set index reference by saleprice as -1;
Clarified the post title to prevent further confusion.
Share this post
Link to post
Share on other sites