Handy general use scripts
Posted: Sat Feb 01, 2014 5:32 pm
Just a place to drop some handy general use scripts, some may find of great use they're very generic and can save quite a few lines when you find yourself making many replications of the same lines
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.
and to use:
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
}