But, if scripter only wants to check if the item is gotten by someone, without knowing whom to check, one has to use a script like this:
Code: Select all
function IsGotten( item )
foreach char in EnumerateOnlineCharacters()
if (char.GetGottenItem() == item)
return char;
endif
endforeach
endfunction
That would item.gottenby, which would return character reference of carrier, if there is one.
Either so or the information could be saved in container member, like done when item is equipped, and the new item member could be just item.gotten, returning true or false, to tell apart equipped and gotten item.
Ideas, solutions?