Epoch SQL calls, help.

How do I check via script, how to check to see if someone has something in the database? This is a check to see if they have something and if so, don't give them another.

Code:
_key = format["CHILD:501:dayz_epoch.object_data:[""CharacterID""]:[[""CharacterID"",""="",""%1""]]:[0,8]:",_playerID];
_result = _key call server_hiveReadWrite;
diag_log format ["_result = %1, %2",_result, typeName _result];

I know I can do it via a 501 call... however, I need the script to give me the data of a row that matches two criteria. How do I go about that? IE:

Where classname = velkaGaraz and the current CharacterID that's being called. They only show an example of a single call. I wouldn't know how to approach via a 501 call, this is new territory for me.
 
Back
Top