Checking duplicate item names

Theraze

Active member
> ashq foreach it in $items[] foreach em in $items[] if (it.to_int() < em.to_int() && it.to_string() == em.to_string() && it.to_int() != em.to_int()) print("Items "+it.to_int()+" and "+em.to_int()+" are duplicates: "+it.to_string());

Items 1764 and 7302 are duplicates: Spookyraven library key
Items 2108 and 8042 are duplicates: rock
Items 2180 and 7963 are duplicates: ancient amulet
Items 2258 and 7262 are duplicates: "I Love Me, Vol. I"
Items 2268 and 7964 are duplicates: Staff of Fats
Items 2286 and 7962 are duplicates: Eye of Ed
Items 2325 and 7961 are duplicates: Staff of Ed
Items 2334 and 7965 are duplicates: Holy MacGuffin
Anything that shows through this alias (or something similar) should use magic numbers rather than the item name, as the item name may or may not refer to the item you want it to.
 
Top