Many players ask me why water jug and small water bottle are empty after spawn ? Is this а bug after last rust update ?
Update: after use kits, not spawns in containers
Water jug and small water bottle are empty
Discussion in 'Rust Discussion' started by Nimant, Mar 23, 2017.
-
yes, i have the same issue too.
-
As i understand, the developers have removed water from bottles and jugs by default, so it needs to add manually. Like this:
Code:if (itemid == 927253046) item.contents.AddItem(ItemManager.FindItemDefinition(112903447), 250);
-
and where do you add that ? to kits.cs ?
-
Kits.cs
Code:private Item BuildItem(int itemid, int amount, ulong skin) { if (amount < 1) amount = 1; Item item = ItemManager.CreateByItemID(itemid, amount, skin); if (itemid == 927253046) // water bottle item.contents.AddItem(ItemManager.FindItemDefinition(112903447), 250); if (itemid == 547302405) // water jug item.contents.AddItem(ItemManager.FindItemDefinition(112903447), 500); return item; }
-
thanks, but it doesn't seem to work, there's still no water in the jugs or water bottle.
-
It is works fine, i have checked. Do you use kit or just spawn bottle from admin console ?
-
i tried both.
-
I just swapped out water for cactus in our store, lol
-
Worked for me
-
i have water bottles and jug in my shop how do i add water to them when people buy them
-