void main() { object oPC = GetEnteringObject(); object oRand = GetObjectByTag("by_rand_inv"); location lLocation = GetLocation(GetObjectByTag("fr_random_people_wp")); location lLocation2 = GetLocation(GetObjectByTag("fr_random_people_wp2")); location lLocation3 = GetLocation(GetObjectByTag("fr_random_people_wp3")); if((GetIsPC(oPC) == TRUE) && (GetLocalInt(oRand, "Rangers") != 1)) { SetLocalInt(oRand, "Rangers", 1); if(Random(100) <= 20) { CreateObject(OBJECT_TYPE_CREATURE, "by_rand_mildred", lLocation, FALSE); } if(Random(100) <= 20) { CreateObject(OBJECT_TYPE_CREATURE, "by_rand_wolf", lLocation2, FALSE); } if(Random(100) <= 20) { CreateObject(OBJECT_TYPE_CREATURE, "by_rand_robidox", lLocation3, FALSE); } } }