here's one to start It will check for a specified minimum amount of a named item on player inventory.
Some of these may be internalized to the engine by now, I'm not sure. Some of these are a couple years old.
Code: Select all
Function HasItem($item,$amnt)
{
$itemCount = sysPlayerInventory("$item")
if ($itemCount >= $amnt)
{
return (1)
}
return (0)
}
Code: Select all
if (HasItem("Sticks",5) == 1)
{
*say %player% has at least 5 sticks
}