easy way to get item list.
no longer need to update
Code:
using System.Collections.Generic;
static class Items
{
private static List<int> itemIdList = null;
public static List<int> getitems()
{
if (itemIdList == null)
{
itemIdList = new List<int>();
for (int i = 0; i < 1000000; i++)
{
string str = ItemName.getName(i);
//888888888 miss name string
if (str.IndexOf(ItemName.getName(888888888)) == -1)
{
itemIdList.Add(i);
}
}
}
return itemIdList;
}
}
Get item amount
include mags;
Code:
int amount = ItemAmount.getAmount(ItemId);
if (amount <= 1)
{
if (ItemStackable.getStackable(ItemId))
{
//user set amount value
amount = Hackui.spawnamount;
}
else
{
amount = 1;
}
}
spawnitem(ItemId, amount);
//Get item State string
//ItemState.getState(ItemId)