Ah, very cool. A hold full of thanks.
That section of my utils.c file now looks like this:
// boal 270904 êàðòû -->
irand = rand(9);
if (irand == 1) { TakeNItems(ch,"map_bad", 1);}
irand = rand(16);
if (irand == 1 && makeint(pchar.rank) >=3) { TakeNItems(ch,"map_normal", 1);}
irand = rand(20);
if (irand == 1 && makeint(pchar.rank) >=8) { TakeNItems(ch,"map_good", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_jam", 1);}
irand = rand(39);
if (irand == 2) {TakeNItems(ch,"map_cayman", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_barbados", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_trinidad", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_Curacao", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_martiniqua", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_dominica", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_puerto", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_cuba", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_hisp", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_nevis", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_guad", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_antigua", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_TORTUGA", 1);}
irand = rand(39);
if (irand == 2) {TakeNItems(ch,"map_terks", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_sm", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_bermudas", 1);}
irand = rand(39);
if (irand == 2) {TakeNItems(ch,"map_Pearl", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_beliz", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_santa", 1);}
irand = rand(39);
if (irand == 2) {TakeNItems(ch,"map_maine_1", 1);}
irand = rand(39);
if (irand == 2) {TakeNItems(ch,"map_maine_2", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_panama", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_maracaibo", 1);}
irand = rand(19);
if (irand == 2) {TakeNItems(ch,"map_cumana", 1);}
// boal 270904 êàðòû <--
//òîòåìû
TakeNItems(ch,"Totem_1", 1);
TakeNItems(ch,"Totem_2", 1);
TakeNItems(ch,"Totem_3", 1);
TakeNItems(ch,"Totem_4", 1);
TakeNItems(ch,"Totem_5", 1);
TakeNItems(ch,"Totem_6", 1);
TakeNItems(ch,"Totem_7", 1);
TakeNItems(ch,"Totem_8", 1);
TakeNItems(ch,"Totem_9", 1);
TakeNItems(ch,"Totem_10", 1);
TakeNItems(ch,"Totem_13", 1);
TakeNItems(ch,"Totem_14", 1);
if (rand(200) == 1 && !CheckMainHeroTotem("Totem_1")) TakeNItems(ch,"Totem_1", 1);
if (rand(200) == 1 && !CheckMainHeroTotem("Totem_2")) TakeNItems(ch,"Totem_2", 1);
if (rand(200) == 1 && !CheckMainHeroTotem("Totem_3")) TakeNItems(ch,"Totem_3", 1);
if (rand(200) == 1 && !CheckMainHeroTotem("Totem_4")) TakeNItems(ch,"Totem_4", 1);
if (rand(200) == 1 && !CheckMainHeroTotem("Totem_5")) TakeNItems(ch,"Totem_5", 1);
if (rand(200) == 1 && !CheckMainHeroTotem("Totem_6")) TakeNItems(ch,"Totem_6", 1);
if (rand(200) == 1 && !CheckMainHeroTotem("Totem_7")) TakeNItems(ch,"Totem_7", 1);
if (rand(200) == 1 && !CheckMainHeroTotem("Totem_8")) TakeNItems(ch,"Totem_8", 1);
if (rand(200) == 1 && !CheckMainHeroTotem("Totem_9")) TakeNItems(ch,"Totem_9", 1);
if (rand(200) == 1 && !CheckMainHeroTotem("Totem_10")) TakeNItems(ch,"Totem_10", 1);
if (rand(200) == 1 && !CheckMainHeroTotem("Totem_13")) TakeNItems(ch,"Totem_13", 1);
if (rand(200) == 1 && !CheckMainHeroTotem("Totem_14")) TakeNItems(ch,"Totem_14", 1);
}
string PlaceCharacter(aref ch, string group, string location) //boal change
{ // location = "random" "random_free" è "random_must_be" - äîëæåàáûòü, äàæå åñëè âñå çàÃÂÿòî random_must_be_near - ðÿäîì
float locx;
float locy;
float locz;
string homelocator;
bool ok;
Is this correct?