Need help random load outs

AsianKid

Well-Known Member
I am running Epoch and I want random load outs on my server.
Not sure how to do this.
I have this but need to add New Player to my DB not sure how.

I have this for my Player_login

Code:
diag_log("Check");
diag_log("Inventory Count: " + str(count _inventory));
if (count _inventory == 1) then {
diag_log("Inventory Select 0: " + str((_inventory select 0)));
if ( (_inventory select 0) == "New Player" ) then {
_chance = round(random 100);
diag_log ("Random chance " + str(_chance));
switch (true) do {
case (_chance <= 40):
{
_inventory = [["ItemHatchet_DZE","ItemFlashlight"], ["ItemPainkiller","ItemBandage","ItemBandage","ItemMorphine"]];
_backpack = ["",[[],[]],[[],[]]];
};
case (_chance <= 30):
{
_inventory = [["MeleeMachete","ItemFlashlight"], ["ItemPainkiller","ItemBandage","ItemBandage","ItemMorphine"]];
_backpack = ["DZ_Patrol_Pack_EP1",[[],[]],[[],[]]];
};
case (_chance <= 20):
{
_inventory = [["MeleeMachete","ItemFlashlight","ItemMap"], ["ItemPainkiller","ItemBandage","ItemBandage","ItemMorphine"]];
_backpack = ["DZ_Assault_Pack_EP1",[[],[]],[["FoodCanFrankBeans","ItemSodaPepsi"],[1,1]]];
};
case (_chance <= 10):
{
_inventory = [["Makarov","ItemMatchbox","ItemCompass","ItemMap","ItemWatch","ItemFlashlight"], ["8Rnd_9x18_Makarov","ItemPainkiller","ItemBandage","ItemBandage","ItemMorphine"]];
_backpack = ["DZ_TerminalPack_EP1",[[],[]],[["FoodCanFrankBeans","ItemSodaCoke"],[1,2]]];
};
case (_chance <= 5):
{
_inventory = [["LeeEnfield","ItemCompass","ItemMap","ItemWatch","ItemFlashlight"], ["10x_303","ItemPainkiller","ItemBandage","ItemBandage","ItemMorphine"]];
_backpack = ["DZ_ALICE_Pack_EP1",[[],[]],[["FoodSteakCooked","ItemSodaCoke"],[2,2]]];
};
default
{
_inventory = [["ItemHatchet_DZE","ItemFlashlight"], ["ItemPainkiller","ItemBandage","ItemBandage","ItemMorphine"]];
_backpack = ["",[[],[]],[[],[]]];
};
};
};
};
//Variables
_survival =        [0,0,0];
_isInfected =   0;
_model =        "";

Can I replace New Player with PVDZE_plr_LoginRecord?
 
Back
Top