Storage Areas Question
Posted: Tue Aug 28, 2007 1:59 am
Hi to all..
I cannot find a function to list all the root items in a storage area.
I can do this:
The line "SendSysMessage(who, "Area: "+storage_area);" allways print "Area: 0" to the screen.
Can anyone explain how storage areas are organized and who can i iterate through all the items in it?
Thanks in advance
Gnafu
I cannot find a function to list all the root items in a storage area.
I can do this:
Code: Select all
var objects:= array;
var storage_areas := StorageAreas();
foreach area_name in ( storage_areas )
var storage_area := FindStorageArea(area_name);
SendSysMessage(who, "Nome: "+area_name);
SendSysMessage(who, "Area: "+storage_area);
foreach root_container in ( storage_area )
if ( !(root_container in objects) )
objects.Append(root_container);
SendSysMessage(who, "Oggetto: "+root_container);
endif
foreach item in ( EnumerateItemsInContainer(root_container) )
if ( !(item in objects) )
objects.Append(item);
SendSysMessage(who, "Oggetto: "+root_container);
endif
endforeach
endforeach
endforeach
Can anyone explain how storage areas are organized and who can i iterate through all the items in it?
Thanks in advance
Gnafu