@LabelIndex 139757
@StringIndex 18032
class 0 ai_gathered_npc : default_npc {
parameter:
	int	effective_skill = 458752001;
	int	GiveItem1 = -1;
	int	GiveItem1Rate = 0;
	int	give_item1 = -1;
	int	seed_type = -1;

handler:
	EventHandler WAS_COLLECTED(attacker,i0,i1) {
		if( gg::HaveMemo(attacker,692) == 1 && gg::GetMemoState(attacker,692) == 3 ) {
			i1 = gg::Rand(1000);
			if( i1 < 800 ) {
				if( seed_type == 1 ) {
					myself::GiveItem1(attacker,13867,1);
					myself::SoundEffect(attacker,"ItemSound.quest_itemget");
				} else if( seed_type == 2 ) {
					myself::GiveItem1(attacker,13866,1);
					myself::SoundEffect(attacker,"ItemSound.quest_itemget");
				}
			}
		}
	}

	EventHandler SPELLED(speller,skill_name_id) {
		if( skill_name_id == 172359681 ) {
			if( gg::OwnItemCount(speller,13844) >= 1 ) {
				if( myself.sm.class_id == 1018684 ) {
					myself::GiveItem1(speller,13858,1);
					myself::SoundEffect(speller,"ItemSound.quest_itemget");
					myself::DeleteItem1(speller,13844,1);
					myself::Despawn();
				}
				if( myself.sm.class_id == 1018685 ) {
					myself::GiveItem1(speller,13858,1);
					myself::SoundEffect(speller,"ItemSound.quest_itemget");
					myself::DeleteItem1(speller,13844,1);
					myself::Despawn();
				}
				if( myself.sm.class_id == 1018686 ) {
					myself::GiveItem1(speller,13858,1);
					myself::SoundEffect(speller,"ItemSound.quest_itemget");
					myself::DeleteItem1(speller,13844,1);
					myself::Despawn();
				}
				if( myself.sm.class_id == 1018687 ) {
					myself::GiveItem1(speller,13859,1);
					myself::SoundEffect(speller,"ItemSound.quest_itemget");
					myself::DeleteItem1(speller,13844,1);
					myself::Despawn();
				}
				if( myself.sm.class_id == 1018688 ) {
					myself::GiveItem1(speller,13859,1);
					myself::SoundEffect(speller,"ItemSound.quest_itemget");
					myself::DeleteItem1(speller,13844,1);
					myself::Despawn();
				}
				if( myself.sm.class_id == 1018689 ) {
					myself::GiveItem1(speller,13859,1);
					myself::SoundEffect(speller,"ItemSound.quest_itemget");
					myself::DeleteItem1(speller,13844,1);
					myself::Despawn();
				}
				if( myself.sm.class_id == 1018690 ) {
					myself::GiveItem1(speller,13860,1);
					myself::SoundEffect(speller,"ItemSound.quest_itemget");
					myself::DeleteItem1(speller,13844,1);
					myself::Despawn();
				}
				if( myself.sm.class_id == 1018691 ) {
					myself::GiveItem1(speller,13860,1);
					myself::SoundEffect(speller,"ItemSound.quest_itemget");
					myself::DeleteItem1(speller,13844,1);
					myself::Despawn();
				}
				if( myself.sm.class_id == 1018692 ) {
					myself::GiveItem1(speller,13860,1);
					myself::SoundEffect(speller,"ItemSound.quest_itemget");
					myself::DeleteItem1(speller,13844,1);
					myself::Despawn();
				}
			}
		}
	}

}
