if (player.inventory.GetAmount(-932201673) == amount)
{
player.inventory.Take(null, -932201673, amount);
if (dice1 > dice2)
{
PrintToChat(player, "<color=#00C715>You won!</color>");
player.inventory.GiveItem(ItemManager.CreateByItemID(-932201673, amount * 2));
}
else
{
PrintToChat(player, "<color=#C70000>You Lost!</color>");
}
}
else
{
//Loop part
PrintToChat(player, "<color=#C70000>No Enough Scrap!</color>");
}
}
}
}Thank you :)