@LabelIndex 223166
@StringIndex 25301
class 0 abyssal_jewel_3 : citizen {
handler:
	EventHandler ATTACKED(attacker,damage) {
		myself::SetCurrentQuestID(337);
		if( attacker.master ) {
			attacker = attacker.master;
		}
		if( gg::GetMemoState(attacker,337) == 70000 && gg::HaveMemo(attacker,337) == 1 ) {
			if( myself.sm.hp < ( myself.sm.max_hp * 0.800000 ) && myself.i_quest0 == 0 ) {
				myself::CreateOnePrivate(1027170,"jewel_guardian_pyton",0,1);
				myself::CreateOnePrivate(1027170,"jewel_guardian_pyton",0,1);
				myself::CreateOnePrivate(1027170,"jewel_guardian_pyton",0,1);
				myself::CreateOnePrivate(1027170,"jewel_guardian_pyton",0,1);
				myself.i_quest0 = 1;
			}
			if( myself.sm.hp < ( myself.sm.max_hp * 0.400000 ) && gg::OwnItemCount(attacker,3861) == 0 ) {
				myself::GiveItem1(attacker,3861,1);
				myself::SoundEffect(attacker,"ItemSound.quest_itemget");
			}
		}
		if( myself.sm.hp < ( myself.sm.max_hp * 0.100000 ) ) {
			myself::Despawn();
		}
		super;
	}

	EventHandler TIMER_FIRED_EX(timer_id) {
		myself::SetCurrentQuestID(337);
		if( timer_id == 233721 ) {
			myself::Despawn();
		}
		super;
	}

	EventHandler CREATED(i0) {
		myself::SetCurrentQuestID(337);
		myself::AddTimerEx(233721,( ( 1000 * 3 ) * 60 ));
		super;
	}

}
