@LabelIndex 240096
@StringIndex 28958
class 0 silvia : merchant_for_newbie {
property:
	BuySellList SellList0 = {{"necklace_of_magic";15};{"necklace_of_knowledge";15};{"necklace_of_anguish";15};{"necklace_of_wisdom";15};{"apprentice_s_earing";15};{"mage_earing";15};{"earing_of_strength";15};{"earing_of_wisdom";15};{"cat_seye_earing";15};{"magic_ring";15};{"ring_of_knowledge";15};{"ring_of_anguish";15};{"ring_of_wisdom";15}};
	BuySellList SellList1 = {{"sb_adv_defence_power1";15};{"sb_advanced_attack_power1";15};{"sb_might1";15};{"sb_battle_heal1";15};{"sb_vampiric_touch1";15};{"sb_ice_bolt1";15};{"sb_heal1";15};{"sb_group_heal1";15};{"sb_shield1";15};{"sb_breeze1";15};{"sb_wind_walk1";15};{"sb_curse:weakness";15};{"sb_curse:poison1";15};{"sb_cure_poison1";15};{"sb_flame_strike1";15};{"sb_drain_energy1";15};{"sb_elemental_heal1";15};{"sb_disrupt_undead1";15};{"sb_resurrection1";15};{"sb_blaze1";15};{"sb_summon_shadow1";15};{"sb_summon_silhouette1";15};{"sb_summon_unicorn_boxer1";15};{"sb_summon_blackcat1";15};{"sb_servitor_heal1";15};{"sb_aqua_swirl1";15};{"sb_arcane_acumen1";15};{"sb_energy_bolt1";15};{"sb_aura_burn1";15};{"sb_charm11";15};{"sb_concentration1";15};{"sb_water_breathing";15};{"sb_twister1";15};{"sb_poison1";15};{"sb_poison_recovery1";15};{"sb_summon_mechanic_golem1";15};{"battle_manual_fallen_arrow";15};{"battle_manual_fallen_attack";15};{"battle_manual_rapid_attack";15};{"battle_manual_increase_power";15};{"battle_manual_detect_trap";15};{"battle_manual_defuse_trap";15};{"sb_guidance1";15};{"sb_greater_group_heal11";15};{"sb_greater_battle_heal11";15};{"sb_greater_heal11";15};{"sb_death_whisper1";15};{"sb_life_scavenge1";15};{"sb_requiem1";15};{"sb_remedy1";15};{"sb_return1";15};{"sb_reflect_damage1";15};{"sb_might_of_heaven11";15};{"sb_mass_ressurection1";15};{"sb_mass_summon_storm_cubic";15};{"sb_vampiric_claw11";15};{"sb_bless_shield1";15};{"sb_blazing_circle1";15};{"sb_blazing_skin1";15};{"sb_silence1";15};{"sb_surrender_to_wind1";15};{"sb_summon_dark_panther1";15};{"sb_summon_binding_cubic1";15};{"sb_summon_storm_cubic1";15};{"sb_summon_kai_the_cat1";15};{"sb_summon_zombi1";15};{"sb_servitor_cure1";15};{"sb_servitor_physical_shield1";15};{"sb_aura_bolt1";15};{"sb_aura_flare11";15};{"sb_invigor1";15};{"sb_curse_discord1";15};{"sb_curse_fear1";15};{"sb_transfer_pain";15};{"sb_prominence11";15};{"sb_holy_blessing11";15};{"sb_iron_will1";15};{"sb_hamstring1";15};{"sb_death_spike1";15};{"sb_restore_life1";15};{"sb_repose1";15};{"sb_magic_barrier1";15};{"sb_bless_the_body1";15};{"sb_bless_the_soul1";15};{"sb_summon_skeletonwarrior1";15};{"sb_servitor_magic_shield1";15};{"sb_servitor_haste1";15};{"sb_sleeping_cloud1";15};{"sb_anchor1";15};{"sb_word_of_fear1";15};{"sb_curse_gloom";15};{"sb_forget";15};{"sb_purify1";15};{"sb_haste1";15};{"sb_corpse_plague1";15};{"sb_horror1";15};{"sb_holy_strike1";15};{"sb_decay1";15};{"sb_body_of_avatar1-6";15};{"sb_vitalize1";15};{"sb_cancel1";15};{"sb_corpse_burst1";15};{"sb_hold_undead1";15};{"sb_sacrifice1";15};{"sb_servitor_empower1";15};{"sb_curse_death_link1";15};{"sb_mana_burn";15};{"sb_magical_backfire";15};{"sb_major_heal";15};{"sb_betray";15};{"sb_summon_cursed_man";15};{"sb_summon_queen_of_cat";15};{"sb_summon_friend";15};{"sb_arcane_disruption";15};{"sb_erase";15};{"sb_invocation";15};{"sb_turn_undead";15};{"sb_trance";15};{"sb_greater_might";15};{"sb_greater_shield";15};{"sb_auqa_resist1";15};{"sb_unholy_resistance";15};{"sb_wind_resist1";15};{"sb_holy_resistance";15};{"sb_mana_storm";15};{"sb_mass_surr_to_fire";15};{"sb_mass_curse_gloom";15};{"sb_mass_curse_fear";15};{"sb_major_group_heal";15};{"sb_summon_cursed_bones";15};{"sb_aura_flash";15};{"sb_rain_of_fire1";15};{"sb_curse_disease1";15};{"sb_mass_slow1";15};{"sb_servitor_blessing";15};{"sb_celestial_shield";15};{"sb_benediction";15};{"sb_seed_of_fire";15};{"sb_prayer1";15};{"sb_aura_symphony1";15};{"sb_inferno1";15};{"sb_elemental_symphony_h1";15};{"12772";15}};

handler:
	EventHandler TALK_SELECTED(talker) {
		if( _from_choice == 0 ) {
			if( gg::HaveMemo(talker,153) != 0 && gg::OwnItemCount(talker,1014) != 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Deliver Goods (In Progress)");
			}
			if( gg::HaveMemo(talker,153) != 0 && gg::OwnItemCount(talker,1017) != 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Deliver Goods (In Progress)");
			}
			if( _choiceN > 1 ) {
				myself::ShowChoicePage(talker,1);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 ) {
			switch(_code) {
				case 0: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,153) != 0 && gg::OwnItemCount(talker,1014) != 0 ) ) {
						myself::SetCurrentQuestID(153);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,1014,gg::OwnItemCount(talker,1014));
							if( gg::OwnItemCount(talker,1017) == 0 ) {
								myself::GiveItem1(talker,1017,1);
								myself::GiveItem1(talker,1835,3);
							}
							myself::ShowPage(talker,"silvia_q0302_01.htm");
							if( gg::OwnItemCount(talker,1016) >= 1 && gg::OwnItemCount(talker,1018) >= 1 ) {
								myself::SetFlagJournal(talker,153,2);
								myself::ShowQuestMark(talker,153);
								myself::SoundEffect(talker,"ItemSound.quest_middle");
							}
						}
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,153) != 0 && gg::OwnItemCount(talker,1017) != 0 ) ) {
						myself::SetCurrentQuestID(153);
						if( myself::GetInventoryInfo(talker,0) >= ( myself::GetInventoryInfo(talker,1) * 0.800000 ) || myself::GetInventoryInfo(talker,2) >= ( myself::GetInventoryInfo(talker,3) * 0.800000 ) ) {
							myself::ShowSystemMessage(talker,1118);
							return;
						}
						myself::ShowPage(talker,"silvia_q0302_02.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

}
