Welcome to the Builder Academy

# Question Areas List

22 Dec 2023 00:42 #10367 by soth
Areas List was created by soth
Hello,

Not sure if it's me or not, but how does the areas list work for others?  Say I want to list areas from Level 10 and below?  I tried this command, but it shows the high range above 10.

areas -10

I would think this would show the following:
5-10
1-10
1-5

NOT levels 10-30 or Levels 1-30

I started looking through do_areas in act.informative.c , but not started changing the code yet.

Thanks!

Soth

Please Log in or Create an account to join the conversation.

22 Dec 2023 02:42 #10368 by soth
Replied by soth on topic Areas List
Code:
796 if (ZONE_FLAGGED(i, ZONE_GRID)) { /* Is this zone 'on the grid' ? */ 2797 if (lolev == -1) { 2798 /* No range supplied, show all zones */ 2799 show_zone = TRUE; 2800 } else if ((hilev == -1) && (lolev >= ZONE_MINLVL(i)) && (lolev <= ZONE_MAXLVL(i))) { 2801 /* Single number supplied, it's in this zone's range */ 2802 show_zone = TRUE; 2803 } else if ((hilev != -1) && (lolev == ZONE_MINLVL(i)) && (hilev == ZONE_MAXLVL(i))) { 2804 /* Range supplied, it's completely within this zone's range (no overlap) */ 2805 show_zone = TRUE; 2806 } else if ((hilev != -1) && ((lolev == ZONE_MINLVL(i) && lolev <= ZONE_MAXLVL(i)) || (hilev == ZONE_MAXLVL(i) && hilev >= ZONE_MINLVL(i)))) { 2807 /* Range supplied, it overlaps this zone's range */ 2808 show_zone = TRUE; 2809 //overlap = TRUE; 2810 } else if (ZONE_MAXLVL(i) < 0 && (lolev >= ZONE_MINLVL(i))) { 2811 /* Max level not set for this zone, but specified min in range */ 2812 show_zone = TRUE; 2813 } else if (ZONE_MAXLVL(i) < 0 && (hilev >= ZONE_MINLVL(i))) { 2814 /* Max level not set for this zone, so just display it as red */ 2815 show_zone = TRUE; 2816 overlap = TRUE; 2817 } 2818 }

Looks like this has started to get to where I was wanting to try and go with it.

Please Log in or Create an account to join the conversation.

Time to create page: 0.199 seconds