izlude mapflag lootevent - script lootscript -1,{ OnPCLootEvent: dispbottom "Looted "+getitemname(@looted_data[0])+" x"+@looted_data[1]+"."; //Displays: Looted x. .@type = getiteminfo(@looted_data[0],2); if(.@type == 6){ .@i = callfunc("CardCollection",@looted_data[0]); if(.@i == 0) message strcharinfo(0),getitemname(@looted_data[0])+" is already in the collection."; else if(.@i == 1) message strcharinfo(0),getitemname(@looted_data[0])+" was added to the collection."; } end; } function script CardCollection { .@card = getarg(0); .@match = 0; for(.@j = 0; .@j < getarraysize(CardCollection); .@j++){ if(CardCollection[.@j]==.@card) .@match++; } if(.@match>0) return 0; else{ CardCollection[getarraysize(CardCollection)] = .@card; return 1; } }