the Item functions arent default, however, i took liberty of remaking them.
function hasItemOnList(%string,%item)
{
for(%i=0;%i<getWordCount(%string);%i++)
{
%word = getWord(%string,%i);
if(%word $= %item)
return true;
}
return false;
}
function addItemToList(%string,%item)
{
return trim(%string SPC %item); //wow so hard
}
function removeItemFromList(%string,%item)
{
for(%i=0;%i<getWordCount(%string);%i++)
{
%word = getWord(%string,%i);
if(%word $= %item)
continue;
%fString = %fString SPC %word;
}
return trim(%fString);
}
put in your script and they should work.
Just incase someone doesnt have a working set of item functions (like crown)