@LabelIndex 71659
@StringIndex 11584
class 0 npc_airship_engineer : citizen {
parameter:
	string	engineerSay1 = "engineer_recon003.htm";
	string	engineerSay2 = "engineer_recon004.htm";
	string	engineerSay3 = "engineer_recon005.htm";
	int	EnergyStone = 13277;
	int	AirshipConfirm = 13559;

handler:
	EventHandler CREATED() {
	}

	EventHandler MENU_SELECTED(talker,ask,reply,i0,i1,i2,i3,i4,c0,pledge0) {
		if( ask == -1724 ) {
			if( reply == 2 ) {
				pledge0 = myself::GetPledge(talker);
				if( gg::IsNull(pledge0) == 0 ) {
					i0 = pledge0.skill_level;
					if( talker.is_pledge_master != 1 || i0 < 5 ) {
						myself::ShowPage(talker,"engineer_recon003.htm");
					} else if( gg::OwnItemCount(talker,AirshipConfirm) > 0 ) {
						myself::ShowPage(talker,"engineer_recon005.htm");
					} else if( pledge0.airship_count > 0 ) {
						myself::ShowSystemMessageStr(talker,gg::MakeFString(1800276,"","","","",""));
					} else if( gg::OwnItemCount(talker,EnergyStone) >= 10 ) {
						myself::DeleteItem1(talker,EnergyStone,10);
						myself::GiveItem1(talker,AirshipConfirm,1);
					} else {
						myself::ShowPage(talker,"engineer_recon004.htm");
					}
				} else {
					myself::ShowPage(talker,"engineer_recon003.htm");
				}
			}
		}
	}

}
