@LabelIndex 223545
@StringIndex 25435
class 0 blitz_wyrm : warrior_aggressive_immediate {
handler:
	EventHandler MY_DYING(always_list,c1,c2,code_info,i9,last_attacker,lparty,member,random1_list,target) {
		always_list = gg::AllocCodeInfoList();
		random1_list = gg::AllocCodeInfoList();
		target = last_attacker;
		always_list::SetInfo(0,target);
		while( gg::IsNull(code_info = always_list::Next()) == 0 ) {
			switch(code_info.code) {
				case 0: {
					myself::SetCurrentQuestID(503);
					target = code_info::RandomSelectOne();
					if( gg::IsNull(target) == 0 && myself::DistFromMe(target) <= 1500 ) {
						c1 = myself::GetLastAttacker();
						if( c1.master ) {
							c1 = c1.master;
						}
						c2 = myself::Pledge_GetLeader(c1);
						if( myself::IsNullCreature(c2) == 0 ) {
							if( gg::HaveMemo(c2,503) == 1 && gg::GetMemoState(c2,503) < 3000 && gg::GetMemoState(c2,503) >= 2000 && gg::OwnItemCount(c2,3840) < 10 && myself::DistFromMe(c2) <= 1500 ) {
								myself::GiveItem1(c2,3840,1);
								if( gg::OwnItemCount(c2,3840) >= 10 ) {
									myself::SoundEffect(c2,"ItemSound.quest_middle");
								} else {
									myself::SoundEffect(c2,"ItemSound.quest_itemget");
								}
							}
						}
					}
					break;
				}
			}
		}
		code_info = random1_list::RandomSelectOne();
		if( gg::IsNull(code_info) == 0 ) {
			switch (code_info.code) {
			}
		}
		super;
	}

	EventHandler TIMER_FIRED_EX(timer_id) {
		myself::SetCurrentQuestID(503);
		if( timer_id == 250304 ) {
			myself::Despawn();
		}
		super;
	}

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

}
