@LabelIndex 17525
@StringIndex 4234
class 0 summon_siege_golem : default_npc {
handler:
	EventHandler CREATED() {
		myself::AddPetDefaultDesire_Follow(20.000000);
		myself::Summon_SetOption(1,900);
		myself::AddTimerEx(100020,1000);
		myself::AddTimerEx(100021,( 1000 * 60 ));
	}

	EventHandler NO_DESIRE() {
		myself::AddPetDefaultDesire_Follow(20.000000);
	}

	EventHandler MENU_SELECTED(talker,ask,reply,i0,c0,action_id) {
		i0 = myself.master.target_id;
		if( action_id == 1000 ) {
			if( myself::Skill_GetConsumeMP(267321345) < myself.sm.mp && myself::Skill_GetConsumeHP(267321345) < myself.sm.hp && myself::Skill_InReuseDelay(267321345) == 0 ) {
				myself::AddUseSkillDesireEx(i0,267321345,0,reply,ask,1000000,0);
			} else if( myself::Skill_InReuseDelay(267321345) > 0 ) {
				myself::ShowSystemMessage(myself.sm.master,2396);
			} else if( myself::Skill_GetConsumeMP(267321345) >= myself.sm.mp ) {
				myself::ShowSystemMessage(myself.sm.master,2394);
			} else if( myself::Skill_GetConsumeHP(267321345) >= myself.sm.hp ) {
				myself::ShowSystemMessage(myself.sm.master,2395);
			}
		} else if( action_id == 2 ) {
			if( myself::Skill_GetConsumeMP(267321345) < myself.sm.mp && myself::Skill_GetConsumeHP(267321345) < myself.sm.hp && myself::Skill_InReuseDelay(267321345) == 0 ) {
				myself::AddUseSkillDesireEx(i0,267321345,0,reply,ask,1000000,0);
			} else if( myself::Skill_InReuseDelay(267321345) > 0 ) {
				myself::ShowSystemMessage(myself.sm.master,2396);
			} else if( myself::Skill_GetConsumeMP(267321345) >= myself.sm.mp ) {
				myself::ShowSystemMessage(myself.sm.master,2394);
			} else if( myself::Skill_GetConsumeHP(267321345) >= myself.sm.hp ) {
				myself::ShowSystemMessage(myself.sm.master,2395);
			}
		}
	}

	EventHandler TIMER_FIRED_EX(timer_id) {
		if( timer_id == 100020 ) {
			if( myself.master.alive == 0 ) {
				myself::Despawn();
			}
			myself::AddTimerEx(100020,1000);
		}
		if( timer_id == 100021 ) {
			if( myself::IsNullCreature(myself.master) == 0 && gg::OwnItemCount(myself.master,2131) < 140 && gg::OwnItemCount(myself.master,2131) >= 70 ) {
				myself::Say(gg::MakeFString(1000169,"","","","",""));
			}
			myself::AddTimerEx(100021,( 1000 * 60 ));
		}
	}

}
