Full Version : Search for item
xmlspawner >>Q&A >>Search for item


<< Prev | Next >>

Xarlon- 04-10-2007
A friend of mine made a ItemID Change Stone where you could change any item to look like any other item that could be equipped in the same location.

Unfortunately when he made it, it began by declaring 2 variables like this..

CODE
private static Item m_Item1 = new Item();
private static Item m_Item2 = new Item();


These were later changed, so the original item was simply created and never used or anything... So basically we have 2 items floating in the internal map for every ItemID Change Stone we created... And more were created at every restart...


I want to find every Item in the internal map that has no parent... but when I do that it finds MountItems as well... which deletes any mountable pet.

Is there a way to restrict it to only that exact class, and not any classes that also inherit the class?

Xarlon- 04-11-2007
Nevermind... I named all the MountItem items and unnamed everything else, then searched for things with no names and no parent. I think I deleted close to a million items that were lost in the internal map.