// TOWN SPECIAL ENCOUNTERS
//    Town 31: Olgai

beginzonescript;

variables;

short im_hostile = 0;
short max_crime = 200;
short last_abil;
short counter = 0;

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();

//	set_name(,);
//	add_range_to_group(,,groupn);

	set_personality_name(620,"Glantris-Bok");
	set_personality_name(621,"Elohi-Bok");
	set_personality_name(622,"Prossis-Bok");
	set_personality_name(623,"Riditas");
	set_personality_name(624,"Spira");
	set_personality_name(625,"Corman");
	set_personality_name(626,"Ublis-Ihrno");
	set_personality_name(627,"Pider");
	set_personality_name(628,"Ortala-Te");
	set_personality_name(629,"Gnee");
	set_personality_name(630,"Wounded Vahnatai");
	set_personality_name(631,"Vaina-Te");

	set_crime_tolerance(max_crime);

		sf(31,26,1);

			
		if (revive_party()) {
			print_str_color("Entering a friendly town heals your wounds",2);
			print_str_color("  and restores your spell energy.",2);
			}
	break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
	if (gf(28,9) == 0) {
		if ((get_ran(1,0,100) < 10) && (gf(31,12) > 0) && (gf(30,15) == 0))
			give_char_text_bubble(3102,"Vyvnas must be found.");
		if ((get_ran(1,0,100) < 10) && (gf(31,12) > 0) && (gf(30,15) == 0))
			give_char_text_bubble(3102,"Who is this Erika?");
		if ((get_ran(1,0,100) < 10) && (gf(31,12) > 0) && (gf(30,15) == 0))
			give_char_text_bubble(3102,"Our hunt begins.");
		if ((get_ran(1,0,100) < 10) && (gf(31,12) > 0) && (gf(30,15) > 0))
			give_char_text_bubble(3102,"Vyvnas is returned.");
		if ((get_ran(1,0,100) < 10) && (gf(31,12) > 0) && (gf(30,15) > 0))
			give_char_text_bubble(3102,"I may rethink you.");
		if ((get_ran(1,0,100) < 10) && (gf(31,12) > 0) && (gf(30,16) == 0))
			give_char_text_bubble(3101,"I watch the Empire.");
		if ((get_ran(1,0,100) < 10) && (gf(31,12) > 0) && (gf(30,16) == 0))
			give_char_text_bubble(3101,"I try to learn.");
		if ((get_ran(1,0,100) < 10) && (gf(31,12) > 0) && (gf(30,16) == 0))
			give_char_text_bubble(3101,"Prove yourself.");
		if ((get_ran(1,0,100) < 10) && (gf(31,12) > 0) && (gf(30,16) > 0))
			give_char_text_bubble(3101,"Jekknol is returned.");
		if ((get_ran(1,0,100) < 10) && (gf(31,12) > 0) && (gf(30,16) > 0))
			give_char_text_bubble(3101,"You have shown worth.");
		if ((get_ran(1,0,100) < 10) && (gf(31,12) > 0) && (gf(30,17) == 0))
			give_char_text_bubble(3127,"I have trusted you.");
		if ((get_ran(1,0,100) < 10) && (gf(31,12) > 0) && (gf(30,17) == 0))
			give_char_text_bubble(3127,"Do not betray us.");
		if ((get_ran(1,0,100) < 10) && (gf(31,12) > 0) && (gf(30,17) == 0))
			give_char_text_bubble(3127,"I hunt for Caffren.");
		if ((get_ran(1,0,100) < 10) && (gf(31,12) > 0) && (gf(30,17) > 0))
			give_char_text_bubble(3127,"Caffren is returned.");
		if ((get_ran(1,0,100) < 10) && (gf(31,12) > 0) && (gf(30,17) > 0))
			give_char_text_bubble(3127,"You have prevailed.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3100,"Boil the jars.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3100,"Fill the jars.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3100,"Seal the jars.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3104,"Shhhhick.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3104,"Shick. Shick.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3104,"Polish. Polish.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3105,"Strange trinkets.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3105,"Much to learn.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3105,"Humans are odd.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3126,"An outsider!");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3126,"So interesting!");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3126,"Let me poke you.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3126,"I can heal you.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3107,"Le le le.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3107,"Ooo!");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3107,"The out person!");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3108,"Shhhhick.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3108,"Shick. Shick.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3109,"Hum.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3109,"Um.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3109,"Interesting.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3110,"Ahhhh.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3110,"Ohhhhhh.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3110,"Chitrachs.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(3110,"Hurts.");

		}
		
break;

beginstate 10;
break;

beginstate 11;
break;

beginstate 12;
break;

beginstate 13;
break;

beginstate 14;
break;

//	print_str("");
//	set_terrain_string_range("",1);
//	set_terrain_string_range("The sign says - .",1);

