Is it possable to add the following parameters to the data config .... Like Extraloot has just to cut down on plugins ? ShortName...Chance...Minimal amount......Maximal Amount......Skin Id.....Display Name...... in the custom loot section ?
"DisplayClan (display clan tag rather than player name)": true,
"UseKits (use custom kits plugin)": false,
"Kits (custom kits)": [],
"NpcName (custom name)": "Easy Guard",
"NpcCount (number of guards to spawn)": 6,
"NpcHealth (health guards spawn with)": 100.0,
"NpcRoamRadius (npc roam radius)": 10.0,
"NpcLookRadius (npc look radius)": 100.0,
"NpcAttackRadius (npc attack radius)": 150.0,
"CargoSpeed (time cargo plane will drop in seconds)": 120.0,
"MarkerColor (marker color)": "#32a844",
"MarkerBorderColor (marker border color)": "#000000",
"MarkerOpacity (marker opacity)": 0.9,
"UseLoot (use custom loot table)": false,
"MaxLootItems (max items to spawn in crate)": 1,
"CustomLoot (items to spawn in crate)": [
{
"1. ShortName": "pants",
"2. Chance": 100.0,
"3. Minimal amount": 1,
"4. Maximal Amount": 1,
"5. Skin Id": 2851371839,
"6. Display Name": "Phantom Zone Pants",
"7. Blueprint": false
Suggestion Please....
I tried Display Name, DisplayName and itemname and it just shows up as pants with the skin no name.
Merged post
you can now name items it's tested and works EX.
"Shortname": "pants",
"Skinid": "2851371839",
"Name": "Phantom Zone Pants",
"MinAmount": 1,
"MaxAmount": 1
here is the updated section I dont know if you want to add it to the updats for everyone.
private class LootItem
{
public string Shortname;
public int MinAmount;
public int MaxAmount;
public ulong SkinID = 0UL;
public string name;
public Item CreateItem()
{
Item item = ItemManager.CreateByName(Shortname, Random.Range(MinAmount, MaxAmount), SkinID);
if (!string.IsNullOrEmpty(name) && item != null) item.name = name;
return item;
}
}