beginterrainscript;

variables;

body;

beginstate INIT_STATE;
break;

beginstate START_STATE;
break;

beginstate STEP_INTO_SPOT_STATE; // 11 TOTAL
	if(terrain_in_this_spot() == 390){
		if(has_item(316) == TRUE){
			print_str("You sweep up the dirt.");

			play_sound(-57);

			set_terrain(my_loc_x(),my_loc_y(),0);

			inc_flag(my_loc_x(),my_loc_y(),1);
			//118,138,139,1318,1919,2018,238
			//1010,2421,248,227

			inc_flag(150,10,1);

			award_party_xp(5,2);
			}
		}

	if(terrain_in_this_spot() == 391){
		if(has_item(317) == TRUE){
			print_str("You mop up the muck.");

			play_sound(-57);

			set_terrain(my_loc_x(),my_loc_y(),0);

			inc_flag(my_loc_x(),my_loc_y(),1);
			//118,138,139,1318,1919,2018,238
			//1010,2421,248,227

			inc_flag(150,10,1);

			award_party_xp(5,2);
			}
		}
break;

beginstate SEARCH_STATE;
	if(terrain_in_this_spot() == 390){
		if(has_item(316) == TRUE){
			print_str("You sweep up the dirt.");

			play_sound(-57);

			set_terrain(my_loc_x(),my_loc_y(),0);

			inc_flag(my_loc_x(),my_loc_y(),1);
			//118,138,139,1318,1919,2018,238
			//1010,2421,248,227

			inc_flag(150,10,1);

			award_party_xp(5,2);
			}
		}

	if(terrain_in_this_spot() == 391){
		if(has_item(317) == TRUE){
			print_str("You mop up the muck.");

			play_sound(-57);

			set_terrain(my_loc_x(),my_loc_y(),0);
			
			inc_flag(my_loc_x(),my_loc_y(),1);
			//118,138,139,1318,1919,2018,238
			//1010,2421,248,227

			inc_flag(150,10,1);

			award_party_xp(5,2);
			}
		}
break;