I also made a similar tool for Era and is also currently used on Delteria,
to get images from current level:
PHP Code:
for ( temp.npcid = 0; temp.npcid < npcscount; temp.npcid ++;){
if(!(npcs[ temp.npcid].image in temp.images)){
temp.images.add(npcs[ temp.npcid].image);
}
}
// return temp.images; // Or w.e. you want to do with them.