Rather than posting the entire OnAquire event, I've just included what I found posted by Jassper and inserted where I require it.
object oRemove = GetFirstItemInInventory(GetFirstPC());
while(GetIsObjectValid(oRemove))
{
if(GetStringLowerCase(GetStringLeft(GetTag(oRemove),4)) == "emma")
DestroyObject(oRemove);
oRemove = GetNextItemInInventory();
}
Everything before and after the loop works when the item is aquired, but the already existing tagged items in the inventory starting with "emma" are not destroyed.
No clue why.
Thanks,
FP!





Retour en haut







