@LabelIndex 306274
@StringIndex 41634
class 0 trader_woodley : merchant {
property:
	BuySellList SellList0 = {{"tights_pants";20};{"tights_shirt";20};{"bone_breastplate";20};{"bone_gaiters";20};{"piece_bone_breastplate";20};{"bronze_breastplate";20};{"hard_leather_gaiters";20};{"piece_bone_gaiters";20};{"hard_leather_shirt";20};{"bronze_gaiters";20};{"puma_skin_gaiters";20};{"ring_breastplate";20};{"puma_skin_shirt";20};{"iron_plate_gaiters";20};{"lion_skin_gaiters";20};{"lion_skin_shirt";20};{"scale_mail";20};{"compound_scale_mail";20};{"dwarven_scale_mail";20};{"mithril_breastplate";20};{"mithril_gaiters";20};{"reinforce_leather_gaiters";20};{"scale_gaiters";20};{"blast_plate";20};{"compound_scale_gaiters";20};{"dwarven_scale_gaiters";20};{"mithril_banded_mail";20};{"mithril_banded_gaiters";20};{"reinforce_leather_shirt";20};{"brigandine_gaiters";20};{"brigandine";20};{"manticor_skin_shirt";20};{"manticor_skin_gaiters";20};{"mithril_scale_gaiters";20};{"half_plate";20};{"plate_gaiters";20};{"slamander_skin_mail";20};{"round_shield";20};{"bone_shield";20};{"bronze_shield";20};{"aspis";20};{"hoplon";20};{"kite_shield";20};{"brigandine_shield";20};{"square_shield";20};{"plate_shield";20};{"leather_gloves";20};{"bracer";20};{"excellence_leather_gloves";20};{"leather_gauntlet";20};{"gauntlet";20};{"gauntlet_of_repose_of_the_soul";20};{"reinforce_leather_gloves";20};{"manticor_skin_gloves";20};{"brigandine_gauntlet";20};{"mithril_glove";20};{"ogre_power_gauntlet";20};{"low_boots";20};{"boots";20};{"leather_boots";20};{"blue_buckskin_boots";20};{"iron_boots";20};{"boots_of_power";20};{"reinforce_leather_boots";20};{"manticor_skin_boots";20};{"brigandine_boots";20};{"assault_boots";20};{"slamander_skin_boots";20};{"plate_boots";20};{"leather_helmet";20};{"hard_leather_helmet";20};{"bone_helmet";20};{"bronze_helmet";20};{"helmet";20};{"brigandine_helmet";20};{"plate_helmet";20};{"mithril_boots";20};{"chain_mail_shirt";20};{"chain_gaiters";20};{"tempered_mithril_shirt";20};{"eldarake";20};{"tempered_mithril_gaiters";20};{"chain_boots";20};{"plate_leather_boots";20};{"dwarven_chain_boots";20};{"boots_of_seal";20};{"reinforce_mithril_gloves";20};{"chain_gloves";20};{"chain_shield";20};{"plate_leather";20};{"plate_leather_gaiters";20};{"plate_leather_gloves";20};{"dwarven_chain_shield";20};{"composite_armor";20};{"full_plate_armor";20};{"drake_leather_mail";20};{"knight_shield";20};{"tower_shield";20};{"composite_shield";20};{"full_plate_shield";20};{"dwarven_chain_gaiters";20};{"rind_leather_gaiters";20};{"theca_leather_gaiters";20};{"great_helmet";20};{"composite_helmet";20};{"shining_circlet";20};{"full_plate_helmet";20};{"dwarven_chain_gloves";20};{"gloves_of_seal";20};{"rind_leather_gloves";20};{"mithril_gauntlet";20};{"theca_leather_gloves";20};{"drake_leather_gloves";20};{"full_plate_gauntlet";20};{"crimson_boots";20};{"rind_leather_boots";20};{"composite_boots";20};{"theca_leather_boots";20};{"drake_leather_boots";20};{"full_plate_boots";20};{"dwarven_chain_mail_shirt";20};{"rind_leather_mail";20};{"theca_leather_mail";20};{"cotton_shirt";20};{"linen_shirt";20};{"striped_cotton_shirt";20};{"striped_linen_shirt";20}};
	BuySellList SellList1 = {{"hose_of_devotion";20};{"tunic_of_devotion";20};{"hose_of_magicpower";20};{"tunic_of_magicpower";20};{"cursed_hose";20};{"cursed_tunic";20};{"dark_hose";20};{"white_tunic";20};{"mage_s_hose";20};{"mage_s_tunic";20};{"hose_of_knowledge";20};{"tunic_of_knowledge";20};{"round_shield";20};{"bone_shield";20};{"bronze_shield";20};{"aspis";20};{"brigandine_shield";20};{"leather_gloves";20};{"bracer";20};{"excellence_leather_gloves";20};{"leather_gauntlet";20};{"gloves_of_knowledge";20};{"elven_mithril_gloves";20};{"demon_s_gloves";20};{"blessed_gloves";20};{"low_boots";20};{"boots";20};{"leather_boots";20};{"blue_buckskin_boots";20};{"boots_of_knowledge";20};{"elven_mithril_boots";20};{"demon_s_boots";20};{"leather_helmet";20};{"hard_leather_helmet";20};{"bone_helmet";20};{"bronze_helmet";20};{"karmian_tunic";20};{"karmian_hose";20};{"karmian_boots";20};{"karmian_gloves";20};{"robe_of_seal";20};{"demon_s_hose";20};{"divine_hose";20};{"demon_s_tunic";20};{"divine_tunic";20};{"cotton_shirt";20};{"linen_shirt";20};{"striped_cotton_shirt";20};{"striped_linen_shirt";20}};
	BuySellList SellList4 = {{"12014";20};{"12008";20};{"12015";20};{"12012";20};{"12020";20};{"12021";20};{"12024";20};{"12032";20};{"12030";20};{"12031";20};{"12041";20};{"12034";20};{"12023";20};{"12044";20};{"12049";20};{"12039";20};{"12043";20};{"12042";20};{"12036";20};{"12060";20};{"12059";20};{"12056";20};{"12054";20};{"12052";20};{"12081";20};{"12080";20};{"12074";20};{"12013";20};{"12025";20};{"12051";20};{"12069";20};{"12063";20};{"12073";20};{"12078";20};{"12007";20};{"12016";20};{"12038";20};{"12068";20};{"12037";20};{"12055";20};{"12061";20};{"12072";20};{"12076";20};{"12006";20};{"12029";20};{"12033";20};{"12070";20};{"12035";20};{"12053";20};{"12062";20};{"12071";20};{"12075";20};{"12077";20};{"12009";20};{"12028";20};{"12050";20};{"12079";20};{"12085";20};{"12095";20};{"12094";20};{"12086";20};{"12091";20};{"12084";20};{"12093";20};{"12101";20};{"12088";20};{"12089";20};{"12087";20};{"12092";20};{"12096";20};{"12128";20};{"12144";20};{"12135";20};{"12107";20};{"12129";20};{"12126";20};{"12143";20};{"12109";20};{"12111";20};{"12130";20};{"12106";20};{"12127";20};{"12120";20};{"12145";20};{"12108";20};{"12116";20};{"12112";20};{"12119";20};{"12131";20};{"12134";20};{"12141";20};{"12118";20};{"12114";20};{"12125";20};{"12132";20};{"12136";20};{"12142";20};{"12110";20};{"12113";20};{"12133";20}};
	BuySellList SellList5 = {{"12011";20};{"12010";20};{"12017";20};{"12022";20};{"12019";20};{"12018";20};{"12048";20};{"12047";20};{"12013";20};{"12025";20};{"12063";20};{"12007";20};{"12016";20};{"12046";20};{"12065";20};{"12122";20};{"12006";20};{"12137";20};{"12029";20};{"12045";20};{"12066";20};{"12121";20};{"12009";20};{"12028";20};{"12099";20};{"12100";20};{"12098";20};{"12097";20};{"12115";20};{"12124";20};{"12139";20};{"12123";20};{"12138";20}};

handler:
	EventHandler TALK_SELECTED(fhtml0,talker) {
		if( _from_choice == 0 ) {
			if( talker.level >= 60 && gg::HaveMemo(talker,33) == 0 && myself::GetOneTimeQuestFlag(talker,33) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 0;
				myself::AddChoice(0,"Make a pair of dress shoes");
			}
			if( talker.level < 60 && gg::HaveMemo(talker,33) == 0 && myself::GetOneTimeQuestFlag(talker,33) == 0 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 1;
				myself::AddChoice(1,"Make a pair of dress shoes");
			}
			if( gg::HaveMemo(talker,33) == 0 && myself::GetOneTimeQuestFlag(talker,33) == 1 ) {
				_choiceN = ( _choiceN + 1 );
				_code = 2;
				myself::AddChoice(2,"Make a pair of dress shoes (Done)");
			}
			if( gg::HaveMemo(talker,33) == 1 && myself::GetOneTimeQuestFlag(talker,33) == 0 && gg::GetMemoState(talker,33) == ( ( 1 * 10 ) + 1 ) ) {
				_choiceN = ( _choiceN + 1 );
				_code = 3;
				myself::AddChoice(3,"Make a pair of dress shoes (In Progress)");
			}
			if( gg::HaveMemo(talker,33) == 1 && myself::GetOneTimeQuestFlag(talker,33) == 0 && gg::GetMemoState(talker,33) == ( ( 2 * 10 ) + 1 ) ) {
				_choiceN = ( _choiceN + 1 );
				_code = 4;
				myself::AddChoice(4,"Make a pair of dress shoes (In Progress)");
			}
			if( gg::HaveMemo(talker,33) == 1 && myself::GetOneTimeQuestFlag(talker,33) == 0 && gg::GetMemoState(talker,33) == ( ( 3 * 10 ) + 1 ) ) {
				_choiceN = ( _choiceN + 1 );
				_code = 5;
				myself::AddChoice(5,"Make a pair of dress shoes (In Progress)");
			}
			if( gg::HaveMemo(talker,33) == 1 && myself::GetOneTimeQuestFlag(talker,33) == 0 && gg::GetMemoState(talker,33) == ( ( 4 * 10 ) + 1 ) ) {
				_choiceN = ( _choiceN + 1 );
				_code = 6;
				myself::AddChoice(6,"Make a pair of dress shoes (In Progress)");
			}
			if( gg::HaveMemo(talker,33) == 1 && myself::GetOneTimeQuestFlag(talker,33) == 0 && gg::GetMemoState(talker,33) == ( ( 5 * 10 ) + 1 ) ) {
				_choiceN = ( _choiceN + 1 );
				_code = 7;
				myself::AddChoice(7,"Make a pair of dress shoes (In Progress)");
			}
			if( _choiceN > 1 ) {
				myself::ShowChoicePage(talker,1);
				return;
			}
		}
		if( _from_choice || _choiceN == 1 ) {
			switch(_code) {
				case 0: {
					if( _from_choice == 0 || ( talker.level >= 60 && gg::HaveMemo(talker,33) == 0 && myself::GetOneTimeQuestFlag(talker,33) == 0 ) ) {
						myself::SetCurrentQuestID(33);
						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::GetMemoCount(talker) < 26 ) {
							myself::FHTML_SetFileName(fhtml0,"trader_woodley_q0033_0101.htm");
							myself::FHTML_SetInt(fhtml0,"quest_id",33);
							myself::ShowQuestFHTML(talker,fhtml0,33);
						} else {
							myself::ShowPage(talker,"fullquest.htm");
						}
					}
					break;
				}
				case 1: {
					if( _from_choice == 0 || ( talker.level < 60 && gg::HaveMemo(talker,33) == 0 && myself::GetOneTimeQuestFlag(talker,33) == 0 ) ) {
						myself::SetCurrentQuestID(33);
						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,"trader_woodley_q0033_0103.htm");
					}
					break;
				}
				case 2: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,33) == 0 && myself::GetOneTimeQuestFlag(talker,33) == 1 ) ) {
						myself::SetCurrentQuestID(33);
						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,"finishedquest.htm");
					}
					break;
				}
				case 3: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,33) == 1 && myself::GetOneTimeQuestFlag(talker,33) == 0 && gg::GetMemoState(talker,33) == ( ( 1 * 10 ) + 1 ) ) ) {
						myself::SetCurrentQuestID(33);
						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,"trader_woodley_q0033_0105.htm");
					}
					break;
				}
				case 4: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,33) == 1 && myself::GetOneTimeQuestFlag(talker,33) == 0 && gg::GetMemoState(talker,33) == ( ( 2 * 10 ) + 1 ) ) ) {
						myself::SetCurrentQuestID(33);
						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::SetHTMLCookie(talker,33,2);
						myself::ShowPage(talker,"trader_woodley_q0033_0201.htm");
					}
					break;
				}
				case 5: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,33) == 1 && myself::GetOneTimeQuestFlag(talker,33) == 0 && gg::GetMemoState(talker,33) == ( ( 3 * 10 ) + 1 ) ) ) {
						myself::SetCurrentQuestID(33);
						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( gg::OwnItemCount(talker,1882) >= 200 && gg::OwnItemCount(talker,1868) >= 600 && gg::OwnItemCount(talker,57) >= 500000 ) {
							myself::SetHTMLCookie(talker,33,3);
							myself::ShowPage(talker,"trader_woodley_q0033_0302.htm");
						} else {
							myself::ShowPage(talker,"trader_woodley_q0033_0303.htm");
						}
					}
					break;
				}
				case 6: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,33) == 1 && myself::GetOneTimeQuestFlag(talker,33) == 0 && gg::GetMemoState(talker,33) == ( ( 4 * 10 ) + 1 ) ) ) {
						myself::SetCurrentQuestID(33);
						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,"trader_woodley_q0033_0403.htm");
					}
					break;
				}
				case 7: {
					if( _from_choice == 0 || ( gg::HaveMemo(talker,33) == 1 && myself::GetOneTimeQuestFlag(talker,33) == 0 && gg::GetMemoState(talker,33) == ( ( 5 * 10 ) + 1 ) ) ) {
						myself::SetCurrentQuestID(33);
						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::SetHTMLCookie(talker,33,5);
						myself::ShowPage(talker,"trader_woodley_q0033_0501.htm");
					}
					break;
				}
			}
			return;
		}
		super;
	}

	EventHandler QUEST_ACCEPTED(quest_id,talker) {
		if( quest_id == 33 ) {
			myself::SetCurrentQuestID(33);
			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::SetMemo(talker,33);
				myself::ShowQuestMark(talker,33);
				myself::SetMemoState(talker,33,( ( 1 * 10 ) + 1 ));
				gg::AddLog(1,talker,33);
				myself::SetFlagJournal(talker,33,1);
				myself::SoundEffect(talker,"ItemSound.quest_accept");
				myself::ShowQuestPage(talker,"trader_woodley_q0033_0104.htm",33);
			}
			return;
		}
		super;
	}

	EventHandler MENU_SELECTED(ask,i0,i1,quest_id,reply,talker) {
		if( ask == 33 ) {
			myself::SetCurrentQuestID(33);
			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( ask == 33 ) {
			i0 = myself::GetHTMLCookie(talker,33,( 3 - 1 ));
			if( i0 != -1 ) {
				if( reply == 1 && gg::HaveMemo(talker,33) == 1 && myself::GetOneTimeQuestFlag(talker,33) == 0 ) {
					if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
						talker.quest_last_reward_time = myself::GetCurrentTick();
						myself::ShowPage(talker,"trader_woodley_q0033_0301.htm");
						myself::SetMemoState(talker,33,( ( 3 * 10 ) + 1 ));
						myself::SetFlagJournal(talker,33,3);
						myself::ShowQuestMark(talker,33);
						myself::SoundEffect(talker,"ItemSound.quest_middle");
					}
				}
			}
		}
		if( ask == 33 ) {
			myself::SetCurrentQuestID(33);
			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( ask == 33 ) {
			i0 = myself::GetHTMLCookie(talker,33,( 4 - 1 ));
			if( i0 != -1 ) {
				if( reply == 1 && gg::HaveMemo(talker,33) == 1 && myself::GetOneTimeQuestFlag(talker,33) == 0 ) {
					if( gg::OwnItemCount(talker,1882) >= 200 && gg::OwnItemCount(talker,1868) >= 600 && gg::OwnItemCount(talker,57) >= 200000 ) {
						if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
							talker.quest_last_reward_time = myself::GetCurrentTick();
							myself::DeleteItem1(talker,1882,200);
							myself::DeleteItem1(talker,1868,600);
							myself::DeleteItem1(talker,57,200000);
							myself::ShowPage(talker,"trader_woodley_q0033_0401.htm");
							myself::SetMemoState(talker,33,( ( 4 * 10 ) + 1 ));
							myself::SetFlagJournal(talker,33,4);
							myself::ShowQuestMark(talker,33);
							myself::SoundEffect(talker,"ItemSound.quest_middle");
						}
					} else {
						myself::ShowPage(talker,"trader_woodley_q0033_0402.htm");
					}
				}
			}
		}
		if( ask == 33 ) {
			myself::SetCurrentQuestID(33);
			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( ask == 33 && myself::GetOneTimeQuestFlag(talker,33) == 0 ) {
			i0 = myself::GetHTMLCookie(talker,33,( 6 - 1 ));
			if( i0 != -1 ) {
				if( reply == 3 && gg::HaveMemo(talker,33) == 1 && myself::GetOneTimeQuestFlag(talker,33) == 0 ) {
					if( ( myself::GetCurrentTick() - talker.quest_last_reward_time ) > 1 ) {
						talker.quest_last_reward_time = myself::GetCurrentTick();
						myself::GiveItem1(talker,7113,1);
					}
					gg::AddLog(2,talker,33);
					myself::RemoveMemo(talker,33);
					myself::SetOneTimeQuestFlag(talker,33,1);
					myself::SoundEffect(talker,"ItemSound.quest_finish");
					myself::ShowPage(talker,"trader_woodley_q0033_0601.htm");
				}
			}
		}
		super;
	}

}
