@LabelIndex 64874
@StringIndex 10113
class 0 azit_watering_game_manager_all : citizen {
parameter:
	int	GM_ID = 8;
	string	maker_name_game = "azit_watering_game_manager_all_maker_default";
	string	maker_name_clear = "azit_watering_game_manager_all_maker_finish";
	string	szName = "game_manager";

handler:
	EventHandler CREATED(reply) {
		myself.sm.residence_id = 62;
	}

	EventHandler TALKED(talker,ask,reply) {
		if( myself::Castle_IsUnderSiege() ) {
			myself::ShowPage(talker,"game_manager003.htm");
		} else {
			myself::ShowPage(talker,"game_manager001.htm");
		}
	}

	EventHandler MENU_SELECTED(talker,ask,reply,i0) {
		if( ask == -200 ) {
			myself::MG_JoinGame(talker);
		}
	}

	EventHandler MG_JOIN_GAME_RETURNED(talker,reply) {
		switch(reply) {
			case 0: {
				break;
			}
			case -1: {
				myself::ShowPage(talker,"game_manager002.htm");
				break;
			}
			case -2: {
				myself::ShowPage(talker,"game_manager004.htm");
				break;
			}
			case -3: {
				myself::ShowPage(talker,"game_manager005.htm");
				break;
			}
			case -4: {
				myself::ShowPage(talker,"game_manager006.htm");
				break;
			}
			case -5: {
				myself::ShowPage(talker,"game_manager007.htm");
				break;
			}
			case -6: {
				myself::ShowPage(talker,"game_manager008.htm");
				break;
			}
			case -7: {
				myself::ShowPage(talker,"game_manager009.htm");
				break;
			}
			case -8: {
				myself::ShowPage(talker,"game_manager010.htm");
				break;
			}
			case -9: {
				myself::ShowPage(talker,"game_manager011.htm");
				break;
			}
			case -10: {
				myself::ShowPage(talker,"game_manager012.htm");
				break;
			}
			case -11: {
				myself::ShowPage(talker,"game_manager013.htm");
				break;
			}
			case -12: {
				myself::ShowPage(talker,"game_manager003.htm");
				break;
			}
			case -14: {
				myself::ShowPage(talker,"game_manager014.htm");
				break;
			}
			case -15: {
				myself::ShowPage(talker,"game_manager015.htm");
				break;
			}
		}
	}

}
