Let me throw this snippet of code at you, that's giving me troubles:
for(var/a = 1, a < world.maxz+1, a++)
if(a != z_level)
for(var/area/Start_Zone/C in block(locate(1,1,a),locate(world.maxx,world.maxy,a)))
del(C)
This little tidbit of code is supposed to go through all of the Z levels of a .dmp (once loaded) and delete all of the areas on each of the Z levels (save the level equivlant to the 'z_level' var). Now...this code seems to do absolutely nothing, so I'm wondering if I'm using block() correctly.
I am seeking help on either another method of doing this, or how I can properly use the block() proc for this.
Thanks.
You could try filtering all areas in world:
or you could create a list of areas and loop through it for greater efficiency.