class 1 argos_boss_12 : warrior_aggressive
{
handler:
	EventHandler MY_DYING(always_list,code_info,i9,last_attacker,lparty,member,random1_list,target)
	{
		always_list = gg::AllocCodeInfoList();
		random1_list = gg::AllocCodeInfoList();
		target = last_attacker;
		if( myself::HaveMemo(target,81) == 1 && target.occupation == 36 && myself::GetMemoState(target,81) == 12 && myself::OwnItemCount(target,7403) == 0 )
		{
			always_list::SetInfo(0,target);
		}
		while( gg::IsNull(code_info = always_list::Next()) == 0 )
		{
			if( code_info.code == 0 )
			{
				myself::SetCurrentQuestID(81);
				target = code_info::RandomSelectOne();
				if( gg::IsNull(target) == 0 && myself::DistFromMe(target) <= 1500 )
				{
					if( target.is_pc == 1 )
					{
						if( target.dbid == myself.sm.param2 )
						{
							myself::GiveItem1(target,7403,1);
							myself::SetFlagJournal(target,81,16);
							myself::SoundEffect(target,"ItemSound.quest_middle");
							myself::DeleteItem1(target,7496,myself::OwnItemCount(target,7496));
							myself::Say(myself::MakeFString(8254,"","","","",""));
						}
						else
						{
							myself::Say(myself::MakeFString(8255,"","","","",""));
						}
					}
				}
			}
		}
		code_info = random1_list::RandomSelectOne();
		if( gg::IsNull(code_info) == 0 )
		{
		}
		super;
	}

	EventHandler TIMER_FIRED_EX(c0,i0,timer_id)
	{
		myself::SetCurrentQuestID(81);
		if( timer_id == 99908 )
		{
			myself::Say(myself::MakeFString(8256,"","","","",""));
			myself::Despawn();
		}
		super;
	}

	EventHandler CREATED(c0)
	{
		myself::SetCurrentQuestID(81);
		myself::AddTimerEx(99908,( 1000 * 600 ));
		c0 = myself::GetCreatureFromIndex(myself.sm.param1);
		if( c0 )
		{
			if( c0.is_pc == 1 )
			{
				myself::AddAttackDesire(c0,1,10000);
			}
			if( c0.is_pc == 1 )
			{
				myself::Say(myself::MakeFString(8153,c0.name,"","","",""));
			}
		}
		super;
	}

}
